Add test case from a recent glibc bug.
[gnulib.git] / ChangeLog
blob2f89dcdbd5b8ad57ad9b95b244afb5fed4fecabe
1 2018-09-12  Bruno Haible  <bruno@clisp.org>
3         Add test case from a recent glibc bug.
4         * tests/test-strstr.c (main): Add test of long needle.
5         * tests/test-strcasestr.c (main): Likewise.
6         * tests/test-c-strstr.c (main): Likewise.
7         * tests/test-c-strcasestr.c (main): Likewise.
8         * tests/test-memmem.c (main): Likewise.
10 2018-09-12  Bruno Haible  <bruno@clisp.org>
12         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13         * tests/test-c-strstr.c (main): Add the same tests here as well.
15 2018-09-12  Bruno Haible  <bruno@clisp.org>
17         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18         * tests/test-memmem.c (main): Free haystack.
19         * tests/test-strcasestr.c (main): Likewise.
20         * tests/test-c-strcasestr.c (main): Likewise.
22 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24         xstrtol: fix missing-TYPE_SIGNED typo
25         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
27 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29         timespec: fix resolution confusion
30         In normal usage, clock resolution is given in seconds, but the
31         code was mistakenly using inverse seconds and calling it
32         “resolution”.  Fix this, partly by renaming two identifiers.
33         The old names will be kept for a bit, to ease transition.
34         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
35         New constants, replacing TIMESPEC_RESOLUTION and
36         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
37         All uses changed.
39 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41         mktime: simplify in prep for glibc merge
42         * lib/mktime.c, lib/timegm.c [_LIBC]:
43         Include mktime-internal.h (a small file just for glibc)
44         instead of using a typedef.
46 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
48         intprops: minor clarification of code
49         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
50         Use _GL_INT_CONVERT rather than reinventing it.
52 2018-09-07  Bruno Haible  <bruno@clisp.org>
54         Fix a comment.
55         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
57 2018-09-07  Bruno Haible  <bruno@clisp.org>
59         posix_spawn_file_actions_addchdir: Add tests.
60         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
61         * tests/test-posix_spawn4.c: New file.
62         * modules/posix_spawn_file_actions_addchdir-tests: New file.
64 2018-09-07  Bruno Haible  <bruno@clisp.org>
66         posix_spawn_file_actions_addchdir: New module.
67         Suggested by Eric Blake in
68         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
69         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
70         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
71         union member 'chdir_action'.
72         * lib/spawn_faction_addchdir.c: New file.
73         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
74         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
75         HAVE_WORKING_POSIX_SPAWN.
76         * lib/spawn_faction_adddup2.c: Likewise.
77         * lib/spawn_faction_addopen.c: Likewise.
78         * m4/posix_spawn_faction_addchdir.m4: New file.
79         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
80         'posix_spawn_file_actions_addchdir' is present and whether
81         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
82         instead of HAVE_WORKING_POSIX_SPAWN.
83         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
84         posix_spawn_file_actions_addchdir is declared.
85         (gl_SPAWN_H_DEFAULTS): Initialize
86         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
87         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
88         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
89         * modules/spawn (Makefile.am): Substitute
90         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
91         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
92         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
93         * modules/posix_spawn_file_actions_addchdir: New file.
94         * modules/posix_spawn_file_actions_addclose (Depends-on,
95         configure.ac): Test also REPLACE_POSIX_SPAWN.
96         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
97         configure.ac): Likewise.
98         * modules/posix_spawn_file_actions_addopen (Depends-on,
99         configure.ac): Likewise.
100         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
101         signature.
102         * doc/posix-functions/posix_spawn.texi: Mention the new module.
103         * doc/posix-functions/posix_spawnp.texi: Likewise.
105 2018-09-06  Bruno Haible  <bruno@clisp.org>
107         stddef: Override max_align_t on NetBSD 8.0/x86.
108         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
109         the value of __alignof__ (max_align_t).
110         * doc/posix-headers/stddef.texi: Mention the issue.
112 2018-09-06  Bruno Haible  <bruno@clisp.org>
114         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
115         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
116         system fcntl.
117         * doc/posix-functions/fcntl.texi: Document the issue.
119 2018-09-06  Bruno Haible  <bruno@clisp.org>
121         count-trailing-zeros tests: Rely on limits-h module.
122         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
123         definition.
124         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
126 2018-09-06  Bruno Haible  <bruno@clisp.org>
128         count-leading-zeros tests: Rely on limits-h module.
129         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
130         definition.
131         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
133 2018-09-06  Bruno Haible  <bruno@clisp.org>
135         count-one-bits tests: Rely on limits-h module.
136         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
137         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
139 2018-09-06  Bruno Haible  <bruno@clisp.org>
141         xstrtoll: Rely on limits-h module.
142         * lib/xstrtol.c: Don't include intprops.h.
143         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
144         * modules/xstrtol (Depends-on): Remove 'intprops'.
145         * modules/xstrtoll (Depends-on): Add 'limits-h'.
147 2018-09-06  Bruno Haible  <bruno@clisp.org>
149         strtoll, strtoull: Rely on limits-h module.
150         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
151         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
152         * modules/strtoll (Depends-on): Add limits-h.
153         * modules/strtoull (Depends-on): Likewise.
155 2018-09-06  Bruno Haible  <bruno@clisp.org>
157         intprops tests: Fix compilation error with pre-C99 compiler.
158         * tests/test-intprops.c (verify_stmt): New macro.
159         (VERIFY, main): Use it.
161 2018-09-06  Bruno Haible  <bruno@clisp.org>
163         limits-h: Provide numerical limits macros.
164         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
165         IRIX and for GCC.
166         (WORD_BIT, LONG_BIT): Define.
167         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
168         <limits.h> does not define LLONG_MAX or WORD_BIT.
169         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
170         TYPE_MAXIMUM): New macros, from intprops.h.
171         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
172         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
173         provides.
175 2018-09-05  Bruno Haible  <bruno@clisp.org>
177         fcntl: Don't access nonexistent optional argument.
178         Reported by Frank Busse <f.busse@imperial.ac.uk> in
179         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
180         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
181         don't consume an argument. For actions that take an 'int' argument,
182         consume an 'int' argument.
184 2018-09-05  Eric Blake  <eblake@redhat.com>
186         doc: mention environ pitfall
187         * doc/posix-functions/environ.texi (environ): Assigning NULL to
188         environ is a glibc extension.
190 2018-09-03  Bruno Haible  <bruno@clisp.org>
192         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
193         Reported by Antoine Luong <antoine.luong@c-s.fr> in
194         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
195         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
196         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
197         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
199 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
201         mktime: fix unlikely race+overflow bug
202         Problem reported by Alexandre Oliva in:
203         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
204         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
205         to avoid an unlikely race if the compiler delays a load and
206         if this cascades into a signed integer overflow.
208 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
210         mktime, timegm: simplify glibc time64_t
211         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
212         Now long int, not time_t, since long int is the longstanding type
213         for this in glibc and there is no need to change it even if time_t
214         becomes 64 bits - even int would do, though this would be a change
215         to the glibc generated code.  When this change is merged into
216         glibc, it should simplify the time_t vs time64_t situation.
218         mktime, timegm: simplify merge to glibc
219         Move code around to make a merge to glibc easier to audit.
220         This should not change behavior.
221         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
222         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
223         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
224         simplify later conditionals; default the others to zero.  In uses
225         of these conditionals, explicitly spell out how _LIBC affects
226         things, so it’s easier to review from a glibc viewpoint.
227         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
228         compartmentalize tzset issues.  Move system-dependent tzsettish
229         code here from mktime.
230         (mktime): Move tzsettish code to my_tzset, and move
231         localtime_offset to within mktime so that it doesn’t
232         need a separate ifdef.
234 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
236         intprops: avoid evaluation of some expressions
237         This makes EXPR_SIGNED (e) easier to use, as it no longer
238         evaluates the expression E.  Formerly, E was required to be free
239         of side effects.
240         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
241         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
242         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
244 2018-08-23  Bruno Haible  <bruno@clisp.org>
246         getcwd: Add cross-compilation guesses.
247         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
248         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
249         Based on a patch by Paul Eggert.
250         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
251         guesses for all GNU systems.
253 2018-08-19  Bruno Haible  <bruno@clisp.org>
255         glob-h: Formalize side effects from other modules.
256         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
257         * m4/glob.m4 (gl_GLOB): Invoke it.
259         fnmatch-h: Formalize side effects from other modules.
260         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
261         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
263         limits-h: Formalize side effects from other modules.
264         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
265         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
267 2018-08-19  Bruno Haible  <bruno@clisp.org>
269         getpass: Move declaration to <unistd.h>.
270         * lib/unistd.in.h (getpass): New declaration.
271         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
272         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
273         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
274         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
275         On glibc systems, don't set REPLACE_GETPASS to 1.
276         * modules/getpass (Depends-on): Add 'unistd'.
277         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
278         (Include): Specify <unistd.h> instead of "getpass.h".
279         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
280         (configure.ac): Sync with the configure.ac section of modules/getpass.
281         (Include): Specify <unistd.h> instead of "getpass.h".
282         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
283         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
284         REPLACE_GETPASS.
285         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
286         REPLACE_GETPASS.
287         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
288         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
289         and musl.
290         * NEWS: Mention the change.
292 2018-08-19  Bruno Haible  <bruno@clisp.org>
294         glob: Fix over-optimization due to attribute __nonnull__.
295         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
297 2018-08-19  Bruno Haible  <bruno@clisp.org>
299         glob: Fix another compilation error when glob.h is not replaced.
300         Reported by Reuben Thomas <rrt@sc3d.org> in
301         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
302         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
303         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
305 2018-08-18  Bruno Haible  <bruno@clisp.org>
307         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
308         Reported by Reuben Thomas <rrt@sc3d.org> in
309         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
310         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
311         in config.h.
313 2018-08-18  Bruno Haible  <bruno@clisp.org>
315         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
316         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
317         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
318         Solution proposed by Eli Zaretskii.
319         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
320         * lib/gettimeofday.c (GetProcAddress): Likewise.
321         * lib/link.c (GetProcAddress): Likewise.
322         * lib/physmem.c (GetProcAddress): Likewise.
323         * lib/poll.c (GetProcAddress): Likewise.
324         * lib/select.c (GetProcAddress): Likewise.
325         * lib/stat-w32.c (GetProcAddress): Likewise.
327 2018-08-18  Bruno Haible  <bruno@clisp.org>
329         glob: Fix another compilation error when glob.h is not replaced.
330         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
331         * lib/globfree.c: Include <libc-config.h>.
333 2018-08-18  Bruno Haible  <bruno@clisp.org>
335         glob: Fix compilation error when glob.h is not replaced.
336         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
337         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
338         * lib/glob_pattern_p.c: Include <libc-config.h>.
339         * modules/glob (Depends-on): Add libc-config.
341 2018-08-18  Bruno Haible  <bruno@clisp.org>
343         scratch_buffer: Add tests.
344         * tests/test-scratch-buffer.c: New file.
345         * modules/scratch_buffer-tests: New file.
347 2018-08-18  Bruno Haible  <bruno@clisp.org>
349         scratch_buffer: Fix include file.
350         Reported by Reuben Thomas <rrt@sc3d.org> in
351         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
352         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
353         double-inclusion guard.
355 2018-08-18  Bruno Haible  <bruno@clisp.org>
357         glob-h: Revert Paul Eggert's revert.
358         * m4/glob_h.m4: Revert to previous state.
359         * modules/glob-h: Likewise.
361 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
363         glob-h: always build glob.h
364         This works around a problem reported by Reuben Thomas in:
365         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
366         This workaround always builds glob.h, even on platforms that
367         do not need it; perhaps this could be improved someday.
368         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
369         is always created now.
370         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
372 2018-08-13  Bruno Haible  <bruno@clisp.org>
374         monetary: Simplify m4 code.
375         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
376         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
378 2018-08-13  Bruno Haible  <bruno@clisp.org>
380         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
381         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
382         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
383         and by Paul J. Lucas <paul@lucasmail.org> in
384         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
385         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
387 2018-08-11  Bruno Haible  <bruno@clisp.org>
389         setlocale: Trivial simplification.
390         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
392 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
394         verify: port 'assume' to traditional tools
395         * lib/verify.h (assume): Port better to Oracle Studio 12.6
396         and other tools that use /*NOTREACHED*/ comments.
398 2018-08-10  Bruno Haible  <bruno@clisp.org>
400         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
401         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
402         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
403         'fnmatch-gnu' is in use.
405 2018-08-07  Bruno Haible  <bruno@clisp.org>
407         glob-h: Add tests.
408         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
409         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
410         tests/test-glob-h.c.
411         * modules/glob-h-tests: New file.
412         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
413         conditions.
414         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
415         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
417 2018-08-07  Bruno Haible  <bruno@clisp.org>
419         glob-h: New module.
420         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
421         replacements.
422         * lib/glob.c: Include <config.h>.
423         * m4/glob_h.m4: New file.
424         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
425         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
426         REPLACE_GLOB_PATTERN_P as appropriate.
427         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
428         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
429         * modules/glob-h: New file.
430         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
431         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
432         lstat, sys_stat. Change conditions.
433         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
434         REPLACE_GLOB_PATTERN_P. Set module indicator.
435         (Makefile.am): Remove code that is moved to glob-h.
436         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
437         * modules/posixcheck (Depends-on): Add glob-h.
439 2018-08-06  Bruno Haible  <bruno@clisp.org>
441         Force generation of substitute .h file when C++ support is enabled.
442         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
443         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
444         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
445         FNMATCH_H to non-empty.
446         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
447         ICONV_H to non-empty.
448         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
449         MONETARY_H to non-empty.
450         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
451         non-empty.
453 2018-08-06  Bruno Haible  <bruno@clisp.org>
455         fnmatch-h: Fix test compilation error on mingw (regression from today).
456         * lib/fnmatch.in.h: Fix conditions.
458 2018-08-06  Bruno Haible  <bruno@clisp.org>
460         sys_resource: Relicense under LGPLv2+.
461         John Malmberg's approval is in
462         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
463         * modules/sys_resource (License): Change to LGPLv2+.
465 2018-08-06  Bruno Haible  <bruno@clisp.org>
467         fnmatch-h: Add tests.
468         * tests/test-fnmatch-h.c: New file.
469         * modules/fnmatch-h-tests: New file.
470         * tests/test-fnmatch-h-c++.cc: New file.
471         * modules/fnmatch-h-c++-tests: New file.
473 2018-08-06  Bruno Haible  <bruno@clisp.org>
475         fnmatch-h: New module.
476         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
477         replacements.
478         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
479         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
480         'posixcheck' warning.
481         * m4/fnmatch_h.m4: New file.
482         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
483         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
484         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
485         as appropriate.
486         * modules/fnmatch-h: New file.
487         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
488         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
489         conditions.
490         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
491         indicator.
492         (Makefile.am): Remove code that is moved to fnmatch-h.
493         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
494         REPLACE_FNMATCH.
495         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
496         * modules/posixcheck (Depends-on): Add fnmatch-h.
498 2018-08-06  Bruno Haible  <bruno@clisp.org>
500         Enable more C++ tests.
501         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
502         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
503         * modules/strings-tests (Depends-on): Add strings-c++-tests.
504         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
505         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
507 2018-08-06  Bruno Haible  <bruno@clisp.org>
509         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
510         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
511         getopt.h.
512         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
514 2018-08-05  Bruno Haible  <bruno@clisp.org>
516         utime-h: Generate header file when module 'posixcheck' is in use.
517         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
518         UTIME_H to non-empty.
520 2018-08-05  Bruno Haible  <bruno@clisp.org>
522         monetary: Generate header file when module 'posixcheck' is in use.
523         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
524         use, set MONETARY_H to non-empty.
526 2018-08-05  Bruno Haible  <bruno@clisp.org>
528         iconv-h: Generate header file when module 'posixcheck' is in use.
529         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
530         set ICONV_H to non-empty.
532 2018-08-05  Bruno Haible  <bruno@clisp.org>
534         Optimize the "checking whether ... is declared without a macro" checks.
535         Suggested by Paul Eggert in
536         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
537         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
538         Gnulib module 'posixcheck' is not in use.
540 2018-08-05  Bruno Haible  <bruno@clisp.org>
542         iconv-h: Enable 'posixcheck' warnings.
543         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
544         iconv_open.
545         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
547 2018-08-05  Bruno Haible  <bruno@clisp.org>
549         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
550         * m4/extern-inline.m4: Add more comments.
551         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
552         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
553         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
555 2018-08-04  Bruno Haible  <bruno@clisp.org>
557         New module 'posixcheck'.
558         * modules/posixcheck: New file.
559         * m4/posixcheck.m4: New file.
560         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
561         (Which modules?): Reference it.
563 2018-08-01  Assaf Gordon <assafgordon@gmail.com>
565         dfa: fix memory leak
566         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
568 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
570         ieee754-h: new module
571         It looks like Emacs can use this for some NaN processing.
572         Emacs uses it only on double NaNs so it should be safe.
573         * MODULES.html.sh (func_all_modules): Add ieee754-h.
574         * config/srclist.txt: Mention ieee754.h in a comment.
575         * doc/glibc-headers/ieee754.texi (ieee754.h):
576         Gnulib now has a substitute that should work
577         except for long double and for non-IEEE platforms.
578         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
579         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
581 2018-07-27  Bruno Haible  <bruno@clisp.org>
583         iswcntrl: Mention minor problem on macOS.
584         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
586 2018-07-26  Colin Watson  <cjwatson@debian.org>
588         bootstrap, gnulib-tool: fix translations rsync
589         Previously, we created files such as $pobase/Makefile.in.in and then the
590         subsequent rsync would immediately delete them.
591         * build-aux/bootstrap (po_download_command_format): Avoid deleting
592         non-.po files in target directory when rsyncing translations.
593         * gnulib-tool (func_import): Likewise.
594         * pygnulib/GLImport.py (GLImport.execute): Likewise.
596 2018-07-25  Jim Meyering  <meyering@fb.com>
598         bootstrap: reinstate definition fo gnulib_mk.
599         That variable is used at least by cppi.
600         * build-aux/bootstrap (gnulib_mk): Restore definition.
601         This reverts the deletion from v0.1-1844-gc66dba9ba.
603 2018-07-23  Bruno Haible  <bruno@clisp.org>
605         doc: For module names, use texinfo markup @code{} or @samp{}.
606         * doc/alloca.texi: Mark gnulib module names with @code.
607         * doc/alloca-opt.texi: Likewise.
608         * doc/quote.texi: Likewise.
609         * doc/posix-functions/freopen.texi: Likewise.
610         * doc/posix-functions/open.texi: Likewise.
611         * doc/posix-functions/readlink.texi: Likewise.
612         * doc/posix-functions/readlinkat.texi: Likewise.
613         * doc/posix-functions/stdout.texi: Likewise.
614         * doc/posix-functions/stderr.texi: Likewise.
615         * doc/posix-functions/unlink.texi: Likewise.
616         * doc/posix-functions/unlinkat.texi: Likewise.
617         * doc/posix-functions/utime.texi: Likewise.
618         * doc/posix-functions/utimensat.texi: Likewise.
619         * doc/posix-functions/utimes.texi: Likewise.
620         * doc/posix-headers/stdint.texi: Likewise.
621         * doc/glibc-functions/futimesat.texi: Likewise.
622         * doc/glibc-functions/lutimes.texi: Likewise.
623         * doc/glibc-functions/memmem.texi: Likewise.
625 2018-07-23  Werner LEMBERG  <wl@gnu.org>
627         doc: Avoid some overfull lines in the TeX output.
628         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
629         @example.
630         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
631         newline before the long URL.
632         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
633         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
634         Add line breaks in code snippets.
636 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
638         hard-locale: simplify by removing hard-locale.m4
639         * m4/hard-locale.m4: Remove.
640         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
641         (configure.ac): Do not call gl_HARD_LOCALE.
643         gnulib-tool: limit line length for git send-email
644         * gnulib-tool (func_import): Break actioncmd log line
645         into multiple lines.
647 2018-07-16  Bruno Haible  <bruno@clisp.org>
649         ffs: Ensure declaration on mingw.
650         Reported by Daniel P. Berrangé <berrange@redhat.com>
651         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
652         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
653         also declared.
655 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
657         regex-tests: add dependency
658         * modules/regex-tests (Depends-on): Add gettext-h.
659         This is needed given the recent changes to regex,
660         which no longer depends on gettext-h.
662 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
664         regex: now in sync with glibc
665         * config/srclist.txt: Gnulib and glibc regex code
666         are synchronized again.
668 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
670         renameatu: rename from renameat2
671         It's looking like Glibc will add a renameat2 function
672         that is incompatible with Gnulib renameat2; see:
673         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
674         To help avoid future confusion, rename renameat2 to something else.
675         Use the name 'renameatu', as the Gnulib function is close to the
676         Glibc function.  Perhaps someday there will also be a renameat2
677         Gnulib module, which mimicks the future glibc renameat2, but that
678         can wait as nobody seems to need such a module now.
679         * NEWS: Mention this.
680         * lib/renameatu.c: Rename from lib/renameat2.c.
681         * lib/renameatu.h: Rename from lib/renameat2.h.
682         * modules/renameatu: Rename from modules/renameat2.
683         * modules/renameatu-tests: Rename from modules/renameat2-tests.
684         All uses of "renameat2" in identifiers or file name
685         changed to "renameatu", except for two instances in
686         lib/renameatu.c that deal with the Linux kernel's
687         renameat2 syscall.
689 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
691         gnulib-tool: minor tweaks for --gnu-make
692         * gnulib-tool: Do not allow --gnu-make in test modes,
693         since they all require automake.
694         (func_emit_lib_Makefile_am): Don’t emit automake comment
695         if --gnu-make.
697         regex: work around conditional-dependencies glitch
698         * modules/regex (Depends-on): Add langinfo.
699         Without this change, I had problems building an experimental
700         version of GNU Emacs.  The symptom of the bug was a message
701         ‘./configure: line 12726: test: =: unary operator expected’.
702         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
703         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
704         was unset.  Although gl_FUNC_NL_LANGINFO has
705         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
706         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
707         --conditional-dependencies sometimes arranges for the
708         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
709         code.  Since the regex code includes <langinfo.h> it should be
710         depending on the langinfo module anyway, and this happens to work
711         around the bug, so install that as a workaround for now.  To
712         reproduce the original problem, run the following shell script on
713         the version of Gnulib just before this patch was installed.
714                 rm -fr foo
715                 mkdir foo
716                 cat >foo/configure.ac <<'EOF'
717                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
718                 gl_EARLY
719                 gl_INIT
720                 AC_OUTPUT
721                 EOF
722                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
723                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
724                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
725                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
726                 cd foo
727                 aclocal -I m4
728                 autoconf
729                 ./configure --with-included-regex
731 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
733         wchar: fix bug when checking for ‘inline’
734         I discovered this when looking into using the regex module
735         with Emacs.
736         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
737         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
738         conftest1.c and conftest2.c but these files were not created.
739         As far as I can see, this check never worked and nobody reported
740         it until now, which is a bit worrisome.
742 2018-06-30  Jim Meyering  <meyering@fb.com>
744         bootstrap: s/--option val/--option=val/
745         * build-aux/bootstrap (gnulib_tool_options): Change the
746         spelling of "--option val" pairs to "--option=val", for
747         aesthetics, and also so that this file no longer triggers
748         a common help2man syntax-check warning when copied into
749         projects like grep, gzip, etc.
751 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
753         manywarnings: omit -Wswitch-default
754         This should make things more consistent, as we already ignore
755         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
756         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
757         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
758         Add -Wswitch-default.
759         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
760         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
761         Remove -Wswitch-default.
763         regex: revert most trimming
764         Problems reported by Bruno Haible in:
765         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
766         * modules/regex (Depends-on): Add lock, memcmp, memmove,
767         and wctype back in.  lock because regex users shouldn’t
768         need to know that regex needs locking, and the rest because
769         gnulib-tool should ordinarily ignore them anyway.
771 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
773         regex: trim module dependencies
774         * modules/regex (Depends-on): Remove gettext-h and lock,
775         since the regex code should work OK without these modules,
776         and Emacs uses it that way.  Also remove memcmp, memmove,
777         and wctype, as these modules are obsolete and should not be
778         needed any more.
780 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
782         regex: glibc does not use intprops.h
783         Maybe we can talk glibc into using intprops.h someday, but
784         now doesn’t seem to be a good time.
785         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
786         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
787         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
789 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
791         regex: port to recently proposed glibc regex merge
792         This patch is inspired by Adhemerval Zanella's recent proposal
793         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
794         to merge glibc and Gnulib regex.  It aims to simplify the merge on
795         the glibc side, without keeping Gnulib portable.
796         * lib/regex.h: Fix a problem with glibc installed-header checking,
797         as follows:
798         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
799         (_Restrict_arr_): Prefer __restrict_arr if defined,
800         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
801         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
802         (build_wcs_upper_buffer, build_upper_buffer)
803         (re_string_translate_buffer, re_string_context_at):
804         Move decls here from lib/regex_internal.h, for glibc internal tests.
805         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
806         glibc BZ #18496.
807         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
808         -Wunused-value.
809         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
810         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
811         (bitset_mask): Now static inline, and without any __attribute__
812         ((unused)) decoration, for glibc internal tests.
814 2018-06-25  Bruno Haible  <bruno@clisp.org>
816         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
817         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
818         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
820         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
821         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
822         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
823         / -lthread / -lpth does not get optimized away by a preceding
824         --as-needed option.
826 2018-06-25  Bruno Haible  <bruno@clisp.org>
828         Continue to use spaces for indentation, not tabs.
829         * MODULES.html.sh: Untabify.
830         * doc/regex.texi: Likewise.
831         * lib/acl-internal.c: Likewise.
832         * lib/dfa.c: Likewise.
833         * lib/exclude.c: Likewise.
834         * lib/exclude.h: Likewise.
835         * lib/get-permissions.c: Likewise.
836         * lib/gettimeofday.c: Likewise.
837         * lib/parse-datetime.y: Likewise.
838         * lib/pselect.c: Likewise.
839         * lib/set-permissions.c: Likewise.
840         * lib/time.in.h: Likewise.
841         * m4/canonicalize.m4: Likewise.
842         * m4/gc.m4: Likewise.
843         * m4/gnulib-common.m4: Likewise.
844         * m4/pthread_sigmask.m4: Likewise.
845         * m4/vararrays.m4: Likewise.
846         * tests/test-digest.h: Likewise.
847         * tests/test-fcntl-h.c: Likewise.
848         * tests/test-timespec.c: Likewise.
849         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
851 2018-06-25  Bruno Haible  <bruno@clisp.org>
853         manywarnings: Don't enable -Wjump-misses-init warnings by default.
854         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
855         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
856         -Wjump-misses-init.
858 2018-06-25  Jim Meyering  <meyering@fb.com>
860         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
861         * lib/acl-internal.h (free_permission_context): Remove that
862         attribute directive.  Otherwise, it would provoke this from GCC 9:
863         lib/acl-internal.h:300:3: error: 'const' attribute on function \
864           returning 'void' [-Werror=attributes]
866 2018-06-24  Jim Meyering  <meyering@fb.com>
868         parse-datetime: accommodate gcc-4.8.5
869         Bruno Haible reported the build failure in
870         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
871         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
872         on declaration of new local.
874 2018-06-24  Bruno Haible  <bruno@clisp.org>
876         af_alg: Fail in continuable manner on Linux/powerpc64le.
877         Reported by Assaf Gordon <assafgordon@gmail.com>
878         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
879         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
880         byte send() as the first round.
882 2018-06-24  Bruno Haible  <bruno@clisp.org>
884         af_alg: Fix state of stream after sendfile() succeeds.
885         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
886         the stream is correctly positioned afterwards.
887         * modules/crypto/af_alg (Depends-on): Add fflush.
888         * tests/test-digest.h (test_digest_on_files): Verify that after the
889         operation the stream is positioned at end of file.
891 2018-06-24  Jim Meyering  <meyering@fb.com>
893         canon-host: take GCC9's advice rather than ignoring warning
894         Pádraig Brady suggested not to ignore this GCC9 advice.
895         * lib/canon-host.c: Undo preceding change.
896         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
898         parse-datetime.y: avoid spurious GCC 9 warning
899         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
900         a function local prior to the first "goto fail".  The prior use would
901         evoke this:
902         parse-datetime.y: In function 'parse_datetime2':
903         parse-datetime.y:1791:19: error: jump skips variable initialization \
904           [-Werror=jump-misses-init]
905         parse-datetime.y:2385:2: note: label 'fail' defined here
906         parse-datetime.y:188:43: note: '({anonymous})' declared here
907         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
909         canon-host.c: avoid spurious GCC 9 warning
910         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
912         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
913         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
914         * m4/manywarnings.m4: Remove them.
915         Otherwise, building coreutils, I would see this:
916         cc1: error: deprecated command line option '-Wchkp' [-Werror]
917         cc1: error: -Wabi won't warn about anything [-Werror=abi]
918         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
919           which is also used by default
920         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
922 2018-06-24  Bruno Haible  <bruno@clisp.org>
924         af_alg tests: Add another test.
925         * tests/test-digest.h (test_digest_on_files): Also check a large file
926         with a skipped header.
927         * tests/test-md5.c: Include macros.h.
928         * tests/test-sha1.c: Likewise.
929         * tests/test-sha256.c: Likewise.
930         * tests/test-sha512.c: Likewise.
931         * modules/crypto/md5-tests (Files): Add tests/macros.h.
932         * modules/crypto/sha1-tests (Files): Likewise.
933         * modules/crypto/sha256-tests (Files): Likewise.
934         * modules/crypto/sha512-tests (Files): Likewise.
936 2018-06-24  Pádraig Brady  <P@draigBrady.com>
938         maint: clarify comments about sticky EOF
939         * lib/af_alg.c: Be more direct that we can't
940         assume stickiness of EOF for portability reasons.
941         * lib/md5.c: Clarify that this isn't just a glibc issue.
942         * lib/sha1.c: Likewise.
943         * lib/sha256.c: Likewise.
944         * lib/sha512.c: Likewise.
946 2018-06-24  Bruno Haible  <bruno@clisp.org>
948         af_alg: Comment and style improvements.
949         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
950         (afalg_buffer, afalg_stream): Improve comments.
952 2018-06-24  Pádraig Brady  <P@draigBrady.com>
954         af_alg: disable kernel hash functions by default
955         All the kernel routines were seen to be significantly slower
956         with these relatively recent components on an i3-2310M system:
957           kernel-4.10.6-200.fc25.x86_64
958           openssl-1.0.2m-1.fc25.x86_64
959         sha1 was nearly twice as slow in the kernel for example.
960         Further considerations why this should not be the default, at:
961         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
963         * m4/af_alg.m4: Require --with-linux-crypto to enable.
964         * m4/gl-openssl.m4: Tweak accordingly.
966 2018-06-24  Pádraig Brady  <P@draigBrady.com>
968         af_alg: avoid hangs when reading from streams
969         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
970         and thus avoid doing a fread() when feof() is set.
971         * lib/md5.c: Ensure feof() is called before fread().
972         * lib/sha1.c: Likewise.
973         * lib/sha256.c: Likewise.
974         * lib/sha512.c: Likewise.
976 2018-06-24  Pádraig Brady  <P@draigBrady.com>
978         af_alg: fix error handling when hash not returned
979         * lib/af_alg.c (afalg_stream): Handle the case where we've
980         successfully written data to the kernel in the read/write loop,
981         but the kernel doesn't respond with the hash.
983 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
985         libc-config: merge from glibc
986         * lib/cdefs.h (__inline, __restrict):
987         Copy from current glibc.  This fixes glibc bug 17721,
988         which Gnulib had already fixed in a different way.
989         (__nonnull): Lessen the distance from glibc by using the
990         glibc definition inside an ‘#ifndef __nonnull’.
991         (__attribute_nonstring__): New macro, copied from
992         current glibc.
993         * lib/libc-config.h (__attribute_nonstring__): New undef.
994         (__restrict): Remove; workaround no longer needed.
995         Keep the __inline workaround, though, as it uses HAVE___INLINE to
996         support more compilers than the glibc __inline can.
998 2018-06-24  Bruno Haible  <bruno@clisp.org>
1000         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
1001         * lib/mbrtowc.c (enc_t): New enum type.
1002         (locale_enc, locale_enc_cached): New functions.
1003         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
1004         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
1005         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
1006         instead.
1007         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
1008         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
1009         * modules/wcwidth (configure.ac): Invoke it.
1011 2018-06-24  Bruno Haible  <bruno@clisp.org>
1013         wchar-single: Fix test failure in wcwidth tests.
1014         * tests/test-wcwidth.c (main): If the wchar-single module is present,
1015         skip the tests in the C locale.
1017 2018-06-23  Pádraig Brady  <P@draigBrady.com>
1019         crypto: mention --without-linux-crypto in --with-openssl --help
1020         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
1021         routines take precedence in --with-openssl help output.
1023 2018-06-23  Pádraig Brady  <P@draigBrady.com>
1025         wchar-single: a new module to enable optimizations in wchar replacements
1026         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
1027         GNULIB_WCHAR_SINGLE is enabled.
1028         * lib/wcwidth.c (wcwidth): Likewise.
1030 2018-06-23  Bruno Haible  <bruno@clisp.org>
1032         libc-config: Fix conflict with FreeBSD include files.
1033         * lib/cdefs.h (__nonnull): Remove definition.
1034         * lib/libc-config.h (__nonnull): Remove undefinition.
1036 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1038         random_r: do not crash if state is unaligned
1039         Problem reported by Bruce Korb in:
1040         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
1041         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
1042         with 'cc -O2 -xmemalign=8s'.
1043         * lib/random_r.c: Include string.h, for memcpy.
1044         (get_int32, set_int32): New functions.
1045         (__srandom_r, __initstate_r, __setstate_r, __random_r):
1046         Use them to avoid assumption that state pointer is aligned.
1047         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
1048         * tests/test-random_r.c (test_failed): New function.
1049         (main): Use it, to test for alignment bugs.
1051         random_r: omit unnecessary include
1052         * lib/random_r.c: Do not include limits.h.
1054         random, random_r: merge from glibc
1055         * lib/random.c, lib/random_r.c:
1056         Include libc-config.h if !_LIBC, not config.h unilaterally.
1057         * lib/random.c:
1058         Do not include stdint.h or time.h; not needed.
1059         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
1060         (unsafe_state): Rename from generator.  All uses changed.
1061         Use C99-style initializers.
1062         (__random, __srandom, __initstate, __setstate): Rename from
1063         non-underscored version, but define it to non-underscored version
1064         on Gnulib.  Add a lock.
1065         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
1066         Likewise.
1067         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
1068         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
1069         (__srandom_r): Use int32_t instead of long int where int32_t will do.
1070         (__random_r): Use uint32 to fix glibc bug 17343.
1071         * modules/random, modules/random_r (Depends-on): Add libc-config.
1072         Depend on stdint only if $HAVE_RANDOM = 0.
1074 2018-06-19  Jim Meyering  <meyering@fb.com>
1076         README-release: also run any check-very-expensive tests
1077         * top/README-release: Adjust instructions so they run the
1078         check-very-expensive tests when there is such a target.
1080 2018-06-18  Bruno Haible  <bruno@clisp.org>
1082         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
1083         * m4/pthread_rwlock_rdlock.m4: Add comment.
1084         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
1085         are reader-preferring in glibc.
1086         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
1087         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
1089 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1091         crypto: use byteswap
1092         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1093         * lib/sm3.c: Include <byteswap.h>.
1094         (SWAP): Use its macros rather than reinventing the wheel.
1095         * modules/crypto/md4, modules/crypto/md5-buffer:
1096         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
1097         * modules/crypto/sha512-buffer, modules/crypto/sm3:
1098         (Depends-on): Add byteswap.
1100 2018-06-17  Pádraig Brady  <P@draigBrady.com>
1102         gendocs.sh: fix support for legacy --texi2html
1103         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
1104         to the default makeinfo invocation.
1105         Reported by Bruce Korb
1107 2018-06-17  Bruno Haible  <bruno@clisp.org>
1109         gettext po infrastructure: Update from current gettext git.
1110         Reported by Akim Demaille <akim@lrde.epita.fr>.
1111         * build-aux/po/Makefile.in.in: Update from current gettext git.
1112         * build-aux/po/remove-potcdate.sin: Likewise.
1113         * config/srclist.txt: Temporarily disable sync for these files.
1115 2018-06-17  Bruno Haible  <bruno@clisp.org>
1117         getloadavg: Return 0 on Windows without Cygwin.
1118         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
1120 2018-06-17  Paul Smith  <psmith@gnu.org>
1122         getloadavg: Allow building on Windows without Cygwin
1123         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
1124         * m4/getloadavg.m4: Check for unistd.h.
1126 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
1128         Port crypto/af_alg to GCC 4.8.4
1129         Problem reported by Peter Simons in:
1130         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
1131         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
1133 2018-05-27  Colin Watson  <cjwatson@debian.org>
1135         bootstrap: document source fetching in --help
1136         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
1138 2018-04-09  Colin Watson  <cjwatson@debian.org>
1140         bootstrap: allow non-submodule control of gnulib
1141         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
1142         bootstrap.conf when fetching gnulib using "git clone" or via
1143         GNULIB_SRCDIR.
1145 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1147         crypto: omit stream ops Emacs doesn’t need
1148         * lib/md5.c (md5_stream):
1149         * lib/sha1.c (sha1_stream):
1150         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
1151         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1152         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
1153         defined.  Emacs needs this, as it does not use the stream
1154         operations and doesn’t need all the af_alg stuff we’ve recently
1155         added.  Perhaps a similar change is needed to the other crypto
1156         modules, but this patch changes only those needed for Emacs.
1157         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
1158         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
1159         New modules, used by Emacs.
1160         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1161         * modules/crypto/sha512: Rewrite to depend on the new modules.
1163 2018-05-20  Pádraig Brady  <P@draigBrady.com>
1165         fts: avoid a memory leak edge case
1166         * lib/fts.c (fts_open): Set an appropriate fts_level
1167         so that an immediate fts_close() will free the allocation.
1168         * tests/test-fts.c (fts_dealloc): Add a test case which
1169         will trigger under valgrind or address sanitizer.
1170         Fixes https://bugs.gnu.org/31439
1172 2018-05-20  Bruno Haible  <bruno@clisp.org>
1174         wcwidth tests: Fix link error.
1175         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
1176         $(LIBUNISTRING).
1178 2018-05-20  Bruno Haible  <bruno@clisp.org>
1180         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
1181         * modules/regex (Files): Add m4/glibc21.m4.
1183 2018-05-20  Bruno Haible  <bruno@clisp.org>
1185         localcharset: Optimize.
1186         * lib/localcharset.c (alias_table): Comment out no-op mappings for
1187         platforms where these don't matter. This reduces the table size,
1188         which in turn reduces the lookup time.
1190 2018-05-19  Bruno Haible  <bruno@clisp.org>
1192         localcharset: Map the locale encodings found in newer OSes.
1193         * lib/localcharset.c (alias_table): Add mapping for locale encodings
1194         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
1195         IRIX 6.5, Minix 3.3.
1196         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
1198 2018-05-19  Bruno Haible  <bruno@clisp.org>
1200         localcharset: Move mapping tables into the code. Use a binary search.
1201         * lib/localcharset.h: Document the GNU canonical names for character
1202         encodings here.
1203         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
1204         relocatable.h, configmake.h.
1205         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
1206         macros.
1207         (charset_aliases): Remove variable.
1208         (get_charset_aliases): Remove function.
1209         (struct table_entry): New type.
1210         (alias_table, locale_table): New constants.
1211         (locale_charset): Use the alias_table or locale_table to get the
1212         canonicalized encoding name.
1213         * lib/config.charset: Remove file.
1214         * lib/ref-add.sin: Remove file.
1215         * lib/ref-del.sin: Remove file.
1216         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
1217         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
1218         * modules/localcharset (Notice): Remove.
1219         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
1220         glibc21.m4.
1221         (Depends-on): Remove configmake.
1222         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
1223         (Makefile.am): Simplify.
1224         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
1226 2018-05-19  Bruno Haible  <bruno@clisp.org>
1228         localcharset: Add a manual test.
1229         * tests/test-localcharset.c: New file.
1230         * modules/localcharset-tests: New file.
1232 2018-05-19  Bruno Haible  <bruno@clisp.org>
1234         localcharset: Remove support for obsolete platforms.
1235         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
1236         Mac OS X 10.2. Comment out dubious entry for Solaris.
1238 2018-05-19  Jim Meyering  <meyering@fb.com>
1240         gnupload: adjust comment
1241         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
1242         more likely we'll remove the just-added code in a year or two.
1244 2018-05-19  Bruno Haible  <bruno@clisp.org>
1246         gnupload: Fix "gpg-agent is not available in this session" error.
1247         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
1249 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1251         crypto/af_alg: fix --help
1252         * m4/af_alg.m4: Avoid spurious newline in --help output.
1254 2018-05-13  Bruno Haible  <bruno@clisp.org>
1256         nl_langinfo: Fix compilation error on Android.
1257         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
1258         INT_CURR_SYMBOL, etc. only if these items are defined.
1260 2018-05-13  Bruno Haible  <bruno@clisp.org>
1262         truncate: Fix compilation error on Android.
1263         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
1264         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
1265         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
1266         HAVE_TRUNCATE.
1267         * modules/truncate: Likewise.
1268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
1269         not HAVE_TRUNCATE.
1270         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
1271         HAVE_TRUNCATE.
1272         * doc/posix-functions/truncate.texi: Mention the issue.
1274 2018-05-13  Bruno Haible  <bruno@clisp.org>
1276         pthread: Fix compilation error on Android.
1277         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
1278         recursive inclusion of this file.
1280 2018-05-13  Bruno Haible  <bruno@clisp.org>
1282         posix_spawn: Fix compilation error on Android.
1283         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
1284         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
1285         (posix_spawn_file_actions_t): Consider also the case
1286         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
1288 2018-05-13  Bruno Haible  <bruno@clisp.org>
1290         tsearch: Move from K&R C to ANSI C.
1291         * lib/tsearch.c (tfind): Convert definition to ANSI C.
1293 2018-05-13  Bruno Haible  <bruno@clisp.org>
1295         tsearch: Fix compilation error on Android.
1296         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
1297         is 0.
1298         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
1299         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
1300         GNULIB_defined_tsearch is true.
1301         (twalk): Define only if GNULIB_defined_twalk is true.
1302         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
1303         is 0.
1304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
1305         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
1306         * modules/search (Makefile.am): Substitute HAVE_TWALK.
1308 2018-05-13  Bruno Haible  <bruno@clisp.org>
1310         imaxdiv: Fix compilation error on Android.
1311         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
1312         is not defined.
1313         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
1314         HAVE_DECL_IMAXDIV, is 0.
1315         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
1316         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
1318 2018-05-13  Bruno Haible  <bruno@clisp.org>
1320         Support selective inclusion mechanism of recent mingw.org header files.
1321         Reported by Eli Zaretskii <eliz@gnu.org>.
1322         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
1323         __need_ssize_t, or __need_time_t is defined, just include the system's
1324         <sys/types.h>.
1325         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
1326         include the system's <locale.h>.
1328 2018-05-13  Bruno Haible  <bruno@clisp.org>
1330         Avoid compilation error due to 'mmap' on Android.
1331         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
1332         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
1333         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
1334         Undefine on Android.
1336 2018-05-13  Bruno Haible  <bruno@clisp.org>
1338         Add cross-compilation guesses for Linux systems without glibc.
1339         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
1340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1341         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1342         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1343         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1344         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1345         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1346         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1347         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1348         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
1349         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1350         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1351         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1352         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1353         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1354         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1355         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1356         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1358 2018-05-13  Bruno Haible  <bruno@clisp.org>
1360         getpagesize: Fix compilation error on Android.
1361         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
1362         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
1363         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
1364         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
1365         HAVE_GETPAGESIZE accordingly.
1366         * modules/getcwd (Files): Add m4/getpagesize.m4.
1368 2018-05-13  Bruno Haible  <bruno@clisp.org>
1370         tcgetsid: Fix compilation error on Android.
1371         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
1372         AC_CHECK_FUNC.
1374 2018-05-13  Bruno Haible  <bruno@clisp.org>
1376         getpass: Fix configure test for Android.
1377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
1378         AC_CHECK_FUNC.
1380 2018-05-13  Bruno Haible  <bruno@clisp.org>
1382         ffs: Fix compilation error on Android.
1383         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
1385 2018-05-13  Bruno Haible  <bruno@clisp.org>
1387         mkfifo: Fix compilation error on Android.
1388         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
1389         AC_CHECK_FUNC.
1391 2018-05-13  Bruno Haible  <bruno@clisp.org>
1393         c-strtod: Fix configure test for Android.
1394         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
1395         AC_CHECK_FUNC.
1397 2018-05-13  Bruno Haible  <bruno@clisp.org>
1399         random: Fix compilation error on Android.
1400         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
1401         AC_CHECK_FUNC.
1403 2018-05-13  Bruno Haible  <bruno@clisp.org>
1405         grantpt: Fix compilation error on Android.
1406         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
1407         AC_CHECK_FUNC.
1409 2018-05-13  Bruno Haible  <bruno@clisp.org>
1411         stdioext: Fix compilation errors with newer Android headers.
1412         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
1413         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
1414         fallbacks for Android.
1415         * lib/fpending.c: Update comments.
1416         * lib/fpurge.c: Likewise.
1417         * lib/freadable.h: Likewise.
1418         * lib/freadable.c: Likewise.
1419         * lib/freadahead.c: Likewise.
1420         * lib/freading.h: Likewise.
1421         * lib/freadptr.c: Likewise.
1422         * lib/fseterr.c: Likewise.
1423         * lib/fwritable.h: Likewise.
1424         * lib/fwritable.c: Likewise.
1425         * lib/fwriting.h: Likewise.
1426         * lib/fwriting.c: Likewise.
1428 2018-05-13  Bruno Haible  <bruno@clisp.org>
1430         doc: Add info about Android versions 2.0 to 8.1.
1431         * doc/**/*.texi: Add info about functions in all released versions of
1432         Bionic.
1434 2018-05-12  Bruno Haible  <bruno@clisp.org>
1436         fseeko: On mingw, don't use the hidden function _fseeki64.
1437         Reported by Eli Zaretskii <eliz@gnu.org>.
1438         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
1439         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
1441 2018-05-12  Bruno Haible  <bruno@clisp.org>
1443         glob: Choose 'dirent_type' in a way that works better on mingw.
1444         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
1445         * lib/glob.c (dirent_type): Define as uint_fast32_t.
1447 2018-05-12  Bruno Haible  <bruno@clisp.org>
1449         execute, spawn-pipe: Avoid warning about redefining 'close'.
1450         Reported by Eli Zaretskii <eliz@gnu.org>.
1451         * lib/execute.c: Undefine 'close' before redefining it.
1452         * lib/spawn-pipe.c: Likewise.
1454 2018-05-12  Bruno Haible  <bruno@clisp.org>
1456         nanosleep: Avoid test failure on mingw when it has nanosleep.
1457         Reported by Eli Zaretskii <eliz@gnu.org>.
1458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
1459         If it does not exist, use a simpler test program that does not call
1460         alarm().
1462 2018-05-10  Bruno Haible  <bruno@clisp.org>
1464         lock, cond, thread, tls: Use a different symbol as libpthread witness.
1465         Reported by Devin Hussey <husseydevin@gmail.com>.
1466         Based on a patch by Paul Eggert.
1467         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
1468         as witness of libpthread.
1469         * lib/glthread/cond.h (pthread_in_use): Likewise.
1470         * lib/glthread/thread.h (pthread_in_use): Likewise.
1471         * lib/glthread/tls.h (pthread_in_use): Likewise.
1473 2018-05-10  Bruno Haible  <bruno@clisp.org>
1475         cond tests: Fix compilation error on Solaris.
1476         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
1477         macro.
1479 2018-05-10  Bruno Haible  <bruno@clisp.org>
1481         doc: Add partial info about Android 4.3.
1482         * doc/*-functions/*.texi: Add info about functions that were added
1483         to Bionic between Android 4.3 and Android 9.0.
1485 2018-05-10  Bruno Haible  <bruno@clisp.org>
1487         doc: Add info about Android 9.0.
1488         * doc/**/*.texi: Add info about functions and headers in Bionic from
1489         Android 9.0.
1491 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1493         af_alg: fix my typo in afalg_buffer
1494         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
1495         (afalg_stream): Simplify and avoid the need for a runtime test
1496         at the end.
1498         af_alg: recover better from crypto failures
1499         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
1500         input stream is seekable, by repositioning the stream back to
1501         where it was, possibly by just calling sendfile with an offset
1502         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
1503         cases, which lets our callers try again with user-mode code.
1504         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
1505         instead of on fflush and lseek.
1507         af_alg: distiguish I/O errors better
1508         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
1509         not -EIO, if it’s OK for the caller to try again with user-mode code.
1510         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
1511         some other error number) if fflush fails, as the caller should not
1512         try again that case.
1514         af_alg: avoid gotos
1515         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
1516         gotos, as they were a source of unreliability and made the code a
1517         bit harder to follow.
1519         af_alg: don’t leak file descriptors into children
1520         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
1521         This code should be compiled only on recent GNU/Linux platforms
1522         so we shouldn’t have to also depend on the accept4 module.
1524         af_alg: coalesce socket creation
1525         * lib/af_alg.c (alg_socket): New function.
1526         (afalg_buffer, afalg_stream): Use it.  This avoids some
1527         code duplication and gotos.
1529         af_alg: fix file descriptor leak
1530         * lib/af_alg.c (afalg_stream): Close leak.
1532         af_alg: Pacify --enable-gcc-warnings on GCC 8
1533         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
1534         and checking to pacify gcc -Wjump-misses-init on GCC 8.
1536 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1538         af_alg: Pacify --enable-gcc-warnings
1539         Problem reported by Assaf Gordon in:
1540         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
1541         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
1542         gcc -Wjump-misses-init.
1543         * lib/sha512.c (shaxxx_stream): Now static.
1545 2018-05-06  Bruno Haible  <bruno@clisp.org>
1547         af_alg: Add ability to use Linux kernel crypto API on data in memory.
1548         * lib/af_alg.h (afalg_buffer): New declaration.
1549         * lib/af_alg.c (afalg_buffer): New function.
1551 2018-05-06  Bruno Haible  <bruno@clisp.org>
1553         af_alg: Avoid warnings.
1554         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
1555         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
1557 2018-05-06  Bruno Haible  <bruno@clisp.org>
1559         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
1560         * tests/bench-digest.h: New file.
1561         * tests/bench-md5.c: New file.
1562         * tests/bench-sha1.c: New file.
1563         * tests/bench-sha224.c: New file.
1564         * tests/bench-sha256.c: New file.
1565         * tests/bench-sha384.c: New file.
1566         * tests/bench-sha512.c: New file.
1567         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
1568         tests/bench-digest.h.
1569         (Depends-on): Add getrusage, gettimeofday.
1570         (Makefile.am): Add variables to build bench-md5.
1571         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
1572         tests/bench-digest.h.
1573         (Depends-on): Add getrusage, gettimeofday.
1574         (Makefile.am): Add variables to build bench-sha1.
1575         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
1576         tests/bench-sha256.c, tests/bench-digest.h.
1577         (Depends-on): Add getrusage, gettimeofday.
1578         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
1579         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
1580         tests/bench-sha512.c, tests/bench-digest.h.
1581         (Depends-on): Add getrusage, gettimeofday.
1582         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
1584 2018-05-06  Bruno Haible  <bruno@clisp.org>
1586         af_alg: Fix a resource leak.
1587         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
1588         New local variable 'result'.
1590 2018-05-06  Bruno Haible  <bruno@clisp.org>
1592         af_alg: Fix bug with streams that are not at position 0.
1593         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
1594         assume that the stream is positioned at position 0.
1595         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
1596         of the stream.
1597         * lib/md5.h (md5_stream): Likewise.
1598         * lib/sha1.h (sha1_stream): Likewise.
1599         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
1600         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
1601         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
1603         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
1604         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
1605         stream that is not positioned at the beginning.
1607 2018-05-06  Bruno Haible  <bruno@clisp.org>
1609         af_alg: Add configure option to enable/disable use of Linux crypto API.
1610         Suggested by Assaf Gordon <assafgordon@gmail.com>.
1611         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
1612         USE_LINUX_CRYPTO_API.
1613         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
1614         * lib/af_alg.c: Likewise.
1616 2018-05-06  Bruno Haible  <bruno@clisp.org>
1618         Followup to 'af_alg: New module.'.
1619         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
1620         * modules/crypto/sha1 (Depends-on): Likewise.
1621         * modules/crypto/sha256 (Depends-on): Likewise.
1622         * modules/crypto/sha512 (Depends-on): Likewise.
1624 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1626         crypto/{md5,sha1,sha256,sha512}: simplify
1627         * lib/md5.c (md5_stream):
1628         * lib/sha1.c (sha1_stream):
1629         * lib/sha256.c (shaxxx_stream):
1630         Simplify, partly by assuming C99.
1631         * lib/sha256.c (shaxxx_stream):
1632         New function, which implements both sha256 and sha224.
1633         Simplify, partly by assuming C99.
1634         (sha256_stream, sha224_stream):
1635         Use it to avoid code duplication, removing a FIXME.
1636         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1637         Likewise.
1639         af_alg: Improve comments.
1640         * lib/af_alg.h: Use imperatives and tighten up wording.
1642 2018-05-05  Bruno Haible  <bruno@clisp.org>
1644         af_alg: Improve comments.
1645         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
1647 2018-05-05  Bruno Haible  <bruno@clisp.org>
1649         af_alg: New module.
1650         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
1651         * lib/af_alg.c: Include "af_alg.h" before the other header files.
1652         * lib/md5.c: Include "af_alg.h" unconditionally.
1653         (md5_stream): Invoke afalg_stream unconditionally.
1654         * lib/sha1.c: Include "af_alg.h" unconditionally.
1655         (sha1_stream): Invoke afalg_stream unconditionally.
1656         * lib/sha256.c: Include "af_alg.h" unconditionally.
1657         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
1658         * lib/sha512.c: Include "af_alg.h" unconditionally.
1659         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
1660         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
1661         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
1662         * modules/crypto/af_alg: New file.
1663         * modules/crypto/md5 (Files): Remove files that are now in the
1664         'crypto/af_alg' module.
1665         (Depends-on): Add crypto/af_alg.
1666         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1667         (Makefile.am): Don't mention af_alg.c here.
1668         * modules/crypto/sha1 (Files): Remove files that are now in the
1669         'crypto/af_alg' module.
1670         (Depends-on): Add crypto/af_alg.
1671         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1672         (Makefile.am): Don't mention af_alg.c here.
1673         * modules/crypto/sha256 (Files): Remove files that are now in the
1674         'crypto/af_alg' module.
1675         (Depends-on): Add crypto/af_alg.
1676         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1677         (Makefile.am): Don't mention af_alg.c here.
1678         * modules/crypto/sha512 (Files): Remove files that are now in the
1679         'crypto/af_alg' module.
1680         (Depends-on): Add crypto/af_alg.
1681         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1682         (Makefile.am): Don't mention af_alg.c here.
1684 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1686         crypto tests: pacify GCC
1687         * tests/test-digest.h (test_digest_on_files):
1688         Don’t assume digest size fits in int (!).
1690         af_alg: minor style improvements
1691         * lib/af_alg.c (afalg_stream): Prefer C99 style
1692         decl-after-statement, since we’re already assuming C99.  Clarify
1693         by strengthening the bind test and omit unnecessary assignment.
1695 2018-05-05  Bruno Haible  <bruno@clisp.org>
1697         af_alg: Fix bug on empty files.
1698         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
1699         stream is empty.
1701 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1703         sys-limits.h: new file for crypto and safe I/O
1704         * lib/af_alg.c: Include sys-limits.h.
1705         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
1706         (afalg_stream): Also reject negative sizes for sendfile; they
1707         should not happen and the code is a bit cleaner and faster this way.
1708         * lib/safe-read.c: Include sys-limits.h.
1709         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
1710         * lib/sys-limits.h: New file, with values and commentary derived
1711         from the old safe-read.c and from GNU Emacs sysdep.c.
1712         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1713         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
1714         Add lib/sys-limits.h to Files section.
1716 2018-05-05  Bruno Haible  <bruno@clisp.org>
1718         af_alg: Improve function signature.
1719         * lib/af_alg.h (afalg_stream): Swap second and third argument.
1720         * lib/af_alg.c (afalg_stream): Likewise.
1721         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
1723 2018-05-05  Bruno Haible  <bruno@clisp.org>
1725         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
1726         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
1727         * modules/crypto/sha1 (Depends-on): Likewise.
1728         * modules/crypto/sha256 (Depends-on): Likewise.
1729         * modules/crypto/sha512 (Depends-on): Likewise.
1731 2018-05-05  Bruno Haible  <bruno@clisp.org>
1733         crypto/{md5,sha1,sha256,sha512}: Fix module description.
1734         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
1735         * modules/crypto/sha1 (Depends-on): Likewise.
1736         * modules/crypto/sha256 (Depends-on): Likewise.
1737         * modules/crypto/sha512 (Depends-on): Likewise.
1739 2018-05-05  Bruno Haible  <bruno@clisp.org>
1741         af_alg: Add documentation.
1742         * lib/af_alg.h: Add comments.
1744 2018-05-05  Bruno Haible  <bruno@clisp.org>
1746         sha512: Add tests.
1747         * tests/test-sha512.c: New file.
1748         * modules/crypto/sha512-tests: New file.
1750 2018-05-05  Bruno Haible  <bruno@clisp.org>
1752         sha256: Add tests.
1753         * tests/test-sha256.c: New file.
1754         * modules/crypto/sha256-tests: New file.
1756 2018-05-05  Bruno Haible  <bruno@clisp.org>
1758         sha1 tests: Add test for sha1_stream.
1759         * tests/test-sha1.c: Include test-digest.h.
1760         (main): Invoke test_digest_on_files on 'sha1_stream'.
1761         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
1763 2018-05-05  Bruno Haible  <bruno@clisp.org>
1765         md5 tests: Add test for md5_stream.
1766         * tests/test-digest.h: New file.
1767         * tests/test-md5.c: Include test-digest.h.
1768         (main): Invoke test_digest_on_files on 'md5_stream'.
1769         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
1771 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1773         md5sum: Use AF_ALG when available.
1774         * lib/md5.c: Include af_alg.h.
1775         (md5_stream): Use afalg_stream when available.
1776         * modules/crypto/md5 (Files): Add the af_alg files.
1777         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1778         (Makefile.am): Add af_alg.c.
1780 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1782         sha512sum: Use AF_ALG when available.
1783         * lib/sha512.c: Include af_alg.h.
1784         (sha512_stream, sha384_stream): Use afalg_stream when available.
1785         * modules/crypto/sha512 (Files): Add the af_alg files.
1786         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1787         (Makefile.am): Add af_alg.c.
1789 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1791         sha256sum: Use AF_ALG when available.
1792         * lib/sha256.c: Include af_alg.h.
1793         (sha256_stream, sha224_stream): Use afalg_stream when available.
1794         * modules/crypto/sha256 (Files): Add the af_alg files.
1795         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1796         (Makefile.am): Add af_alg.c.
1798 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1800         sha1sum: Use AF_ALG when available.
1801         * lib/af_alg.h: New file.
1802         * lib/af_alg.c: New file.
1803         * lib/sha1.c: Include af_alg.h.
1804         (sha1_stream): Use afalg_stream when available.
1805         * m4/linux-if-alg.m4: New file.
1806         * modules/crypto/sha1 (Files): Add the new files.
1807         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1808         (Makefile.am): Add af_alg.c.
1810 2018-05-05  Bruno Haible  <bruno@clisp.org>
1812         all: Replace more http URLs by https URLs.
1813         * lib/localename.c: Use https: URL.
1814         * lib/timespec.h: Likewise.
1816 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1818         maint: port more modules to GCC 8
1819         * lib/dirname.h (base_name):
1820         * lib/exclude.h (new_exclude):
1821         * lib/xstrndup.h (xstrndup):
1822         Add malloc attribute.
1823         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
1824         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
1825         This pacifies GCC 8.
1826         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1827         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
1829 2018-05-03  Bruno Haible  <bruno@clisp.org>
1831         Simplify code. Drop support for Borland C++ on Windows.
1832         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
1833         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
1834         'defined _WIN32'.
1835         * lib/canonicalize-lgpl.c: Likewise.
1836         * lib/classpath.c: Likewise.
1837         * lib/clean-temp.c: Likewise.
1838         * lib/csharpexec.c: Likewise.
1839         * lib/ctime.c: Likewise.
1840         * lib/dosname.h: Likewise.
1841         * lib/dup2.c: Likewise.
1842         * lib/errno.in.h: Likewise.
1843         * lib/error.c: Likewise.
1844         * lib/euidaccess.c: Likewise.
1845         * lib/execute.c: Likewise.
1846         * lib/fcntl.in.h: Likewise.
1847         * lib/fcntl.c: Likewise.
1848         * lib/filename.h: Likewise.
1849         * lib/findprog.c: Likewise.
1850         * lib/flock.c: Likewise.
1851         * lib/fopen.c: Likewise.
1852         * lib/freopen.c: Likewise.
1853         * lib/fstat.c: Likewise.
1854         * lib/fsync.c: Likewise.
1855         * lib/gc-gnulib.c: Likewise.
1856         * lib/get-rusage-data.c: Likewise.
1857         * lib/getaddrinfo.c: Likewise.
1858         * lib/getdelim.c: Likewise.
1859         * lib/getdtablesize.c: Likewise.
1860         * lib/gethostname.c: Likewise.
1861         * lib/getlogin.c: Likewise.
1862         * lib/getlogin_r.c: Likewise.
1863         * lib/getopt.c: Likewise.
1864         * lib/getpagesize.c: Likewise.
1865         * lib/getpass.c: Likewise.
1866         * lib/getrusage.c: Likewise.
1867         * lib/gettimeofday.c: Likewise.
1868         * lib/glob.c: Likewise.
1869         * lib/inttypes.in.h: Likewise.
1870         * lib/isapipe.c: Likewise.
1871         * lib/javaexec.c: Likewise.
1872         * lib/link.c: Likewise.
1873         * lib/localcharset.c: Likewise.
1874         * lib/localename.h: Likewise.
1875         * lib/localename.c: Likewise.
1876         * lib/localtime.c: Likewise.
1877         * lib/lseek.c: Likewise.
1878         * lib/mbsinit.c: Likewise.
1879         * lib/mkdir.c: Likewise.
1880         * lib/msvc-nothrow.h: Likewise.
1881         * lib/nanosleep.c: Likewise.
1882         * lib/nl_langinfo.c: Likewise.
1883         * lib/nonblocking.c: Likewise.
1884         * lib/nproc.c: Likewise.
1885         * lib/open.c: Likewise.
1886         * lib/openpty.c: Likewise.
1887         * lib/pathmax.h: Likewise.
1888         * lib/pipe-filter-aux.c: Likewise.
1889         * lib/pipe-filter-gi.c: Likewise.
1890         * lib/pipe-filter-ii.c: Likewise.
1891         * lib/pipe.c: Likewise.
1892         * lib/pipe2.c: Likewise.
1893         * lib/poll.c: Likewise.
1894         * lib/popen.c: Likewise.
1895         * lib/posix_openpt.c: Likewise.
1896         * lib/printf-parse.c: Likewise.
1897         * lib/progreloc.c: Likewise.
1898         * lib/putenv.c: Likewise.
1899         * lib/read.c: Likewise.
1900         * lib/relocatable.c: Likewise.
1901         * lib/rename.c: Likewise.
1902         * lib/same-inode.h: Likewise.
1903         * lib/secure_getenv.c: Likewise.
1904         * lib/select.c: Likewise.
1905         * lib/sethostname.c: Likewise.
1906         * lib/setlocale.c: Likewise.
1907         * lib/sigaction.c: Likewise.
1908         * lib/sigprocmask.c: Likewise.
1909         * lib/sleep.c: Likewise.
1910         * lib/spawn-pipe.h: Likewise.
1911         * lib/spawn-pipe.c: Likewise.
1912         * lib/spawni.c: Likewise.
1913         * lib/stat-time.h: Likewise.
1914         * lib/stat-w32.c: Likewise.
1915         * lib/stat.c: Likewise.
1916         * lib/stdio.in.h: Likewise.
1917         * lib/stdio-impl.h: Likewise.
1918         * lib/stdio-read.c: Likewise.
1919         * lib/stdio-write.c: Likewise.
1920         * lib/stdlib.in.h: Likewise.
1921         * lib/strerror_r.c: Likewise.
1922         * lib/strftime-fixes.c: Likewise.
1923         * lib/sys_stat.in.h: Likewise.
1924         * lib/sys_types.in.h: Likewise.
1925         * lib/sys_wait.in.h : Likewise.
1926         * lib/system-quote.h: Likewise.
1927         * lib/system-quote.c: Likewise.
1928         * lib/tmpdir.c: Likewise.
1929         * lib/tzset.c: Likewise.
1930         * lib/uname.c: Likewise.
1931         * lib/unistd.in.h: Likewise.
1932         * lib/utime.in.h: Likewise.
1933         * lib/utime.c: Likewise.
1934         * lib/utimecmp.c: Likewise.
1935         * lib/utimens.c: Likewise.
1936         * lib/vasnprintf.c: Likewise.
1937         * lib/vma-iter.h: Likewise.
1938         * lib/vma-iter.c: Likewise.
1939         * lib/wait-process.c: Likewise.
1940         * lib/wcsftime.c: Likewise.
1941         * lib/wctype.in.h: Likewise.
1942         * lib/write.c: Likewise.
1943         * tests/nap.h: Likewise.
1944         * tests/test-cloexec.c: Likewise.
1945         * tests/test-dup-safer.c: Likewise.
1946         * tests/test-dup2.c: Likewise.
1947         * tests/test-dup3.c: Likewise.
1948         * tests/test-fcntl.c: Likewise.
1949         * tests/test-get-rusage-data.c: Likewise.
1950         * tests/test-getaddrinfo.c: Likewise.
1951         * tests/test-getlogin.h: Likewise.
1952         * tests/test-isatty.c: Likewise.
1953         * tests/test-localename.c: Likewise.
1954         * tests/test-mbrtowc-w32.c: Likewise.
1955         * tests/test-nonblocking.c: Likewise.
1956         * tests/test-nonblocking-pipe-main.c: Likewise.
1957         * tests/test-nonblocking-socket-main.c: Likewise.
1958         * tests/test-nonblocking-socket.h: Likewise.
1959         * tests/test-pipe.c: Likewise.
1960         * tests/test-pipe2.c: Likewise.
1961         * tests/test-poll.c: Likewise.
1962         * tests/test-pthread_sigmask1.c: Likewise.
1963         * tests/test-select.h: Likewise.
1964         * tests/test-sethostname2.c: Likewise.
1965         * tests/test-sigprocmask.c: Likewise.
1966         * tests/test-spawn-pipe-child.c: Likewise.
1967         * tests/test-stat-time.c: Likewise.
1968         * tests/test-system-quote-main.c: Likewise.
1969         * tests/test-utimens-common.h: Likewise.
1970         * tests/test-wcrtomb-w32.c: Likewise.
1971         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1973         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1974         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1975         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1976         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1977         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1979         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1980         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1981         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1982         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1983         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1984         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1985         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1986         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1988 2018-05-02  Bruno Haible  <bruno@clisp.org>
1990         localename: Fix test failures on mingw.
1991         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1992         native Windows.
1993         (gl_locale_name_posix): Move code specific to native Windows here.
1994         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1995         Accept result without charset suffix, as it appears on mingw.
1997 2018-04-28  Paul Smith  <psmith@gnu.org>
1999         bootstrap: Avoid gnulib operations if not needed
2000         * build-aux/bootstrap: Remove unused variable gnulib_mk.
2001         Set $gnulib_extra_files early so it can be overridden in .conf.
2002         Remove redundant --import flag from $gnulib_tool_options.
2003         Set $use_gnulib to false if no gnulib modules or files are needed.
2004         If $use_gnulib is false, don't do anything related to gnulib.
2005         A lot of this is just whitespace (indentation) changes.
2007 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
2009         manywarnings: port to GCC 8.0
2010         * build-aux/gcc-warning.spec: Add -Wcatch-value,
2011         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
2012         fact that the GCC help message now mentions operands for
2013         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
2014         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
2015         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
2016         and -Wunused-const-variable.
2017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
2018         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
2019         -Wmissing-attributes, -Wmultistatement-macros,
2020         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
2021         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
2023 2018-04-24  Bruno Haible  <bruno@clisp.org>
2025         sys_socket: Make SO_REUSEPORT available across platforms.
2026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2027         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
2028         * doc/posix-headers/sys_socket.texi: Mention the issue.
2029         * tests/test-poll.c (SO_REUSEPORT): Remove.
2030         * tests/test-select.h: Include <sys/socket.h>.
2031         (SO_REUSEPORT): Remove.
2032         * modules/select-tests (Depends-on): Add 'sys_socket'.
2034 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
2036         localcharset: short-circuit the search for an alias on a Mac
2037         * lib/localcharset.c (get_charset_aliases): Add a tautological
2038         UTF-8 entry to speed up the search for this case.
2039         Most machines default to a UTF-8 locale nowadays, so begin the
2040         list of aliases with a dummy UTF-8 entry so it will be found
2041         immediately and a time-consuming search through the rest of
2042         the list is avoided.
2044 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
2046         fts: add comment
2047         * lib/fts.c (fts_build): Explain why ==, not >.
2048         See remark by Bernhard Voelker in:
2049         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
2051         fts: fix bug in find across filesystems
2052         This fixes a bug I introduced last summer.
2053         Problem reported by Kamil Dudka in:
2054         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
2055         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
2056         (leaf_optimization):
2057         New arg for file descriptor.  All callers changed.
2058         (fts_build): Check for whether inodes should be sorted
2059         before closing the directory.
2061 2018-04-07  Bruno Haible  <bruno@clisp.org>
2063         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
2064         Reported by Genki Sky <sky@genki.is>.
2065         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
2066         version 0.9.10 or newer.
2067         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
2068         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
2069         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
2070         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
2071         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
2073 2018-04-07  Bruno Haible  <bruno@clisp.org>
2075         execute: Update comment.
2076         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
2078 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2080         fts: treat CIFS like NFS
2081         Problem reported by Kamil Dudka in:
2082         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
2083         * lib/fts.c (S_MAGIC_CIFS): New macro.
2084         (dirent_inode_sort_may_be_useful, leaf_optimization):
2085         Treat CIFS like NFS.
2087 2018-03-28  Bruno Haible  <bruno@clisp.org>
2089         c-stack: Fix possible build failure on some platforms.
2090         * lib/c-stack.c (die): Define whenever this function is referenced.
2092 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
2094         time_rz: fix workaround for Mac OS X 10.6 infloop
2095         Problems reported by Charles A. Roelli (Bug#27736#117).
2096         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
2097         Also, discard output, which clutters the 'configure' log.
2099 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2101         havelib: port to Solaris 10 /bin/sh
2102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
2103         instead of '! test EXPR'.
2105 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
2107         time_rz: work around Mac OS X 10.6 infloop
2108         * doc/posix-functions/localtime.texi:
2109         * doc/posix-functions/localtime_r.texi: Mention the bug.
2110         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
2111         better to fix localtime and localtime_r instead, but that would be
2112         more work and is not needed to fix the Emacs problem.
2113         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
2115 2018-03-24  Jim Meyering  <meyering@fb.com>
2117         test-version-etc.sh: don't use diff directly: use init.sh's compare
2118         We'd rather not sacrifice readable "diff -u" output even for
2119         "diff -c" output (not supported by busybox) or for even less
2120         readable ed-style "diff" output.  So use init.sh's compare function
2121         * tests/test-version-etc.sh: Source init.sh and add "." to path.
2122         Remove "./" from invocation of test-version-etc, so we use path.
2123         And s/diff/compare/.
2124         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
2125         to get init.sh.
2126         Prompted by Eric Blake's comments in
2127         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
2129 2018-03-24  Bruno Haible  <bruno@clisp.org>
2131         javacomp-script, javacomp: Add support for Java 10.
2132         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
2133         target-version 10.
2134         * lib/javaversion.h: Update comments.
2135         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2136         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2137         TARGET_VERSION_BOUND, target_version_index,
2138         corresponding_classfile_version): Accept source_version 10 and
2139         target_version 10.
2140         * lib/javacomp.h: Update comments accordingly.
2142 2018-03-24  Bruno Haible  <bruno@clisp.org>
2144         javacomp-script, javacomp: Update comments.
2145         * m4/javacomp.m4: Update comments regarding gcj.
2146         * lib/javacomp.h: Likewise.
2148 2018-03-24  Bruno Haible  <bruno@clisp.org>
2150         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
2151         * lib/javaversion.h: Update comments.
2152         * lib/javacomp.h: Likewise.
2153         * lib/javacomp.c (default_target_version, source_version_index,
2154         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
2155         "1.9".
2156         (TARGET_VERSION_BOUND): Bump to 9.
2157         (target_version_index, corresponding_classfile_version): Recognize "9"
2158         instead of "1.9".
2159         (get_source_version_for_javac): New function.
2160         (is_envjavac_nongcj_usable, is_javac_usable): Add
2161         source_version_for_javac argument.
2162         (compile_java_class): Determine and pass source_version_for_javac.
2163         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
2164         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
2165         appropriate.
2167 2018-03-23  Jim Meyering  <meyering@fb.com>
2169         test-version-etc.sh: port to diff without -c
2170         * tests/test-version-etc.sh: Don't use diff's -c option.
2171         This caused spurious test failure on Alpine Linux, which
2172         uses busybox's diff. Reported by Assaf Gordon in
2173         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
2175 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2177         c-stack: port to recent GCC build
2178         Problem reported by The Fireplace (Bug#30913).
2179         * lib/c-stack.c (die): Define only if used.
2181 2018-03-20  Bruno Haible  <bruno@clisp.org>
2183         euidaccess: Port to native Windows.
2184         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
2185         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
2187 2018-03-19  Bruno Haible  <bruno@clisp.org>
2189         javacomp: Add support for Java 7, 8, 9.
2190         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2191         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2192         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
2193         and target_version 1,7, 1.8, 1.9.
2194         * lib/javacomp.h: Update comments accordingly.
2196 2018-03-19  Bruno Haible  <bruno@clisp.org>
2198         javacomp-script: Add support for Java 9.
2199         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
2200         target-version 1.9.
2202 2018-03-16  Bruno Haible  <bruno@clisp.org>
2204         glob: Don't compile replacements on recent glibc systems.
2205         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
2206         REPLACE_GLOB is 0, include the system's <glob.h> and use
2207         _GL_CXXALIAS_SYS.
2208         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
2209         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
2210         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
2211         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
2212         Remove snippet/warn-on-use.
2213         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
2214         (Makefile.am): Create glob.h always. Update list of substitutions in
2215         glob.h. Don't depend on $(WARN_ON_USE_H).
2217 2018-03-16  Bruno Haible  <bruno@clisp.org>
2219         glob: Fix link error on native Windows.
2220         * modules/glob (Depends-on): Add 'lstat'.
2222 2018-03-15  Bruno Haible  <bruno@clisp.org>
2224         glob: Fix compilation error in C++ mode.
2225         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
2227 2018-03-15  Bruno Haible  <bruno@clisp.org>
2229         host-cpu-c-abi: Support for RISC-V CPU.
2230         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
2231         riscv32 and riscv64 ABIs.
2232         References:
2233         https://github.com/riscv/riscv-toolchain-conventions
2234         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
2235         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
2237 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2239         fflush: be more paranoid about libio.h change
2240         Suggested by Eli Zaretskii in:
2241         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
2242         * lib/fbufmode.c (fbufmode):
2243         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2244         (disable_seek_optimization, rpl_fflush):
2245         * lib/fpending.c (__fpending):
2246         * lib/fpurge.c (fpurge):
2247         * lib/freadable.c (freadable):
2248         * lib/freadahead.c (freadahead):
2249         * lib/freading.c (freading):
2250         * lib/freadptr.c (freadptr):
2251         * lib/freadseek.c (freadptrinc):
2252         * lib/fseeko.c (fseeko):
2253         * lib/fseterr.c (fseterr):
2254         * lib/fwritable.c (fwritable):
2255         * lib/fwriting.c (fwriting):
2256         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
2258 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
2260         maint: write-file-hooks -> before-save-hook
2261         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
2262         it's time to use the recommended replacement.
2263         Problem reported by Glenn Morris in:
2264         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
2265         * build-aux/announce-gen, build-aux/bootstrap:
2266         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
2267         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
2268         * build-aux/gnu-web-doc-update, build-aux/gnupload:
2269         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
2270         * build-aux/update-copyright, build-aux/useless-if-before-free:
2271         * build-aux/vc-list-files:
2272         Update hook usage for files where Gnulib is the canonical source.
2274 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2276         binary-io: pacify gcc -Wunused-parameter
2277         Problem reported by Reuben Thomas in:
2278         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
2279         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
2280         Use _GL_UNUSED where appropriate.
2282         fflush: adjust to glibc 2.28 libio.h removal
2283         Problem reported by Daniel P. Berrangé in:
2284         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
2285         * lib/fbufmode.c (fbufmode):
2286         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2287         (disable_seek_optimization, rpl_fflush):
2288         * lib/fpending.c (__fpending):
2289         * lib/fpurge.c (fpurge):
2290         * lib/freadable.c (freadable):
2291         * lib/freadahead.c (freadahead):
2292         * lib/freading.c (freading):
2293         * lib/freadptr.c (freadptr):
2294         * lib/freadseek.c (freadptrinc):
2295         * lib/fseeko.c (fseeko):
2296         * lib/fseterr.c (fseterr):
2297         * lib/fwritable.c (fwritable):
2298         * lib/fwriting.c (fwriting):
2299         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
2300         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
2301         Define if not already defined.
2303 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
2305         environ: fix link error on 32-bit Cygwin
2306         Problem reported for GNU Emacs by Ken Brown in:
2307         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
2308         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
2310 2018-02-24  Bruno Haible  <bruno@clisp.org>
2312         mbrtowc tests: Fix regression on glibc.
2313         Reported by Bernhard Voelker.
2314         * tests/test-mbrtowc.c (main): Fix expected value of wc.
2316 2018-02-24  Bruno Haible  <bruno@clisp.org>
2318         striconveha, uniconv/*: Avoid test failures on musl libc.
2319         * tests/iconvsupport.c: New file.
2320         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
2321         does not support the ISO-2022-JP-2 encoding.
2322         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2323         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2324         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2325         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2326         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2327         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2328         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
2329         (Makefile.am): Link test-striconveha with iconvsupport.o.
2330         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
2331         tests/iconvsupport.c.
2332         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
2333         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
2334         tests/iconvsupport.c.
2335         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
2336         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
2337         tests/iconvsupport.c.
2338         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
2339         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
2340         tests/iconvsupport.c.
2341         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
2342         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
2343         tests/iconvsupport.c.
2344         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
2345         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
2346         tests/iconvsupport.c.
2347         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
2349 2018-02-24  Bruno Haible  <bruno@clisp.org>
2351         localename: Add support for musl libc.
2352         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
2353         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
2354         on Linux platforms which define NL_LOCALE_NAME.
2356 2018-02-24  Bruno Haible  <bruno@clisp.org>
2358         mbrtowc tests: Don't make assumptions about the charset the C locale.
2359         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
2360         particular mapping in the C locale.
2362 2018-02-24  Bruno Haible  <bruno@clisp.org>
2364         ptsname_r: Don't expect that this function sets errno.
2365         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
2366         from ptsname_r().
2367         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
2369 2018-02-23  Bruno Haible  <bruno@clisp.org>
2371         xmalloca: pacify gcc -Wbad-function-cast
2372         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
2374 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2376         nl_langinfo: pacify gcc -Wunused-function
2377         * lib/nl_langinfo.c (ctype_codeset): Do not define if
2378         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
2379         this case.  Without this change, I got a diagnostic when building
2380         coreutils on Fedora 27 with gcc 7.3.1 20180130.
2382         same: pacify gcc -Wunused-variable
2383         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
2384         Omit unused variable.
2386         malloca: pacify gcc -Wbad-function-cast
2387         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
2388         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
2389         To pacify GCC, I had to cast alloca’s result to some type other
2390         than void * before casting that to uintptr_t.
2392 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2394         utimecmp: new function utimecmpat
2395         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
2396         Do not include utimens.h.
2397         (utimecmpat): New function, generalizing utimecmp.
2398         (utimecmp): Now a thin layer around utimecmpat.
2399         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
2400         utimensat instead of on lstat and utimens.
2402         same: new function same_nameat
2403         * lib/same.c: Include fcntl.h.
2404         * lib/same.c (same_nameat): New function, generalizing same_name.
2405         (same_name): Now a thin layer around same_nameat.
2406         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
2407         * modules/same (Depends-on): Depend on fstatat, openat.
2409 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
2411         warnings: Add support for Objective C.
2412         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
2413         macro.
2415 2018-02-17  Bruno Haible  <bruno@clisp.org>
2417         lock: Fix test-once1 crash on FreeBSD11.
2418         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
2419         'pthread_create', not 'pthread_cancel'.
2421 2018-02-17  Bruno Haible  <bruno@clisp.org>
2423         lock: Add test of gl_once.
2424         * tests/test-once.c: New file.
2425         * modules/lock-tests (Files): Add it.
2426         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
2428 2018-02-17  Bruno Haible  <bruno@clisp.org>
2430         thread: Fix compilation error on IRIX.
2431         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
2432         needed; include it outside the C++ extern "C" {} block.
2433         * doc/posix-headers/pthread.texi: Mention the problem with
2434         pthread_atfork on IRIX.
2436 2018-02-04  Bruno Haible  <bruno@clisp.org>
2438         nl_langinfo: Override the system's nl_langinfo() when needed.
2439         Reported by Jim Meyering.
2440         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
2441         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
2443 2018-02-04  Bruno Haible  <bruno@clisp.org>
2445         signal-h, monetary, strings: Fix build failure in some cases.
2446         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2447         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
2448         as delimiter in sed command, not '|'.
2449         * modules/monetary (Makefile.am): Likewise.
2450         * modules/strings (Makefile.am): Likewise.
2452 2018-02-03  Jim Meyering  <meyering@fb.com>
2454         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
2455         * top/maint.mk (sc_file_system): Don't complain about
2456         "/proc/filesystems".
2458 2018-02-03  Bruno Haible  <bruno@clisp.org>
2460         stdlib: Fix compilation error on OpenIndiana.
2461         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
2462         <sys/time.h>.
2463         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2464         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2466 2018-02-03  Bruno Haible  <bruno@clisp.org>
2468         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
2469         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
2470         and use $EGREP instead of 'grep -E'.
2471         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
2472         'grep -E'.
2474 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
2476         malloca: Add a compile-time verification.
2477         * lib/malloca.c (small_t): Verify that it is wide enough.
2478         * modules/malloca (Depends-on): Add verify.
2480 2018-02-02  Bruno Haible  <bruno@clisp.org>
2482         malloca: Add an argument check.
2483         Suggested by Paul Eggert.
2484         * lib/malloca.c (freea): Check against an invalid argument.
2486 2018-02-02  Bruno Haible  <bruno@clisp.org>
2488         localename: Add support for OpenIndiana.
2489         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
2490         Solaris 11 variants with uselocale() but without getlocalename_l().
2492 2018-02-02  Bruno Haible  <bruno@clisp.org>
2494         malloca, xmalloca: Make multithread-safe.
2495         Reported by Florian Weimer <fweimer@redhat.com>.
2496         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
2497         * lib/malloca.h (malloca): In the stack allocation case, return a
2498         pointer that is a multiple of 2 * sa_alignment_max.
2499         (sa_increment): Remove enum item.
2500         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
2501         a pointer that is a multiple of 2 * sa_alignment_max.
2502         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
2503         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
2504         HASH_TABLE_SIZE, mmalloca_results): Remove.
2505         (small_t): New type.
2506         (mmalloca, free): Rewritten.
2507         * lib/malloca.valgrind: Remove file.
2508         * modules/malloca (Files): Remove it.
2509         (Depends-on): Remove verify.
2511 2018-01-31  Bruno Haible  <bruno@clisp.org>
2513         environ: Fix link error on 64-bit Cygwin.
2514         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
2515         __declspec(dllimport) attribute.
2516         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
2518 2018-01-30  Bruno Haible  <bruno@clisp.org>
2520         get-rusage-data: Add support for Minix 3.
2521         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
2523 2018-01-30  Bruno Haible  <bruno@clisp.org>
2525         vma-iter: Add support for Minix 3.
2526         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
2527         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
2529 2018-01-27  Bruno Haible  <bruno@clisp.org>
2531         Fix malfunction of socket functions on HP-UX in 64-bit mode.
2532         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
2533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
2534         _HPUX_ALT_XOPEN_SOCKET_API.
2535         * modules/accept (Depends-on): Add 'extensions'.
2536         * modules/getpeername (Depends-on): Likewise.
2537         * modules/getsockname (Depends-on): Likewise.
2538         * modules/getsockopt (Depends-on): Likewise.
2539         * modules/recvfrom (Depends-on): Likewise.
2540         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
2541         * doc/posix-functions/getpeername.texi: Likewise.
2542         * doc/posix-functions/getsockname.texi: Likewise.
2543         * doc/posix-functions/getsockopt.texi: Likewise.
2544         * doc/posix-functions/recvfrom.texi: Likewise.
2546 2018-01-27  Bruno Haible  <bruno@clisp.org>
2548         getsockname tests: More tests.
2549         * tests/test-getsockname.c (open_server_socket): New function, mostly
2550         copied from test-poll.c.
2551         (main): Check that getsockname fills in addr.
2552         * modules/getsockname-tests (Depends-on): Add the necessary
2553         dependencies.
2554         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
2556 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
2558         manywarnings: fix maintainer comment
2559         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
2560         it does not mistakenly think that ‘-1)’ is an option.
2562 2018-01-26  Bruno Haible  <bruno@clisp.org>
2564         langinfo: Fix last commit.
2565         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2566         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
2568 2018-01-24  Bruno Haible  <bruno@clisp.org>
2570         langinfo, nl_langinfo: Add support for alternative month names.
2571         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
2572         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
2573         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
2574         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
2575         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
2576         * doc/posix-functions/nl_langinfo.texi: Likewise.
2578 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2580         Merge strftime.c changes from glibc
2581         This incorporates:
2582         2017-11-14 [BZ #10871] Implement alternative month names
2583         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
2584         2017-06-20 Use locale_t, not __locale_t, throughout glibc
2585         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
2586         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
2587         Use locale_t, not __locale_t.
2588         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
2589         (__strftime_internal): Add support for alternate months.
2591 2018-01-23  Bruno Haible  <bruno@clisp.org>
2593         doc: Mention another prerequisite for using Gnulib.
2594         Reported at <https://stackoverflow.com/questions/48378214/>.
2595         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
2596         AC_CONFIG_HEADERS.
2598 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
2600         build: GuixSD doesn't have /bin/bash
2601         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
2603 2018-01-21  Bruno Haible  <bruno@clisp.org>
2605         Avoid test failures on Microsoft Windows Subsystem for Linux.
2606         * tests/test-fcntl.c (main): Allow a different errno.
2607         * tests/test-rename.h (test_rename): Likewise.
2608         * tests/test-renameat.c (main): Likewise.
2609         * tests/test-renameat2.c (main): Likewise.
2611 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2613         filenamecat: make base a suffix of result
2614         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
2615         (mfile_name_concat): Always make BASE a suffix of the result, as
2616         cp expects this.  To implement this, separate with '.' instead of
2617         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
2618         * tests/test-filenamecat.c (main): Adjust tests to match
2619         current behavior.  Check that BASE_IN_RESULT points to
2620         a copy of BASE and is a suffix of the resultk, and that DIR
2621         is a prefix of the result that is no longer than the prefix
2622         indicated by BASE_IN_RESULT.
2624 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
2626         update-copyright: Handle use of ©
2627         * build-aux/update-copyright ($circle_c_re): Update regex to
2628         handle use of © in headers.
2630 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
2632         Fix -Wundef warning in user-included header lib/cdefs.h.
2633         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
2635 2018-01-04  Bruno Haible  <bruno@clisp.org>
2637         pthread_sigmask: Avoid compilation error on mingw.
2638         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2639         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
2640         macro.
2642 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2644         test-framework-sh: ‘ps -ef’, not ‘ps ef’
2645         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
2646         Suggested by Bob Proulx (Bug#29968).
2647         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
2649 2018-01-02  Eric Blake  <eblake@redhat.com>
2651         stat-time: silence -Wunused-parameter regression
2652         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2653         Prefer attribute over cast-to-void.
2654         (stat_time_normalize): Mark st as potentially unused.
2656 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2658         test-framework-sh: avoid netstat
2659         Problem reported by Kristýna Streitová (Bug#29947).
2660         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
2661         deprecated on SuSE and it's not that important anyway.
2663 2018-01-01  Jim Meyering  <meyering@fb.com>
2665         update-copyright: add code to handle more special cases
2666         After running "make update-copyright" this year, five files
2667         required additional manual changes.  Automate those adjustments
2668         for next year.
2669         * Makefile (_year_and_prev): Define.
2670         (update-copyright): Add perl commands to induce this year's post-
2671         update-copyright adjustments.
2673 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2675         version-etc: new year
2676         * build-aux/gendocs.sh (version):
2677         * doc/gendocs_template:
2678         * doc/gendocs_template_min:
2679         * doc/gnulib.texi:
2680         * lib/version-etc.c (COPYRIGHT_YEAR):
2681         Update copyright dates by hand in templates and the like.
2683         maint: fix 'make update-copyright'
2684         * Makefile (update-copyright): Adjust to 2016-11-23 change
2685         to config/srclist-update, which changed the format of srclist.txt.
2687 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2689         chdir-safer: remove this module
2690         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
2691         * NEWS: Document removal.
2692         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
2693         * modules/chdir-safer: Remove these files.
2695 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
2697         Add cross-compilation results for GNU/Hurd.
2698         * m4/calloc.m4: Add GNU/Hurd guess.
2699         * m4/cbrtl.m4: Likewise.
2700         * m4/ceil.m4: Likewise.
2701         * m4/ceilf.m4: Likewise.
2702         * m4/ceill.m4: Likewise.
2703         * m4/chown.m4: Likewise.
2704         * m4/duplocale.m4: Likewise.
2705         * m4/exp2l.m4: Likewise.
2706         * m4/expm1.m4: Likewise.
2707         * m4/fchdir.m4: Likewise.
2708         * m4/floor.m4: Likewise.
2709         * m4/floorf.m4: Likewise.
2710         * m4/fmod.m4: Likewise.
2711         * m4/fmodf.m4: Likewise.
2712         * m4/fmodl.m4: Likewise.
2713         * m4/getcwd.m4: Likewise.
2714         * m4/getgroups.m4: Likewise.
2715         * m4/gettimeofday.m4: Likewise.
2716         * m4/hypot.m4: Likewise.
2717         * m4/hypotf.m4: Likewise.
2718         * m4/hypotl.m4: Likewise.
2719         * m4/link-follow.m4: Likewise.
2720         * m4/link.m4: Likewise.
2721         * m4/linkat.m4: Likewise.
2722         * m4/log.m4: Likewise.
2723         * m4/log10.m4: Likewise.
2724         * m4/log10f.m4: Likewise.
2725         * m4/log1p.m4: Likewise.
2726         * m4/log1pf.m4: Likewise.
2727         * m4/log1pl.m4: Likewise.
2728         * m4/log2.m4: Likewise.
2729         * m4/log2f.m4: Likewise.
2730         * m4/logf.m4: Likewise.
2731         * m4/lstat.m4: Likewise.
2732         * m4/malloc.m4: Likewise.
2733         * m4/mbrlen.m4: Likewise.
2734         * m4/mbrtowc.m4: Likewise.
2735         * m4/mkdir.m4: Likewise.
2736         * m4/mkfifo.m4: Likewise.
2737         * m4/mknod.m4: Likewise.
2738         * m4/mkstemp.m4: Likewise.
2739         * m4/modf.m4: Likewise.
2740         * m4/modff.m4: Likewise.
2741         * m4/modfl.m4: Likewise.
2742         * m4/printf.m4: Likewise.
2743         * m4/pselect.m4: Likewise.
2744         * m4/ptsname.m4: Likewise.
2745         * m4/putenv.m4: Likewise.
2746         * m4/readlink.m4: Likewise.
2747         * m4/realloc.m4: Likewise.
2748         * m4/remainder.m4: Likewise.
2749         * m4/remainderf.m4: Likewise.
2750         * m4/remainderl.m4: Likewise.
2751         * m4/rmdir.m4: Likewise.
2752         * m4/round.m4: Likewise.
2753         * m4/roundf.m4: Likewise.
2754         * m4/roundl.m4: Likewise.
2755         * m4/select.m4: Likewise.
2756         * m4/setenv.m4: Likewise.
2757         * m4/signbit.m4: Likewise.
2758         * m4/sleep.m4: Likewise.
2759         * m4/stat.m4: Likewise.
2760         * m4/strerror.m4: Likewise.
2761         * m4/strtok_r.m4: Likewise.
2762         * m4/symlink.m4: Likewise.
2763         * m4/symlinkat.m4: Likewise.
2764         * m4/trunc.m4: Likewise.
2765         * m4/truncf.m4: Likewise.
2766         * m4/truncl.m4: Likewise.
2767         * m4/tzset.m4: Likewise.
2768         * m4/ungetc.m4: Likewise.
2769         * m4/usleep.m4: Likewise.
2770         * m4/wcwidth.m4: Likewise.
2772 2017-12-28  Bruno Haible  <bruno@clisp.org>
2774         gnulib-tool: Make --conditional-dependencies work better.
2775         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
2776         * gnulib-tool (Options): Don't reject the combination of
2777         --conditional-dependencies with --with-tests.
2778         (func_emit_autoconf_snippets): Add argument referenceable_modules.
2779         Don't reference $modules.
2780         (func_import, func_create_testdir): Pass it.
2782 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2784         regex: use re_malloc etc. consistently
2785         Problem and original patch reported by Arnold Robbins in:
2786         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
2787         * lib/regcomp.c (re_comp):
2788         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
2789         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
2791 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
2792             Paul Eggert  <eggert@cs.ucla.edu>
2794         glob: Silence warning about void pointer arithmetic.
2795         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
2796         arithmetic.
2798 2017-12-15  Bruno Haible  <bruno@clisp.org>
2800         spawn-pipe: Silence a clang warning.
2801         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2802         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
2803         in this file.
2805 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2807         explicit_bzero: port to macOS + Clang 9.0.0
2808         Problem reported by Marcus Johnson (Bug#29658).
2809         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
2810         Don’t use asm.
2812 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2814         doc: Improve explanation of supporting relocatable libraries.
2815         * doc/relocatable-maint.texi (Supporting Relocation): Explain
2816         properly how to build the relocatable module for
2817         libraries. (Method and example code from Bruno Haible.)
2819 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2821         doc: Use better texinfo tags in a few cases.
2822         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
2823         instead of @samp in a few places.
2825 2017-12-11  Bruno Haible  <bruno@clisp.org>
2827         unistr/base: Update comment.
2828         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
2830 2017-12-10  Pádraig Brady  <P@draigBrady.com>
2832         test-faccessat.c: unlink temp file to avoid subsequent test failure
2833         * tests/test-faccessat.c: Remove the file to avoid failure
2834         to open the file on subsequent runs due to being created
2835         with no permissions.
2837 2017-12-10  Bruno Haible  <bruno@clisp.org>
2839         doc: New sect. "Modifying the build rules of a Gnulib import directory".
2840         * doc/gnulib-tool.texi (Modified build rules): New node.
2842 2017-12-10  Bruno Haible  <bruno@clisp.org>
2844         doc: Tweak wording.
2845         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
2846         "binaries".
2848 2017-12-05  Sam Steingold  <sds@gnu.org>
2849             Bruno Haible  <bruno@clisp.org>
2851         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2852         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2853         AC_EGREP_CPP pattern.
2855 2017-12-03  Bruno Haible  <bruno@clisp.org>
2857         all: Replace more http URLs by https URLs.
2858         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2859         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2860         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2861         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2863 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2865         Port better to CentOS 5
2866         Problems reported by Tom G. Christensen in:
2867         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2868         * doc/glibc-functions/strverscmp.texi (strverscmp):
2869         Document strverscmp bug with glibc 2.9 and earlier.
2870         * doc/posix-functions/tzset.texi (tzset):
2871         Document that TZ with angle brackets is POSIX-2001 and later.
2872         * tests/test-nstrftime.c: Include unistd.h.
2873         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2874         (TZ): Use it to skip tests with angle brackets in TZ,
2875         for older systems.
2877         stat: add missing module dependencies
2878         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2879         Add stat-time.
2881 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2883         stat: fix compilation failure on macOS Sierra
2884         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2885         https://savannah.gnu.org/bugs/?52546
2886         * lib/stat.c: Add missing include of stat-time.h.
2888 2017-11-28  Jim Meyering  <meyering@fb.com>
2890         test-faccessat.c: correct BASE definition to avoid parallel test failure
2891         * tests/test-faccessat.c (BASE): Define using this file's name, not
2892         that of test-lstat.c.  Using the latter caused this test to fail
2893         sometimes when run concurrently with test-lstat.
2895 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2897         unicase: fix VPATH build
2898         * modules/unicase/special-casing (Makefile.am): Ensure that the
2899         base directory is created when generating
2900         unicase/special-casing.h.
2902 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2904         libunistring: update to Unicode 9.0.0
2905         * lib/gen-uni-tables.c (fill_properties): Recognize
2906         Sentence_Terminal and Prepended_Concatenation_Mark.
2907         (is_property_default_ignorable_code_point): Exclude U+08E2.
2908         (fill_arabicshaping): Allow missing whitespace when parsing;
2909         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2910         (output_blocks): Increase the element size of the level1 table to
2911         accommodate more blocks.
2912         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2913         Update each class according to the standard.
2914         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2915         E_Base_GAZ characters.
2916         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2917         Glue_After_Zwj, and E_Base_GAZ characters.
2918         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2919         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2920         enum value.
2921         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2922         value.
2923         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2924         LBP_ZWJ, LBP_EB, and LBP_EM.
2925         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2926         enum value.
2927         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2928         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2929         declaration.
2930         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2931         (uniwbrk_table): Implement WB14.
2932         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2933         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2934         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2935         uc-is-grapheme-break.
2936         * modules/unigbrk/uc-grapheme-breaks: New module.
2937         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2938         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2939         enum value.
2940         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2941         * lib/unigbrk/u-grapheme-breaks.h: New file.
2942         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2943         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2944         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2945         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2946         29.
2947         * tests/unigbrk/test-uc-gbrk-prop.c
2948         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2949         GBP_GAZ, and GBP_EBG.
2950         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2951         * tests/unigbrk/test-uc-is-grapheme-break.c
2952         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2953         GBP_GAZ, and GBP_EBG.
2954         (main): Skip unsupported rules involving 3 or more characters,
2955         namely GB10, GB12, and GB13.
2956         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2957         * all generated files under lib/uni* and tests/uni*: Regenerate.
2958         * all the affected modules: Bump version.
2960 2017-11-26  Bruno Haible  <bruno@clisp.org>
2962         strfmon_l: Fix compilation error with glibc 2.5.
2963         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2964         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2965         * lib/monetary.in.h: Include also <locale.h>.
2967 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2969         posixtm: remove PDS_LEADING_YEAR
2970         This changes the API slightly, in a hopefully-innocuous way.
2971         Without this change the code had undefined behavior when a
2972         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2973         Problem reported by Pádraig Brady in:
2974         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2975         * NEWS: Mention this.
2976         * lib/posixtm.c (posix_time_parse): Treat the absence of
2977         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2978         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2979         present, but define it as zero, for compatibility with existing
2980         source code).  All other PDS_* values moved up.
2981         * tests/test-posixtm.c (LY): New macro.
2982         (T): Use it.  Do not expect a particular numeric encoding
2983         for PDS_CENTURY etc.
2985 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2987         stat: work around Solaris bug with tv_nsec < 0
2988         * doc/posix-functions/fstat.texi (fstat):
2989         * doc/posix-functions/fstatat.texi (fstatat):
2990         * doc/posix-functions/lstat.texi (lstat):
2991         * doc/posix-functions/stat.texi (stat):
2992         Mention Solaris 11 bug.
2993         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2994         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2995         * lib/lstat.c (rpl_lstat):
2996         * lib/stat.c (rpl_stat):
2997         Normalize resulting timestamps.
2998         * lib/fstatat.c (normal_fstatat): New function.
2999         (rpl_fstatat): Use it.
3000         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
3001         (stat_time_normalize): New function.
3002         * m4/fstat.m4 (gl_FUNC_FSTAT):
3003         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
3004         * m4/lstat.m4 (gl_FUNC_LSTAT):
3005         * m4/stat.m4 (gl_FUNC_STAT):
3006         Replace on Solaris.
3007         * modules/fstat (Depends-on):
3008         * modules/fstatat (Depends-on):
3009         Add stat-time.
3010         * modules/stat-time (Depends-on): Add errno, intprops.
3012 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3014         regex: merge from glibc
3015         * lib/regcomp.c (init_word_char): Add comments.
3017 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3019         regex: merge from glibc
3020         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
3021         * lib/regex_internal.h (internal_function): Remove.
3022         All uses removed.
3024 2017-11-20  Bruno Haible  <bruno@clisp.org>
3026         crypto/gc-sm3: Fix buffer overrun.
3027         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
3028         Reported by Coverity.
3030 2017-11-12  Jim Meyering  <meyering@fb.com>
3032         maint: shorten https://lists.gnu.org/archive/html/... links
3033         Each /archive/html/ part can be replace with /r/.
3034         Run this to induce the change:
3035         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
3036         * ChangeLog: Perform that substitution.
3037         * Makefile: Likewise.
3038         * STATUS-libposix: Likewise.
3039         * build-aux/bootstrap: Likewise.
3040         * doc/maintain.texi: Likewise.
3041         * gnulib-tool: Likewise.
3042         * lib/allocator.h: Likewise.
3043         * lib/argp-ba.c: Likewise.
3044         * lib/argp-pv.c: Likewise.
3045         * lib/canon-host.c: Likewise.
3046         * lib/canonicalize-lgpl.c: Likewise.
3047         * lib/float.in.h: Likewise.
3048         * lib/fstat.c: Likewise.
3049         * lib/getdelim.c: Likewise.
3050         * lib/getprogname.c: Likewise.
3051         * lib/glthread/thread.h: Likewise.
3052         * lib/intprops.h: Likewise.
3053         * lib/mbsrtowcs-state.c: Likewise.
3054         * lib/safe-read.c: Likewise.
3055         * lib/signal.in.h: Likewise.
3056         * lib/stat.c: Likewise.
3057         * lib/stdbool.in.h: Likewise.
3058         * lib/stdio-impl.h: Likewise.
3059         * lib/stdio.in.h: Likewise.
3060         * lib/sysexits.in.h: Likewise.
3061         * lib/timespec.h: Likewise.
3062         * lib/wcsrtombs-state.c: Likewise.
3063         * m4/alloca.m4: Likewise.
3064         * m4/extern-inline.m4: Likewise.
3065         * m4/fstatat.m4: Likewise.
3066         * m4/gnulib-common.m4: Likewise.
3067         * m4/lib-ignore.m4: Likewise.
3068         * m4/printf.m4: Likewise.
3069         * m4/regex.m4: Likewise.
3070         * m4/stat-size.m4: Likewise.
3071         * m4/std-gnu11.m4: Likewise.
3072         * m4/stdbool.m4: Likewise.
3073         * m4/sys_types_h.m4: Likewise.
3074         * m4/threadlib.m4: Likewise.
3075         * m4/vararrays.m4: Likewise.
3076         * pygnulib/GLImport.py: Likewise.
3077         * tests/test-exp.h: Likewise.
3078         * tests/test-exp2.h: Likewise.
3079         * tests/test-expm1.h: Likewise.
3080         * tests/test-fflush2.c: Likewise.
3081         * tests/test-getopt_long.h: Likewise.
3082         * tests/test-intprops.c: Likewise.
3083         * tests/test-log.h: Likewise.
3084         * tests/test-log10.h: Likewise.
3085         * tests/test-log1p.h: Likewise.
3086         * tests/test-log2.h: Likewise.
3087         * tests/test-printf-posix.h: Likewise.
3088         * tests/test-regex.c: Likewise.
3089         * tests/test-snprintf-posix.h: Likewise.
3090         * tests/test-sprintf-posix.h: Likewise.
3091         * tests/test-stdalign.c: Likewise.
3092         * tests/test-stdbool.c: Likewise.
3093         * tests/test-vasnprintf-posix.c: Likewise.
3094         * tests/test-vasprintf-posix.c: Likewise.
3095         * top/maint.mk: Likewise.
3097 2017-11-12  Bruno Haible  <bruno@clisp.org>
3099         faccessat: Make the last change more robust.
3100         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
3101         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
3103 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3105         faccessat: port to macOS (Bug#29231)
3106         macOS faccessat has the same bug that lstat does: if the file
3107         name ends in '/' it ignores the trailing slash.
3108         Problem reported for Emacs by Vincent Zhang.
3109         * doc/posix-functions/faccessat.texi (faccessat): Document this.
3110         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
3111         around the initial includes.  Include errno.h, string.h, sys/stat.h.
3112         (orig_faccessat) [HAVE_FACCESSAT]: New function.
3113         Include "unistd.h" after defining it.
3114         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
3115         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
3116         Handle in the usual way.
3117         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
3118         lstat dereferences symlinks, since faccessat is likely to
3119         have the same problem.
3120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
3121         * modules/faccessat (Depends-on): Add fstatat.
3122         Depend if REPLACE_FACCESSAT is 1, too.
3123         (configure.ac): Link if REPLACE_FACCESSAT is 1.
3124         * modules/faccessat-tests (Depends-on): Add symlink.
3125         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
3126         * tests/test-faccessat.c (main): Test for the bug.
3128 2017-11-11  Bruno Haible  <bruno@clisp.org>
3130         getprogname: Fix compilation error on IRIX.
3131         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
3132         'namesize'.
3134 2017-11-11  Bruno Haible  <bruno@clisp.org>
3136         year2038: Tweak last patch.
3137         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
3139 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3141         year2038: be more insistent about 64-bit time_t
3142         Applications requiring access to arbitrary files should not be
3143         built with 32-bit time_t on hosts that have 64-bit timestamps,
3144         as this can lead to real trouble at runtime.
3145         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
3146         Check on all systems, not just MinGW.  Use a heuristic involving
3147         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
3148         output a failure or just a warning, to make it more likely that
3149         builders will select 64-bit time_t.
3151 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3153         havelib: fix typo in previous change
3154         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
3156         Don’t use AC_EGREP_CPP if affected by CFLAGS
3157         * m4/float_h.m4 (gl_FLOAT_H):
3158         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
3159         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
3160         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
3161         * m4/year2038.m4 (gl_YEAR2038):
3162         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
3163         likely to be affected by the choice of CFLAGS, since CFLAGS are
3164         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
3165         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
3167         fstatat: pacify GCC on unusual platform
3168         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
3169         Omit, as it’s unused in this case.
3171 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
3173         timespec: prefer ‘assume’ to ‘assure’
3174         This avoids some runtime tests.  The rest of the module makes
3175         similar assumptions and there is little point to testing here.
3176         * lib/timespec.h: Include verify.h instead of assure.h.
3177         (timespec_cmp): Use ‘assume’, not ‘assure’.
3178         Also, remove an unnecessary cast to ‘int’, as lots of other
3179         code in this module now causes -Wconversion to complain, and
3180         this is a problem with -Wconversion not with the code.
3182         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
3184         Port recent gnulib-tool change to Dash
3185         * gnulib-tool (func_create_testdir): Don't assume that the shell
3186         retokenizes after expanding "$@" inside the call to
3187         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
3189 2017-10-27  Jim Meyering  <meyering@fb.com>
3191         timespec.h: use "assure" to avoid a spurious warning
3192         * lib/timespec.h: Include "assure.h" and use it to help
3193         gcc7's -Wstrict-overflow avoid a false positive warning
3194         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
3195         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
3196         * modules/timespec (Depends-on): Add assure.
3198 2017-10-29  Bruno Haible  <bruno@clisp.org>
3200         Avoid several test failures with traditional locales on Haiku.
3201         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
3202         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
3203         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
3204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
3205         LOCALE_ZH_CN=none.
3207 2017-10-29  Bruno Haible  <bruno@clisp.org>
3209         strerror_r-posix: Fix behaviour and test failure on Haiku.
3210         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
3211         are positive. Work around return value 0 instead of ERANGE on Haiku.
3212         For unknown error numbers, use a format string consistent with perror().
3213         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
3214         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
3215         are positive.
3217 2017-10-29  Bruno Haible  <bruno@clisp.org>
3219         get-rusage-data: Avoid crash on Haiku.
3220         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
3222 2017-10-29  Bruno Haible  <bruno@clisp.org>
3224         get-rusage-as: Avoid crash on Haiku.
3225         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
3227 2017-10-29  Bruno Haible  <bruno@clisp.org>
3229         ilogbl: Ensure replacement on Haiku.
3230         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
3231         REPLACE_ILOGBL if ilogbl does not work.
3232         (gl_FUNC_ILOGBL_WORKS): New macro.
3233         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
3234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
3235         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
3236         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
3237         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
3239 2017-10-29  Bruno Haible  <bruno@clisp.org>
3241         expl: Ensure replacement on Haiku.
3242         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
3243         zero.
3244         * doc/posix-functions/expl.texi: Mention the Haiku problem.
3246 2017-10-29  Bruno Haible  <bruno@clisp.org>
3248         math: Fix test failure on Haiku.
3249         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
3250         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
3251         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3252         * doc/posix-headers/math.texi: Mention the Haiku problem.
3254 2017-10-29  Bruno Haible  <bruno@clisp.org>
3256         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
3257         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
3258         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
3260 2017-10-29  Bruno Haible  <bruno@clisp.org>
3262         crypto/*: Verify that the header file is self-contained.
3263         * tests/test-gc-*.c: Include the module's header file immediately after
3264         <config.h>.
3265         * tests/test-hmac-*.c: Likewise.
3266         * tests/test-arcfour.c: Likewise.
3267         * tests/test-arctwo.c: Likewise.
3268         * tests/test-des.c: Likewise.
3269         * tests/test-md2.c: Likewise.
3270         * tests/test-md4.c: Likewise.
3271         * tests/test-md5.c: Likewise.
3272         * tests/test-rijndael.c: Likewise.
3273         * tests/test-sha1.c: Likewise.
3274         * tests/test-sm3.c: Likewise.
3276 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3277             Bruno Haible  <bruno@clisp.org>
3279         crypto/gc: fix build failure with -Werror=suggest-attribute=const
3280         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
3282 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3284         New module: crypto/gc-sm3
3285         * lib/gc.h: Declare SM3-related stuffs.
3286         * lib/gc-gnulib.c: Support sm3 in internal functions.
3287         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
3288         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
3289         * modules/crypto/gc-sm3: Define gc-sm3 module.
3290         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
3291         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
3292         * MODULES.html.sh: List gc-sm3 module.
3294 2017-10-29  Bruno Haible  <bruno@clisp.org>
3296         random, random_r: Mention different prototypes on Haiku.
3297         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
3298         * doc/glibc-functions/random_r.texi: Likewise.
3299         * doc/glibc-functions/initstate_r.texi: Likewise.
3300         * doc/glibc-functions/setstate_r.texi: Likewise.
3302 2017-10-28  Bruno Haible  <bruno@clisp.org>
3304         posix_spawn: Avoid spurious message in configure output.
3305         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
3306         'cmp' command.
3308 2017-10-28  Bruno Haible  <bruno@clisp.org>
3310         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
3311         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
3312         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3314 2017-10-28  Bruno Haible  <bruno@clisp.org>
3316         ioctl: Override non-POSIX declaration on Haiku.
3317         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
3318         * lib/sys_ioctl.in.h: Add comment about Haiku.
3319         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
3320         * doc/glibc-headers/sys_ioctl.texi: Likewise.
3322 2017-10-28  Bruno Haible  <bruno@clisp.org>
3324         crypto/sm3: Add overview documentation to the .h file.
3325         * lib/sm3.h: Add comments.
3327 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3329         New module: crypto/sm3
3330         This new module can be used to compute SM3 message digest of files or
3331         memory blocks according to the specification GM/T 004-2012
3332         Cryptographic Hash Algorithm SM3, published by State Cryptography
3333         Administration, China.
3334         The official SM3 cryptographic hash algorithm specification is
3335         available at
3336         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
3337         * lib/sm3.h: Declare the APIs of sm3 module.
3338         * lib/sm3.c: Implement SM3 hash algorithm.
3339         * m4/sm3.m4: m4 file for sm3 module.
3340         * modules/crypto/sm3: Define sm3 module.
3341         * tests/test-sm3.c: Implement SM3 test case.
3342         * modules/crypto/sm3-tests: Define sm3 test module.
3343         * MODULES.html.sh: List sm3 module.
3345 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3347         gc-libgcrypt: fix undefined enum type in switch statement
3348         Resolve the following build failure:
3349         lib/gc-libgcrypt.c: In function 'gc_hash_open':
3350         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
3351         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
3352              case 0:
3353              ^~~~
3354         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
3355         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
3357 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3359         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
3360         Resolve the following build failure:
3361         lib/gc-libgcrypt.c: In function 'gc_hash_read':
3362         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
3363         in signedness [-Werror=pointer-sign]
3364             digest = gcry_md_read (ctx->gch, 0);
3365                    ^
3366         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
3368 2017-10-26  Bruno Haible  <bruno@clisp.org>
3370         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
3371         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
3372         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
3374 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3376         glob: fix another heap buffer overflow
3377         Problem reported by Tim Rühsen in:
3378         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
3379         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
3381 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3383         quotearg: pacify compiler re unsigned
3384         * lib/quotearg.c (quotearg_n_options):
3385         Rewrite to avoid diagnostic from overly-picky compiler.
3386         Problem reported by Sami Kerola in:
3387         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
3389         glob: fix heap buffer overflow
3390         * lib/glob.c (glob): Fix off-by-one error introduced into
3391         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
3392         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
3393         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
3394         Fix suggested by Bruno Haible.
3396 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
3398         glob: pacify fuzzer for mempcpy
3399         Problem reported by Tim Rühsen in:
3400         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
3401         * lib/glob.c (glob): Do not pass NULL to mempcpy.
3403 2017-10-12  Bruno Haible  <bruno@clisp.org>
3405         doc: Fix syntax error (regression from 2017-10-03).
3406         * doc/posix-functions/strncpy.texi: Fix syntax error.
3408 2017-10-12  Bruno Haible  <bruno@clisp.org>
3410         doc: Update for Solaris 11.3.
3411         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
3412         mention Solaris 11.3.
3413         * m4/log2.m4: Fix comments.
3414         * m4/log2f.m4: Likewise.
3415         * m4/printf.m4: Update comments.
3416         * m4/rename.m4: Likewise.
3417         * m4/strncat.m4: Likewise.
3419         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
3421 2017-10-10  Bruno Haible  <bruno@clisp.org>
3423         doc: Improve doc about ioctl.
3424         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
3425         prototype.
3427 2017-10-09  Bruno Haible  <bruno@clisp.org>
3429         wcwidth: Don't use obsolete syntax of 'test'.
3430         Reported by Eric Blake.
3431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
3432         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
3434 2017-10-09  Bruno Haible  <bruno@clisp.org>
3436         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
3437         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
3438         and Daniel P. Berrange <berrange@redhat.com>.
3439         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
3440         on glibc systems. The getopt-pfx-core.h file declares exactly what
3441         unistd.h needs, nothing more.
3443 2017-10-08  Bruno Haible  <bruno@clisp.org>
3445         vma-iter: Improve support for FreeBSD.
3446         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
3447         vma_iterate.
3448         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
3450 2017-10-08  Bruno Haible  <bruno@clisp.org>
3452         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
3453         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
3455 2017-10-07  KO Myung-Hun  <komh@chollian.net>
3457         test-framework-sh: Fix 'invalid path dir' error.
3458         On OS/2, a path separator is ';' not ':'. And ':' is used as a
3459         separator between a drive letter and directory parts.
3460         As a result, an absolute path such as x:/path/to/dir on OS/2 is
3461         treated as an invalid path dir.
3462         * tests/init.sh (PATH_SEPARATOR): Set at startup.
3463         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
3464         instead of hard coded ':'.
3466 2017-10-07  Bruno Haible  <bruno@clisp.org>
3468         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
3469         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
3470         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
3471         (rof_open): On Linux, do multiple read() calls and make sure
3472         MIN_LEFTOVER bytes are left when read() returns.
3474 2017-10-07  Bruno Haible  <bruno@clisp.org>
3476         vma-iter: Improve support for GNU/Hurd.
3477         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
3478         API, not the /proc file system.
3480 2017-10-07  Bruno Haible  <bruno@clisp.org>
3482         test-framework-sh: Don't require bash on Windows and OS/2.
3483         Reported by KO Myung-Hun.
3484         * tests/test-init.sh: Use 'shopt' only when running in bash.
3486 2017-10-06  KO Myung-Hun  <komh@chollian.net>
3488         wcwidth: check a macro version of wcwidth () as well
3489         * lib/wchar.in.h: Revert commit from 2016-01-14.
3490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
3492 2017-10-06  Bruno Haible  <bruno@clisp.org>
3494         getopt-posix: Clarify copyright header.
3495         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
3496         * lib/getopt-pfx-core.h: Likewise.
3497         * lib/getopt-pfx-ext.h: Likewise.
3498         * lib/getopt-cdefs.in.h: Likewise.
3500 2017-10-03  Bruno Haible  <bruno@clisp.org>
3502         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
3503         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
3504         gl_HOST_CPU_C_ABI.
3506 2017-10-03  Bruno Haible  <bruno@clisp.org>
3508         doc: warn about misuse of strncpy and wcsncpy.
3509         * doc/posix-functions/strcpy.texi: Describe requirements on prior
3510         memory allocation.
3511         * doc/posix-functions/wcscpy.texi: Likewise.
3512         * doc/posix-functions/strncpy.texi: Describe what this function is not
3513         useful for.
3514         * doc/posix-functions/wcsncpy.texi: Likewise.
3516 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
3518         fsuage: fix typo in previous change
3519         * lib/fsusage.c: Remove stray include of full-read.h.
3520         Problem reported by Sam Steingold for macOS (Bug#28669).
3522 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
3524         fsusage: remove SVR2 support
3525         SVR2 was obsolete by 1986 and is no longer supported by anybody,
3526         and its code was getting in the way of use of this module by
3527         Emacs, which has its own ‘read’ function anyway.
3528         * lib/fsusage.c: Do not include sys/filsys.h.
3529         (get_fs_usage): Remove SVR2-specific code.
3530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
3531         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
3532         * modules/fsusage (Depends-on): Do not depend on full-read.
3534         Simplify autoupdate of licenses
3535         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
3536         place.
3538 2017-10-01  Bruno Haible  <bruno@clisp.org>
3540         vma-iter: Add support for GNU/Hurd.
3541         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
3542         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3544 2017-09-30  Bruno Haible  <bruno@clisp.org>
3546         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
3547         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
3548         fail when module 'largefile' is in use.
3549         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
3550         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
3551         Don't test HAVE_SYS_PROCFS_H.
3553 2017-09-30  Bruno Haible  <bruno@clisp.org>
3555         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
3556         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
3557         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
3558         * modules/havelib (Depends-on): Add host-cpu-c-abi.
3560 2017-09-30  Bruno Haible  <bruno@clisp.org>
3562         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
3563         * lib/uniname/uniname.c (unicode_name_character): Add braces around
3564         scope of local variables.
3566 2017-09-28  Bruno Haible  <bruno@clisp.org>
3568         string: code style
3569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
3570         substitutable variables.
3571         * modules/string (Makefile.am): Likewise.
3573 2017-09-26  Bruno Haible  <bruno@clisp.org>
3575         uniname/uniname-tests: Tighten code.
3576         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
3577         local variables into one.
3579 2017-09-26  Bruno Haible  <bruno@clisp.org>
3581         vma-iter: Improvements for Linux and BSD platforms.
3582         - Add support for DragonFly BSD.
3583         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
3584         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
3585         Read the entire file into memory in a single system call.
3586         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
3587         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
3589 2017-09-26  Bruno Haible  <bruno@clisp.org>
3591         vma-iter: Provide the protection flags on FreeBSD.
3592         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
3593         skip three fields between the addresses and the protection flags.
3595 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3597         glob: remove bogus extern decl
3598         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3599         extern declaration.  Problem reported by Adhemerval Zanella in:
3600         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
3602 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3604         uniname/uniname-tests: integer overflow fix
3605         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
3606         Check for integer overflow.
3608         duplocale-tests: fix unlikely crash
3609         * tests/test-duplocale.c (get_locale_dependent_values):
3610         Don’t crash with absurdly long month names.
3612         maint: fix overflow checking in nap.h
3613         * modules/chown-tests:
3614         * modules/fchownat-tests, modules/fdutimensat-tests:
3615         * modules/futimens-tests, modules/lchown-tests:
3616         * modules/stat-time-tests, modules/utime-tests:
3617         * modules/utimens-tests, modules/utimensat-tests:
3618         Depend on intprops.
3619         * tests/nap.h: Include intprops.h.
3620         (diff_timespec): Handle overflow properly.
3622         sys_types: update URL
3623         * m4/sys_types_h.m4: Use https: URL.
3625         parse-datetime: fix dependency
3626         * modules/parse-datetime (Depends-on): Depend
3627         on nstrftime, not strftime.
3629         parse-datetime, posixtm: avoid uninit access
3630         * lib/parse-datetime.y (parse_datetime2):
3631         * lib/posixtm.c (posixtime):
3632         Do not access uninitialized storage, even though the resulting
3633         value is never used.
3635 2017-09-25  Bruno Haible  <bruno@clisp.org>
3637         vma-iter: Improvements for BSD platforms.
3638         - Add support for GNU/kFreeBSD.
3639         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
3640         - Speed up on OpenBSD.
3641         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
3642         (vma_iterate_bsd): New function.
3643         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
3644         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
3645         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3646         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
3648 2017-09-23  Bruno Haible  <bruno@clisp.org>
3650         strfmon_l: New module.
3651         * modules/strfmon_l: New file.
3652         * lib/strfmon_l.c: New file.
3653         * m4/strfmon_l.m4: New file.
3654         * doc/posix-functions/strfmon_l.texi: Mention the new module.
3655         * modules/strfmon_l-tests: New file.
3656         * tests/test-strfmon_l.c: New file.
3658         monetary: New module.
3659         * modules/monetary: New file.
3660         * lib/monetary.in.h: New file.
3661         * m4/monetary_h.m4: New file.
3662         * doc/posix-headers/monetary.texi: Mention the new module.
3663         * modules/monetary-tests: New file.
3664         * tests/test-monetary.c: New file.
3665         * modules/monetary-c++-tests: New file.
3666         * tests/test-monetary-c++.cc: New file.
3667         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
3669 2017-09-23  Bruno Haible  <bruno@clisp.org>
3671         duplocale tests: Fix test crash on Linux/x86.
3672         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
3673         locale from the current thread before freeing it.
3675 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
3677         mktime: port to OpenVMS
3678         Problem reported by John E. Malmberg in:
3679         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
3680         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
3682 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3684         manywarnings: port to GCC on 64-bit MS-Windows
3685         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
3686         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
3687         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
3689 2017-09-13  Bruno Haible  <bruno@clisp.org>
3691         all: Replace many more http URLs by https URLs. Update stale URLs.
3692         * users.txt: Remove mention of 'newts'.
3693         * lib/localename.c: Update comment about LANG_SOTHO.
3695 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3697         all: Replace many http URLs by https URLs.
3699 2017-09-12  Bruno Haible  <bruno@clisp.org>
3701         doc: Prefer https URLs where possible.
3702         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
3703         * doc/ld-output-def.texi: Remove unavailable URL.
3705 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3707         maintainer-makefile: FTP -> HTTPS
3708         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
3709         of FTP, which is planned to be decommissioned on 2017-11-01.
3711 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3713         libc-config: Fix __GNUC_PREREQ macro.
3714         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
3715         __GNUC_MINOR.
3717 2017-09-09  Bruno Haible  <bruno@clisp.org>
3719         gnulib-tool: Simplify commit from 2015-08-20.
3720         * gnulib-tool (func_add_or_update): Remove local variable
3721         is_binary_file.
3723 2017-09-08  Bruno Haible  <bruno@clisp.org>
3725         stddef: Avoid conflict with system-defined max_align_t.
3726         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
3727         Reported by Werner Lemberg <wl@gnu.org> in
3728         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
3729         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
3730         (max_align_t): Define as a macro.
3731         (GNULIB_defined_max_align_t): New macro. Guards against multiple
3732         definitions of rpl_max_align_t in different copies of gnulib-generated
3733         <stddef.h>.
3735 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3737         libc-config: port to MSVC
3738         Problems reported by Gisle Vanem in:
3739         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
3740         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
3741         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
3742         * m4/__inline.m4: New file.
3743         * modules/libc-config (Files): Add it.
3744         (Depends-on): Use it.
3746         glob: Use enum for __glob_pattern_type result
3747         From a patch proposed by Adhemerval Zanella in:
3748         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
3749         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3750         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3751         * lib/glob_internal.h (__glob_pattern_type):
3752         * lib/glob.c (glob):
3753         * lib/glob_pattern_p.c (__glob_pattern_p):
3754         Use them.
3756         glob: fix for use in glibc
3757         Problem reported by Adhemerval Zanella in:
3758         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
3759         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
3760         Do not redefine if _LIBC.
3762 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3764         glob: fix bugs with long login names
3765         Problem reported by Adhemerval Zanella in:
3766         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
3767         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
3768         (glob): Use the same scratch buffer for both getlogin_r and
3769         getpwnam_r.  Don’t require preallocation of the login name.  This
3770         simplifies storage allocation, and corrects the handling of
3771         long login names.
3773 2017-09-02  Bruno Haible  <bruno@clisp.org>
3775         dirent: Update doc.
3776         * doc/posix-headers/dirent.texi: More concrete list of platforms.
3778 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3780         glob: fix getpwnam_r errno typo
3781         * lib/glob.c (glob): Fix longstanding misuse of errno after
3782         getpwnam_r, which returns an error number rather than setting
3783         errno.
3785         glob: fix typo in recent change
3786         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
3787         Fix recently-introduced typo.
3789 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3791         glob: don't save and restore errno unnecessarily
3792         * lib/glob.c (glob): Don't save and restore errno
3793         merely because we have getpwnam_r.
3795         glob: don't assume getpwnam_r
3796         * lib/glob.c (glob): Port recent patches to platforms
3797         lacking getpwnam_r.
3799         scratch_buffer: don’t use private glibc API
3800         Suggested by Florian Weimer in:
3801         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
3802         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
3803         * lib/scratch_buffer_grow.c: Rename to
3804         lib/malloc/scratch_buffer_grow.c.
3805         * lib/scratch_buffer_grow_preserve.c: Rename to
3806         lib/malloc/scratch_buffer_grow_preserve.c.
3807         * lib/scratch_buffer_set_array_size.c: Rename to
3808         lib/malloc/scratch_buffer_set_array_size.c.
3809         * lib/scratch_buffer.h: New file.
3810         * modules/scratch_buffer (Files, Makefile.am):
3811         Adjust to source-file renaming.
3813 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3815         glob: use scratch_buffer instead of extend_alloca
3816         Much of the lib/glob.c part of this patch comes from a glibc patch
3817         proposed by Adhemerval Zanella in:
3818         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
3819         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
3820         included via glob.h, does this for us now.
3821         (__set_errno): Remove, as libc-config does this for us now.
3822         Include <scratch_buffer.h>.
3823         (GETPW_R_SIZE_MAX): Remove.
3824         (glob): Use struct scratch_buffer instead of extend_alloca.
3825         * lib/glob.in.h: Include libc-config.h rather than
3826         including <sys/cdefs.h> conditionally.
3827         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
3828         (__glibc_unlikely, __restrict, weak_alias):
3829         Remove, as libc-config does this for us now.
3830         * m4/glob.m4 (gl_PREREQ_GLOB):
3831         Remove sys/cdefs.h tests; no longer needed.
3832         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
3833         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
3835         scratch_buffer: new module
3836         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
3837         * lib/scratch_buffer_grow_preserve.c:
3838         * lib/scratch_buffer_set_array_size.c:
3839         New files, copied from glibc with very minor changes that can be
3840         copied back.
3841         * modules/scratch_buffer: New file.
3843         libc-config: new module
3844         * MODULES.html.sh: Add libc-config.
3845         * lib/cdefs.h: New file, copied from the GNU C Library with very
3846         minor changes that can be copied back.
3847         * lib/libc-config.h, modules/libc-config: New files.
3849 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3851         glob: match dangling symlinks
3852         This fixes a bug I inadvertently introduced to Gnulib when I
3853         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3854         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3855         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3856         * doc/posix-functions/glob.texi: Update list of affected platforms.
3857         * lib/glob.c (__lstat64): New macro.
3858         (is_dir): New function.
3859         (glob, glob_in_dir): Match symlinks even if they are dangling.
3860         (link_stat, link_exists_p): Remove.  All uses removed.
3861         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3862         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3863         * modules/glob-tests (Depends-on): Add symlink.
3864         * tests/test-glob.c: Include errno.h, unistd.h.
3865         (BASE): New macro.
3866         (main): Test dangling symlinks, if symlinks are supported.
3868         glob, backupfile: inode 0 is a valid inode number
3869         * doc/posix-functions/readdir.texi (readdir):
3870         * doc/posix-headers/dirent.texi (dirent.h):
3871         Document more readdir portability issues.
3872         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3873         (numbered_backup): Don’t treat inode 0 any differently from
3874         other inode values.
3875         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3876         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3877         All uses removed.
3878         * modules/glob (Depends-on): Remove d-ino.
3880         glob: simplify symlink detection
3881         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3882         uint8_t, as C99 does not require uint8_t.
3883         (struct readdir_result): Use it.  Do not define skip_entry unless
3884         it is needed; this saves a byte on platforms lacking d_ino.
3885         (readdir_result_type, readdir_result_skip_entry):
3886         New functions, replacing ...
3887         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3888         ... these functions, which were removed.  This makes the callers
3889         easier to read.  All callers changed.
3890         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3892 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3894         fts-tests: tag as a longrunning-test so not included by default
3895         * modules/fts-tests: This test takes about 20s on current systems,
3896         and uses about 285M of space on ext4.
3898 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3900         renameat2: fix compilation on alpine linux
3901         * m4/renameat.m4: Check for <linux/fs.h> presence.
3902         * lib/renameat2.h: Only include <linux/fs.h> if present.
3903         Reported by Assaf Gordon on Alpine Linux.
3905 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3907         glob: try to port recent changes to MS-Windows
3908         Problem reported by Bruno Haible in:
3909         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3910         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3911         * lib/glob.in.h (__glob_pattern_p): ... to here.
3913 2017-08-24  Eric Blake  <eblake@redhat.com>
3915         warnings: fix compilation with old autoconf
3916         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3917         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3918         AC_DEFUN.
3919         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3920         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3922 2017-08-24  Bruno Haible  <bruno@clisp.org>
3924         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3925         * modules/glob (Depends-on): Add c99.
3927 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3929         glob: fix typo that broke platforms lacking d_ino
3930         This typo also hurt performance on GNU/Linux and similar hosts.
3931         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3932         in previous change.
3934 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3936         glob: merge from glibc with Zanella glob changes
3937         Merge glob from glibc, with changes for glob proposed
3938         by Adhemerval Zanella in the thread starting here:
3939         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3940         plus some fixes for this merge.
3941         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3942         New files, ported from glibc.
3943         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3944         with __restrict.
3945         (__size_t): Remove.  All uses replaced by size_t.
3946         (size_t): Define by defining __need_size_t and including <stddef.h>.
3947         This should work even in non-glibc platforms, where any name
3948         pollution is OK.
3949         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3950         (struct stat64): Don’t worry about __GLOB_GNULIB.
3951         (glob, globfree, glob_pattern_p): Remove macros for
3952         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3953         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3954         but set errno.
3955         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3956         removed since the glibc behavior works on null pointers.
3957         Do not include stdio.h; old SunOS is irrelevant now.
3958         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3959         Include glob_internal.h.
3960         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3961         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3962         worked only coincidentally.
3963         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3964         Remove macros; now done in glob.in.h.
3965         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3966         (glob): Properly initialize glob structure with
3967         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3968         Remove old code using SHELL since Bash no longer
3969         uses this.
3970         (glob, prefix_array): Separate MS code better.
3971         (glob, glob_in_dir): Use C99 decls before statements when glibc
3972         does.
3973         (glob_in_dir): Remove old Amiga and VMS code.
3974         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3975         separate files.
3976         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3977         (__glibc_unlikely):
3978         Move here from glob.c.
3979         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3980         (weak_alias): New macro.
3981         (__size_t): Remove.  All uses replaced by size_t.
3982         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3983         * modules/glob (Files): Add +lib/glob_internal.h,
3984         lib/glob_pattern_p.c, lib/globfree.c.
3985         (Depends-on): Remove snippet/arg-nonnull.
3987 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3989         glob: port to clang's Undefined Sanitizer
3990         Problem reported by Tim Rühsen in:
3991         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3992         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3993         (glob_in_dir): Do not rely on undefined behavior in accessing
3994         struct members beyond their bounds.  Use a flexible array member
3995         instead.
3997 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3999         vc-list-files: port to Solaris 10
4000         * build-aux/vc-list-files: Don't assume test -e works.
4002 2017-08-21  Karl Berry  <karl@freefriends.org>
4004         * doc/posix-functions/srandom.texi (srandom): typo }.
4006 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4008         git-version-gen: port to Solaris 10
4009         Problem reported by Dagobert Michelsen in:
4010         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
4011         * build-aux/git-version-gen (v_from_git):
4012         Use expr instead of shell substitution.
4014 2017-08-19  Bruno Haible  <bruno@clisp.org>
4016         host-cpu-c-abi: Improve detection of MIPS ABI.
4017         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
4018         _MIPS_SIM.
4020 2017-08-17  Bruno Haible  <bruno@clisp.org>
4022         hypot tests: Fix test failure on FreeBSD 11.0/x86.
4023         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
4025 2017-08-17  Bruno Haible  <bruno@clisp.org>
4027         float: Fix LDBL_MIN value on FreeBSD/x86.
4028         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
4030 2017-08-17  Bruno Haible  <bruno@clisp.org>
4032         random: Fix test compilation failure on Cygwin 1.5.25.
4033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
4034         HAVE_DECL_SETSTATE.
4035         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
4036         declared.
4037         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
4038         HAVE_DECL_SETSTATE.
4039         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
4040         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
4041         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
4042         * doc/posix-functions/random.texi: Likewise.
4043         * doc/posix-functions/setstate.texi: Likewise.
4044         * doc/posix-functions/srandom.texi: Likewise.
4046 2017-08-16  Bruno Haible  <bruno@clisp.org>
4048         stdnoreturn: Fix test compilation failure on Cygwin.
4049         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
4050         <stdnoreturn.h> replacement.
4051         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
4052         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
4054 2017-08-16  Bruno Haible  <bruno@clisp.org>
4056         thread: Fix conflict with pthread_sigmask module.
4057         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
4058         it's defined as a macro.
4059         * modules/thread (Depends-on): Add pthread_sigmask.
4061 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4063         rename: port better to NetBSD
4064         * doc/posix-functions/rename.texi (rename): NetBSD 7
4065         does not have the link-count bug.
4066         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
4067         broken merely because rename ("a", "b") removes "a" when the two
4068         names are hard links to the same file.
4070 2017-08-16  Bruno Haible  <bruno@clisp.org>
4072         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
4073         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
4074         the target file names with '$(srcdir)/'.
4075         * modules/unicase/locale-language (Makefile.am): Likewise.
4076         * modules/unicase/special-casing (Makefile.am): Likewise.
4077         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
4078         * modules/unictype/category-byname (Makefile.am): Likewise.
4079         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
4080         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
4081         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
4082         * modules/unictype/property-byname (Makefile.am): Likewise.
4083         * modules/unictype/scripts (Makefile.am): Likewise.
4084         * modules/uninorm/composition (Makefile.am): Likewise.
4086 2017-08-16  Bruno Haible  <bruno@clisp.org>
4088         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
4089         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
4090         value for OpenBSD.
4092 2017-08-16  Bruno Haible  <bruno@clisp.org>
4094         rename, renameat: Update doc regarding NetBSD.
4095         * doc/posix-functions/rename.texi: Clarify that when using
4096         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
4097         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
4098         version.
4100 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4102         renameat2: port better to macOS
4103         * lib/renameat2.c (renameat2): Use renameatx_np if available.
4105         futimens: don’t assume struct timespec layout
4106         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
4107         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
4108         * tests/test-fdutimensat.c (main):
4109         * tests/test-futimens.h (test_futimens):
4110         * tests/test-lutimens.h (test_lutimens):
4111         * tests/test-utimens.h (test_utimens):
4112         * tests/test-utimensat.c (main):
4113         Don’t assume that struct timespec is a two-member structure in
4114         tv_sec, tv_nsec order.  Although this is true on all platforms we
4115         know about, POSIX does not guarantee it.
4117         rename: document+test NetBSD rename
4118         Test failure reported by Bruno Haible in:
4119         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
4120         This is an area where NetBSD is better-behaved than POSIX,
4121         so allow the NetBSD behavior in tests.
4122         * doc/posix-functions/rename.texi:
4123         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
4124         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
4126 2017-08-15  Bruno Haible  <bruno@clisp.org>
4128         renameat: Ensure declaration in <stdio.h> on NetBSD.
4129         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
4130         * doc/posix-functions/renameat.texi: Mention this problem.
4132 2017-08-15  Bruno Haible  <bruno@clisp.org>
4134         duplocale: Work around NetBSD 7.0 bug.
4135         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
4136         * lib/duplocale.c: Add comment about NetBSD problem.
4137         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
4139 2017-08-15  Bruno Haible  <bruno@clisp.org>
4141         duplocale tests: Verify use with *_l functions.
4142         * modules/duplocale-tests (configure.ac): Test for uselocale and
4143         some *_l functions.
4144         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
4145         from main.
4146         (get_locale_dependent_values_from, test_with_locale_parameter): New
4147         functions.
4148         (main): Test both test_with_uselocale and test_with_locale_parameter.
4150 2017-08-15  Bruno Haible  <bruno@clisp.org>
4152         extensions: Enable NetBSD specific extensions.
4153         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
4155 2017-08-14  Bruno Haible  <bruno@clisp.org>
4157         open, openat: Update doc about O_CLOEXEC.
4158         * doc/posix-functions/open.texi: More concrete list of platforms.
4159         * doc/posix-functions/openat.texi: Likewise.
4161 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4163         open: support O_CLOEXEC
4164         * NEWS, doc/posix-functions/open.texi:
4165         * doc/posix-functions/openat.texi: Document this.
4166         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
4167         (GNULIB_defined_O_CLOEXEC): New symbol.
4168         * lib/open.c: Include cloexec.h.
4169         (open): Support O_CLOEXEC.
4170         * lib/openat.c: Include cloexec.h.
4171         (rpl_openat): Support O_CLOEXEC.
4172         * lib/popen-safer.c: Do not include cloexec.h.
4173         (open_noinherit): Remove.
4174         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
4175         * lib/save-cwd.c: Do not include cloexec.h.
4176         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
4177         * m4/open-cloexec.m4: New file.
4178         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
4179         Replace 'open' if O_CLOEXEC is not present.
4180         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
4181         Replace 'openat' if O_CLOEXEC is not present.
4182         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
4183         * modules/open (Files): Add m4/open-cloexec.m4.
4184         (Depends-on): Depend on cloexec if replacing 'open'.
4185         * modules/openat (Files): Add m4/open-cloexec.m4.
4186         (Depends-on): Depend on cloexec if replacing openat.
4187         * modules/popen-safer (Depends-on): Remove cloexec.
4188         * modules/save-cwd (Depends-on): Remove cloexec, and add
4189         fd-safer-flag and 'open'.
4191 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
4193         reallocarray: minor fixes
4194         * doc/glibc-functions/reallocarray.texi: Update version numbers.
4195         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
4196         * modules/reallocarray (License): Change from GPL to LGPL.
4197         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
4198         Indent properly and don't use tabs.
4200 2017-08-13  Darshit Shah  <darnir@gnu.org>
4202         reallocarray: New module
4203         reallocarray is a new function in glibc 2.26 to safely allocate an array
4204         of memory locations with integer overflow protection.
4205         * MODULES.html.sh: Add reallocarray.
4206         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
4207         * lib/reallocarray.c: New file to implement module reallocarray.
4208         * lib/stdlib.in.h: Add function declarations for reallocarray.
4209         * m4/reallocarray.m4: New file.
4210         * m4/stdlib_h.m4: Declare reallocarray.
4211         * modules/reallocarray: New file.
4212         * modules/reallocarray-test: New file.
4213         * modules/stdlib: Coerce stdlib.h to export reallocarray.
4214         * tests/test-reallocarray.c: New test.
4216 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4218         dirent-safer: fix cloexec race
4219         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
4220         (opendir_safer): Use F_DUPFD_CLOEXEC.
4221         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
4222         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
4223         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
4224         instead of dup_safer.
4226         fts: fix cloexec races
4227         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
4228         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
4229         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
4230         (fd_ring_check): Set cloexec flag on new file descriptors.
4231         (fts_build, fd_ring_check): While we’re at it, make sure the
4232         resulting file descriptor is not 0, 1, or 2, since that is easy.
4234 2017-08-11  Bruno Haible  <bruno@clisp.org>
4236         fts tests: Fix link error.
4237         Reported by Tom G. Christensen in
4238         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
4239         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
4241 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4243         fts: port recent changes to CentOS 6
4244         Problem reported by Tom G. Christensen in:
4245         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
4246         * lib/fts.c (fsword): New type.
4247         (struct dev_type, filesystem_type): Use it.
4248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
4249         Also, check for f_type only if fstatfs and sys/vfs.h work.
4251 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4253         tempname: do not depend on secure_getenv
4254         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
4255         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
4256         * modules/tempname (Depends-on): Remove secure_getenv.
4258 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
4260         extensions: add _OPENBSD_SOURCE
4261         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
4263 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
4264             Bruno Haible  <bruno@clisp.org>
4266         manywarnings: Add support for C++.
4267         * build-aux/g++-warning.spec: New file.
4268         * m4/manywarnings-c++.m4: New file.
4269         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
4270         redirects to manywarnings-c++.m4.
4271         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
4273 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4275         git-version-gen: another fix for tags with "-"
4276         * build-aux/git-version-gen: Improve fix for tags containing "-".
4277         Suggested by Markus Armbruster in:
4278         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
4280 2017-08-06  Bruno Haible  <bruno@clisp.org>
4282         warnings, manywarnings: Add support for multiple languages, not just C.
4283         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
4284         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
4285         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
4286         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
4287         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
4288         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
4289         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
4290         of the current language. If C++ is the current language, modify
4291         WARN_CXXFLAGS instead of WARN_CFLAGS.
4292         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
4293         gl_MANYWARN_ALL_GCC.
4294         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
4296 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
4298         git-version-gen: Fix for tags containing '-'
4300         Really old versions of git-describe (before v1.5.0, Feb 2007)
4301         don't have the number of commits in their long format output,
4302         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
4303         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
4304         recognizes both patterns, and normalizes the old format to the new one.
4306         Unfortunately, this normalization code gets confused when the tag
4307         contains '-'.  Reproducer:
4309             $ git-tag -m test v0.2-rc1
4310             $ build-aux/git-version-gen .tarball-version; echo
4311             build-aux/git-version-gen: WARNING: git rev-list failed
4312             UNKNOWN
4314         We take exact tag "v0.2-rc1" for the old format, extract the presumed
4315         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
4316         commits since tha tag.  Fails, because tag "v0.2" does not exist.
4318         * git-version-gen: We could perhaps drop support for versions from
4319         more than a decade ago.  But tightening the pattern match is easy
4320         enough, so do that.  Still breaks when you use version tags ending in
4321         something matching -g????, but you arguably get what you deserve then.
4323 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
4325         valgrind-tests: use ls, and cache
4326         * m4/valgrind-tests.m4: Test ls, not bash.
4327         Problem reported by Reuben Thomas.
4328         Also, cache the result so that it can be overridden.
4330 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4332         manywarnings: port to 64-bit GCC builds of Emacs
4333         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
4334         object size rather than hardwiring 2147483647.  This is needed to
4335         build GNU Emacs, which has one conditional (and used
4336         only-in-theory) call to malloc with a literal greater than
4337         2147483647.
4339 2017-08-04  Bruno Haible  <bruno@clisp.org>
4341         Relax the license of some modules with no runtime code.
4342         * modules/std-gnu11 (License): Set to 'unlimited'.
4343         * modules/c99 (License): Likewise.
4344         Reported by Reuben Thomas <rrt@sc3d.org>.
4345         * modules/d-ino (License): Set to 'LGPL'.
4346         * modules/host-os (License): Likewise.
4347         * modules/longlong (License): Likewise.
4349 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
4351         renameat2: port to RHEL 7 + NFS
4352         * lib/renameat2.c (renameat2) [SYS_renameat2]:
4353         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
4354         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
4356 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4358         renameat2: port to non-renameat platforms
4359         Problem reported for MSVC-2015 by Gisle Vanem in:
4360         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
4361         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
4362         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
4364 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4366         manywarnings: port to 32-bit GCC bug
4367         Problem reported by Pino Toscano in:
4368         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
4369         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
4370         not 2**63 - 1, to work around the following GCC bug:
4371         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
4373 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4375         backupfile: new function to validate backup suffix
4376         * lib/backupfile.c (set_simple_backup_suffix): New function.
4377         (backupfile_internal): Use it.
4379         canonicalize: fix EOVERFLOW commentary
4380         Problem reported by Bruno Haible in:
4381         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
4382         * lib/canonicalize.c (canonicalize_filename_mode):
4383         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
4385         Don't interpret EOVERFLOW to mean nonexistence
4386         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
4387         may be EOVERFLOW; this is likely more useful than reporting the
4388         stat errno.
4389         * lib/glob.c (link_stat): Rename from link_exists2_p and
4390         return -1/0 instead of 0/1.  Caller changed.
4391         * lib/glob.c (link_exists_p):
4392         * lib/renameat2.c (rename_noreplace, renameat2):
4393         * lib/tempname.c (try_nocreate):
4394         If errno == EOVERFLOW then the directory entry exists, so do not
4395         act as if it does not exist.
4397         backup-rename: new module
4398         It is like backupfile, except it avoids some race conditions,
4399         and it does not output to stderr or exit.
4400         * MODULES.html.sh: Add backup-rename.
4401         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
4402         * modules/backup-rename: New files.
4403         * lib/backupfile.c: Turn this into an internals file, which
4404         contains code common to backupfile and backup_rename.  Include
4405         backupfile-internal.h instead of backupfile.h.  Do not include
4406         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
4407         renameat2.h and fcntl.h.
4408         (BACKUP_NOMEM): New constant.
4409         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
4410         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
4411         (backupfile_internal): Rename from find_backup_file_name.
4412         Support new arg RENAME.
4413         (backup_args, backup_types, get_version, xget_version):
4414         Move to lib/backup-find.c.
4415         * lib/backupfile.h (backup_file_rename): New decl.
4416         * modules/backupfile (Files): Add lib/backup-internal.h,
4417         lib/backup-find.c.
4418         (Depends-on): Add dirfd, fcntl, renameat2.
4419         (lib_SOURCES): Add backup-find.c.
4421         renameat2: port better to older Solaris
4422         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
4423         Add goto to use a label, to silence picky compilers.
4425         fts-tests: port to gcc -Wwrite-strings
4426         * tests/test-fts.c (base, base_d): New static vars.
4427         (argv, remove_tree, main): Use them.
4429 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4431         relocatable-lib{,-lgpl}: improve documentation
4432         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
4433         Various other updates.
4435 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
4436             Bruno Haible  <bruno@clisp.org>
4438         relocatable-lib{,-lgpl}: add Valgrind suppressions
4439         * lib/relocatable.valgrind: New file.
4440         * modules/relocatable-lib (Files): Add relocatable.valgrind.
4441         * modules/relocatable-lib-lgpl: Likewise.
4443 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4445         relocatable: Make the license on the sources the GPL.
4446         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
4447         LGPL, which was a special case so that the relocatable source files
4448         could be used without gnulib-tool, to GPL. They can still be used under
4449         the LGPL, using the --lgpl option to gnulib-tool.
4451 2017-07-30  Bruno Haible  <bruno@clisp.org>
4453         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
4454         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
4455         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
4456         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
4457         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
4459 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4461         faccessat: document AT_SYMLINK_NOFOLLOW issue
4462         * doc/posix-functions/faccessat.texi: Modernize platform list.
4463         Document AT_SYMLINK_NOFOLLOW limitation.
4465         renameat2: port to Solaris 10
4466         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
4467         with AT_SYMLINK_NOFOLLOW (which is not portable).
4468         (renameat): Undef before using, to avoid endless recursion when
4469         the replacement renameat calls renameat2 which calls the
4470         replacement renameat.
4471         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
4472         * modules/renameat2 (Depends-on): Remove faccessat.
4473         * modules/renameat-tests (test_renameat_LDADD):
4474         * modules/renameat2-tests (test_renameat2_LDADD):
4475         Remove $(LIB_EACCESS).
4477         renameat2: new module
4478         Although the Linux syscall renameat2 is not in glibc (yet?), it is
4479         useful to have access to its RENAME_NOREPLACE flag.
4480         * MODULES.html.sh (func_all_modules): Add renameat2.
4481         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
4482         * modules/renameat2-tests, tests/test-renameat2.c: New files.
4483         * lib/renameat.c (renameat): Move most of the implementation
4484         to renameat2, and just call renameat2.
4485         * modules/renameat (Files): Remove lib/at-func2.c.
4486         (Depends-on): Depend only on renameat2.
4487         (Include): Remove <fcntl.h>.
4488         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
4489         since renameat (via renameat2) might use faccessat.
4491 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
4493         vc-list-files: Adjust the script to support git worktrees
4494         * build-aux/vc-list-files: Require existence, not directory.
4496 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4498         doc: bring MODULES.html.sh up to date
4499         Somehow a few months ago we stopped updating MODULES.html.sh.
4500         I don’t recall explicitly deciding this, so I updated it now.
4501         Alternatively I suppose we could remove it.
4502         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
4503         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
4504         truncate, utime, utime-h, windows-stat-inodes,
4505         windows-stat-override, windows-stat-timespec, year2038.  Sort.
4507 2017-07-26  Jim Meyering  <meyering@fb.com>
4509         fprintftime: fix build-break caused by recent renaming
4510         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
4511         "strftime.c".
4512         * modules/fprintftime: Depend directly on nstrftime.
4514 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4516         regex: work with GCC7's -Werror=implicit-fallthrough=
4517         * lib/regex_internal.h (FALLTHROUGH): New macro.
4518         * lib/regcomp.c (peek_token_bracket, parse_expression):
4519         * lib/regexec.c (check_node_accept): Use it.
4521 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4523         fts: simplify fts_build
4524         * lib/fts.c (fts_build): Simplify, and be lazier about
4525         calling leaf_optimization.
4527         fts: three levels of leaf optimization
4528         * lib/fts.c (enum leaf_optimization): New type with three values.
4529         (S_MAGIC_AFS): New macro.  Sort them.
4530         (leaf_optimization): Rename from leaf_optimization_applies, and
4531         return enum leaf_optimization instead of bool.  All uses changed.
4532         Add cases for unknown type and for AFS.
4533         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
4535         fts: cache dirent_inode_sort_may_be_useful too
4536         * lib/fts.c (struct dev_type): New struct.
4537         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
4538         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
4539         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
4540         Now takes FTSENT const *, not int.  All uses changed.  Use
4541         filesystem_type to cache.
4542         (link_count_optimize_ok): Remove.  Caller changed to use
4543         leaf_optimization_applies, which now uses shared cache.
4545         fts: introduce MIN_DIR_NLINK
4546         * lib/fts.c (MIN_DIR_NLINK): New constant.
4547         Use it instead of 2, whenever we are talking about link counts.
4549         fts: nlink_t signedness fixups
4550         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
4551         so that root need not be a special case later.
4552         (fts_read): Remove now-redundant test for fts_level.
4553         Do not assume that nlink_t is signed.
4554         (fts_build): Remove useless decrement of nlinks.
4555         (fts_stat): Avoid unlikely signed integer overflow later, if
4556         nlink_t is signed.
4558         fts-tests: new module
4559         * modules/fts-tests, tests/test-fts.c: New files.
4561 2017-07-23  Bruno Haible  <bruno@clisp.org>
4563         Rename module 'strftime' to 'nstrftime'.
4564         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
4565         * lib/nstrftime.c: Renamed from lib/strftime.c.
4566         * modules/nstrftime: Renamed from modules/strftime.
4567         (Files, Makefile.am): Update.
4568         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
4569         Fix comment.
4570         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
4571         (Files, Makefile.am): Update.
4572         * modules/strftime: New file, an obsolete indirection.
4573         * doc/posix-functions/strftime.texi: Update reference.
4574         * config/srclist.txt: Update info.
4575         * NEWS: Mention the change.
4577 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
4579         malloca: Silence a warning from clang's memory sanitizer.
4580         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
4581         (freea): Use it.
4583 2017-07-18  Bruno Haible  <bruno@clisp.org>
4585         host-cpu-c-abi: Fix detection of MIPS ABI.
4586         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
4587         ABI, not the CPU instruction set.
4589 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4591         explicit_bzero: new module
4592         The explicit_bzero function has been added to glibc.
4593         This module is intended to supports its use in GNU programs.
4594         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
4595         * m4/explicit_bzero.m4, modules/explicit_bzero:
4596         New files.
4597         * doc/gnulib.texi (Glibc string.h): Link to new doc.
4598         * lib/string.in.h (explicit_bzero): Declare.
4599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
4600         * modules/string (string.h): Substitute its vars.
4602 2017-07-16  Bruno Haible  <bruno@clisp.org>
4604         threadlib: Support static linking.
4605         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
4606         set gl_cv_have_weak to 'no'.
4608 2017-07-16  Bruno Haible  <bruno@clisp.org>
4610         unicase/locale-language: Fix link dependencies.
4611         * modules/unicase/locale-language (Link): New section.
4612         * modules/unicase/locale-language-tests (Makefile.am): Link
4613         test-locale-language program with $(LIBTHREAD).
4615 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4617         sys_socket: Add support for OpenVMS.
4618         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
4619         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
4621 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4623         sys_resource: Add support for OpenVMS.
4624         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
4625         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
4627 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4628             Bruno Haible  <bruno@clisp.org>
4630         math: Add support for OpenVMS.
4631         * lib/math.in.h [__VMS]: Include <fp.h>.
4632         * doc/posix-headers/math.texi: Mention OpenVMS issues.
4634 2017-07-15  Bruno Haible  <bruno@clisp.org>
4636         getdtablesize: Add minimal support for OpenVMS.
4637         Reported by John E. Malmberg <wb8tyw@qsl.net>.
4638         * modules/getdtablesize (Description): Fix.
4639         * lib/getdtablesize.c: Fix comment.
4640         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
4641         getdtablesize() function, even though the test fails.
4642         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
4643         limitation on OpenVMS.
4645 2017-07-13  Bruno Haible  <bruno@clisp.org>
4647         Revisit cross-compilation guesses.
4648         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
4650 2017-07-13  Bruno Haible  <bruno@clisp.org>
4652         Improve cross-compilation guesses for native Windows.
4653         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
4654         Windows.
4655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
4656         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
4657         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4658         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
4659         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
4660         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4661         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4662         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4664         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4665         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4666         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
4667         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4668         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4669         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
4670         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4671         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
4672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4673         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4674         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
4675         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4676         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4677         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
4678         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
4679         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
4680         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4681         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4682         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4684         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
4685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4687         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4688         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
4689         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
4690         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
4691         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4692         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4693         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4694         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4697         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
4698         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
4699         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4700         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
4701         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
4702         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
4703         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4704         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
4705         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4706         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
4707         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
4708         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
4709         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
4710         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
4711         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
4712         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4713         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
4714         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4716         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4717         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4718         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4719         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4721         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4722         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4723         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
4724         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
4725         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4726         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4727         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4728         * m4/regex.m4 (gl_REGEX): Likewise.
4729         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4730         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
4731         gl_FUNC_REMAINDERF_WORKS): Likewise.
4732         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
4733         gl_FUNC_REMAINDERL_WORKS): Likewise.
4734         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4735         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4736         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4737         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4739         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4740         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4741         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4742         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
4743         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4744         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
4745         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4746         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4747         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4748         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4749         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4750         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4752         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4753         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4754         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4755         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4756         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4757         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4758         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4759         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4760         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4761         Likewise.
4762         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4763         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
4764         Windows. Enable also on Autoconf 2.70.
4765         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4766         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4767         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4768         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
4769         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4770         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
4771         for native Windows.
4772         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4773         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
4775 2017-07-13  Bruno Haible  <bruno@clisp.org>
4777         Improve cross-compilation guesses for native Windows.
4778         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
4779         Windows.
4780         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
4781         memchr.m4.
4782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4784 2017-07-13  Bruno Haible  <bruno@clisp.org>
4786         Improve cross-compilation guesses for native Windows.
4787         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
4788         native Windows.
4789         (gl_FUNC_FFLUSH): Update accordingly.
4790         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
4791         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4793 2017-07-11  Bruno Haible  <bruno@clisp.org>
4795         More systematic m4 quoting and indentation.
4796         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
4797         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4798         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4800         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4801         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4802         gl_WINSIZE_IN_PTEM): Likewise.
4803         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
4804         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4805         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4806         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
4807         Correct indentation.
4808         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4810         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4811         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4812         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4813         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4815 2017-07-10  Bruno Haible  <bruno@clisp.org>
4817         round, roundf: Avoid compiler warning in configure test.
4818         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
4819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4821 2017-07-10  Bruno Haible  <bruno@clisp.org>
4823         getlogin tests: Avoid #ifdefs when sharing code between modules.
4824         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
4825         * modules/getlogin-tests (Files): Likewise. Remove
4826         tests/test-getlogin_r.c.
4827         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
4828         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
4829         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
4830         getlogin().
4832 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4834         getlogin: don’t assume one name per uid
4835         Problem reported by Wolfgang F. Muthmann (Bug#27640).
4836         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
4837         (ttyname): Remove test.
4838         * modules/getlogin_r-tests (ttyname): Remove test.
4839         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
4840         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
4841         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
4842         getlogin rather than getlogin_r.  This avoids code duplication.
4843         (main): Use isatty and fstat rather than ttyname and stat.
4844         Use getpwnam instead of getpwuid, to be portable to test platforms
4845         that have multiple login names for the same uid.
4847 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
4848             Bruno Haible  <bruno@clisp.org>
4850         glob: Fix more memory leaks.
4851         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4852         returning.
4853         Reported by Tim Rühsen.
4855 2017-07-10  Bruno Haible  <bruno@clisp.org>
4857         Make sure $host and $host_os are defined when used.
4858         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4859         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4860         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4861         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4862         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4863         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4864         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4865         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4866         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4867         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4868         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4869         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4870         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4871         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4872         m4_ifdef block.
4874 2017-07-09  Bruno Haible  <bruno@clisp.org>
4876         *printf: Fix cross-compilation guess for Solaris.
4877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4878         2010-12-21.
4880 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4881             Bruno Haible  <bruno@clisp.org>
4883         vasnprintf: port to macOS 10.13
4884         Problem reported by comex in:
4885         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4886         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4888 2017-07-06  Bruno Haible  <bruno@clisp.org>
4890         imaxdiv tests: Fix logic.
4891         * tests/test-imaxdiv.c (main): Use == instead of =.
4892         Reported by Coverity.
4894 2017-07-06  Bruno Haible  <bruno@clisp.org>
4896         uninorm/filter: Fix use-after-free bug.
4897         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4898         sortbuf == filter->sortbuf invariant.
4899         Reported by Coverity.
4901 2017-07-06  Bruno Haible  <bruno@clisp.org>
4903         glob: Fix more memory leaks.
4904         * lib/glob.c (glob): Free dirname before returning.
4905         Reported by Coverity and Tim Rühsen.
4907 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4909         parse-datetime: fix uninit var bug
4910         Reported by Bruno Haible in:
4911         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4912         * lib/parse-datetime.y (parse_datetime2): Do not use
4913         uninitialized.
4915 2017-07-05  Bruno Haible  <bruno@clisp.org>
4917         doc: Update for MSVC 14.
4918         * doc/posix-headers/*.texi: Add info about MSVC 14.
4919         * doc/posix-functions/*.texi: Likewise.
4920         * doc/pastposix-functions/*.texi: Likewise.
4921         * doc/glibc-headers/*.texi: Likewise.
4922         * doc/glibc-functions/*.texi: Likewise.
4924 2017-07-05  Bruno Haible  <bruno@clisp.org>
4926         sched: Fix build failure on native Windows (regression from 2017-06-19).
4927         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4929 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4931         stdioext: Port to OpenVMS.
4932         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4933         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4934         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4935         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4936         * lib/fpurge.c (fpurge): Likewise.
4937         * lib/freadable.c (freadable): Likewise.
4938         * lib/freadahead.c (freadahead): Likewise.
4939         * lib/freading.c (freading): Likewise.
4940         * lib/freadptr.c (freadptr): Likewise.
4941         * lib/freadseek.c (freadseek): Likewise.
4942         * lib/fseeko.c (fseeko): Likewise.
4943         * lib/fseterr.c (fseterr): Likewise.
4944         * lib/fwritable.c (fwriteable): Likewise.
4945         * lib/fwriting.c (fwriting): Likewise.
4947 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4949         glob: Declare variables at the very start of their scope.
4950         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4951         its separate scope, so the functions will compile on Haiku.
4953 2017-07-01  Bruno Haible  <bruno@clisp.org>
4955         logbl: Work around a glibc bug on PowerPC64LE.
4956         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4957         numbers.
4958         * doc/posix-functions/logbl.texi: Update.
4960 2017-06-29  Bruno Haible  <bruno@clisp.org>
4962         stat, fstat: Compile stat-w32.c only on platforms that need it.
4963         Suggested by Paul Eggert.
4964         * modules/stat (configure.ac): Request stat-w32.o only on native
4965         Windows.
4966         * modules/fstat (configure.ac): Likewise.
4968 2017-06-25  Bruno Haible  <bruno@clisp.org>
4970         stat: Improve last change.
4971         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4973 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4975         stat: port to xlc 12.01
4976         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4977         12.01 complains "Compilation unit is empty."
4979 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4981         xalloc-oversized: port to icc
4982         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4983         __builtin_mul_overflow if ICC is defined, as this results in
4984         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4985         20170213.
4987 2017-06-19  Bruno Haible  <bruno@clisp.org>
4989         classpath: Avoid including config.h twice, as it produces warnings.
4990         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4991         * lib/classpath.h: Conditionalize the include of config.h.
4993 2017-06-19  Bruno Haible  <bruno@clisp.org>
4994             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4996         sched: Fix compilation failure on OpenVMS.
4997         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4998         test whether <pthread.h> exists and defines struct sched_param.
4999         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
5001 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
5003         diffseq: port to GCC 7 with --enable-gcc-warnings
5004         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
5005         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
5006         not complain about big_snake being defined but not used.
5008 2017-06-15  Bruno Haible  <bruno@clisp.org>
5010         gettext-h: Update theoretical condition for use of variable size arrays.
5011         Reported by Paul Eggert.
5012         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
5013         to include the theoretical condition for availability of variable size
5014         arrays, if we could trust the value of __STDC_VERSION__.
5016 2017-06-12  Bruno Haible  <bruno@clisp.org>
5018         Relicense some modules under LGPLv2+.
5019         Daiki Ueno's approval is in
5020         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
5021         * modules/uniwidth/base (License): Change to LGPLv2+.
5022         * modules/uniwidth/width (License): Likewise.
5024 2017-06-11  Bruno Haible  <bruno@clisp.org>
5026         localename: Fix test failure on DragonFly BSD.
5027         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
5028         like FreeBSD.
5030 2017-06-11  Bruno Haible  <bruno@clisp.org>
5032         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
5033         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
5034         * lib/float.in.h: Likewise.
5035         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
5037 2017-06-11  Bruno Haible  <bruno@clisp.org>
5039         gnulib-tool: Clean up after autotools.
5040         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
5041         useless directory left over by the Autotools.
5043 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
5045         getopt-posix: port to glibc 2.25.90
5046         Problem reported by Daniel P. Berrange in:
5047         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
5048         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
5049         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
5050         #undef if __GETOPT_PREFIX is defined.
5052 2017-06-11  Bruno Haible  <bruno@clisp.org>
5054         strtod-obsolete: Fix license.
5055         * modules/strtod-obsolete (License): Change to LGPL.
5057 2017-06-10  Jim Meyering  <meyering@fb.com>
5059         maint: update to work with GCC7's -Werror=implicit-fallthrough=
5060         * lib/savewd.c (FALLTHROUGH): Define.
5061         (savewd_save, savewd_restore): Use this, rather than a comment,
5062         whenever one switch case falls through into the next.
5064 2017-06-08  Bruno Haible  <bruno@clisp.org>
5066         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
5067         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
5068         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
5069         case.
5071 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5073         doc: remove robots, add prereqs
5074         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
5075         builds.  Simon's robot site does not seem to be up, so remove
5076         mentions of it for now.
5078 2017-06-08  Bruno Haible  <bruno@clisp.org>
5080         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
5081         * gnulib-tool (func_symlink_target): New function, extracted from
5082         func_symlink.
5083         (func_symlink, func_symlink_if_changed): Use it.
5085 2017-06-08  Bruno Haible  <bruno@clisp.org>
5087         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
5088         * gnulib-tool (func_ln_s): Determine cp_src correctly.
5090 2017-06-07  Bruno Haible  <bruno@clisp.org>
5092         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
5093         Reported by John E. Malmberg <wb8tyw@gmail.com> in
5094         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
5095         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
5096         override, pass 2 arguments to getcwd, not 3.
5098 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5100         same-inode: port better to VMS 8.2 and later
5101         Problem reported by John E. Malmberg in:
5102         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
5103         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
5104         Use the usual POSIX definition.
5105         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
5107 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5109         error: fix POSIX violation for va_end
5110         Problem reported by Bruno Haible in:
5111         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
5112         * lib/error.c (error_tail): Do not call va_end here.
5113         (error, error_at_line): Call it here instead.
5115 2017-05-28  Bruno Haible  <bruno@clisp.org>
5117         c-strtod: Make it usable in C++ mode.
5118         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
5120 2017-05-25  Jim Meyering  <meyering@fb.com>
5122         quotearg: fix compilation failure due to FALLTHROUGH misuse
5123         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
5124         macro back to /* fall through */ comment.  The macro can apply only
5125         to a following case statement.  Reported by Assaf Gordon.
5127 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5129         intprops: port to recent icc
5130         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
5131         but does not support __builtin_add_overflow etc.
5132         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
5133         Define to 0.
5135 2017-05-23  Karl Berry  <karl@freefriends.org>
5137         * config/srclist.txt (iconv.m4): sync broken, comment out
5138         until (hopefully) the next gettext release.
5140 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
5142         Remove repeated words in comments.
5144 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
5146         fallthrough: reinstate a FALLTHROUGH instance in quotearg
5147         quotearg.c: Reinstate this instance which is significant
5148         when the if branch is not taken.
5150 2017-05-21  Bruno Haible  <bruno@clisp.org>
5152         gnulib-tool: Add options to create hard links.
5153         * gnulib-tool (func_usage): Document options --hardlink,
5154         --local-hardlink, --more-hardlinks.
5155         (func_symlink): Renamed from func_ln.
5156         (func_symlink_if_changed): Renamed from func_ln_if_changed.
5157         (func_hardlink): New function.
5158         (copymode, lcopymode): New variables.
5159         (symbolic, lsymbolic): Remove variables.
5160         (Options): Implement options --hardlink, --local-hardlink,
5161         --more-hardlinks.
5162         (func_should_link): Renamed from func_should_symlink. Set copyaction.
5163         (func_add_file, func_update_file): Update invocation of
5164         func_should_link. Invoke func_hardlink when appropriate.
5165         (func_import): Update comments.
5166         (func_create_testdir): Update invocation of func_should_link. Invoke
5167         func_hardlink when appropriate.
5168         Finally, invoke 'git update-index --refresh' to mitigate the effects of
5169         the hard links on git.
5171 2017-05-20  Bruno Haible  <bruno@clisp.org>
5173         argp: Simplify bit manipulation.
5174         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
5175         on a signed integer type.
5177 2017-05-20  Bruno Haible  <bruno@clisp.org>
5179         Avoid wrong configure results with gcc -fsanitize=address.
5180         This completes the work done on 2016-02-06 on this topic.
5181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
5182         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5184         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5185         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
5186         returning.
5187         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
5189         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5190         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5191         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5192         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
5194         free allocated memory before returning.
5195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5196         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
5197         objects before returning.
5198         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
5199         returning.
5201 2017-05-20  Bruno Haible  <bruno@clisp.org>
5203         gnulib-tool: Don't create hard links between gnulib and its testdirs.
5204         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
5206 2017-05-20  Bruno Haible  <bruno@clisp.org>
5208         argp, tsearch tests: Fix file list.
5209         * modules/argp-tests (Files): Add tests/macros.h.
5210         * modules/tsearch-tests (Files): Likewise.
5212 2017-05-20  Bruno Haible  <bruno@clisp.org>
5214         getopt-posix tests: Remove redundant include.
5215         * tests/test-getopt.h: Don't include "macros.h". It's already included
5216         by tests/test-getopt-main.h.
5218 2017-05-19  Jim Meyering  <meyering@fb.com>
5220         dfa: two small simplifications
5221         * lib/dfa.c (build_state): Avoid repeating longer expressions.
5223 2017-05-18  Jim Meyering  <meyering@fb.com>
5225         fallthrough: update for GCC 7/8
5226         * lib/quotearg.c (FALLTHROUGH): New macro.
5227         Use it whenever one switch case falls through into the next,
5228         replacing "/* Fall through */" comments.  This exposed one
5229         instance of an unwarranted "fall through" comment: unwarranted
5230         because it preceded a "goto" label not a case statement.
5231         * lib/freopen-safer.c (freopen_safer): Likewise.
5232         * lib/fts.c (leaf_optimization_applies): Likewise.
5233         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
5234         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
5235         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
5236         tests/macros.h for the definition.
5237         * tests/test-argp.c (group1_parser): Likewise.
5238         * tests/test-getopt.h (getopt_loop): Likewise.
5240 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5242         argp: fix shift bug
5243         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
5244         behavior on shift overflow, caught by gcc -fsanitize=undefined.
5246         argp: fix pointer-subtraction bug
5247         * lib/argp-help.c (hol_append): Don’t subtract pointers to
5248         different arrays, as this can run afoul of -fcheck-pointer-bounds.
5249         See the thread containing Bruno Haible’s report in:
5250         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
5252 2017-05-19  Bruno Haible  <bruno@clisp.org>
5254         printf-posix tests: Avoid test failure with "gcc --coverage".
5255         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5256         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
5257         than 5000000.
5258         * tests/test-fprintf-posix2.c (main): Likewise.
5260 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5262         closeout: don’t close stderr when sanitizing
5263         * NEWS: Document this.
5264         * lib/closeout.c (__has_feature): New macro, if not already defined.
5265         (SANITIZE_ADDRESS): New constant.
5266         (close_stdout): Don’t close stderr if sanitizing addresses.
5268 2017-05-19  Bruno Haible  <bruno@clisp.org>
5270         get-rusage-data tests: Avoid failure on Linux/glibc.
5271         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
5272         on glibc systems.
5274 2017-05-18  Bruno Haible  <bruno@clisp.org>
5276         localename: Include necessary header files on Cygwin.
5277         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
5278         where NL_LOCALE_NAME is defined.
5280 2017-05-18  Bruno Haible  <bruno@clisp.org>
5282         gettext: Update macros from gettext git.
5283         * m4/intldir.m4: Require Autoconf >= 2.60.
5284         * m4/progtest.m4: Fix typos in copyright notice.
5286 2017-05-18  Bruno Haible  <bruno@clisp.org>
5288         copy-file tests: Fix link error (regression from 2017-05-01).
5289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5290         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
5291         $(LIB_CLOCK_GETTIME).
5293 2017-05-18  Bruno Haible  <bruno@clisp.org>
5295         unicase/special-casing: Fix incompatibility with gperf-3.0.4
5296         (regression from 2017-02-13).
5297         * lib/unicase/special-casing.in.h: Renamed from
5298         lib/unicase/special-casing.h.
5299         * modules/unicase/special-casing (Files): Add
5300         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
5301         (Makefile.am): Add rule for generating unicase/special-casing.h.
5302         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
5303         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
5304         not "special-casing.h".
5305         * lib/unicase/u*.c: Likewise.
5307 2017-05-17  Bruno Haible  <bruno@clisp.org>
5309         README: Don't ask people to read a TeXinfo file.
5310         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5311         * README: Tell people how to read the HTML formatted manual.
5313 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5315         parse-datetime: Fix memleak
5316         * lib/parse-datetime.y (parse_datetime2): Cleanup on
5317         localtime_rz() failure.
5319 2017-05-16  Bruno Haible  <bruno@clisp.org>
5321         javacomp: Fix handle leak.
5322         Found by Coverity.
5323         * lib/javacomp.c (get_classfile_version): Close fd before returning.
5325 2017-05-16  Bruno Haible  <bruno@clisp.org>
5327         relocate: Make it easier to reclaim allocated memory.
5328         * lib/relocatable.h (relocate2): New declaration/macro.
5329         * lib/relocatable.c (relocate2): New function.
5330         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
5331         relocate2 function.
5332         * lib/localcharset.c (relocate2): Define fallback.
5333         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
5334         allocated memory.
5335         * lib/javaversion.c (relocate2): Define fallback.
5336         (javaexec_version): Invoke relocate2 instead of relocate. Free the
5337         allocated memory.
5339 2017-05-16  Bruno Haible  <bruno@clisp.org>
5341         relocate: Simplify EMX specific code.
5342         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
5343         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
5345 2017-05-16  Bruno Haible  <bruno@clisp.org>
5347         sigpipe tests: Fix file list.
5348         * modules/sigpipe-tests (Files): Add tests/macros.h.
5350 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5352         manywarnings: update for GCC 7
5353         * build-aux/gcc-warning.spec:
5354         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
5355         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
5356         requires a non-comment fallthrough attribute.  This is a bit
5357         cleaner than the comment versions.
5358         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
5359         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
5360         Use it whenever one switch case falls through into the next.
5361         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
5362         Use FALLTHROUGH macro.
5364 2017-05-15  Bruno Haible  <bruno@clisp.org>
5366         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
5367         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
5368         @ALLOCA@, not @LTALLOCA@.
5370 2017-05-15  Bruno Haible  <bruno@clisp.org>
5372         sys_select: Avoid "was expanded before it was required" warning.
5373         * modules/sys_select (configure.ac): Require, not invoke,
5374         gl_HEADER_SYS_SELECT.
5376 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5378         gnulib-tool: improve GNU Make debugging
5379         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
5380         Report autoconf diagnostics when it fails, in the output makefile.
5382 2017-05-14  Bruno Haible  <bruno@clisp.org>
5384         stat-time tests: Improve comment.
5385         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
5387 2017-05-14  Bruno Haible  <bruno@clisp.org>
5389         same-inode: Adapt for windows-stat-inodes.
5390         * lib/same-inode.h: Include <sys/types.h>.
5391         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
5392         * modules/same-inode (Depends-on): Add sys_types.
5394 2017-05-14  Bruno Haible  <bruno@clisp.org>
5396         windows-stat-inodes: New module.
5397         * m4/windows-stat-inodes.m4: New file.
5398         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
5399         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
5400         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
5401         (_GL_WINDOWS_STAT_INODES): New macro.
5402         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
5403         (GetFileInformationByHandleExFunc): New variable.
5404         (initialize): Initialize it.
5405         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
5406         st_ino appropriately.
5407         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
5408         a fallback, because it does not provide st_dev and st_ino values.
5409         * modules/fstat (Depends-on): Add 'verify'.
5410         * modules/windows-stat-inodes: New file.
5411         * doc/windows-stat-inodes.texi: New file.
5412         * doc/gnulib.texi: Include it.
5413         * doc/posix-headers/sys_stat.texi: Mention the new module.
5415 2017-05-14  Bruno Haible  <bruno@clisp.org>
5417         stat-time tests: Workaround for native Windows.
5418         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
5419         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
5420         New variables.
5421         (initialize_filenames): New function.
5422         (main): Invoke it.
5423         (cleanup, prepare_test): Update.
5425 2017-05-14  Bruno Haible  <bruno@clisp.org>
5427         stat-time: Adapt for windows-stat-timespec.
5428         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
5429         entire st_ctim field.
5431 2017-05-13  Jim Meyering  <meyering@fb.com>
5433         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
5434         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
5435         file that uses the assume macro, claiming that verify.h is unused.
5437 2017-05-13  Bruno Haible  <bruno@clisp.org>
5439         Use symbolic values for _WIN32_WINNT.
5440         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
5441         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5443 2017-05-13  Bruno Haible  <bruno@clisp.org>
5445         year2038: New module.
5446         * m4/year2038.m4: New file.
5447         * modules/year2038: New file.
5448         * doc/year2038.texi: New file.
5449         * doc/gnulib.texi: Include it.
5451 2017-05-13  Bruno Haible  <bruno@clisp.org>
5453         largefile: Simplify.
5454         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
5455         of _GL_WINDOWS_64_BIT_ST_SIZE.
5457 2017-05-13  Bruno Haible  <bruno@clisp.org>
5459         largefile: Improve and document.
5460         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
5461         the mingw headers already define 'stat' appropriately.
5462         * modules/largefile (Description): Clarify.
5463         * doc/largefile.texi: New file.
5464         * doc/gnulib.texi: Include it.
5465         * doc/posix-headers/sys_types.texi: Update.
5467 2017-05-13  Bruno Haible  <bruno@clisp.org>
5469         truncate: New module.
5470         * lib/unistd.in.h (truncate): New declaration.
5471         * lib/truncate.c: New file.
5472         * m4/truncate.m4: New file.
5473         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
5474         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
5475         REPLACE_TRUNCATE.
5476         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
5477         HAVE_TRUNCATE, REPLACE_TRUNCATE.
5478         * modules/truncate: New file.
5479         * tests/test-unistd-c++.cc (truncate): Test signature.
5480         * doc/posix-functions/truncate.texi: Mention the new module.
5482         * tests/test-truncate.c: New file.
5483         * modules/truncate-tests: New file.
5485 2017-05-13  Bruno Haible  <bruno@clisp.org>
5487         windows-stat-timespec: New module.
5488         * modules/windows-stat-timespec: New file.
5489         * m4/windows-stat-timespec.m4: New file.
5490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
5491         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
5492         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
5493         fields st_atim, st_mtim, st_ctim.
5494         (st_atime, st_mtime, st_ctime): Define as macros.
5495         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
5496         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
5497         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
5498         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
5499         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
5500         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
5501         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5502         FILETIME to 'struct timespec', not 'time_t'.
5503         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5504         FILETIME to 'struct timespec', not 'time_t'.
5505         * lib/stat-time.h (STAT_TIMESPEC): Define also if
5506         _GL_WINDOWS_STAT_TIMESPEC.
5507         * doc/windows-stat-timespec.texi: New file.
5508         * doc/gnulib.texi: Include it.
5510 2017-05-13  Bruno Haible  <bruno@clisp.org>
5512         windows-stat-override: New module.
5513         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
5514         definition. Define GNULIB_defined_struct_stat.
5515         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
5516         link error if this symbol is used and the corresponding module is not
5517         in use.
5518         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
5519         GNULIB_OVERRIDES_STRUCT_STAT.
5520         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
5521         GNULIB_OVERRIDES_STRUCT_STAT.
5522         * modules/sys_stat (Makefile.am): Substitute
5523         GNULIB_OVERRIDES_STRUCT_STAT.
5524         * modules/windows-stat-override: New file.
5526 2017-05-13  Bruno Haible  <bruno@clisp.org>
5528         fstat: Fix module dependency conditions.
5529         * modules/fstat (Depends-on): Fix typo.
5531 2017-05-13  Bruno Haible  <bruno@clisp.org>
5533         stat, fstat: Complete removal of old native Windows code.
5534         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
5535         * lib/fstat.c: Likewise.
5536         * lib/stat-w32.c: Likewise.
5538 2017-05-13  Bruno Haible  <bruno@clisp.org>
5540         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
5541         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
5543 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5545         getopt-posix: port to mingw
5546         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
5547         Problem reported by Daniel P. Berrage in:
5548         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
5550 2017-05-11  Bruno Haible  <bruno@clisp.org>
5552         gettimeofday: Increase precision on mingw.
5553         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
5554         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
5555         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
5556         GetSystemTimePreciseAsFileTime based implementation always.
5557         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
5558         mingw.
5560 2017-05-11  Bruno Haible  <bruno@clisp.org>
5562         poll: Fix confusion between SOCKETs and FDs on native Windows.
5563         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
5564         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
5566 2017-05-11  Bruno Haible  <bruno@clisp.org>
5568         doc: Clarify doc about socket functions on native Windows.
5569         This reworks doc that was added on 2008-09-29.
5570         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
5571         clearer wording.
5572         * doc/posix-functions/accept.texi: Use clearer wording.
5573         * doc/posix-functions/bind.texi: Likewise.
5574         * doc/posix-functions/connect.texi: Likewise.
5575         * doc/posix-functions/getpeername.texi: Likewise.
5576         * doc/posix-functions/getsockname.texi: Likewise.
5577         * doc/posix-functions/getsockopt.texi: Likewise.
5578         * doc/posix-functions/ioctl.texi: Likewise.
5579         * doc/posix-functions/listen.texi: Likewise.
5580         * doc/posix-functions/recv.texi: Likewise.
5581         * doc/posix-functions/recvfrom.texi: Likewise.
5582         * doc/posix-functions/send.texi: Likewise.
5583         * doc/posix-functions/sendto.texi: Likewise.
5584         * doc/posix-functions/setsockopt.texi: Likewise.
5585         * doc/posix-functions/shutdown.texi: Likewise.
5586         * doc/posix-functions/socket.texi: Likewise.
5588 2017-05-10  Bruno Haible  <bruno@clisp.org>
5590         poll: Fix link error on native Windows.
5591         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
5593 2017-05-10  Bruno Haible  <bruno@clisp.org>
5595         time: Fix missing initialization of HAVE_TIMEZONE_T.
5596         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
5597         here...
5598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
5599         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
5600         gl_HEADER_SYS_TIME_H_DEFAULTS.
5601         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
5602         (configure.ac): Remove useless quoting.
5604 2017-05-10  Bruno Haible  <bruno@clisp.org>
5606         Implement a way to opt out from MSVC support, part 2.
5607         * modules/msvc-inval (Include): Document recommended idiom.
5608         * modules/msvc-nothrow (Include): Likewise.
5610         Implement a way to opt out from MSVC support.
5611         This is useful for Emacs.
5612         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
5613         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
5614         * lib/error.c: Likewise.
5615         * lib/fcntl.c: Likewise.
5616         * lib/flock.c: Likewise.
5617         * lib/fstat.c: Likewise.
5618         * lib/fsync.c: Likewise.
5619         * lib/ioctl.c: Likewise.
5620         * lib/isapipe.c: Likewise.
5621         * lib/lseek.c: Likewise.
5622         * lib/nonblocking.c: Likewise.
5623         * lib/poll.c: Likewise.
5624         * lib/select.c: Likewise.
5625         * lib/sockets.h: Likewise.
5626         * lib/sockets.c: Likewise.
5627         * lib/stdio-read.c: Likewise.
5628         * lib/stdio-write.c: Likewise.
5629         * lib/utimens.c: Likewise.
5630         * lib/w32sock.h: Likewise.
5631         * lib/w32spawn.h: Likewise.
5632         * tests/test-cloexec.c: Likewise.
5633         * tests/test-dup-safer.c: Likewise.
5634         * tests/test-dup2.c: Likewise.
5635         * tests/test-dup3.c: Likewise.
5636         * tests/test-fcntl.c: Likewise.
5637         * tests/test-pipe.c: Likewise.
5638         * tests/test-pipe2.c: Likewise.
5639         * lib/ftruncate.c: Likewise.
5640         (chsize_nothrow): Renamed from chsize.
5641         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
5642         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5643         * lib/close.c: Likewise.
5644         * lib/dup.c: Likewise.
5645         * lib/fclose.c: Likewise.
5646         * lib/raise.c: Likewise.
5647         * tests/test-fgetc.c: Likewise.
5648         * tests/test-fputc.c: Likewise.
5649         * tests/test-fread.c: Likewise.
5650         * tests/test-fwrite.c: Likewise.
5651         * lib/getdtablesize.c: Likewise.
5652         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
5653         * lib/isatty.c: Don't include msvc-inval.h if
5654         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5655         Include <io.h> as an alternative to msvc-nothrow.h.
5656         * lib/read.c: Likewise.
5657         * lib/write.c: Likewise.
5658         * lib/dup2.c: Likewise.
5659         (dup2_nothrow): New function.
5660         (ms_windows_dup2): Use it.
5661         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
5662         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
5663         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5664         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5665         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
5666         * m4/read.m4 (gl_FUNC_READ): Likewise.
5667         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
5668         * doc/windows-without-msvc.texi: New file.
5669         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
5670         section.
5672 2017-05-10  Bruno Haible  <bruno@clisp.org>
5674         wait-process: Adjust native Windows support.
5675         * lib/wait-process.c: Use the usual condition for recognizing a native
5676         Windows platform.
5678 2017-05-10  Bruno Haible  <bruno@clisp.org>
5680         doc: New chapter "Native Windows Support".
5681         * doc/gnulib.texi (Native Windows Support): New chapter.
5682         * doc/windows-libtool.texi: Small wording changes.
5683         * doc/windows-sockets.texi: Small wording and formatting changes.
5685 2017-05-10  Bruno Haible  <bruno@clisp.org>
5687         doc: Move section "Library version handling".
5688         * doc/gnulib.texi: Move section "Library version handling"
5689         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
5691 2017-05-10  Bruno Haible  <bruno@clisp.org>
5693         doc: Move section "Running self-tests under valgrind".
5694         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
5695         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
5697 2017-05-10  Bruno Haible  <bruno@clisp.org>
5699         doc: New chapter "Build Infrastructure Modules".
5700         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
5702 2017-05-10  Bruno Haible  <bruno@clisp.org>
5704         Prepare for reordering sections in the manual.
5705         * doc/gnulib.texi: Move several sections to separate files. Include
5706         these files.
5707         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
5708         * doc/obsolete.texi: Likewise.
5709         * doc/extra-tests.texi: Likewise.
5710         * doc/transversal.texi: Likewise.
5711         * doc/namespace.texi: Likewise.
5712         * doc/check-version.texi: Likewise.
5713         * doc/windows-sockets.texi: Likewise.
5714         * doc/windows-libtool.texi: Likewise.
5715         * doc/licenses-texi.texi: Likewise.
5716         * doc/build-automation.texi: Likewise.
5717         * doc/c-locale.texi: Likewise.
5719 2017-05-10  Bruno Haible  <bruno@clisp.org>
5721         Fix instructions how to update manual on www.gnu.org.
5722         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
5724 2017-05-09  Bruno Haible  <bruno@clisp.org>
5726         tzset: Expand comment about TZ problem on native Windows.
5727         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
5728         Paul Eggert.
5729         * lib/ctime.c (rpl_ctime): Likewise.
5730         * lib/localtime.c (rpl_localtime): Likewise.
5731         * lib/mktime.c (mktime): Likewise.
5732         * lib/strftime-fixes.c (rpl_strftime): Likewise.
5733         * lib/wcsftime.c (rpl_wcsftime): Likewise.
5735 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5737         intprops: don’t depend on ‘verify’
5738         Problem reported by Ævar Arnfjörð Bjarmason in:
5739         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
5740         * lib/intprops.h: Do not include verify.h, and move compile-time
5741         checks from here ...
5742         * tests/test-intprops.c (main): ... to here, if they’re not here
5743         already.  Check widths of other standard integer types.
5744         * modules/intprops (Depends-on): Remove ‘verify’.
5746 2017-05-07  Bruno Haible  <bruno@clisp.org>
5748         utimens: On native Windows, support 100ns resolution also if fd < 0.
5749         * lib/utime.in.h: Include <time.h>.
5750         (_gl_utimens_windows): New declaration.
5751         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
5752         (utime): Invoke it.
5753         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
5754         instead of utime.
5755         * modules/utime (Depends-on): Add 'time'.
5757 2017-05-07  Bruno Haible  <bruno@clisp.org>
5759         utimens: Improve error code on native Windows.
5760         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
5761         error code EACCES, not EINVAL.
5763 2017-05-07  Bruno Haible  <bruno@clisp.org>
5765         utime: Handle more Windows error codes.
5766         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
5767         Based on explanations by Billy O'Neal.
5769 2017-05-05  Bruno Haible  <bruno@clisp.org>
5771         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
5772         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
5773         union.
5774         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
5775         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
5776         value of cipher->IV.
5778 2017-05-05  Bruno Haible  <bruno@clisp.org>
5780         wctype-h-c++-tests: Update.
5781         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
5783 2017-05-05  Bruno Haible  <bruno@clisp.org>
5785         wchar-c++-tests: Update.
5786         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
5788 2017-05-05  Bruno Haible  <bruno@clisp.org>
5790         utime-h-c++-tests: New module.
5791         * tests/test-utime-h-c++.cc: New file.
5792         (utime): Declare, missing since 2017-04-30.
5793         * modules/utime-h-c++-tests: New file.
5795 2017-05-05  Bruno Haible  <bruno@clisp.org>
5797         unistd-c++-tests: Update.
5798         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
5799         (read): Declare, missing since 2011-04-15.
5800         (sethostname): Declare, missing since 2011-12-03.
5802 2017-05-05  Bruno Haible  <bruno@clisp.org>
5804         time-c++-tests: Update.
5805         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
5806         (localtime, gmtime): Declare, missing since 2017-04-30.
5807         (ctime): Declare, missing since 2017-04-30.
5808         (strftime): Declare, missing since 2017-04-30.
5809         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
5810         2015-07-24.
5812 2017-05-05  Bruno Haible  <bruno@clisp.org>
5814         sys_resource-c++-tests: New module.
5815         * tests/test-sys_resource-c++.cc: New file.
5816         (getrusage): Declare, missing since 2012-04-13.
5817         * modules/sys_resource-c++-tests: New file.
5819 2017-05-05  Bruno Haible  <bruno@clisp.org>
5821         strings-c++-tests: New module.
5822         * tests/test-strings-c++.cc: New file.
5823         (ffs): Declare, missing since 2011-07-12.
5824         * modules/strings-c++-tests: New file.
5826 2017-05-05  Bruno Haible  <bruno@clisp.org>
5828         string-c++-tests: Update.
5829         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
5830         (ffsll): Declare, missing since 2011-07-15.
5832 2017-05-05  Bruno Haible  <bruno@clisp.org>
5834         stdlib-c++-tests: Update.
5835         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
5836         2011-10-18.
5837         (ptsname_r): Declare, missing since 2011-11-07.
5838         (qsort_r): Declare, missing since 2014-08-29.
5839         (random, srandom, initstate, setstate): Declare, missing since
5840         2012-01-14.
5841         (secure_getenv): Declare, missing since 2013-02-05.
5843 2017-05-05  Bruno Haible  <bruno@clisp.org>
5845         stdio-c++-tests: Update.
5846         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
5848 2017-05-05  Bruno Haible  <bruno@clisp.org>
5850         signal-h-c++-tests: Update.
5851         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5853 2017-05-05  Bruno Haible  <bruno@clisp.org>
5855         math-c++-tests: Update.
5856         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5857         (fma): Declare, missing since 2011-10-17.
5858         (fmal): Declare, missing since 2011-10-17.
5860 2017-05-05  Bruno Haible  <bruno@clisp.org>
5862         locale-c++-tests: Update.
5863         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5864         2012-03-25.
5866 2017-05-05  Bruno Haible  <bruno@clisp.org>
5868         inttypes-c++-tests: New module.
5869         * tests/test-inttypes-c++.cc: New file.
5870         (strtoimax): Declare, missing since 2012-01-05.
5871         (strtoumax): Declare, missing since 2012-01-05.
5872         * modules/inttypes-c++-tests: New file.
5874 2017-05-05  Bruno Haible  <bruno@clisp.org>
5876         dirent-c++-tests: Update.
5877         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5878         (rewinddir): Declare, missing since 2011-09-13.
5879         (dirfd): Declare, missing since 2010-03-08.
5881 2017-05-04  Bruno Haible  <bruno@clisp.org>
5883         argp: Fix mistake in 2017-04-23 commit.
5884         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5885         assume that strerror_r returns 'int', not 'char *'.
5887 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5889         argp: Fix typo.
5890         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5892 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5894         utimens: port to Emacs + MS-Windows
5895         Skip the new MS-Windows-specific code if Emacs.
5896         * lib/utimens.c [EMACS_CONFIGUATION]:
5897         Avoid new MS-Windows-specific code.
5898         (USE_SETFILETIME): New macro.
5899         (fdutimens): Use it.
5901 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5903         tzset: update doc for TZ problems on MS-Windows
5904         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5905         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5906         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5907         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5908         * doc/posix-functions/wcsftime.texi:
5909         Mention some issues with TZ under MS-Windows.
5911 2017-05-01  Bruno Haible  <bruno@clisp.org>
5913         copy-file: Fix build error on mingw.
5914         * modules/copy-file (Depends-on): Add 'close'.
5916 2017-05-01  Bruno Haible  <bruno@clisp.org>
5918         tzset: Work around TZ problem on native Windows.
5919         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5920         Windows, set REPLACE_TZSET to 1.
5921         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5922         invoke '_tzset' instead of 'tzset'.
5923         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5925         * modules/time_rz (Depends-on): Add tzset.
5926         * lib/time_rz.c (tzset): Remove fallback definition.
5927         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5929 2017-05-01  Bruno Haible  <bruno@clisp.org>
5931         mktime: Fix dependencies.
5932         * modules/mktime (Depends-on): Add 'time'.
5934 2017-05-01  Bruno Haible  <bruno@clisp.org>
5936         New module 'localtime-buffer', split off from module 'gettimeofday'.
5937         * lib/localtime-buffer.h: New file.
5938         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5939         * lib/time.in.h (tzset): New declaration.
5940         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5941         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5942         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5943         moved to lib/localtime-buffer.c or lib/tzset.c.
5944         * m4/localtime-buffer.m4: New file.
5945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5946         HAVE_TZSET, REPLACE_TZSET.
5947         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5948         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5949         gl_LOCALTIME_BUFFER_NEEDED.
5950         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5951         since 2007-01-18.
5952         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5953         tzset.
5954         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5955         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5956         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5957         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5958         * modules/localtime-buffer: New file.
5959         * modules/time (Depends-on): Remove 'gettimeofday'.
5960         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5961         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5962         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5963         (Files): Add lib/tzset.c.
5964         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5965         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5966         gl_TIME_MODULE_INDICATOR.
5967         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5969 2017-05-01  Bruno Haible  <bruno@clisp.org>
5971         copy-file: Preserve sub-second time stamps.
5972         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5973         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5974         transport the time stamps from the original file to the destination
5975         file.
5976         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5977         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5978         utime-h.
5980 2017-05-01  Bruno Haible  <bruno@clisp.org>
5982         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5983         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5984         also on MSVC.
5985         Reported by Eli Zaretskii <eliz@gnu.org>.
5987 2017-05-01  Bruno Haible  <bruno@clisp.org>
5989         wchar: Fix compilation error with the original mingw.org mingw.
5990         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5991         <stddef.h> instead.
5992         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5993         gl_WCTYPE_H.
5994         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5995         gl_TYPE_WINT_T_PREREQ instead.
5996         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5997         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5998         Reported by Eli Zaretskii <eliz@gnu.org>.
6000 2017-04-30  Bruno Haible  <bruno@clisp.org>
6002         utimecmp: Add support for native Windows.
6003         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
6005 2017-04-30  Bruno Haible  <bruno@clisp.org>
6007         utimens: Add support for native Windows.
6008         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
6009         (fdutimens): Provide a native Windows implementation, like utime.c with
6010         added tv_nsec support.
6011         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
6012         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
6014 2017-04-30  Bruno Haible  <bruno@clisp.org>
6016         wcsftime: New module.
6017         * lib/wchar.in.h (wcsftime): New declaration.
6018         * lib/wcsftime.c: New file.
6019         * m4/wcsftime.m4: New file.
6020         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
6021         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
6022         HAVE_WCSFTIME, REPLACE_WCSFTIME.
6023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
6024         HAVE_WCSFTIME, REPLACE_WCSFTIME.
6025         * modules/wcsftime: New file.
6026         * doc/posix-functions/wcsftime.texi: Mention the new module.
6028 2017-04-30  Bruno Haible  <bruno@clisp.org>
6030         strftime-fixes: New module.
6031         * lib/time.in.h (strftime): New declaration.
6032         * lib/strftime-fixes.c: New file.
6033         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
6034         (gl_FUNC_STRFTIME): Remove macro.
6035         * m4/strftime-fixes.m4: New file.
6036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
6037         REPLACE_STRFTIME.
6038         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
6039         REPLACE_STRFTIME.
6040         * modules/strftime-fixes: New file.
6041         * doc/posix-functions/strftime.texi: Mention the new module.
6043 2017-04-30  Bruno Haible  <bruno@clisp.org>
6045         mktime: Work around TZ problem on native Windows.
6046         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
6047         from the native Windows workaround.
6048         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
6049         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
6050         'guessing no'.
6051         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
6052         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
6053         NEED_MKTIME_WINDOWS.
6054         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
6055         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
6056         NEED_MKTIME_INTERNAL.
6057         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
6058         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
6059         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
6060         not REPLACE_MKTIME.
6061         * doc/posix-functions/mktime.texi: Mention the native Windows
6062         workaround.
6064 2017-04-30  Bruno Haible  <bruno@clisp.org>
6066         localtime: New module.
6067         * lib/time.in.h (localtime): Declare also if requested by module
6068         'localtime'.
6069         * lib/localtime.c: New file.
6070         * m4/localtime.m4: New file.
6071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
6072         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
6073         * modules/localtime: New file.
6074         * doc/posix-functions/localtime.texi: Mention the new module.
6076 2017-04-30  Bruno Haible  <bruno@clisp.org>
6078         ctime: New module.
6079         * lib/time.in.h (ctime): New declaration.
6080         * lib/ctime.c: New file.
6081         * m4/ctime.m4: New file.
6082         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
6083         REPLACE_CTIME.
6084         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
6085         * modules/ctime: New file.
6086         * doc/posix-functions/ctime.texi: Mention the new module.
6088 2017-04-30  Bruno Haible  <bruno@clisp.org>
6090         gettimeofday: Provide higher resolution on native Windows.
6091         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
6092         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
6093         (initialize): Initialize it.
6094         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
6095         'struct timeval'. Don't use _ftime().
6096         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
6097         <sys/timeb.h> and _ftime.
6099 2017-04-30  Bruno Haible  <bruno@clisp.org>
6101         Document the problem with the Cygwin environment variable TZ.
6102         * doc/posix-functions/tzset.texi: Add note about TZ.
6103         * doc/posix-functions/ctime.texi: Likewise.
6104         * doc/posix-functions/localtime.texi: Likewise.
6105         * doc/posix-functions/mktime.texi: Likewise.
6106         * doc/posix-functions/strftime.texi: Likewise.
6107         * doc/posix-functions/wcsftime.texi: Likewise.
6108         * doc/pastposix-functions/ftime.texi: Likewise.
6110 2017-04-30  Bruno Haible  <bruno@clisp.org>
6112         utime-tests: New module.
6113         * tests/test-utime.c: New file, based on tests/test-utimens.h.
6114         * tests/test-utimens-common.h: Include <sys/stat.h>.
6115         * modules/utime-tests: New file.
6117 2017-04-29  Bruno Haible  <bruno@clisp.org>
6119         utime: New module.
6120         * lib/utime.in.h: Add comment for snippets.
6121         (utime): New declaration.
6122         * lib/utime.c: New file.
6123         * m4/utime.m4: New file.
6124         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
6125         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
6126         REPLACE_UTIME.
6127         * modules/utime-h (Depends-on): Add snippets.
6128         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
6129         Insert snippets.
6130         * modules/utime: New file.
6131         * doc/posix-functions/utime.texi: Mention the new module.
6133 2017-04-29  Bruno Haible  <bruno@clisp.org>
6135         utime-h: Modernize handling of 'struct utimbuf'.
6136         * lib/utime.in.h: Include next <utime.h> if it exists.
6137         (utimbuf): Define to _utimbuf on native Windows.
6138         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
6139         Set UTIME_H on native Windows.
6140         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
6141         * modules/utime-h (Depends-on): Add include_next.
6142         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
6143         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
6145         * lib/utimens.c (utimbuf): Remove fallback definition.
6146         * m4/utimens.m4 (gl_UTIMENS): Don't require
6147         gl_CHECK_TYPE_STRUCT_UTIMBUF.
6148         * m4/utimbuf.m4: Remove file.
6149         * modules/utimens (Files): Remove m4/utimbuf.m4.
6151 2017-04-29  Bruno Haible  <bruno@clisp.org>
6153         Make use of module 'utime-h'.
6154         * modules/copy-file (Depends-on): Add utime-h.
6155         * lib/copy-file.c: Assume that <utime.h> exists.
6156         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
6158         * modules/utimens (Depends-on): Add utime-h.
6159         * lib/utimens.c: Assume that <utime.h> exists.
6161 2017-04-29  Bruno Haible  <bruno@clisp.org>
6163         utime-h: New module.
6164         * m4/utime_h.m4: New file.
6165         * lib/utime.in.h: New file.
6166         * modules/utime-h: New file.
6167         * doc/posix-headers/utime.texi: Mention the new module.
6169         * tests/test-utime-h.c: New file.
6170         * modules/utime-h-tests: New file.
6172 2017-04-30  Bruno Haible  <bruno@clisp.org>
6174         Fix a few typos.
6175         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
6176         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
6177         * doc/posix-functions/fstat.texi: Fix a plural typo.
6178         * doc/posix-functions/stat.texi: Likewise.
6179         * m4/include_next.m4: Update comments.
6181 2017-04-29  Bruno Haible  <bruno@clisp.org>
6183         error: Fix mistake in 2017-04-23 commit.
6184         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
6185         assume that strerror_r returns 'int', not 'char *'.
6187 2017-04-29  Bruno Haible  <bruno@clisp.org>
6189         stat: Fix time_t values and other problems on native Windows platforms.
6190         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
6191         implementations of stat().
6192         * lib/stat.c: Include filename.h instead of dosname.h. Include
6193         malloca.h, stat-w32.h.
6194         (is_unc_root): New function.
6195         (rpl_stat): New implementation for native Windows. Remove
6196         REPLACE_FUNC_STAT_DIR code.
6197         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
6198         Don't define REPLACE_FUNC_STAT_DIR.
6199         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
6200         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6201         (Depends-on): Remove dosname. Add filename, malloca.
6202         (configure.ac): Also compile lib/stat-w32.c.
6204 2017-04-29  Bruno Haible  <bruno@clisp.org>
6206         fstat: Fix time_t values on native Windows platforms.
6207         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
6208         * lib/stat-w32.h: New file.
6209         * lib/stat-w32.c: New file.
6210         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
6211         stat-w32.h instead.
6212         (fstat_nothrow): Remove function.
6213         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
6214         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
6215         always.
6216         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
6217         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6218         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
6219         (configure.ac): Also compile lib/stat-w32.c.
6221 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6223         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
6224         Problem reported by Assaf Gordon and Gavin Smith in:
6225         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
6226         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
6227         #define this, too.
6229 2017-04-29  Bruno Haible  <bruno@clisp.org>
6231         strerror_r-posix: Fixes for MSVC 14.
6232         * lib/strerror_r.c: Include <stdarg.h>.
6233         (strerror_r): Provide error messages for errno values 100...140.
6234         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
6236 2017-04-28  Bruno Haible  <bruno@clisp.org>
6238         noreturn: New module.
6239         * lib/noreturn.h: New file.
6240         * modules/noreturn: New file.
6241         * tests/test-noreturn.c: New file.
6242         * modules/noreturn-tests: New file.
6243         * tests/test-noreturn-c++.cc: New file.
6244         * modules/noreturn-c++-tests: New file.
6246 2017-04-27  Bruno Haible  <bruno@clisp.org>
6248         wctype-h: Fix compilation error with the original mingw.org mingw.
6249         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
6250         HAVE_CRTDEFS_H.
6251         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
6252         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
6253         <stddef.h> instead.
6254         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
6256 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6258         nap.h: Fix compilation on non windows platforms
6259         * tests/nap.h: Move misplaced endif.
6261 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6262         and Paul Eggert  <eggert@cs.ucla.edu>
6264         time_rz: fix heap buffer overflow vulnerability
6265         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
6266         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
6267         whether there is enough buffer space available, thus avoiding
6268         the problematic promotion of signed to unsigned causing an invalid
6269         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
6270         the start of the buffer.
6271         * tests/test-parse-datetime.c (main): Add a test case written by
6272         Paul Eggert, which overwrites enough of the heap so that
6273         standard glibc will fail with "free(): invalid pointer"
6274         without the patch applied.
6276 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6278         xalloc: add missing integer overflow check
6279         * lib/xalloc.h (x2nrealloc): Also check for multiplication
6280         overflow when P is null.
6282 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6284         parse-datetime: make it standalone
6285         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
6286         (_GL_ATTRIBUTE_FORMAT): New macro.
6287         These are needed to get './gnulib-tool --test parse-datetime' to work.
6289 2017-04-23  Bruno Haible  <bruno@clisp.org>
6291         nap.h: Port to native Windows.
6292         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
6293         use nap_fd instead. On native Windows, close and reopen nap_fd.
6294         (nap_works): Don't compare the ctimes, because on native Windows, these
6295         are the creation times.
6296         (nap): Update.
6298 2017-04-23  Bruno Haible  <bruno@clisp.org>
6300         nap.h: Fix logic.
6301         * tests/nap.h (nap): Avoid signed integer overflow in loop.
6303 2017-04-23  Bruno Haible  <bruno@clisp.org>
6305         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6306         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
6307         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
6308         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
6309         * lib/argp-help.c (__argp_failure): Likewise.
6311 2017-04-23  Bruno Haible  <bruno@clisp.org>
6313         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
6314         * m4/strerror_r.m4: Revert changes since 2016-10-16.
6315         * lib/strerror_r.c: Likewise.
6317 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6319         Target a C99 subset, not a C89 subset
6320         For many years Gnulib has targeted C89 and has resisted using C99
6321         features, as some Gnulib-using programs still wanted to target
6322         C89.  As this no longer seems to be the case, relax the porting
6323         requirements to allow some C99 features.  This is merely a change
6324         to the documentation, to give other Gnulib developers a chance to
6325         weigh in on the topic.
6326         * doc/extern-inline.texi (extern inline):
6327         * doc/gnulib-readme.texi (Portability guidelines):
6328         * doc/gnulib-tool.texi (Initial import):
6329         * doc/gnulib.texi (Header files):
6330         Modernize to talk about C99 and C11 instead of C89 and C99.
6331         * doc/gnulib-readme.texi (Portability guidelines):
6332         Now a section, not merely a subsection, so that it
6333         can be split up.  Modernize a bit.
6334         (C language versions, C99 features assumed)
6335         (C99 features avoided):
6336         New sections.
6338 2017-04-23  Bruno Haible  <bruno@clisp.org>
6340         doc: New section "Modules that modify the way other modules work".
6341         * doc/gnulib.texi (Modules that modify the way other modules work): New
6342         section.
6344 2017-04-23  Bruno Haible  <bruno@clisp.org>
6346         stat-time: Update comments.
6347         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
6348         * tests/test-utimens-common.h: Add reference regarding st_ctime on
6349         Windows.
6351 2017-04-01  Bruno Haible  <bruno@clisp.org>
6353         glob: Fix more memory leaks.
6354         * lib/glob.c (glob): Free allocated memory before returning.
6355         Reported by Coverity via Tim Rühsen.
6357 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6359         poll: improve fast check for out-of-range NFD
6360         * lib/poll.c: Do not include intprops.h.
6361         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
6362         * modules/poll (Depends-on): Remove intprops.
6364         ftoastr: cite a newer paper
6365         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
6366         instead of Loitsch 2010.
6368 2017-04-22  Bruno Haible  <bruno@clisp.org>
6370         poll: Enable argument check also in the Windows implementation.
6371         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
6372         Reported by Paul Eggert.
6374 2017-04-22  Bruno Haible  <bruno@clisp.org>
6376         getlogin_r: Work around bug in Mac OS X 10.12.
6377         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
6378         bug.
6379         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
6380         given size minus 1, call getlogin_r a second time, on a larger buffer.
6381         * modules/getlogin_r (Depends-on): Add malloca.
6382         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
6384 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6386         parse-datetime: fix %z and prefer signed int
6387         %z problem reported by Pádraig Brady in:
6388         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
6389         While fixing it, I decided to prefer signed ints to size_t, as
6390         they are less error-prone (e.g., ubsan catches overflow).
6391         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
6392         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
6393         counts, since signed integers make for better debugging.
6394         (date): Don’t assume %z works in printf formats.
6395         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
6396         sizes of buffers known to be small, e.g., because we’re using snprintf.
6397         (parse_datetime2): Simplify call to debug_mktime_not_ok.
6399 2017-04-22  Bruno Haible  <bruno@clisp.org>
6401         *printf: Work around rounding bug on Mac OS X.
6402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
6403         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
6404         Mac OS X and FreeBSD.
6405         * doc/glibc-functions/*printf.texi: Likewise.
6407 2017-04-22  Bruno Haible  <bruno@clisp.org>
6409         vasnprintf tests: Avoid warnings.
6410         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
6411         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
6412         test.
6414 2017-04-22  Bruno Haible  <bruno@clisp.org>
6416         sys_file tests: Avoid warning.
6417         * tests/test-sys_file.c (main): Add a default clause to the switch
6418         statement.
6420 2017-04-22  Bruno Haible  <bruno@clisp.org>
6422         sethostname: Update doc.
6423         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
6424         Mac OS X.
6426 2017-04-22  Bruno Haible  <bruno@clisp.org>
6428         quotearg tests: Avoid warnings.
6429         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
6430         false.
6432 2017-04-22  Bruno Haible  <bruno@clisp.org>
6434         poll: Enable argument check.
6435         * lib/poll.c: Include intprops.h.
6436         (poll): Check value of nfd correctly.
6437         * modules/poll (Depends-on): Add intprops.
6439 2017-04-22  Bruno Haible  <bruno@clisp.org>
6441         get-rusage-data: Avoid warnings on Mac OS X.
6442         * lib/get-rusage-data.c: On Mac OS X, don't define
6443         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
6444         (get_rusage_data) [Mac OS X]: Just return 0.
6446 2017-04-22  Bruno Haible  <bruno@clisp.org>
6448         xbinary-io: Fix build error.
6449         * modules/xbinary-io (Depends-on): Add gettext-h.
6450         * lib/xbinary-io.c: Include gettext.h and define _().
6451         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6452         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
6454 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6456         parse-datetime: overflow and debug cleanups
6457         This long patch was triggered by this bug report from Ruediger Meier:
6458         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
6459         I fixed the bug he noted, then found some others nearby, and then
6460         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
6461         up some of the code to follow GNU standards while I was at it.
6462         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
6463         use c_isdigit.
6464         (EPOCH_YEAR): Remove; unused.
6465         (TM_YEAR_BASE): Now an enum rather than a macro.
6466         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
6467         time zone offset, since timezones now are in terms of seconds and
6468         not minutes.
6469         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
6470         appropriate.  Verify that intmax_t is wide enough.
6471         (time_overflow, time_zone_str): New functions, used to deal
6472         more reliably with overflow.
6473         (dbg_printf): Add printf attribute, to help catch integer width errors.
6474         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
6475         (%union, to_hour, yylex, parse_datetime2):
6476         Use intmax_t instead of long int and/or long_time_t.
6477         All uses changed.
6478         (DBGBUFSIZE): Move earlier.
6479         (relative_time, set_hhmmss, parser_control):
6480         Just use int for nanoseconds and for time zones; that’s wide enough.
6481         (parser_control): Use bool for members like year_seen that can
6482         be booleans instead of counters.  All uses changed.
6483         Remove debug_default_input_timezone; no longer needed.
6484         All uses removed.
6485         (apply_relative_time): Return a bool overflow flag.
6486         All uses changed to check for overflow.
6487         (apply_relative_time, zone, date, relunit, relunit_snumber)
6488         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
6489         Check for integer overflow portably.
6490         (str_days): Use just int for N, as it’s wide enough.
6491         Prefer 2D char arrays to arrays of char * when it looks like
6492         2D is a win on typical platforms.
6493         Prefer snprintf to strncpy/strncat, for simplicity;
6494         all buffers are smaller than INT_MAX so this is safe.
6495         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
6496         (debug_print_current_time): Don’t assume tv_nsec is of type long,
6497         as this is not true on x32.  Output "." before any nanoseconds.
6498         (debug_print_current_time, parse_datetime2):
6499         Output local zones using a more-consistent format.
6500         (debug_print_current_time, date, parse_datetime2):
6501         (main) [TEST]:
6502         Don’t assume time_t is the same width as long.
6503         (print_rel_part): New function, replacing ...
6504         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
6505         (debug_print_relative_time): Use bool for boolean.
6506         (local_zone): dsts_seen now counts only tDST instances.
6507         (date): Fix printf of size_t to use %z.  Do not assume numeric
6508         tokens have negative values merely because the context suggests
6509         a syntax with "-" separating tokens.
6510         (time_zone_hhmm): Return bool success indicator, which checks for
6511         overflow.  Store result into PC->time_zone instead.  All callers
6512         changed.
6513         (tm_year_str): New function.  Return a bool success indicator and
6514         store the result into a buffer.  All callers changed.  Output the
6515         numerically correct string even if adding 1900 to the year would
6516         overflow.
6517         (to_tm_year): New function, replacing the old to_year.  All
6518         callers changed.
6519         (tm_diff): Sync with glibc.
6520         (lookup_word): Use to_uchar instead of doing it by hand.
6521         (TZBUFSIZE): Now local to the only function that needs it.
6522         (debug_strfdatetime): Simplify now that time zones are int seconds.
6523         (debug_strfdate): Work even if tm_year + 1900 would overflow.
6524         (get_effective_timezone): Remove.  All uses removed.
6525         (parse_datetime2): Use fprintf in pieces instead of snprintfing
6526         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
6527         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
6528         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
6529         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
6530         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
6531         * modules/parse-datetime (Depends-on): Add inttypes.
6533 2017-04-21  Bruno Haible  <bruno@clisp.org>
6535         gettext-h: Avoid -Wundef warning.
6536         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
6537         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6538         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
6540 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
6542         error: Avoid "function declaration isn't a prototype" warning.
6543         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
6545 2017-04-21  Bruno Haible  <bruno@clisp.org>
6547         vasnprintf: Fix for MSVC 14.
6548         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
6549         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
6550         of !HAVE_SNPRINTF_RETVAL_C99.
6552 2017-04-21  Bruno Haible  <bruno@clisp.org>
6554         mbrtowc tests: Fix test failures on MSVC 14.
6555         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
6556         behaviour for invalid input.
6558 2017-04-21  Bruno Haible  <bruno@clisp.org>
6560         mbsinit: Fix for MSVC 14.
6561         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
6562         implementation that is in sync with mbrtowc.c. On other platforms, use
6563         an adequate ad-hoc implementation.
6565 2017-04-21  Bruno Haible  <bruno@clisp.org>
6567         Fix test-mbrtowc5.sh failure on native Windows.
6568         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
6569         "C".
6571 2017-04-21  Bruno Haible  <bruno@clisp.org>
6573         Avoid accidental use of native Windows APIs on Cygwin.
6574         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
6575         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
6576         * lib/localename.c (WINDOWS_NATIVE): Likewise.
6578 2017-04-20  Bruno Haible  <bruno@clisp.org>
6580         Remove red warnings from the generated MODULES.html.
6581         * modules/fcntl (Description): Disambiguate function references.
6582         * modules/getcwd-lgpl (Description): Likewise.
6583         * modules/hostent (Description): Likewise.
6584         * modules/servent (Description): Likewise.
6585         * modules/tempname (Description): Likewise.
6587 2017-04-20  Bruno Haible  <bruno@clisp.org>
6589         verify tests: Fix spurious failure with parallel make.
6590         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
6591         EXTRA_PROGRAMS.
6592         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
6593         * tests/test-verify-try.c: New file.
6594         * modules/verify-tests (Files): Add it.
6595         (EXTRA_PROGRAMS): Add test-verify-try.
6596         (MOSTLYCLEANFILES): Update accordingly.
6597         Reported by Adam James Stewart <ajstewart@anl.gov>.
6599 2017-04-18  Bruno Haible  <bruno@clisp.org>
6601         vma-iter: Fix compilation error on Solaris 7.
6602         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
6603         like on IRIX, OSF/1.
6604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6606 2017-04-18  Bruno Haible  <bruno@clisp.org>
6608         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
6609         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
6610         included.
6611         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
6612         <sys/procfs.h>.
6613         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
6614         <sys/procfs.h> cannot be included.
6615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6617 2017-04-18  Bruno Haible  <bruno@clisp.org>
6619         getopt-gnu: Add comments.
6620         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
6621         * modules/getopt-gnu (configure.ac): Likewise.
6623 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6625         regex: port better to Solaris 10
6626         Solaris 10 <locale.h> includes <libintl.h>, which #defines
6627         gettext, and this causes a double #define.
6628         Problem reported by Gavin Smith in:
6629         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
6630         * lib/regex_internal.h (gettext): #undef before #defining.
6632 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6634         intprops: improve comments
6635         * lib/intprops.h: Improve and shorten commentary.
6636         For the record, if we ever run into a pedantic compiler that
6637         behaves differently from GCC when converting an out-of-range value
6638         to a signed integer, we can work around the problem with something
6639         like the following code, where UCT is the signed counterpart of T
6640         (UCT is sometimes narrower than UT) and all callers are changed
6641         accordingly:
6642         #if __SUNPRO_C <= 0x5120
6643         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6644            ((t) ((ut) (a) op (ut) (b)))
6645         #else
6646         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6647            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
6648             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
6649                + TYPE_MINIMUM (t)) \
6650             : (t) (uct) ((ut) (a) op (ut) (b)))
6651         #endif
6653 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6655         intprops: try to avoid tickling similar bugs
6656         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
6657         needs to be the same width as T; it can be wider.
6658         Change callers so that UT is at least as wide as unsigned int,
6659         as I suspect that this is less likely to run into compiler bugs.
6661         intprops: port to Oracle Studio 12.3 x86
6662         Problem reported by Gavin Smith in:
6663         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
6664         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6665         Convert unsigned to signed via the usual rather than the standard way,
6666         to avoid a compiler bug in Oracle Studio 12.3 x86.
6668 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6670         getopt: prefer - to _ in new file names
6671         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
6672         * lib/getopt-core.h: Rename from lib/getopt_core.h.
6673         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
6674         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
6675         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
6676         All uses changed.
6678         getopt: port recent getopt changes to macOS
6679         Problem reported by Harald Maier (Bug#26398).
6680         The macOS C compiler uses __nonnull for its own purposes and that
6681         clashes with glibc's __nonnull.
6682         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
6683         * lib/getopt_cdefs.in.h (__nonnull): Remove.
6684         * lib/getopt_core.h (getopt):
6685         * lib/getopt_ext.h (getopt_long, getopt_long_only):
6686         Use _GL_ARG_NONNULL, not __nonnull.
6687         * lib/unistd.in.h: Move snippet hooks to before where the getopt
6688         .h files are included, so that _GL_ARG_NONNULL is defined in time.
6689         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
6690         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
6692 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6694         getopt-gnu: omit some duplicate code
6695         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
6696         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
6697         gnulib-tool already does this.
6698         * modules/getopt-gnu (configure.ac): Omit code duplicated from
6699         getopt-posix, which we depend on.
6701         getopt-posix: use angle-bracket include
6702         * lib/getopt1.c: Include <config.h>, not "config.h".
6704 2017-04-06  Zack Weinberg  <zackw@panix.com>
6706         getopt: annotate files with relationship to glibc
6708         As the final act in this patchset, adjust the message at the top of
6709         each file to indicate which files are synced with glibc.  (This has
6710         already been done for most of the headers.)
6712         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
6713         Mention in top-of-file boilerplate that these files are shared
6714         between glibc and gnulib.
6717         getopt: split up getopt.in.h and eliminate __need_getopt
6719         Over in glibc, all of the __need macros are being phased out in favor
6720         of small headers that declare only the necessary components, as this
6721         is much simpler and less prone to bugs.  As getopt is shared with
6722         glibc, gnulib needs to do the same for __need_getopt.
6724         __need_getopt is misnamed; what it really means is "we want only the
6725         getopt features specified in POSIX, not the GNU extensions".  glibc
6726         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
6727         these files can be shared verbatim with gnulib.  The portability
6728         wrapper, on the other hand, they have renounced altogether; glibc's
6729         getopt.h will no longer be shared with gnulib at all.  In exchange,
6730         certain glibc-specific quirks (having to do with __posix_getopt) no
6731         longer need appear in gnulib's headers at all.
6733         This patch merges getopt_core.h and getopt_ext.h from glibc, and
6734         splits up the current gnulib-side portability wrapper into three
6735         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
6736         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
6737         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
6738         unistd.in.h just use them.  All new files are clearly marked with
6739         whether they are shared with glibc.
6741         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
6742         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
6743         with glibc, and ...
6744         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
6745         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
6746         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
6747         instead of defining __need_getopt and including the full getopt.h.
6749         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
6750         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
6751         * modules/getopt-posix (Files): Add new headers and sort list.
6752         (Depends-on): No longer need snippet/arg-nonnull.
6753         (Makefile.am): Generate getopt_cdefs.h.
6756         getopt: better handling of ambiguous options
6758         glibc's getopt uses alloca to construct a linked list of possibilities
6759         for an "ambiguous" long option.  In gnulib, malloc should be used
6760         instead.  Providing for both cases complicates things a fair bit.
6762         This patch rewrites ambiguous-option handling to use a boolean vector
6763         instead of a linked list.  There is then only one allocation that
6764         might need freeing; in glibc it can honor __libc_use_alloca as usual,
6765         and in gnulib we define __libc_use_alloca to always be false, so we
6766         don't need ifdefs in the middle of the function.  This should also be
6767         slightly more efficient in the normal case of long options being fully
6768         spelled out -- I think most people aren't even aware they _can_
6769         sometimes abbreviate long options.
6771         One interesting consequence is that the list of possibilities is now
6772         printed in exactly the order they appear in the list of long options,
6773         instead of the first possibility being shuffled to the end.
6775         (The patch looks bigger than it really is because there's a fair bit
6776         of reindentation and code rearrangement.)
6778         * lib/getopt.c: When used standalone, define __libc_use_alloca
6779         as always false and alloca to abort if called.
6780         (process_long_option): Rewrite handling of ambiguous long options
6781         to use a single boolean vector, not a linked list; use
6782         __libc_use_alloca to decide whether to allocate this using alloca.
6785         getopt: refactor long-option handling
6787         There were two copies of the bulk of the code to handle long options.
6788         Now there is only one.
6790         This change temporarily removes the logic to avoid using alloca when
6791         standalone; the next patch in the series will restore it.
6793         * lib/getopt.c (process_long_option): New function split out
6794         from _getopt_internal_r.
6795         (_getopt_internal_r): Replace both copies of the long-option
6796         processing code with calls to process_long_option.
6799         getopt: tidy up _getopt_initialize a bit
6801         _getopt_data.__posixly_correct is completely redundant to
6802         _getopt_data.__ordering, and some work that logically belongs in
6803         _getopt_initialize was being done by _getopt_internal_r, making the
6804         code harder to understand.
6806         As a side effect, getenv will no longer be called if the first
6807         character of the options string is '+' or '-', which is probably a
6808         Good Thing.  (Perhaps we should have a flag character that
6809         specifically asks for the permutation behavior?)
6811         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
6812         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
6813         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
6816         getopt: merge from glibc: repetition reduction
6818         The definitions of the entry point functions 'getopt' and
6819         '__posix_getopt' can be made substantially less repetitive with a
6820         helper macro.
6822         While I was merging the const-correctness changes from gnulib into
6823         glibc I noticed there are still some unnecessary casts in
6824         _getopt_internal_r.
6826         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
6827         a macro.  Consistently cast 'argv' to 'char **' when calling
6828         _getopt_internal.
6829         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
6832         getopt: clean up error reporting
6834         getopt can print a whole bunch of error messages, and when used
6835         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
6836         cancellation point and getopt isn't, and also applying fprintf to a
6837         stream in wide-character mode is not allowed.  So every single error
6838         reporting case has an #ifdef _LIBC block in which it calls internal
6839         libc functions instead.  The counterpart patch series in glibc makes
6840         it possible to simplify all of that down to a set of #defines at the
6841         top of the file; core code is written as if it is safe to just call
6842         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
6843         call any *other* stdio functions.)
6845         * lib/getopt.c: When _LIBC is defined, define fprintf to
6846         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
6847         to _IO_funlockfile.  When neither _LIBC nor
6848         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
6849         funlockfile as no-ops.
6850         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6851         standalone error-printing code can now be used for libc as well.
6852         Add an flockfile/funlockfile pair around one case where the error
6853         message is printed in several chunks.  Don't use fputc.
6856         getopt: fix fencepost error in ambiguous-W-option handling
6858         getopt_long contains an undocumented (AFAICT) feature in which, if you
6859         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6860         treated as equivalent to '--foo'.  This is implemented with a partial
6861         second copy of the code for handling long options, and that code
6862         increments optind one too many times when recovering from an ambiguous
6863         abbreviated option, which can cause the main loop to walk past the end
6864         of argv and crash.
6866         I discovered this while writing a test case that tries to exercise all
6867         of getopt's error reporting paths; I wouldn't be surprised to learn
6868         that this feature is never used by real applications.
6870         * lib/getopt.c (_getopt_internal_r): Don't increment
6871         d->optind a second time when reporting ambiguous -W options.
6874         getopt: clean up getopt.c and getopt1.c file headers
6876         In getopt.c, there is no need to include wchar.h at all, and it is
6877         safe nowadays to assume that stdlib.h does declare getenv (several
6878         other gnulib modules make this assumption).
6880         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6881         by using "" inclusions consistently, and there is no actual need to
6882         include stdlib.h (except in the #ifdef TEST block, where it should be
6883         unconditional), nor to provide a backup definition of NULL at all.
6885         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6886         Move inclusion of stdlib.h to #ifdef TEST block and make
6887         unconditional.  Do not define NULL.
6888         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6889         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6890         * modules/getopt-gnu, modules/getopt-posix: Don't call
6891         gl_PREREQ_GETENV.
6894         getopt: harmonize comments with glibc
6896         The comments explaining how the behavior of 'getopt' varies depending
6897         on whether it's the standalone version and whether there are special
6898         characters at the beginning of the options string were inconsistent
6899         between gnulib and glibc, and also out of sync with the code.
6901         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6904         getopt: remove USE_NONOPTION_FLAGS
6906         getopt includes code to parse an environment variable named
6907         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6908         in decimal); but all of it has been #ifdefed out since 2001, with no
6909         official way to turn it back on.
6911         According to commentary in glibc's config.h.in, bash version 2.0
6912         set this environment variable to indicate argv elements that were
6913         the result of glob expansion and therefore should not be treated
6914         as options, but the feature was "disabled later" because "it
6915         caused problems".  According to bash's CHANGES file, "later" was
6916         release 2.01; it gives no more detail about what the problems
6917         were.
6919         Version 2.0 of bash was released on the last day of 1996, and version
6920         2.01 in June of 1997.  Twenty years later, I think it is safe to
6921         assume that this environment variable isn't coming back.
6923         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6924         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6925         __libc_argc and __libc_argv externs, which were only used by
6926         #ifdef USE_NONOPTION_FLAGS blocks.
6929         getopt: tabify, in preparation for merge with glibc
6931         glibc sticks to the GNU default of indenting with a mix of
6932         8-column tabs and spaces; make the gnulib copy match.
6934         getopt.h is not included because it is *not* going to be merged in its
6935         present form.
6937         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6939 2017-04-02  Bruno Haible  <bruno@clisp.org>
6941         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6942         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6943         like it was done in modules/relocatable-lib on 2011-05-21 and in
6944         modules/relocatable-prog on 2011-08-15.
6945         Reported by Reuben Thomas <rrt@sc3d.org>.
6947 2017-03-31  Bruno Haible  <bruno@clisp.org>
6949         glob: Fix invalid free() call.
6950         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6951         static storage to home_dir.
6952         Reported by Coverity via Tim Rühsen.
6954 2017-03-31  Bruno Haible  <bruno@clisp.org>
6956         glob: Fix memory leaks.
6957         * lib/glob.c (glob): Free allocated memory before returning.
6958         Reported by Coverity via Tim Rühsen.
6960 2017-03-31  Bruno Haible  <bruno@clisp.org>
6962         md5, sha1, sha256, sha512: Add comments regarding correctness.
6963         * lib/md5.h (buflen): Add comments regarding range.
6964         * lib/sha1.h (buflen): Likewise.
6965         * lib/sha256.h (buflen): Likewise.
6966         * lib/sha512.h (buflen): Likewise.
6967         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6968         * lib/sha1.c (sha1_process_bytes): Likewise.
6969         * lib/sha256.c (sha256_process_bytes): Likewise.
6970         * lib/sha512.c (sha512_process_bytes): Likewise.
6971         Reported by Coverity via Tim Rühsen.
6973 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6975         getopt: merge from glibc
6976         This does not change anything substantial; it merely simplifies
6977         hypothetical merges back to glibc.
6978         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6979         Change copyright notice to match what is in glibc.
6980         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6981         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6982         __open_memstream rather than open_memstream and __glibc_likely
6983         instead of __builtin_expect.
6984         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6986 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6988         dfa: make [0-9] faster in non-C locales
6989         Problem reported by John P. Linderman (Bug#26193).
6990         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6991         If both ends of the range are ASCII digits, do not worry about
6992         multi-character collating sequences and the like.  Be consistent
6993         about using isalpha as a precondition for setbit_case_fold_c.
6995 2017-03-19  Bruno Haible  <bruno@clisp.org>
6997         lock: Fix compilation error with HP-UX IA64 cc.
6998         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6999         weak on non-glibc platforms.
7001 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7003         stdalign: tweak version# and test for HP-UX IA64
7004         Problems reported by Bruno Haible in:
7005         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
7006         * lib/stdalign.in.h (_Alignas):
7007         * m4/stdalign.m4 (gl_STDALIGN_H):
7008         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
7009         used octal (as that is how they document it), but it is decimal in
7010         practice now and the ancient implementations no longer matter.
7011         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
7013 2017-03-19  Bruno Haible  <bruno@clisp.org>
7015         vma-iter: Add support for Solaris.
7016         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
7017         approach.
7018         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
7019         * lib/get-rusage-as.c: Update comment about Solaris.
7020         * lib/get-rusage-data.c: Likewise.
7022 2017-03-19  Bruno Haible  <bruno@clisp.org>
7024         vma-iter: Prefer HP-UX specific API on HP-UX.
7025         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
7026         * lib/vma-iter.h: Update.
7027         Just in case HP-UX ever implements mquery().
7029 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
7031         stdalign: restore previous behavior for HP-UX IA64
7032         See Bruno Haible's email in:
7033         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
7034         which cites p 150 of a manual saying that 'aligned' works on Itanium.
7035         * lib/stdalign.in.h (_Alignas):
7036         Assume the '061200' applies to Itanium, not to PA-RISC.
7037         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
7039 2017-03-17  Bruno Haible  <bruno@clisp.org>
7041         stat-time, timespec: Support use of the header files in C++ mode.
7042         * lib/stat-time.h: Add "C" linkage declaration.
7043         * lib/timespec.h: Likewise.
7045 2017-03-17  Bruno Haible  <bruno@clisp.org>
7047         stdalign: Make it work with HP-UX cc.
7048         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
7049         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
7050         for HP-UX cc.
7052 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
7054         flexmember: try to detect HP-UX 11.31 cc bug
7055         Problem reported by Bruno Haible in:
7056         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
7057         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7058         Attempt to detect bug in HP-UX 11.31 cc.
7060 2017-03-16  Bruno Haible  <bruno@clisp.org>
7062         stdint: Fix test compilation failure with HP-UX 11 cc.
7063         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
7064         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
7065         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
7066         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
7068 2017-03-14  Bruno Haible  <bruno@clisp.org>
7070         gnulib-tool: Don't produce a tests directory with only snippet .h files.
7071         * gnulib-tool (func_modules_transitive_closure_separately): If
7072         testsrelated_modules ends up with no "real" modules, aside from
7073         modules with applicability 'all', set it to empty.
7075 2017-03-14  Bruno Haible  <bruno@clisp.org>
7077         vma-iter: Add support for HP-UX.
7078         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
7079         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
7080         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
7081         * lib/get-rusage-as.c: Update comment about HP-UX.
7082         * lib/get-rusage-data.c: Likewise.
7083         (get_rusage_data): Use get_rusage_data_via_setrlimit.
7085 2017-03-14  Bruno Haible  <bruno@clisp.org>
7087         limits-h: Make it work with HP-UX cc.
7088         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
7089         defined.
7091 2017-03-14  Bruno Haible  <bruno@clisp.org>
7093         Fix test failures on DragonFlyBSD.
7094         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
7095         * tests/test-select.h (test_bad_fd): Likewise.
7096         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
7098 2017-03-14  Bruno Haible  <bruno@clisp.org>
7100         freadahead: Silence warning on DragonFlyBSD.
7101         * lib/freadahead.c (__sreadahead): Declare ourselves.
7103 2017-03-14  Bruno Haible  <bruno@clisp.org>
7105         vma-iter: Add comment about AIX.
7106         * lib/vma-iter.c: Add comment about why this module is not implemented
7107         on AIX.
7109 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
7111         snippets: move unadjusted snippet sources to lib
7112         Problem reported by Michal Privoznik in:
7113         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
7114         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
7115         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
7116         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
7117         * lib/unused-parameter.h: Rename from
7118         build-aux/snippet/unused-parameter.h.
7119         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
7120         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
7121         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
7122         * modules/snippet/c++defs (Files:, CXXDEFS_H):
7123         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
7124         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
7125         Adjust to file renamings.
7127 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
7129         gnulib-tool: don't automatically distribute files from top/
7130         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
7131         not distribute top/README-release by default, don't distribute files
7132         from top/ unconditionally.
7133         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
7134         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
7136 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
7138         gnulib-tool: fix typo in comment output
7139         * gnulib-tool (func_import): Fix typo with previous change.
7141         snippets: work around GNU Make 3.82 VPATH
7142         When using 'gnulib-tool --gnu-make' on Emacs, and building
7143         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
7144         an out-of-source (VPATH) build failed because the sans-copyright
7145         snippet file was not built before the file that used it.
7146         Presumably this is some sort of VPATH thing.  Work around the
7147         problem by using the original snippet, i.e., don’t bother to
7148         remove its copyright notice.
7149         * modules/snippet/_Noreturn, modules/snippet/link-warning:
7150         Don’t assume Automake in comments.  Omit long-incorrect comment.
7151         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
7152         (MOSTLYCLEANFILES):
7153         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
7154         (MOSTLYCLEANFILES):
7155         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
7156         (MOSTLYCLEANFILES):
7157         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
7158         (MOSTLYCLEANFILES):
7159         Remove.
7160         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
7161         * modules/snippet/c++defs (CXXDEFS_H):
7162         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
7163         * modules/snippet/warn-on-use (WARN_ON_USE_H):
7164         Don’t bother to remove the copyright notice; just use the
7165         original snippet as-is.
7167 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
7169         gnulib-tool: minor --gnu-make fixups
7170         * gnulib-tool (func_emit_lib_Makefile_am):
7171         Remove useless code that was a blind alley during implementation.
7172         Problem reported by Thien-Thi Nguyen in:
7173         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
7174         (func_import): Note the "--gnu-make" option in the output comment.
7176 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
7178         gnulib-tool: new option --gnu-make
7179         This is for applications like GNU Emacs that use GNU Make
7180         features instead of Automake.
7181         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
7182         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
7183         Do not assume Automake.
7184         * gnulib-tool (func_determine_path_separator)
7185         (func_modules_transitive_closure, func_update_file)
7186         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7187         (func_import): Add support for --gnu-make.
7189 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7191         gnulib-common.m4: avoid aclocal.m4 bloat
7192         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
7193         Hide AM_PROG_AR from aclocal, so that aclocal does not
7194         install irrelevant macro definitions into aclocal.m4.
7196 2017-03-10  Bruno Haible  <bruno@clisp.org>
7198         vma-iter: Let callers know about error.
7199         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
7200         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
7202 2017-03-05  Bruno Haible  <bruno@clisp.org>
7204         Fix value of LD for 64-bit compilers on AIX.
7205         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
7206         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
7208 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
7210         dtotimespec: simplify
7211         * lib/dtotimespec.c (dtotimespec): Simplify.
7213 2017-03-04  Bruno Haible  <bruno@clisp.org>
7215         test-calloc-gnu: Reenable test also for GCC 7.
7216         * tests/test-calloc-gnu.c (eight): New function.
7217         (main): Don't skip test; use eight() instead.
7219 2017-03-04  Jim Meyering  <meyering@fb.com>
7221         test-calloc-gnu: port to GCC7
7222         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
7223         that attempts to calloc more than SIZE_MAX bytes, because GCC7
7224         and newer would detect that at compilation time.
7226 2017-03-04  Bruno Haible  <bruno@clisp.org>
7228         tests: Avoid compiler warning about uses of null_ptr.
7229         * tests/null-ptr.h: New file.
7230         * tests/test-canonicalize.c: Include null-ptr.h.
7231         (null_ptr): Remove function.
7232         * tests/test-canonicalize-lgpl.c: Likewise.
7233         * tests/test-memmem.c: Likewise.
7234         * tests/test-ptsname_r.c: Likewise.
7235         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
7236         * modules/canonicalize-lgpl-tests: Likewise.
7237         * modules/memmem-tests: Likewise.
7238         * modules/ptsname_r-tests: Likewise.
7239         Reported by Jim Meyering.
7241 2017-03-03  Bruno Haible  <bruno@clisp.org>
7243         doc: Mention Mac OS X deficiencies regarding semaphores.
7244         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
7245         * doc/posix-functions/sem_destroy.texi: Likewise.
7246         * doc/posix-functions/sem_getvalue.texi: Likewise.
7248 2017-03-03  Bruno Haible  <bruno@clisp.org>
7250         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
7251         Reported by Assaf Gordon <assafgordon@gmail.com> via
7252         Pádraig Brady <P@draigBrady.com>.
7253         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
7254         semaphores.
7255         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
7256         (atomic_int_semaphore): New macro.
7258 2017-02-28  Bruno Haible  <bruno@clisp.org>
7260         perror tests: Tweak for z/OS.
7261         Reported by Daniel Richard G. <skunk@iskunk.org>.
7262         * tests/test-perror.sh: Don't fail z/OS style perror output.
7264 2017-02-26  Bruno Haible  <bruno@clisp.org>
7266         nproc: Refactor large function.
7267         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
7268         from num_processors.
7269         (num_processors): In this function, only deal with OMP.
7271 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7273         nproc: adjust handling of OpenMP environment variables
7274         to match the return value from omp_get_num_threads(), i.e.:
7275          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
7276          - Treat 0 as an invalid value and ignore
7277         Also remove the call to omp_get_num_threads() because
7278         it's ineffective without the omp pragmas in place.
7279         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
7280         so that it can be ignored.
7281         (num_processors): Honor OMP_THREAD_LIMIT even without
7282         OMP_NUM_THREADS being set.  Also fix a typo in the environment
7283         variable being checked, from the previous recent commit.
7285 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7287         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
7288         * lib/nproc.c (parse_omp_threads): A new function refactored
7289         from num_processors() to support parsing both of the
7290         above environment variables.
7291         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
7292         to accurately reflect the current OpenMP nesting level.
7293         Also support the OMP_THREAD_LIMIT environment variable
7294         to limit the max value determined from OMP_NUM_THREADS.
7295         * modules/nproc: Depend on minmax header.
7296         Suggested by Oliver Heimlich.
7298 2017-02-25  Bruno Haible  <bruno@clisp.org>
7300         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
7301         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
7303 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7305         ftoastr: port to -Wdouble-promotion
7306         Work around -Wdouble-promotion false alarm in recent GCCs.
7307         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
7308         (ftoastr_snprintf, FTOASTR): Use it.
7310 2017-02-21  Bruno Haible  <bruno@clisp.org>
7312         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
7313         Reported by Rene Saavedra <rennes@openmailbox.org> in
7314         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
7315         * lib/glthread/lock.h: On glibc systems without
7316         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
7317         implementation of rwlocks.
7318         * lib/glthread/lock.c: Likewise.
7320 2017-02-20  Bruno Haible  <bruno@clisp.org>
7322         lock tests: Fix build failure on z/OS.
7323         Reported by Daniel Richard G. <skunk@iskunk.org>.
7324         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
7325         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
7326         exist.
7328 2017-02-19  Bruno Haible  <bruno@clisp.org>
7330         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
7331         This helps when CC=clang.
7332         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
7333         of /usr/bin/gcc.
7335         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
7336         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
7338 2017-02-19  Bruno Haible  <bruno@clisp.org>
7340         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
7341         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
7342         --with-tests --single-configure is specified.
7344 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7346         users.txt: Update links, use HTTPS where possible
7347         * users.txt: Updated to HTTPS where possible,
7348         fixed some links to new locations.
7350 2017-02-16  Bruno Haible  <bruno@clisp.org>
7352         xbinary-io: Fix inlining.
7353         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
7355 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7357         xbinary-io: rename from xsetmode
7358         This patch is taken from suggestions by Bruno Haible in:
7359         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
7360         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
7361         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
7362         not ENOTTY, when it is an inappropriate device.
7363         * lib/binary-io.h (SET_BINARY): Resurrect.
7364         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
7365         (xset_binary_mode_error): Rename from xsetmode_error.
7366         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
7367         (xset_binary_mode): Rename from xsetmode.
7368         All uses changed.
7369         * modules/xbinary-io: Rename from modules/xsetmode.
7370         Update file names.
7371         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
7372         * NEWS: Update to match revised behavior.
7374 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7376         tests: Adjust to recent SET_BINARY change
7377         * tests/test-binary-io.c (main):
7378         * tests/test-binary-io.sh: Remove test for SET_BINARY.
7379         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
7380         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
7381         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
7383         xsetmode: new module
7384         This is to fix a problem noted by Eric Blake.
7385         Code was using xfreopen to change files to binary mode, but this
7386         fails for stdout when in append mode.  Such code should use
7387         xsetmode instead.
7388         * NEWS: Document incompatible changes to binary-io module.
7389         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
7390         New function.
7391         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
7392         (set_binary_mode): New function, which also checks for tty.
7393         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
7395 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7397         headers: fix begin-end typos
7398         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
7399         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
7401         selinux-h: port to PGI 16.10
7402         * lib/se-selinux.in.h: Don't assume that include_next skips over
7403         duplicate -I DIR options.
7405         argp: port to PGI 16.10
7406         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
7408 2017-02-13  Darshit Shah  <darnir@gnu.org>
7410         unicase: Update function protoype to match definition.
7411         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
7412         uses 'size_t' as the datatype for the 'len' parameter in the functions
7413         it generates. Update the prototype specified here to match the newly
7414         generated function.
7416 2017-02-12  Bruno Haible  <bruno@clisp.org>
7418         times test: Avoid gcc warnings on Linux/x32.
7419         * tests/test-times.c (main): Really cast printf arguments from clock_t
7420         to 'long int'.
7422 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7424         glob: port better to emscripten
7425         Problem reported by Bruno Haible in:
7426         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
7427         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
7429 2017-02-11  Bruno Haible  <bruno@clisp.org>
7431         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
7432         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
7433         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
7434         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
7435         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
7436         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
7437         Distinguish hppa64 from hppa.
7439 2017-02-10  Bruno Haible  <bruno@clisp.org>
7441         search: Don't assume that tsearch() exists if 'VISIT' is defined.
7442         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
7443         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
7444         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
7446 2017-02-09  Bruno Haible  <bruno@clisp.org>
7448         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
7449         * doc/gnulib.texi (Libtool and Windows): Recommend
7450         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
7451         Reported by Reuben Thomas <rrt@sc3d.org>.
7453 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7455         stddef-tests: port to SIZE_MAX <= INT_MAX
7456         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
7457         Do not assume that INT_MAX < SIZE_MAX.
7459 2017-02-01  Bruno Haible  <bruno@clisp.org>
7461         lock tests: Fix link error.
7462         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
7463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7465 2017-01-31  Bruno Haible  <bruno@clisp.org>
7467         lock: Fix link error (regression from 2017-01-05).
7468         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
7469         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
7470         pthread_rwlockattr_destroy weak.
7471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7473 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7475         Port to PGI 16.10 x86-64
7476         This patch fixes one real bug in gl_anylinked_list2.h, along with
7477         some minor glitches that are not bugs.  It does not silence PGI’s
7478         thousands of bogus warnings when compiling test-intprops.c.
7479         Fortunately, the warnings do not cause a failure.
7480         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
7481         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
7482         My goodness, PGI goes back a long ways - this predates C89!
7483         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
7484         For example, ASYNCSAFE (const void *) should expand to
7485         ‘const void *volatile’, not to ‘volatile const void *’.
7486         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
7487         * lib/verify.h (verify) [!__GNUC__]:
7488         Use shorter albeit meaningless string to bypass silly compiler limits.
7489         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
7490         * tests/nan.h (NaNf, NaNd, NaNl):
7491         Use static functions to avoid misguided compiler diagnostics.
7492         Is there some reason we don’t use static functions on all platforms?
7494 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7496         parse-datetime: handle timezones reentrantly
7497         This API change was prompted by a report by Pádraig Brady in:
7498         https://bug.debian.org/851934#10
7499         To help fix the bug, make parse_datetime2 more reentrant.
7500         * NEWS: Document this incompatible change.
7501         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
7502         Add two arguments, the timezone and the timezone name.
7503         All callers changed.  If TZ="..." is specified, use it for
7504         calculating defaults.
7505         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
7506         this code should be usable in a library.
7507         (mktime_ok, get_effective_timezone):
7508         Accept timezone arg too.  All callers changed.
7509         (get_tz): Remove.
7510         (get_effective_timezone): Check for failures.
7512 2017-01-20  Eric Blake  <eblake@redhat.com>
7514         localename: port to cygwin 2.6
7515         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
7516         Cygwin.
7517         * modules/localename (Depends-on): Add extensions, since
7518         NL_LOCALE_NAME() is not visible without it.
7520 2017-01-17  Pádraig Brady  <P@draigBrady.com>
7522         parse-datetime: fix dependence on AC_PROG_SED
7523         * modules/parse-datetime: Use `sed` directly like all other modules.
7524         Reported by J William Piggott
7526 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7528         intprops: update doc URLs
7529         * doc/intprops.texi (Integer Range Overflow): Update URLs.
7531 2017-01-16  Bruno Haible  <bruno@clisp.org>
7533         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
7534         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
7535         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
7536         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
7537         distinguish s390 and s390x.
7538         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
7539         * NEWS: Mention the change regarding 'armel'.
7541 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7543         localeinfo: case_folded_counterparts and WEOF
7544         * NEWS: Document this.
7545         * lib/localeinfo.c (case_folded_counterparts):
7546         First arg is now wint_t, not wchar_t.  This generalizes the
7547         function to also work on WEOF, where it returns 0.
7549         dfa: port to gcc -fsanitize=undefined
7550         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
7551         as this runs afoul of gcc -fsanitize=undefined.
7553 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
7555         strftime: %z is -00 if unknown
7556         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
7557         the caller's responsibility to set 'negative_number'.  All uses changed.
7558         (__strftime_internal): Put '-' before a zero UTC offset if the time
7559         zone abbreviation starts with "-", which is the recently-introduced
7560         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
7561         * tests/test-strftime.c: Test for this.
7563 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7565         dfa: port to older GCC
7566         Problem reported by Assaf Gordon in:
7567         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
7568         * modules/c99: New module.  This merely attempts to use the latest
7569         C version, which should be enough to solve this particular problem.
7570         The idea is to document which Gnulib modules assume C99 or later.
7571         * modules/dfa (Depends-on): Add it.
7573 2017-01-10  Bruno Haible  <bruno@clisp.org>
7575         Update DEPENDENCIES.
7576         * DEPENDENCIES: List only https URLs. Update recommended version for
7577         autoconf, automake, gperf.
7579 2017-01-10  Jim Meyering  <meyering@fb.com>
7581         maint.mk: enforce spelling of "timestamp" (i.e., no space)
7582         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
7583         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
7585 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7587         dfa: minor simplification with emptyset
7588         * lib/dfa.c (build_state): Simplify by using emptyset.
7590 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7592         dfa: shrink constraints from 4 bits to 3
7593         * lib/dfa.c (newline_constraint, letter_constraint)
7594         (other_constraint, prev_newline_dependent)
7595         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
7596         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
7597         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
7598         Constraints need only 3 bits, not 4.  Using smaller integers
7599         shrinks the code a bit and makes grep a tad faster on x86-64.
7601         dfa: omit unnecessary ptrdiff_t check
7602         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
7603         overflow, since xnmalloc does that now.
7605         dfa: omit unnecessary allocation
7606         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
7607         an all-zero follow set works just fine.
7609         dfa: omit unused local
7610         * lib/dfa.c (build_state): Fix up recent change.
7612         maint: remove stray .texi files
7613         Although these were superseded by other files like
7614         doc/posix-functions/ctime.texi, the old files were not removed.
7615         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
7617 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7619         getprogname: fix port to IRIX
7620         * lib/getprogname.c (getprogname) [__sgi]:
7621         Don't dump core if malloc returns NULL.
7623         dfa: fix reallocation bug when matching newlines
7624         Problem reported for sed by S. Gilles (Bug#25390).
7625         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
7626         (dfastate): Reallocate before moving any newline transition ...
7627         (build_state): ... instead of reallocating here, where it is too late.
7629 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7631         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
7632         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
7634 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7636         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
7637         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
7639 2017-01-07  Bruno Haible  <bruno@clisp.org>
7641         stdioext: Port to Minix 3.2 and newer.
7642         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
7643         * lib/fseeko.c (fseeko): Likewise.
7644         Reported by Nelson Beebe via Paul Eggert.
7646 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7648         getprogname: port to IRIX
7649         * lib/getprogname.c (getprogname): Port to IRIX.
7650         Based on an idea by Bastien Roucariès at:
7651         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
7652         via code from Bruno Haible at:
7653         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7655         localename-tests: port to NetBSD 7
7656         Problem reported by Nelson H. F. Beebe.
7657         * tests/test-localename.c:
7658         Test newlocale and uselocale only if both exist.
7660         glob, intprops, xalloc: work around Clang bug
7661         Work around LLVM bug 16404, which is still not fixed.
7662         https://llvm.org/bugs/show_bug.cgi?id=16404
7663         Problem reported by Nelson H. F. Beebe.
7664         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
7665         Remove.
7666         * lib/glob.c (size_add_wrapv):
7667         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
7668         * lib/xalloc-oversized.h (xalloc_oversized):
7669         Do not use overflow builtins if Clang.
7671         dfa: fix 'return' typo
7672         Problem reported by Nelson H. F. Beebe.
7673         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
7675 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7677         parse-datetime: fix generated paths for coverage files
7678         * modules/parse-datetime: Adjust the paths for parse-datetime.y
7679         within parse-datetime.c, so that gcc generates appropriate .gcno
7680         files, allowing lcov to proceed without error.  Previously it
7681         would error trying to find "lib/lib/parse-datetime.y".
7683 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7685         maint.mk: support parallel execution of coverage
7686         * top/maint.mk (coverage): Run dependencies serially,
7687         thus supporting parallel processing of each one,
7688         particularly build-coverage, which builds and runs tests.
7690 2017-01-05  Bruno Haible  <bruno@clisp.org>
7692         lock tests: Prefer semaphore over mutex.
7693         * tests/test-lock.c (USE_SEMAPHORE): New constant.
7694         (struct atomic_int, init_atomic_int, get_atomic_int_value,
7695         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
7696         Suggested by Torvald Riegel <triegel@redhat.com>.
7698 2017-01-05  Bruno Haible  <bruno@clisp.org>
7700         lock: Provide guarantee to avoid writer starvation for rwlocks.
7701         The rationale is: 1) Read-preferring read-write locks are prone to
7702         writer starvation if the number of reader threads multiplied by the
7703         percentage of time they have the lock held is too high. 2) Write-
7704         preferring read-write locks are the only reliable way to avoid this.
7705         3) There have been reports of 'test-lock' hanging on glibc systems
7706         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
7707         and glibc indeed implements read-preferring rwlocks by default, see
7708         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
7709         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
7710         * m4/pthread_rwlock_rdlock.m4: New file.
7711         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7712         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
7713         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7714         of rwlock initialization on glibc systems without
7715         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7716         of rwlocks altogether on non-glibc systems without
7717         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7718         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
7719         * lib/glthread/lock.c [USE_POSIX_THREADS]
7720         (glthread_rwlock_init_for_glibc): New function.
7721         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
7722         comment.
7723         [USE_PTH_THREADS]: New implementation of rwlocks.
7724         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
7725         readers.
7726         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
7727         (Depends-on): Add 'extensions'.
7728         * tests/test-rwlock1.c: New file.
7729         * lock-tests (Files): Add it.
7730         (Depends-on): Add usleep.
7731         (Makefile.am): Add test-rwlock1 to the tests.
7733 2017-01-05  Bruno Haible  <bruno@clisp.org>
7735         thread: Fix pth port.
7736         * lib/glthread/thread.h (pth_init): Declare weak.
7737         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
7738         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
7739         function.
7741 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
7743         parse-datetime: fix debug message on lone year number
7744         Input dates such as
7745           date -d "Apr 11 22:59:00 2011"
7746         are parsed as date (Apr 11, with default year 2016), then time, then a
7747         number (2011). Based on the combination of previously seen tokens,
7748         'digits_to_date_time' determines 2011 to be a year value.
7749         This fixes the debug messages to correctly show the updated year.
7750         Before:
7751             $ date --debug -d 'Apr 11 22:59:00 2011'
7752             date: parsed date part: (Y-M-D) 2016-04-11
7753             date: parsed time part: 22:59:00
7754             date: parsed number part: today/this/now
7755         After:
7756             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
7757             date: parsed date part: (Y-M-D) 2016-04-11
7758             date: parsed time part: 22:59:00
7759             date: parsed number part: year: 2011
7760         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
7761         'debug_year_seen' member fields.
7762         (digits_to_date_time): Update 'year_seen' as needed.
7763         (debug_print_current_time): Inform about year updates.
7764         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
7766         parse-datetime: fix local timezone debug messages
7767         "Local timezones" are strings that affect only DST relative to the
7768         default timezone. The debug messages in parse-datetime.y printed
7769         wrong information when encountering local timezones.
7770         Examples:
7771         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
7772              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
7773              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
7774         When the default timezone relates to the zone strings, EET/EEST are
7775         parsed as local timezones (tLOCAL_ZONE), and only change the DST
7776         value (0/1, respectively):
7777              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
7778              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
7779         * lib/parse-datetime.y (debug_print_current_time): If local timezone
7780         was seen, inform about DST change, don't print actual timezone.
7781         (debug_strfdatetime): If local timezone was seen, use default timezone
7782         (and adjust as needed) instead of using incorrect timezone.
7783         (parse_datetime2): Use correct time-zone source string, and adjust
7784         default timezone as needed.
7786         parse-datetime: add debug warning about DST changes
7787         Incorrect date arithmetic due to daylight saving time (DST) are a
7788         common (false) bug report in coreutils.
7789         Detect two such cases and print a warning:
7790         1. year/month/day adjustments (performed on 'struct tm'),
7791            where 'mktime' returns a different isdst value.
7792         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
7793            where the result of 'localtime(3)' on the value will return a
7794            different isdst value.
7795         Note: DST changes could be harmless or unnoticeable.
7796         Examples (with 'TZ=America/New_York'):
7797         Unnoticeable: result is 2016-Dec-14
7798            $ date -d '2016-06-15 EDT + 6 months' +%b
7799            Dec
7800         Unnoticeable: result is 2016-Dec-15 11:00:00
7801            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
7802            2016-12-15
7803         This is unexpected:
7804            $ date -d '2016-06-01 EDT + 6 months' +%F
7805            2016-11-30
7806         The new debug warnings will show:
7807            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
7808            ...
7809            date: warning: daylight saving time changed after date adjustment
7810            ...
7811         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
7812         print an appropriate warning message.
7814         parse-datetime: add debug warning about date arithmetic
7815         Date arithmetic are done directly on the fields of 'struct tm',
7816         which can result in invalid dates. Normalization with 'mktime(3)'
7817         will then produce a different date - which might cause unexpected
7818         results.
7819         Examples:
7820           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
7821           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
7822         Note that date normalization is not inherently wrong and not rejected,
7823         as it has legitimate uses:
7824           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
7825         If the user asked to adjust months but 'mday' changed,
7826         or user asked to adjust years but 'month' changed - warn about it.
7827             $ ./src/date --debug -d '2016-10-31 - 1 month'
7828             ...
7829             date: warning: when adding relative months/years, \
7830                            it is recommended to specify the 15th of the month
7831             ...
7832             date: warning: month/year adjustment resulted in shifted dates:
7833             date:      adjusted Y M D: 2016 09 31
7834             date:    normalized Y M D: 2010 10 01
7835             ...
7836         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
7837         a warning message. Improve recommendation of when to use 15 of the
7838         month or noon for date arithmetic.
7840         parse-datetime: fix debug message of relative part after timezone
7841         Relative part (e.g '+8 days') after a timezone string was not
7842         reported (was only reported after a timezone number). Due to the
7843         parser's structure, timezone strings with numbers were handled
7844         separately.
7845         before:
7846              # Timezone number + relative part: OK
7847              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
7848              ...
7849              date: parsed relative part: -8 day(s)
7850              # Timezone string + relative part: missing
7851              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7852              [ missing message ]
7853         After: messages are printed in both cases.
7854         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7856         parse-datetime: fix incorrect debug message on lone number
7857         A lone number is an absolute value, not a relative time part.
7858         before:
7859            $ date --debug -d '20130101'
7860            date: parsed number part: today/this/now
7861         After:
7862            $ ./src/date --debug -d '20130101'
7863            date: parsed number part: (Y-M-D) 2013-01-01
7864         * lib/parse-datetime.y ('item'/'number' tokens): Call
7865         'debug_print_current_time' instead of 'debug_print_relative_time'.
7867 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7869         doc: modernize for C11 etc.
7870         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7871         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7872         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7874         dfa: prefer functions to FETCH_WC macro
7875         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7876         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7877         wint_t result into DFA->lex.wctok instead of to a separate arg.
7878         All callers changed.  Move more local decls closer to where
7879         they're used.
7881         dfa: narrow more local var scopes
7882         * lib/dfa.c: Move more local decls to be more local.
7884         dfa: remove duplicate assignment
7885         Problem reported by Bruno Haible in:
7886         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7887         * lib/dfa.c (parse_bracket_exp): Simplify.
7889 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7891         dfa: simplify constraint-dependency checking
7892         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7893         (prev_other_constraint): Remove.
7894         (prev_newline_dependent, prev_letter_dependent):
7895         Simplify, to avoid an unnecessary bitwise AND operation.
7897         dfa: prefer functions and constants to macros
7898         * lib/dfa.c: Prefer constants to macros where either will do.
7899         (streq, isasciidigit, newline_constraint)
7900         (letter_constraint, other_constraint, succeeds_in_context)
7901         (prev_newline_constraint, prev_letter_constraint)
7902         (prev_other_constraint, prev_newline_dependent)
7903         (prev_letter_dependent, accepting, accepts_in_context):
7904         Now static functions instead of function-like macros.
7905         Use lower-case names accordingly.  All uses changed.
7907         dfa: narrow more local var scopes
7908         * lib/dfa.c: Move some more local decls down to nearer where
7909         they're needed.
7911 2016-12-31  Jim Meyering  <meyering@fb.com>
7913         dfa: narrow the scope of many local variables
7914         * lib/dfa.c: Now that we are no longer constrained to c89, move
7915         declarations of many variables (often indices) "down" into the
7916         scope(s) where used or to the point of definition.  This is a
7917         no-semantic-change diff.
7919 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7921         version-etc: new year
7922         * build-aux/gendocs.sh (version):
7923         * doc/gendocs_template:
7924         * doc/gendocs_template_min:
7925         * doc/gnulib.texi:
7926         * lib/version-etc.c (COPYRIGHT_YEAR):
7927         Update copyright dates by hand in templates and the like.
7928         * all files: Run 'make update-copyright'.
7930 2016-12-31  Eric Blake  <eblake@redhat.com>
7932         do-release-commit-and-tag: avoid shell syntax error
7933         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7934         contain spaces when rebasing.
7936         maint.mk: hoist gnulib_dir definition earlier
7937         * top/maint.mk (gnulib_dir): Move near top of file.
7939 2016-12-31  Jim Meyering  <meyering@fb.com>
7941         maint.mk: do not always evaluate intprops-related shell
7942         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7943         using gnulib_dir undefined (gnulib_dir is defined later in the
7944         file, which will be fixed separately), and besides, there is no
7945         need to incur the cost of this shell invocation for every single
7946         use of this .mk file.  Reported by Eric Blake in
7947         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7949 2016-12-30  Jim Meyering  <meyering@fb.com>
7951         maint.mk: improve sc_prohibit_intprops_without_use
7952         * top/maint.mk (_intprops_names): Don't hard-code the list of
7953         symbol names.  Instead, derive it on the fly.
7955 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7957         dfa: shorten sbit, success
7958         * lib/dfa.c (struct regex_syntax.sbit):
7959         (struct dfa.success): Use char, not int, for array elements, since
7960         they are all in the range 0..7.
7962         dfa: simplify multibyte_prop etc.
7963         This follows up on a change made when dfa.c was in grep, namely grep
7964         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7965         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7966         That earlier simplification allows for some more simplification
7967         and trimming down here.
7968         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7969         (struct lexer_state): New mamber brack.
7970         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7971         since they must be in the range 0..3 now.
7972         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7973         the brack member now supersedes them.
7974         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7975         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7976         (dfaparse): Remove unnecessary initializations of already-0 storage.
7977         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7978         (dfassbuild): No need to clear sup->mbcsets.
7980         dfa: minor performance tweak
7981         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7983         dfa: wrap charclass inside a struct
7984         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7985         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7986         about 5% faster, where list.txt is generated by 'aspell dump
7987         master | head -n 100000 >list.txt'.  See Bug#22239.
7988         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7989         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7990         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7991         Adjust to this, e.g., by using charclass * rather than charclass.
7992         All callers changed as needed.
7993         (copyset): Remove.  All uses changed to simple assignment.
7994         (parse_bracket_exp): Use zeroset instead of memset.
7996 2016-12-30  Jim Meyering  <meyering@fb.com>
7998         maint.mk: update list of intprops.h symbol names
7999         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
8000         This avoids a false failure of the sc_prohibit_intprops_without_use
8001         rule in grep.
8003 2016-12-29  Eric Blake  <eblake@redhat.com>
8005         getopt: fix parallel test failure
8006         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
8007         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
8008         * tests/test-getopt-main.h (main): Use different file names
8009         in case test-getopt-gnu and test-getopt-posix run in parallel.
8011 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8013         xalloc: x2nrealloc check for ptrdiff_t overflow
8014         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
8015         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
8017 2016-12-24  Bruno Haible  <bruno@clisp.org>
8019         lock test: Fix performance problem on multi-core machines.
8020         * tests/test-lock.c (USE_VOLATILE): New macro.
8021         (struct atomic_int): New type.
8022         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
8023         functions.
8024         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
8025         as 'struct atomic_int'.
8026         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
8027         reclock_checker_thread, test_recursive_lock): Use the new functions.
8028         Reported by Eric Blake in
8029         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
8030         and by Pádraig Brady in
8031         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
8033 2016-12-19  Bruno Haible  <bruno@clisp.org>
8035         vma-iter: Fix endless loop on 64-bit Windows.
8036         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
8037         'unsigned long'.
8039 2016-12-19  Bruno Haible  <bruno@clisp.org>
8041         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
8042         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
8043         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
8044         Invoke gt_TYPE_WINT_T instead.
8045         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
8046         * modules/stdint (Files): Add m4/wint_t.m4.
8047         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
8048         * modules/wctype-h (Makefile.am): Likewise.
8049         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
8050         not only on MSVC.
8051         * lib/wctype.in.h (wint_t): Likewise.
8053 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8055         getopt-posix-tests: fix Makefile typo
8056         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
8057         Fix typo: the last ‘_’ was missing in the name.
8058         I suspect that the typo explains this build failure:
8059         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
8060         although I can’t reproduce the problem on Solaris 10 sparc.
8062 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8064         dfa: improve worst-case 'replace' performance
8065         See my note in Bug#22357#71.
8066         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
8067         (merge_constrained): New function, which is like
8068         the old 'merge' function, except with a new argument C2.
8069         Simplify the body by avoiding the need for different sections
8070         of code depending on whether one input is exhausted.
8071         (merge): Use the new function.
8072         (delete): Return the constraint of the deleted position,
8073         not the entire position.  Caller changed.
8074         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
8076 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8078         dfa: performance improvement for removal of epsilon closure
8079         See Bug#22357#32.
8080         * lib/dfa.c (delete): Use binary search to find deleted index.
8081         (replace): New function.  It replaces a position with the followed set.
8082         (epsclosure): Replace it with a new algorithm.  Update caller.
8084 2016-12-18  Bruno Haible  <bruno@clisp.org>
8086         Split tests for getopt-posix and getopt-gnu.
8087         * tests/test-getopt-posix.c: New file.
8088         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
8089         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
8090         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
8091         GNULIB_TEST_GETOPT_GNU.
8092         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
8093         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
8094         (Makefile.am): Test test-getopt-posix instead of test-getopt.
8095         * modules/getopt-gnu-tests: New file.
8096         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
8098 2016-12-18  Bruno Haible  <bruno@clisp.org>
8100         posix-modules: Add options for specific platforms.
8101         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
8102         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
8103         Invoke func_tmpdir. Filter out the excludes.
8105 2016-12-18  Bruno Haible  <bruno@clisp.org>
8107         getopt: Fix link error for users of getopt() in <unistd.h>.
8108         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
8109         __need_getopt is defined. Undefine all macros before defining them.
8110         * modules/getopt (Include): Clarify that including <unistd.h> is also
8111         OK.
8112         * tests/test-getopt.c: Add comment.
8114 2016-12-17  Bruno Haible  <bruno@clisp.org>
8116         getaddrinfo tests: Avoid compilation error on MSVC.
8117         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
8118         getaddrinfo on native Windows.
8120 2016-12-17  Bruno Haible  <bruno@clisp.org>
8122         getlogin, getlogin_r: Fix link errors on MSVC.
8123         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
8124         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
8125         (Link): New section.
8126         * modules/getlogin_r (Files): Add m4/getlogin.m4.
8127         (configure.ac): Require gl_LIB_GETLOGIN.
8128         (Link): New section.
8129         * NEWS: Mention the new link requirements.
8130         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
8131         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
8133 2016-12-17  Bruno Haible  <bruno@clisp.org>
8135         Un-deprecate the 'progname' module.
8136         * NEWS: Describe the appropriate use-cases of 'progname' versus
8137         'getprogname'. Based on discussion summary at
8138         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
8140 2016-12-17  Bruno Haible  <bruno@clisp.org>
8142         Reorganize NEWS a bit.
8143         * NEWS: Move some not so important changes away from section
8144         "Important Notes".
8146 2016-12-17  Bruno Haible  <bruno@clisp.org>
8148         tanhf: Avoid redefinition error on MSVC.
8149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
8150         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
8151         may be defined as an inline function.
8152         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
8153         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
8155 2016-12-17  Bruno Haible  <bruno@clisp.org>
8157         tanf: Avoid redefinition error on MSVC.
8158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
8159         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
8160         may be defined as an inline function.
8161         * modules/math (Makefile.am): Substitute REPLACE_TANF.
8162         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
8164 2016-12-17  Bruno Haible  <bruno@clisp.org>
8166         sqrtf: Avoid redefinition error on MSVC.
8167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
8168         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
8169         may be defined as an inline function.
8170         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
8171         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
8173 2016-12-17  Bruno Haible  <bruno@clisp.org>
8175         sinhf: Avoid redefinition error on MSVC.
8176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
8177         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
8178         may be defined as an inline function.
8179         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
8180         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
8182 2016-12-17  Bruno Haible  <bruno@clisp.org>
8184         sinf: Avoid redefinition error on MSVC.
8185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
8186         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
8187         may be defined as an inline function.
8188         * modules/math (Makefile.am): Substitute REPLACE_SINF.
8189         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
8191 2016-12-17  Bruno Haible  <bruno@clisp.org>
8193         logf: Avoid redefinition error on MSVC.
8194         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
8195         may be defined as an inline function.
8197 2016-12-17  Bruno Haible  <bruno@clisp.org>
8199         log10l: Avoid redefinition error on MSVC.
8200         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
8201         may be defined as an inline function.
8203 2016-12-17  Bruno Haible  <bruno@clisp.org>
8205         log10f: Avoid redefinition error on MSVC.
8206         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
8207         may be defined as an inline function.
8209 2016-12-17  Bruno Haible  <bruno@clisp.org>
8211         hypotl: Avoid redefinition error on MSVC.
8212         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
8213         may be defined as an inline function.
8215 2016-12-17  Bruno Haible  <bruno@clisp.org>
8217         hypotf: Avoid redefinition error on MSVC.
8218         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
8219         may be defined as an inline function.
8221 2016-12-17  Bruno Haible  <bruno@clisp.org>
8223         fmodl: Avoid redefinition error on MSVC.
8224         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
8225         may be defined as an inline function.
8227 2016-12-17  Bruno Haible  <bruno@clisp.org>
8229         fmodf: Avoid redefinition error on MSVC.
8230         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
8231         may be defined as an inline function.
8233 2016-12-17  Bruno Haible  <bruno@clisp.org>
8235         expf: Avoid redefinition error on MSVC.
8236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
8237         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
8238         may be defined as an inline function.
8239         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
8240         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
8242 2016-12-17  Bruno Haible  <bruno@clisp.org>
8244         coshf: Avoid redefinition error on MSVC.
8245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
8246         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
8247         may be defined as an inline function.
8248         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
8249         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
8251 2016-12-17  Bruno Haible  <bruno@clisp.org>
8253         cosf: Avoid redefinition error on MSVC.
8254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
8255         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
8256         may be defined as an inline function.
8257         * modules/math (Makefile.am): Substitute REPLACE_COSF.
8258         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
8260 2016-12-17  Bruno Haible  <bruno@clisp.org>
8262         atan2f: Avoid redefinition error on MSVC.
8263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
8264         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
8265         may be defined as an inline function.
8266         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
8267         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
8269 2016-12-17  Bruno Haible  <bruno@clisp.org>
8271         atanf: Avoid redefinition error on MSVC.
8272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
8273         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
8274         may be defined as an inline function.
8275         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
8276         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
8278 2016-12-17  Bruno Haible  <bruno@clisp.org>
8280         asinf: Avoid redefinition error on MSVC.
8281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
8282         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
8283         may be defined as an inline function.
8284         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
8285         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
8287 2016-12-17  Bruno Haible  <bruno@clisp.org>
8289         acosf: Avoid redefinition error on MSVC.
8290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
8291         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
8292         may be defined as an inline function.
8293         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
8294         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
8296 2016-12-17  Bruno Haible  <bruno@clisp.org>
8298         Avoid redefinition errors on MSVC.
8299         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
8300         the function may be defined as an inline function.
8301         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
8302         the function may be defined as an inline function.
8304 2016-12-17  Bruno Haible  <bruno@clisp.org>
8306         Avoid redefinition errors on MSVC.
8307         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
8308         * lib/unistd.in.h: Include <stdio.h> when necessary.
8310 2016-12-17  Bruno Haible  <bruno@clisp.org>
8312         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
8313         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
8314         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
8315         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
8316         WINT_MAX.
8318 2016-12-17  Bruno Haible  <bruno@clisp.org>
8320         Avoid autoconf warning.
8321         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
8322         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
8324 2016-12-17  Bruno Haible  <bruno@clisp.org>
8326         fpending: Revert workaround against Emacs bug.
8327         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
8328         The Emacs bug is fixed by Eli Zaretskii in
8329         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
8331 2016-12-17  Bruno Haible  <bruno@clisp.org>
8333         getlogin_r tests: Port to mingw.
8334         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
8335         regression introduced on 2014-05-19.
8337 2016-12-17  Bruno Haible  <bruno@clisp.org>
8339         getlogin: Port to newer mingw.
8340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
8341         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
8342         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
8343         HAVE_GETLOGIN.
8344         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
8345         HAVE_GETLOGIN.
8346         * doc/posix-functions/getlogin.texi: Mention the issue.
8347         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
8348         regression introduced on 2014-05-14.
8350 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8352         builtin-expect: improve port to IBM XL C
8353         Problem reported for z/OS by Daniel Richard G. in:
8354         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
8355         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8356         Test for <builtins.h> directly.
8358         builtin-expect: port to IBM XL C
8359         Problem reported for z/OS by Daniel Richard G. in:
8360         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
8361         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8362         Also allow __builtin_expect defined via a standard include file.
8364         regex: fix dependency
8365         Problem reported by Bruno Haible in:
8366         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
8367         * modules/regex: Depend on builtin-expect.
8369         builtin-expect: new module
8370         Fix fnmatch to use it.
8371         Problem reported for z/OS by Daniel Richard G.
8372         * lib/fnmatch.c (__builtin_expect):
8373         * lib/glob.c (__builtin_expect):
8374         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
8375         * lib/memmem.c (__builtin_expect) [!_LIBC]:
8376         * lib/scandir.c (__builtin_expect):
8377         * lib/strstr.c (__builtin_expect) [!_LIBC]:
8378         Remove macro; config.h now does this.
8379         * lib/gl_anytreehash_list1.h (add_to_bucket):
8380         * lib/regex_internal.h (BE):
8381         Assume __builtin_expect.
8382         * m4/builtin-expect.m4, modules/builtin-expect: New files.
8383         * modules/avltreehash-list, modules/fnmatch, modules/glob:
8384         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
8385         * modules/scandir, modules/strstr-simple:
8386         Depend on builtin-expect.
8388 2016-12-15  Bruno Haible  <bruno@clisp.org>
8390         init.sh: Add possibility to not delete temporary files.
8391         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
8392         to yes, don't erase the temporary directory.
8394 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8396         regex: fix integer-overflow bug in never-used code
8397         Problem reported by Clément Pit–Claudel in:
8398         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
8399         * lib/regex_internal.h: Include intprops.h.
8400         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
8401         behavior on integer overflow.
8402         * modules/regex (Depends-on): Add intprops.
8404         fpending: fix port to MinGW on Emacs
8405         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
8406         Problem reported by Eli Zaretskii in:
8407         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
8408         Is Plan 9 still a valid porting target, anyway?
8410 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8412         safe-alloc: use xalloc-oversized
8413         * lib/safe-alloc.c: Include xalloc-oversized.h.
8414         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
8415         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
8417         xalloc: do not exceed PTRDIFF_MAX
8418         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
8419         xalloc_oversized check, since objects larger than PTRDIFF_MAX
8420         bytes have pointer-subtraction problems.
8422         malloca: do not exceed PTRDIFF_MAX
8423         * lib/malloca.h: Include xalloc-oversized.
8424         (nmalloca): Use xalloc_oversized instead of rolling our own.
8425         * modules/malloca (Depends-on):
8426         * modules/relocatable-prog-wrapper (Depends-on):
8427         Add xalloc-oversized.
8429         quotearg: pacify GCC better
8430         * modules/quotearg (Depends-on): Add minmax, stdint.
8431         * lib/quotearg.c: Include minmax.h, stdint.h.
8432         (nslots): Now int, as there seems little point to going to extra
8433         work merely to support the INT_MAX slot, which nobody ever uses.
8434         (quotearg_n_options): Redo size-overflow checks to pacify GCC
8435         and to catch (mostly-theoretical) ptrdiff_t problems too.
8436         This can be done via one comparison.
8438 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8440         xalloc-oversized: check for PTRDIFF_MAX too
8441         This avoids undefined behavior when subtracting pointers to
8442         objects containing more than PTRDIFF_MAX bytes.
8443         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
8444         Also return 1 if the result would exceed PTRDIFF_MAX>
8445         * modules/xalloc-oversized (Depends-on):
8446         Add stdint.
8448         dfa: fix glitches in previous commit
8449         Sorry, I don't know how I managed to commit the wrong version.
8450         * lib/dfa.c (MIN): Move up.
8451         (xpalloc): Now static.
8453         dfa: fix some unlikely integer overflows
8454         I found these while reviewing the recent Coverity-related fix.
8455         This patch changes part of dfa.c to prefer ptrdiff_t instead of
8456         size_t for object counts.  Using ptrdiff_t is the style typically
8457         used in Emacs; although it wastes a sign bit as sizes can never be
8458         negative, it makes -fsanitize=undefined more likely to catch
8459         integer overflows in index calculation, and nowadays the upside is
8460         typically more important than the downside.  Although perhaps the
8461         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
8462         of dfa.c already does, since it uses state_num which is signed),
8463         that is a bigger change and is not needed to fix the bugs I found.
8464         * lib/dfa.c: Include stdint.h and intprops.h.
8465         (TOKEN_MAX): New macro.
8466         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
8467         (charclass_index, parse_bracket_exp, addtok, insert, merge)
8468         (realloc_trans_if_necessary, free_mbdata):
8469         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
8470         This is safe because xpalloc checks that the sizes do not exceed
8471         either SIZE_MAX or PTRDIFF_MAX.
8472         (xpalloc): New function, mostly taken from Emacs.
8473         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
8474         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
8475         (charclass_index): Check for integer overflow in computing
8476         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
8477         added to it later.
8478         (alloc_position_set): Check for integer overflow.  On typical
8479         platforms this check has zero overhead, since the constant
8480         expression is false.
8481         (realloc_trans_if_necessary):
8482         Remove assertion, which I hope Coverity no longer needs.
8484         * modules/dfa (Depends-on): Add intprops, stdint.
8486 2016-12-12  Jim Meyering  <meyering@fb.com>
8488         dfa: add an assertion to avoid coverity false positive
8489         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
8490         warned that "newalloc1 - 2" could overflow.
8492 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
8494         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
8495         * dfa.h (DFA_CASE_FOLD): Remove.
8496         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
8498 2016-12-13  John W. Eaton  <gnu@jweaton.org>
8500         link: fix test to declare use of rename()
8501         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
8502         -Werror=implicit-function-declaration
8504 2016-12-12  Bruno Haible  <bruno@clisp.org>
8506         fpending: Port to native Windows with MSVC.
8507         * lib/fpending.c: Include stdio-impl.h.
8508         (__fpending): Include all known implementations. Err out if it's not
8509         ported.
8510         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
8511         * modules/fpending (Files): Add lib/stdio-impl.h.
8512         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
8514 2016-12-12  Bruno Haible  <bruno@clisp.org>
8516         stdioext: Port to native Windows with MSVC.
8517         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
8518         (struct _gl_real_FILE): New type.
8519         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
8520         Windows.
8521         * lib/fbufmode.c (fbufmode): Add code for native Windows.
8522         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
8523         other SystemV derived implementations.
8524         * lib/fpurge.c (fpurge): Likewise.
8525         * lib/freadable.c (freadable): Likewise.
8526         * lib/freadahead.c (freadahead): Likewise.
8527         * lib/freading.c (freading): Likewise.
8528         * lib/freadptr.c (freadptr): Likewise.
8529         * lib/freadseek.c (freadptrinc): Likewise.
8530         * lib/fseeko.c (fseeko): Likewise.
8531         * lib/fseterr.c (fseterr): Likewise.
8532         * lib/fwritable.c (fwritable): Likewise.
8533         * lib/fwriting.c (fwriting): Likewise.
8534         Reported by Gisle Vanem <gvanem@yahoo.no>.
8536 2016-12-11  Jim Meyering  <meyering@fb.com>
8538         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
8539         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
8540         to work with most shells, but not with the one provided by many
8541         Solaris 10 systems, so running configure with such a /bin/sh evokes
8542         e.g., "./configure: syntax error at line 33602: `(' unexpected".
8543         Reported by Assaf Gordon in
8544         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
8546 2016-12-10  Bruno Haible  <bruno@clisp.org>
8548         threadlib: Optimize out runtime test on Solaris >= 10.
8549         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
8550         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
8551         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
8553 2016-12-10  Bruno Haible  <bruno@clisp.org>
8555         stdint: Update doc about Solaris 9.
8556         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
8558 2016-12-09  Bruno Haible  <bruno@clisp.org>
8560         c-ctype tests: Fix link error on Solaris 9.
8561         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
8562         Reported at <https://savannah.gnu.org/bugs/?46827>.
8564 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8566         dfa: fix performance bug that recomputes trans
8567         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
8568         25 on-demand changes.  The bug caused build_state to reset all
8569         d->trans elements to -2 even when d->trans was already non-null.
8570         Use C99 style decls after statements in this function.
8572         same-inode: port to MinGW
8573         Here st_ino is always 0, so change the definition of SAME_INODE so
8574         that 1 means the two files are the same, 0 with st_ino != 0 means
8575         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
8576         reported by Bruno Haible (Bug#25146).
8577         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
8578         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
8580 2016-12-04  Bruno Haible  <bruno@clisp.org>
8582         javacomp-script: Support Java 7 and 8.
8583         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
8584         target-version 1.7, 1.8.
8586 2016-12-02  Daiki Ueno  <ueno@gnu.org>
8588         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
8589         GPLv2" rewriting.
8591 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
8593         * gnulib-tool (func_import): Adhere to the license guideline when
8594         rewriting the license text to "LGPLv3+ or GPLv2":
8595         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
8597 2016-12-02  Bruno Haible  <bruno@clisp.org>
8599         localcharset: Avoid theoretical buffer overrun.
8600         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
8601         return value from setlocale if it would lead to a buffer overrun.
8603 2016-12-01  Bruno Haible  <bruno@clisp.org>
8605         Relicense some modules under LGPLv2+.
8606         Kevin Cernekee's approval is in
8607         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
8608         * modules/fseterr (License): Change to LGPLv2+.
8609         * modules/mbchar (License): Likewise.
8610         * modules/mbiter (License): Likewise.
8611         * modules/mbsnlen (License): Likewise.
8612         * modules/wcwidth (License): Likewise.
8614 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8616         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
8617         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
8618         OS/2 kLIBC.
8620 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8622         alphasort, scandir: Port to OS/2 kLIBC
8623         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
8624         declaration.
8625         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
8627 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8629         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
8630         * lib/relocatable.c (relocate): Do not touch pathname if it is started
8631         with '/@unixroot'.
8633 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8635         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
8636         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
8637         OS/2 kLIBC unless TCPV40HDRS is defined.
8639 2016-11-29  Jim Meyering  <meyering@fb.com>
8641         dfa: avoid new infinite loop
8642         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
8643         * lib/dfa.c (dfastate): When constructing a new state table, we could
8644         initially declare that we had found a match, and later find that
8645         constraints eliminate that possibility, yet continue to use the
8646         now stale "matched" indicator.  That would lead to an infinite loop.
8647         The solution is to update "matched" when necessary.
8648         Introduced by commit v0.1-983-g403adf1.
8650 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8652         dfa: avoid match middle in multibyte character
8653         * lib/dfa.c (transit_state): If fails in matching single byte characters
8654         on a state including period expression in non-UTF8 multibyte locales,
8655         skip trailing bytes.
8656         (dfa_supported): Revert previous change.
8658 2016-11-27  Jim Meyering  <meyering@fb.com>
8660         dfa: avoid false match in non-UTF8 multibyte locales
8661         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
8662         as "not supported" so that callers will resort to using regex-based
8663         matcher.  This will surely hurt performance, but correctness trumps
8664         performance here, and the affected locales are less and less relevant,
8665         these days.  See grep's bug report https://bugs.gnu.org/24975.
8667 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
8669         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
8670         * lib/ptsname_r.c: Include the appropriate headers.
8671         [__sun]: Delete sys/sysmacros.h include.
8672         [_AIX || __osf__]: Likewise.
8673         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
8675 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8677         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
8678         * lib/md4.c (md4_process_bytes): The existing define is made internal
8679         in recent versions of glibc, so also use this new public define.
8680         * lib/md5.c (md5_process_bytes): Likewise.
8681         * lib/sha1.c (sha1_process_bytes): Likewise.
8682         * lib/sha256.c (sha256_process_bytes): Likewise.
8683         * lib/sha512.c (sha512_process_bytes): Likewise.
8685 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8687         maint: use a more standard return from mbrtowc test
8688         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
8689         from the test program as this often indicates an
8690         unhandled case in the test program.
8691         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
8692         (gl_MBRTOWC_SANITYCHECK): Likewise.
8693         (gl_MBRTOWC_NULL_ARG2): Likewise.
8694         (gl_MBRTOWC_NUL_RETVAL): Likewise.
8696 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8698         freopen: work around glibc bug with closed fd
8699         Work around glibc bug#15589, where freopen mishandles the case
8700         where stdin etc. are already closed.
8701         * doc/posix-functions/freopen.texi (freopen): Document the bug.
8702         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
8703         instead of __need_FILE, as the latter does not work with glibc.
8704         Include <fcntl.h>, for open flags.
8705         (rpl_freopen): Work around glibc bug.
8706         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
8707         * modules/freopen (Depends-on): Add fcntl-h.
8708         * tests/test-freopen.c (main): Test for bug.
8710 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8712         fnmatch: fix typo introduced on 2016-08-17
8713         This fixes the port to non-GCC compilers that lack __builtin_expect.
8714         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
8716         dfa: simplify with new function fillset
8717         * lib/dfa.c (fillset): New function.
8718         Use it for clarity when applicable.
8720         dfa: fix glitches with on-demand states
8721         Also, adjust commentary to better match new code.
8722         Some of these glitches predate the recent change.
8723         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
8724         only non-initial states.
8725         (dfastate): Rename locals to better match new roles.
8726         Move them into nested scopes if this is easy.
8727         Omit unnecessary calls to zeroset.
8728         Simplify test for whether to throw in the positions of state 0.
8729         Omit C99-ism (decl after statement) since Gawk still wants C89.
8730         (build_state): Omit unnecessary test and assignment.
8731         Fix some confusion that counted transition tables inaccurately
8732         and could cause a memory leak.
8733         (dfaexec_main): Redo to make it clearer to the compiler that
8734         -1 and -2 are the only negative state numbers here.
8736 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8738         dfa: addition of new state on demand
8739         * src/dfa.c (dfastate): Add argument UC, the current input character.
8740         Fill only a group including the character in transition table.
8741         (realloc_trans_if_necessary): Add the dummy state which means that a
8742         transition table is assigned but the next state is not assigned.
8743         (build_state): Return the next state.  All callers updated.
8744         (transit_state_singlebyte): If we get the dummy state,
8745         fill the transition table.
8746         (dfaexec_main): Handle the dummy state.
8747         (free_mbdata, dfafree): Consider the dummy state.
8749 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8751         srclist: sync with released gettext
8752         * config/srclist.txt: Set "release" option to the files under
8753         $GETTEXT.
8755 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8757         srclist: add "release" option
8758         * config/srclist.txt: Change the format so that the first column
8759         of each line points to the top-level directory of the source
8760         archive.
8761         * config/srclist-update: Accept "release" option that checks files
8762         from the most recently tagged revision in the source archive.
8764 2016-11-21  Bruno Haible  <bruno@clisp.org>
8766         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
8767         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8768         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
8769         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
8770         Inline and remove member function 'rpl ()' of the wrapper struct.
8772 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8774         dfa: fix logic typo
8775         Problem reported by Stephane Chazelas (Bug#24973).
8776         * lib/dfa.c (using_simple_locale): Fix typo that caused some
8777         non-simple locales like fr_FR to be treated as simple.
8779 2016-11-20  Jim Meyering  <meyering@fb.com>
8781         fix test driver leaks: exclude, malloc, realloc
8782         * tests/test-exclude.c (main): Fix trivial leak.
8783         * tests/test-malloc-gnu.c (main): Likewise.
8784         * tests/test-realloc-gnu.c (main): Likewise.
8785         With these changes, grep's tests are now leak free.
8786         I.e., running them with ASAN elicits no failure:
8787           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
8788             AM_LDFLAGS='-fsanitize=address -static-libasan' check
8790 2016-11-11  Bruno Haible  <bruno@clisp.org>
8792         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
8793         * modules/libunistring: (License): Change from LGPL to
8794         "LGPLv3+ or GPLv2".
8795         * modules/libunistring-optional: Likewise.
8796         * modules/unicase/*: Likewise.
8797         * modules/uniconv/*: Likewise.
8798         * modules/unictype/*: Likewise.
8799         * modules/unigbrk/*: Likewise.
8800         * modules/unilbrk/*: Likewise.
8801         * modules/uniname/*: Likewise.
8802         * modules/uninorm/*: Likewise.
8803         * modules/unistdio/*: Likewise.
8804         * modules/unistr/*: Likewise.
8805         * modules/uniwbrk/*: Likewise.
8806         * modules/uniwidth/*: Likewise.
8808 2016-11-12  Bruno Haible  <bruno@clisp.org>
8810         Relicense some modules under LGPLv2+.
8811         Paul Eggert's approval is in
8812         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
8813         Eric Blake's approval is in
8814         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
8815         Ludovic Courtès's approval is in
8816         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
8817         * modules/isnand-nolibm (License): Change to LGPLv2+.
8818         * modules/isnanf-nolibm (License): Likewise.
8819         * modules/isnanl-nolibm (License): Likewise.
8821 2016-11-19  Bruno Haible  <bruno@clisp.org>
8823         Relicense some modules under LGPLv2+.
8824         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
8825         modules/vasnprintf.
8826         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
8827         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
8828         All other significant changes to the files in lib/ of these modules
8829         are from me.
8830         * modules/memcmp2 (License): Change to LGPLv2+.
8831         * modules/amemxfrm (License): Likewise.
8832         * modules/fpieee (License): Likewise.
8833         * modules/fpucw (License): Likewise.
8834         * modules/frexp-nolibm (License): Likewise.
8835         * modules/frexpl-nolibm (License): Likewise.
8836         * modules/printf-frexp (License): Likewise.
8837         * modules/printf-frexpl (License): Likewise.
8838         * modules/printf-safe (License): Likewise.
8839         * modules/signbit (License): Likewise.
8841 2016-11-17  Bruno Haible  <bruno@clisp.org>
8843         Enable Unicode decoder safety unconditionally.
8844         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
8845         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
8846         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8847         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8848         * lib/unistr/u8-prev.c (u8_prev): Likewise.
8849         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8850         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8851         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8852         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8853         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8854         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8855         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8856         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8857         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8858         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8859         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8860         * lib/unistr/u32-next.c (u32_next): Likewise.
8861         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8862         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8863         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8864         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8865         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8866         CONFIG_UNICODE_SAFETY tests unconditionally.
8867         * tests/unistr/test-u32-mblen.c (main): Likewise.
8868         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8869         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8870         * tests/unistr/test-u32-next.c (main): Likewise.
8871         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8872         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8873         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8874         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8875         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8876         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8877         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8878         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8879         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8880         * lib/unistr/u16-check.c (u16_check): Update comment.
8881         * NEWS: Mention the changes that callers should be aware of.
8883 2016-11-19  Bruno Haible  <bruno@clisp.org>
8885         relocatable-prog-wrapper: Fix breakage on Cygwin.
8886         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8887         (Depends-on): Remove intprops.
8888         * lib/relocwrapper.c: Update dependency tree.
8889         (strerror): Undefine.
8890         * build-aux/install-reloc (func_create_wrapper): Do not compile
8891         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8893 2016-11-19  Bruno Haible  <bruno@clisp.org>
8895         strerror: Make it compile in C++ mode.
8896         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8898 2016-11-15  Pedro Alves  <palves@redhat.com>
8900         sys_time: add gnulib::timeval for C++
8901         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8902         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8903         timeval macro.
8905 2016-11-14  Pedro Alves  <palves@redhat.com>
8907         snippet/c++defs: fix real-floating arg functions in C++ mode
8908         Also, define isfinite, isinf, isnan, signbit in the gnulib
8909         namespace instead of in the global namespace.
8910         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8911         (_GL_END_NAMESPACE): New.
8912         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8913         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8914         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8915         instead of in the global namespace.
8916         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8917         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8918         of in the global namespace.
8920 2016-11-13  Jim Meyering  <meyering@fb.com>
8922         strftime: don't use __THROW
8923         Each use of __THROW would provoke this from gcc-7-to-be:
8925           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8926             on unit local functions [-Wattributes]
8927           static int iso_week_days (int, int) __THROW;
8928           ^~~~~~
8929         * lib/strftime.c (__THROW): Don't define.
8930         Remove each use of __THROW.
8931         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8932         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8934 2016-11-14  Paul Eggert  <eggert@union>
8936         obstack: port to gcc -fcheck-pointer-bounds
8937         Problem found by 'make check' failure on bleeding-edge coreutils
8938         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8939         6.2.0-5ubuntu12), configured via "./configure
8940         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8941         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8942         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8943         New macro, copied from fts_.h.
8944         (struct _obstack_chunk.contents): Use it.
8946 2016-11-14  Eric Blake  <eblake@redhat.com>
8948         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8950         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8952 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8954         strptime: fix compile error in recent change
8955         * lib/strptime.c (__strptime_internal): Fix ported code.
8957 2016-11-11  Bruno Haible  <bruno@clisp.org>
8959         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8960         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8961         (func_import): Extend determination of license_incompatibilities.
8962         (func_create_testdir): Extend table of license compatibility. Handle
8963         also the licenses GPLv3+, GPL, LGPLv3+.
8965 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8967         strftime: tune %q
8968         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8970         Merge strftime.c changes from glibc
8971         This incorporates:
8972         2007-10-16 [BZ #5184] Add tzset_called argument
8973         2008-06-13 [BZ #6612] pass reference to tzset_called around
8974         2009-10-30 Implement Burmese language locale for Myanmar
8975         2010-01-09 Add support for XPG7 testing
8976         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8977         2015-10-20 Convert miscellaneous function definitions to prototype style
8978         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8979         it anyway and this lessens the difference between gnulib and glibc.
8980         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8981         (__THROW): Define if standard headers do not.
8982         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8983         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8984         Declare with __THROW.
8985         (__strftime_internal): Rename from strftime_case_. Add arg for
8986         whether tzset is called.  All uses changed.  Call tzset at most
8987         once.  Allow %OC, for Burmese.
8988         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8989         Don't assume values are in range.
8991 2016-11-12  Eric Blake  <eblake@redhat.com>
8993         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8994         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8995         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8996         different value.
8998 2006-11-12  Pedro Alves  <palves@redhat.com>
9000         Fix gnulib C++ namespace support and std::frexp
9001         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
9002         _GL_CXXALIASWARN.
9004 2006-11-12  Pedro Alves  <palves@redhat.com>
9006         GNULIB_NAMESPACE::func need not pull in rpl_func
9007         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
9008         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
9009         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
9010         struct instead of a function pointer.
9012 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
9014         manywarnings: fix -Wno-missing-field-initializers detection
9015         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
9016         to be independent of -Wunused-variable.  I.E. ensure the latter
9017         warning doesn't occur so that detection of the former is accurate.
9019 2016-11-05  Pádraig Brady  <pbrady@fb.com>
9021         strftime,strptime: support %q to represent the quarter
9022         * lib/strftime.c (strftime_case_): Add %q case.
9023         * lib/strptime.c (__strptime_internal): Likewise.
9024         * tests/test-strftime.c (quarter_test): A new test case.
9026 2016-11-03  Eric Blake  <eblake@redhat.com>
9028         bootstrap: Fix get_version() for AIX 5.3
9029         * build-aux/bootstrap (get_version): Factor out sed script, since
9030         indented comments choke AIX 5.3 sed.
9031         Reported-by: Michael Felt <aixtools@gmail.com>
9033 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9035         intprops: port to older XL C
9036         Problem reported by Alexander Samoilov in:
9037         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
9038         http://savannah.nongnu.org/bugs/?49448
9039         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
9040         Define to 1 only for XL C 12.1 or later, since this bug
9041         occurs in XL C for AIX 6.0 but not in 12.1.
9043 2016-11-02  Pádraig Brady  <P@draigBrady.com>
9045         backupfile: initialize default suffix within the implementation
9046         * lib/backupfile.c (find_backup_file_name): Initialize the
9047         global variable here, to simplify usage, and to only call
9048         getenv() when needed.
9050 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9052         futimens: remove FIXME for old Linux kernels
9053         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
9054         this in 2012" FIXME, like that for utimensat.
9056         utimensat: remove FIXME for old Linux kernels
9057         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
9058         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
9059         this in 2012" FIXME, by assuming the file system bug is absent
9060         unless demonstrated to be present.  We no longer need to worry
9061         about Linux kernel 2.6.32 when building with newer kernels.
9063 2016-10-16  Bruno Haible  <bruno@clisp.org>
9065         qsort_r: Fix macrology for platforms that lack the function.
9066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
9067         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
9068         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
9069         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
9070         not exist.
9071         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
9072         the function exists.
9073         * modules/qsort_r: Add comments.
9075 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9077         sys_types: fix Texinfo typos
9078         * doc/glibc-functions/gnu_dev_major.texi:
9079         * doc/glibc-functions/gnu_dev_makedev.texi:
9080         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
9082 2016-10-26  John David Anglin  <dave.anglin@bell.net>
9084         getprogname: port to HP-UX
9085         See Bug#24805.
9086         * lib/getprogname.c (getprogname) [__hpux]: Port.
9087         * tests/test-getprogname.c (STREQ) [__hpux]:
9088         Special-case for HP-UX limitations on program name length.
9090 2016-10-20  Bruno Haible  <bruno@clisp.org>
9092         Update doc about target platforms.
9093         * doc/gnulib-intro.texi (Target Platforms): Update list.
9095 2016-10-15  Bruno Haible  <bruno@clisp.org>
9097         opendir, readdir, closedir: Relicense under LGPLv2+.
9098         * modules/opendir (License): Change to LGPLv2+.
9099         * modules/readdir (License): Likewise.
9100         * modules/closedir (License): Likewise.
9102 2016-10-16  Bruno Haible  <bruno@clisp.org>
9104         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
9105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
9106         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
9107         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
9108         HAVE_DECL_STRERROR_R.
9110 2016-10-16  Bruno Haible  <bruno@clisp.org>
9112         Make the 'argp' module work without the 'error' module.
9113         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
9115 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9117         diffseq: restore TOO_EXPENSIVE heuristic
9118         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
9119         (Bug#24715).  The simplest solution is to restore the
9120         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
9121         using a higher threshold to avoid Bug#16848 on smaller files.
9122         * lib/diffseq.h (struct context): Restore member too_expensive.
9123         (struct partition): Restore members lo_minimal, hi_minimal.
9124         (diag, compareseq): Restore arg find_minimal.  All uses changed.
9125         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
9126         1993 to make 'diff' run faster (but not as well) on large inputs,
9127         but use a threshold of 4096 instead of the old 256.
9128         * lib/fstrcmp.c (strcmp_bounded):
9129         * lib/git-merge-changelog.c (compute_differences):
9130         Adjust to diffseq.h changes.
9132 2016-10-22  Bruno Haible  <bruno@clisp.org>
9134         iconv: Avoid compilation error when bootstrapping GNU libiconv.
9135         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
9136         declaration yet, define ICONV_CONST to empty.
9138 2016-10-15  Bruno Haible  <bruno@clisp.org>
9140         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
9141         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
9142         module.
9144 2016-10-16  Bruno Haible  <bruno@clisp.org>
9146         system-quote tests: Avoid compiler warning on AIX.
9147         * tests/test-system-quote-child.c (fopen): Redefine like the system's
9148         <stdio.h> does.
9150 2016-10-16  Bruno Haible  <bruno@clisp.org>
9152         Fix some "gcc -Wall" warnings.
9153         * tests/test-ffsl.c (main): Use variable x, not i.
9154         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
9155         freopen.
9156         * tests/test-sethostname1.c (main): Explicitly ignore the return value
9157         of sethostname.
9159 2016-10-16  Bruno Haible  <bruno@clisp.org>
9161         gnulib-tool: Make --create-testdir on all modules work again.
9162         * gnulib-tool (func_create_testdir): Don't include the
9163         non-recursive-gnulib-prefix-hack module.
9165 2016-10-21  Daiki Ueno  <ueno@gnu.org>
9167         libunistring: change the maintainer to 'all'
9168         * modules/gen-uni-tables, modules/libunistring:
9169         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
9170         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
9171         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
9172         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
9173         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
9174         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
9175         * modules/uniwidth/*: Change the maintainer to 'all'.
9177 2016-10-16  Bruno Haible  <bruno@clisp.org>
9179         Simplify "configure: checking ..." messages.
9180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
9181         AC_MSG_NOTICE.
9182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9184 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9186         quotearg-tests: pacify gcc -Wall
9187         Problem reported by Bruno Haible in:
9188         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
9189         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
9190         * tests/test-quotearg.h: ... from here.
9192 2016-10-20  Pádraig Brady  <P@draigBrady.com>
9194         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
9195         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
9196         Needed on Centos <= 4.
9198 2016-10-20  Jim Meyering  <meyering@fb.com>
9200         printf.m4: fix a bug in detecting printf %j support
9201         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
9202         uintmax_t is defined in neither stdint.h nor inttypes.h.
9203         Before, this macro might have mistakenly set
9204         gl_cv_func_printf_sizes_c99=yes on such a system.
9205         Spotted by Zev Weiss.
9207 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9209         sched: substitute HAVE_SYS_CDEFS_H too
9210         Problem reported by Tom G. Christensen in:
9211         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
9212         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
9213         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
9215 2016-10-19  Pádraig Brady  <P@draigBrady.com>
9217         quotearg: never write beyond the returned length
9218         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
9219         scan of the string when we initially encounter a single quote when
9220         shell quoting, so that if we then switch to a more concise quoting method
9221         we will not have written beyond that returned length.
9222         This is significant for sh-quote, which has separate routines
9223         to determine the length and do the actual quoting.
9224         * tests/test-quotearg.h: Reinstate the buffer bounds checking
9225         now that we never write more than the returned length.
9227 2016-10-18  Bruno Haible  <bruno@clisp.org>
9229         getprogname tests: Avoid failure in packages that use libtool.
9230         * tests/test-getprogname.c (main): Strip "lt-" prefix.
9231         Based on a patch by Jim Meyering.
9233 2016-10-16  Bruno Haible  <bruno@clisp.org>
9235         getprogname: Fix test failure on Cygwin. Comments.
9236         * lib/getprogname.h: Add comments.
9237         * lib/getprogname.c: Add comments. Fix #elif indentation.
9238         * tests/test-getprogname.c (main): On Cygwin, expect a result without
9239         ".exe" suffix.
9241 2016-10-16  Bruno Haible  <bruno@clisp.org>
9243         Make sure the libunistring detection rejects older versions with a
9244         known bug.
9245         * modules/unistr/u8-strtok (configure.ac): Bump required version.
9246         * modules/unistr/u16-strtok (configure.ac): Likewise.
9247         * modules/unistr/u32-strtok (configure.ac): Likewise.
9249 2016-10-18  Bruno Haible  <bruno@clisp.org>
9251         sh-quote, system-quote: revert regression of unit test.
9252         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
9253         * tests/test-system-quote-main.c (check_one): Likewise.
9255 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9257         quotearg: fix stale tests
9258         * tests/test-quotearg.c [locale_results]: Add the missing str7
9259         entries to the expected results.
9260         * tests/test-system-quote-main.c (check_one): Don't enforce that we
9261         don't write beyond the returned length, since that's no longer the
9262         case if we switch to a more concise quoting style.
9263         * tests/test-sh-quote.c (check_one): Likewise.
9264         (main): Adjust for the new more concise quoting style.
9265         Reported by Bruno Haible.
9267 2016-10-16  Jim Meyering  <meyering@fb.com>
9269         non-recursive-gnulib-prefix-hack: fix inconsequential typo
9270         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
9271         to "$1".  This macro is always invoked with $1 == lib.
9272         Spotted by Bruno Haible
9274 2016-10-16  Bruno Haible  <bruno@clisp.org>
9276         Fix a test crash.
9277         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
9278         fails.
9280 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9282         test-limits-h: suppress -Woverlength-strings
9283         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
9285 2016-10-15  Bruno Haible  <bruno@clisp.org>
9287         gettime, timespec, utimens: Relicense under LGPL.
9288         * modules/gettime (License): Change to LGPL.
9289         * modules/timespec (License): Likewise.
9290         * modules/utimens (License): Likewise.
9292 2016-10-14  Bruno Haible  <bruno@clisp.org>
9293             Pádraig Brady  <P@draigBrady.com>
9295         canonicalize-lgpl: Support the case path_max > INT_MAX.
9296         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
9297         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
9299 2016-10-13  Jim Meyering  <meyering@fb.com>
9301         getprogname: IBM z/OS: avoid NULL-dereference
9302         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
9303         upon strdup failure.
9305 2016-10-12  Jim Meyering  <meyering@fb.com>
9307         test-stdint: use _GL_VERIFY rather than "verify" for some tests
9308         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
9309         and an abbreviated diagnostic rather than verify with the full one,
9310         because the full-length strings would evoke warnings from gcc with
9311         -Woverlength-strings.
9313 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9315         stdint: port SIZE_MAX to glibc s390
9316         Problem reported by Eric Blake in:
9317         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
9318         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
9319         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
9320         correct type, if possible.
9322 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
9324         getprogname: port to IBM z/OS
9325         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
9327 2016-10-11  Jim Meyering  <meyering@fb.com>
9329         maint: remove stray space after "." in AC_DEFINE comment.
9330         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
9331         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9333 2016-10-05  Jim Meyering  <meyering@fb.com>
9335         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9336         * lib/long-options.c (parse_long_options): Add a break statement
9337         to avoid this new warning/failure:
9338         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9339           --create-testdir --dir=/t/x --with-tests --test long-options
9340         ../../gllib/long-options.c: In function 'parse_long_options':
9341         ../../gllib/long-options.c:66:12: error: this statement may \
9342           fall through [-Werror=implicit-fallthrough]
9343                    (*usage_func) (EXIT_SUCCESS);
9344                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9346 2016-10-05  Jim Meyering  <meyering@fb.com>
9348         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9349         Testing this module would fail when using GCC 7 like this:
9350         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9351           --dir=/tmp/x --with-tests --test utimecmp
9352         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9353         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9354           [-Werror=bool-operation]
9355                          time_t s = src_s & ~ (res == 2 * BILLION);
9356                                             ^
9357         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9358           [-Werror=bool-operation]
9359                src_s &= ~ (res == 2 * BILLION);
9360                         ^
9361         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9362         Instead, make it explicit that we intend to apply it to 0 or 1.
9364 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9366         dfa: save memory for states
9367         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
9368         states if dfa has a lot of caches.
9370 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
9372         wchar, wctype-h: fix for MinGW 3.22.2
9373         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
9374         special invocation, to fix issues with MinGW 3.22.2 wchar.h
9375         when included from <string.h>.
9376         * lib/wctype.in.h [__MINGW32__]: Add special invocation
9377         convention for MinGW 3.22.2, to solve issues with their
9378         wctype.h when included from <ctype.h>.
9380 2016-10-05  Jim Meyering  <meyering@fb.com>
9382         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9383         * lib/long-options.c (parse_long_options): Add a break statement
9384         to avoid this new warning/failure:
9385         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9386           --create-testdir --dir=/t/x --with-tests --test long-options
9387         ../../gllib/long-options.c: In function ‘parse_long_options’:
9388         ../../gllib/long-options.c:66:12: error: this statement may \
9389           fall through [-Werror=implicit-fallthrough]
9390                    (*usage_func) (EXIT_SUCCESS);
9391                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9393         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9394         Testing this module would fail when using GCC 7 like this:
9395         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9396           --dir=/tmp/x --with-tests --test utimecmp
9397         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9398         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9399           [-Werror=bool-operation]
9400                          time_t s = src_s & ~ (res == 2 * BILLION);
9401                                             ^
9402         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9403           [-Werror=bool-operation]
9404                src_s &= ~ (res == 2 * BILLION);
9405                         ^
9406         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9407         Instead, make it explicit that we intend to apply it to 0 or 1.
9409 2016-10-03  Pádraig Brady  <P@draigBrady.com>
9411         quotearg: minimize shell quoting using double quotes
9412         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
9413         quote in encountered then use double quotes (c style quoting)
9414         when possible, as it simplifies the quoting.
9415         * tests/test-quotearg-simple.c: Add test cases.
9416         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
9417         for the fact we now may write beyond the returned length.
9419 2016-10-02  Jim Meyering  <meyering@fb.com>
9421         vasnprintf.c: avoid spurious warning from GCC 7
9422         The presence of cpp directives renders this "FALLTHROUGH" comment
9423         ineffective, so does not suppress the -Wimplicit-fallthrough warning
9424         from GCC 7 built from git on 2016-10-02.
9425         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
9426         directives, so that it takes effect once again.  This is clearly
9427         not a proper change, and I will revert it once this bug is fixed:
9428         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
9430 2016-10-01  Jim Meyering  <meyering@fb.com>
9432         getprogname: correct the test for a __progname variable
9433         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
9434         and AC_LINK_IFELSE to check for a global __progname.  If found,
9435         define HAVE_VAR___PROGNAME.
9436         * lib/getprogname.c (getprogname): Reflect the new name of the
9437         feature- checked preprocessor symbol:
9438         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
9440 2016-09-28  Jim Meyering  <meyering@fb.com>
9442         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
9443         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
9444         fall-through case with a /* fallthrough */ comment.
9446         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
9447         * lib/dfa.c (dfassbuild): Mark the end of this case with a
9448         /* fallthrough */ comment.
9450         getprogname: avoid __progname vs program_invocation_short_name pitfall
9451         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
9452         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
9453         not with Fedora 24's glibc-2.23.1-10.
9454         * lib/getprogname.c (__progname): Move this declaration down...
9455         (getprogname): ... into the #elif block where used, and make it
9456         explicitly "extern".
9458         getprogname: port to OpenBSD 5.1
9459         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
9460         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
9461         * modules/getprogname (configure.ac): Move most of this code...
9462         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
9463         increment serial number, and add a test for __progname.
9464         https://bugs.gnu.org/24562
9465         Reported by Nelson H. F. Beebe.
9467 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9469         sched: port to GCC 6.2.1 on macOS Sierra
9470         Problem reported by Denis Davydov in:
9471         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
9472         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
9473         Include <sys/cdefs.h> before <sched.h>.
9474         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
9475         so that we needn’t worry about the sched.h include bug here.
9476         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
9477         and include it before <sched.h> if it exists, when
9478         checking for <sched.h>.
9480         tests/init.sh: port Alpine fix to AIX 7.1
9481         * tests/init.sh (compare_): When attempting to use diff -U3,
9482         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
9483         diff -u not outputting a space after leading '+', as the users
9484         of 'compare' should not be that picky about its output format.
9485         In the AIX 7.1 case, return with diff exit status (or with 2 if
9486         trouble), instead of some random nonzero exit status.
9487         * tests/test-init.sh (test_compare): Remove space after leading
9488         '+', so that AIX 7.1 'diff' passes the test.
9490 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9492         nl_langinfo: pacify GCC
9493         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
9494         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
9496         stdint: also set GL_GENERATE_LIMITS_H
9497         Problem reported by Jim Meyering in:
9498         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
9499         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
9501         limits-h, stdint: Don't assume extensions, fix typo
9502         * m4/limits-h.m4 (gl_LIMITS_H):
9503         * m4/stdint.m4 (gl_STDINT_H):
9504         Don't assume AC_USE_SYSTEM_EXTENSIONS.
9505         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
9506         reported by Jim Meyering in:
9507         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
9509 2016-09-21  Jim Meyering  <meyering@fb.com>
9511         getprogname: port to AIX
9512         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
9513         and strdup to obtain a short program name string.  Using code from
9514         Bruno Haible and an idea from Bastien ROUCARIÈS, in
9515         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9516         Assaf Gordon reported that this new file would fail to compile on
9517         AIX-7.1 32bit.
9519 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9521         extensions: fix typo in comment
9522         * m4/extensions.m4: Sync from Autoconf master.
9524         stdint: support new _WIDTH macros
9525         * doc/posix-headers/stdint.texi: Document this.
9526         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
9527         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
9528         support for INTMAX_WIDTH, etc. as well as for support for just C99.
9529         * modules/stdint (Depends-on): Add limits-h.
9530         (Makefile.am): Substitute HAVE_C99_STDINT_H.
9531         * modules/stdint-tests (Depends-on): Add extensions, so that
9532         INTMAX_MAX etc. are defined.
9533         * tests/test-stdint.c: Verify the new macros.
9535         limits-h: new module
9536         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
9537         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
9538         * doc/posix-headers/limits.texi: Document new module.
9539         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
9540         * modules/limit-h-tests, tests/test-limits-h.c: New files.
9542         stdio: don't redefine __USE_MINGW_ANSI_STDIO
9543         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
9544         if it is already defined.  Apparently GNU Emacs relies on this.  See:
9545         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
9547 2016-09-15  Eric Blake  <eblake@redhat.com>
9549         sys_types: avoid glibc 2.25 warnings about major()
9550         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
9551         older autoconf.
9552         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
9553         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
9554         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
9555         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
9557         mountlist: include sysmacros.h for glibc
9558         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
9559         AC_HEADER_MAJOR.
9560         * lib/mountlist.c (includes): Use correct headers.
9562 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9564         extensions: port to more ISO C TSes
9565         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
9566         master, to add support for more recent ISO C TRs and TSes.
9568 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9570         intprops: new macro TYPE_WIDTH
9571         * lib/intprops.h (TYPE_WIDTH): New macro.
9572         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
9573         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
9574         * lib/parse-datetime.y (parse_datetime2):
9575         Use it.
9577         extensions: port to recent ISO C TRs
9578         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9579         Sync from Autoconf master, to add support for recent ISO C TRs.
9580         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
9581         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
9582         the MinGW option is not an extension.
9584 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9586         dfa: port to Solaris 9
9587         Problems reported by Tom G. Christensen in:
9588         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
9589         * modules/dfa (Depends-on): Add isblank.
9590         * modules/dfa-tests (dfa_match_aux_LDADD):
9591         Rename from test_stat_LDADD, to fix typo.
9592         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
9594 2016-09-10  Jim Meyering  <meyering@fb.com>
9596         strverscmp: avoid link failure on OS X
9597         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
9598         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
9600 2016-08-16  Jim Meyering  <meyering@fb.com>
9602         dfa: new module, importing grep's DFA matcher
9603         Since grep's DFA matcher is now being used by two gnulib-enabled
9604         projects, grep and sed, it makes sense to version-control its
9605         sources and unit tests in one place: here.
9606         * modules/dfa: New module.
9607         * modules/dfa-tests: New file.
9608         * lib/dfa.c: New file, from grep.
9609         * lib/dfa.h: Likewise.
9610         * lib/localeinfo.c: Likewise.
9611         * lib/localeinfo.h: Likewise.
9612         * tests/dfa-match-aux.c: Likewise.
9613         * tests/dfa-invalid-char-class.sh: Likewise.
9614         * tests/dfa-match.sh: Likewise, with minor changes.
9615         * MODULES.html.sh (Misc): Add "dfa" to this list.
9617 2016-09-09  Jim Meyering  <meyering@fb.com>
9619         getprogname-tests: don't depend on assert-h
9620         * modules/getprogname-tests (Depends-on): Remove assert-h.
9621         It was not needed, and in fact would cause build failure for
9622         coreutils on some systems.  Reported by Assaf Gordon in https:
9623         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
9625 2016-09-07  Jim Meyering  <meyering@fb.com>
9627         getprogname-tests: work also when EXEEXT is nonempty
9628         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
9629         * tests/test-getprogname.c (main): Use it.
9630         Suggested by Gisle Vanem.
9632 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
9634         getprogname: fix errors in previous change
9635         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
9636         s/program_invocation_name/base/
9637         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
9639 2016-09-08  Pádraig Brady  <P@draigBrady.com>
9641         parse-datetime: restrict debug output to input string
9642         * lib/parse-datetime.y (parse_datetime2): If we parse
9643         all of the input but determine it's invalid, ensure
9644         we don't output the now invalid input pointer.
9645         This issue was seen with `date -d 'now +1'`.
9647 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9649         flexmember: new macro FLEXALIGNOF
9650         * lib/flexmember.h: Include <stddef.h>, for offsetof.
9651         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
9652         this macro.  Update comments.
9654 2016-09-07  Jim Meyering  <meyering@fb.com>
9656         getprogname: port to systems with __argv (mingw, msvc)
9657         * lib/getprogname.c (getprogname): Include "dirname.h" and use
9658         last_component: more general than open coding it with hard-coded "/".
9659         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
9660         * modules/getprogname (Depends-on): Add dirname-lgpl.
9661         (configure.ac): Check for __argv in <stdlib.h>.
9662         * modules/getprogname-tests: New file.
9663         * tests/test-getprogname.c: New file.
9664         Suggested by Gisle Vanem in
9665         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
9667 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9669         flexmember: port better to GCC + valgrind
9670         With a char[] flexible array member in a struct with nontrivial
9671         alignment, GCC-generated code can access past the end of the
9672         array, because GCC assumes there are padding bytes to get the
9673         struct aligned.  So the common idiom of malloc (offsetof (struct
9674         s, m), n) does not properly allocate an n-byte trailing member, as
9675         malloc’s argument should be the next multiple of alignof (struct s).
9676         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9677         Although C11 apparently permits this GCC optimization (i.e., there
9678         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
9679         See the thread containing:
9680         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
9681         * lib/flexmember.h: New file.
9682         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
9683         * lib/localename.c, lib/time_rz.c:
9684         Include flexmember.h.
9685         * lib/fnmatch_loop.c (struct patternlist):
9686         * lib/localename.c (struct hash_node):
9687         Use FLEXIBLE_ARRAY_MEMBER.
9688         * lib/fnmatch_loop.c (EXT):
9689         * lib/fts.c (fts_alloc):
9690         * lib/glob.c (glob_in_dir):
9691         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9692         * lib/localename.c (gl_lock_define_initialized):
9693         * lib/time_rz.c (tzalloc):
9694         Use FLEXSIZEOF instead of offsetof.
9695         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9696         Check that the size of the struct can be taken.
9697         * modules/flexmember (Files): Add lib/flexmember.h.
9698         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
9699         Add flexmember.
9701 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9703         getprogname: port to Solaris 10
9704         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
9705         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
9706         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
9708         stdalign: correct mistake in alignof doc
9709         Problem reported by Joseph Myers in:
9710         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
9711         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
9712         alignof(S) where S is a structure containing a flexible array
9713         member.  The Gnulib substitute does not support this, but C11 does.
9715 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9717         main.mk: remove sc_program_name, since there is no more need to
9718         use set_program_name in tools (getprogname is enough for most
9719         of the cases).
9720         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
9721         * top/maint.mk (sc_program_name): Remove.
9723 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9725         Port tests away from progname, since modules that need the
9726         program name already depend on getprogname.
9727         * modules/acl-tests (Depends-on): Remove progname.
9728         * modules/argmatch (Depends-on): Likewise.
9729         * modules/argmatch-tests (Depends-on): Likewise.
9730         * modules/argp-tests (Depends-on): Likewise.
9731         * modules/argp-version-etc-tests (Depends-on): Likewise.
9732         * modules/array-list-tests (Depends-on): Likewise.
9733         * modules/array-oset-tests (Depends-on): Likewise.
9734         * modules/avltree-list-tests (Depends-on): Likewise.
9735         * modules/avltree-oset-tests (Depends-on): Likewise.
9736         * modules/avltreehash-list-tests (Depends-on): Likewise.
9737         * modules/carray-list-tests (Depends-on): Likewise.
9738         * modules/copy-file-tests (Depends-on): Likewise.
9739         * modules/exclude-tests (Depends-on): Likewise.
9740         * modules/fchownat-tests (Depends-on): Likewise.
9741         * modules/fdopendir-tests (Depends-on): Likewise.
9742         * modules/filenamecat-tests (Depends-on): Likewise.
9743         * modules/fstatat-tests (Depends-on): Likewise.
9744         * modules/fstrcmp-tests (Depends-on): Likewise.
9745         * modules/linked-list-tests (Depends-on): Likewise.
9746         * modules/linkedhash-list-tests (Depends-on): Likewise.
9747         * modules/mkdirat-tests (Depends-on): Likewise.
9748         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
9749         * modules/nonblocking-socket-tests (Depends-on): Likewise.
9750         * modules/obstack-printf-tests (Depends-on): Likewise.
9751         * modules/openat-tests (Depends-on): Likewise.
9752         * modules/parse-datetime-tests (Depends-on): Likewise.
9753         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
9754         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
9755         * modules/quotearg-simple-tests (Depends-on): Likewise.
9756         * modules/quotearg-tests (Depends-on): Likewise.
9757         * modules/rbtree-list-tests (Depends-on): Likewise.
9758         * modules/rbtree-oset-tests (Depends-on): Likewise.
9759         * modules/rbtreehash-list-tests (Depends-on): Likewise.
9760         * modules/spawn-pipe-tests (Depends-on): Likewise.
9761         * modules/system-quote-tests (Depends-on): Likewise.
9762         * modules/uniname/uniname-tests (Depends-on): Likewise.
9763         * modules/uninorm/nfc-tests (Depends-on): Likewise.
9764         * modules/uninorm/nfd-tests (Depends-on): Likewise.
9765         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
9766         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
9767         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
9768         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
9769         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
9770         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
9771         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
9772         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
9773         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
9774         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
9775         * modules/unlinkat-tests (Depends-on): Likewise.
9776         * modules/version-etc-tests (Depends-on): Likewise.
9777         * modules/xalloc-die-tests (Depends-on): Likewise.
9778         * modules/xmemdup0-tests (Depends-on): Likewise.
9779         * modules/xprintf-posix-tests (Depends-on): Likewise.
9780         * modules/xvasprintf-tests (Depends-on): Likewise.
9781         * tests/test-argmatch.c: Do not include progname.h.
9782         (main) Stop calling set_program_name.
9783         * tests/test-argp-version-etc.c: Likewise.
9784         * tests/test-argp.c: Likewise.
9785         * tests/test-argv-iter.c: Likewise.
9786         * tests/test-array_list.c: Likewise.
9787         * tests/test-array_oset.c: Likewise.
9788         * tests/test-avltree_list.c: Likewise.
9789         * tests/test-avltree_oset.c: Likewise.
9790         * tests/test-avltreehash_list.c: Likewise.
9791         * tests/test-carray_list.c: Likewise.
9792         * tests/test-copy-acl.c: Likewise.
9793         * tests/test-copy-file.c: Likewise.
9794         * tests/test-exclude.c: Likewise.
9795         * tests/test-fchownat.c: Likewise.
9796         * tests/test-fdopendir.c: Likewise.
9797         * tests/test-filenamecat.c: Likewise.
9798         * tests/test-fstatat.c: Likewise.
9799         * tests/test-fstrcmp.c: Likewise.
9800         * tests/test-linked_list.c: Likewise.
9801         * tests/test-linkedhash_list.c: Likewise.
9802         * tests/test-mkdirat.c: Likewise.
9803         * tests/test-nonblocking-pipe-main.c: Likewise.
9804         * tests/test-nonblocking-socket-main.c: Likewise.
9805         * tests/test-obstack-printf.c: Likewise.
9806         * tests/test-openat.c: Likewise.
9807         * tests/test-parse-datetime.c: Likewise.
9808         * tests/test-pipe-filter-gi1.c: Likewise.
9809         * tests/test-pipe-filter-gi2-main.c: Likewise.
9810         * tests/test-pipe-filter-ii1.c: Likewise.
9811         * tests/test-pipe-filter-ii2-main.c: Likewise.
9812         * tests/test-quotearg-simple.c: Likewise.
9813         * tests/test-quotearg.c: Likewise.
9814         * tests/test-rbtree_list.c: Likewise.
9815         * tests/test-rbtree_oset.c: Likewise.
9816         * tests/test-rbtreehash_list.c: Likewise.
9817         * tests/test-sameacls.c: Likewise.
9818         * tests/test-set-mode-acl.c: Likewise.
9819         * tests/test-spawn-pipe-main.c: Likewise.
9820         * tests/test-system-quote-main.c: Likewise.
9821         * tests/test-unlinkat.c: Likewise.
9822         * tests/test-version-etc.c: Likewise.
9823         * tests/test-xalloc-die.c: Likewise.
9824         * tests/test-xfprintf-posix.c: Likewise.
9825         * tests/test-xmemdup0.c: Likewise.
9826         * tests/test-xprintf-posix.c: Likewise.
9827         * tests/test-xvasprintf.c: Likewise.
9828         * tests/uniname/test-uninames.c: Likewise.
9829         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9830         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9831         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9832         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9833         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9834         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9835         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9836         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9837         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9838         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9839         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9840         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9841         * tests/test-c-stack.c: (program_name): Do not define.
9842         (main): Do not set program_name.
9843         * tests/test-closein.c: Likewise.
9844         * tests/test-xstrtol.c: Likewise.
9845         * tests/test-yesno.c: Likewise.
9847 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9849         Port modules to use getprogname explicitly, instead of requiring
9850         progname to be used (or program_name to be provided).
9851         * lib/argmatch.c: Do not include progname.h.
9852         [TEST] (program_name): Do not define.
9853         [TEST] (main): Call getprogname instead of using program_name.
9854         * lib/c-stack.c: Do not include progname.h.
9855         (program_name): Do not define.
9856         (die): Call getprogname instead of using program_name.
9857         * lib/chdir-long.c: Do not include progname.h.
9858         [TEST_CHDIR] (main): Do not set program_name.
9859         * lib/error.c [!_LIBC]: Include progname.h.
9860         [!_LIBC] (program_name): Define using getprogname.
9861         * lib/euidaccess.c: Do not include progname.h.
9862         [TEST] (main): Do not set program_name.
9863         * lib/git-merge-changelog.c: Include getprogname.h instead of
9864         progname.h.
9865         (usage): Call getprogname instead of using program_name.
9866         (main): Likewise.  Stop calling set_program_name.
9867         * lib/group-member.c: Do not include progname.h.
9868         [TEST] (main): Do not set program_name.
9869         * modules/argmatch (Depends-on): Add getprogname.
9870         * modules/c-stack (Depends-on): Likewise.
9871         * modules/error (Depends-on): Likewise.
9872         * modules/git-merge-changelog (Depends-on): Likewise.
9873         Also remove progname.
9875 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9877         * NEWS: Document the deprecation of the 'progname' module.
9879 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9881         getprogname: new module
9882         This provides a LGPL module for getting the name of the current
9883         program, using the same API found on *BSD systems.
9884         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9885         * modules/getprogname: New files.
9886         * MODULES.html.sh (Misc): Add getprogname.
9888 2016-09-02  Jim Meyering  <meyering@fb.com>
9890         manywarnings: add -fno-common
9891         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9892         to the list.  Quoting the manual, "Compiling with -fno-common is
9893         useful on targets for which it provides better performance, or if
9894         you wish to verify that the program will work on other systems that
9895         always treat uninitialized variable declarations this way [putting
9896         it in the data section]."  If diffutils had been using this sooner,
9897         it would have prevented this duplicate declaration issue:
9898         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9900 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9902         parse-datetime: Fix typo.
9903         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9905 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9907         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9908         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9909         GCC 5 and 6 that have __builtin_sub_overflow but not
9910         __builtin_sub_overflow_p.  With the recent changes, these
9911         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9912         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9913         since the former needs just one runtime comparison whereas the
9914         latter needs two.
9916         strverscmp: sync with glibc
9917         Although this doesn't exactly synchronize with glibc
9918         byte-for-byte, it makes the code behave the same as glibc.
9919         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9920         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9921         difference shouldn't matter in practical use.  All uses changed
9922         back to isdigit.
9923         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9924         (next_state): Now unsigned char array; redo elements.
9925         (result_type): Now signed char array; redo elements.
9926         (__strverscmp): Fix glibc bug 9913 by using new states.
9927         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9929 2016-08-29  Jim Meyering  <meyering@fb.com>
9931         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9932         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9933         similarly to how it was done to intprops.h.
9935 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9937         intprops.h: port recent changes to GCC 6.2.0
9938         * lib/intprops.h (__has_builtin): Move earlier.
9939         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9940         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9941         the last argument can be null.  All uses changed.
9942         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9943         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9944         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9945         and it's not clear which GCC versions it works for.
9946         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9947         its definiens.
9949         intprops.h: use __typeof__ with GCC 7
9950         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9951         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9952         This avoids computing the expression's value (which might overflow!).
9954 2016-08-29  Jim Meyering  <meyering@fb.com>
9956         intprops.h, xalloc-oversized.h: work with gcc 7
9957         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9958         __builtin_mul_overflow each accept a NULL pointer as the third
9959         argument.  However in gcc 7, that is no longer accepted.
9960         Instead, one must use the "_p"-suffixed names, with which, the
9961         third parameter is no longer a pointer.
9962         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9963         the definition: not true for gcc 7 and subsequent.
9964         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9965         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9966         Provide new definitions for gcc 7 and subsequent.
9967         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9968         that works with gcc-7.
9970         intprops.h: fix missing-backslash problems
9971         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9972         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9974 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9976         intprops: fix paren typo on old platforms
9977         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9978         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9979         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9980         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9981         && !defined LLONG_MAX]:
9982         Remove stray paren.
9984         intprops: port to OpenVMS
9985         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9986         * doc/posix-headers/limits.texi: Document the problem.
9987         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9988         Define if not already defined.
9990 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9992         parse-datetime: improve debug implementation
9993         Follow-up to commit 12ad79069 ("add optional debug printing").
9994         Improve parse-datetime's debug implementation: remove macros,
9995         replace global debug flag variable with a function parameter,
9996         use nstrftime for formatting.
9997         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9998         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9999         (parse_datetime2): New function, accepts 'flags' parameter, supporting
10000         debug flag. Existing interface 'parse_datetime' left unmodified.
10001         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
10002         (struct parser_control): add 'parse_datetime_debug' member variable.
10003         (parse_datetime): Call new function 'parse_datetime2' without debug.
10004         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
10005         pc.parse_datetime_debug variable as needed.
10006         (to_year): Accept new flags parameter, instead of using global variable.
10007         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
10008         use struct 'debug' variable instead of global variable.
10009         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
10010         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
10011         correspnding functions directly instead of using macros.
10012         * modules/parse-datetime: Add gnulib's strftime module.
10014 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
10016         c-strcase-tests: port to EBCDIC
10017         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
10018         which assume ASCII encoding semantics to run only in ASCII
10019         mode, as they fail in EBCDIC.
10021         sigpipe-tests: fix typo
10022         * tests/test-sigpipe.sh: C, not B.
10024 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10026         canonicalize-lgpl: fix errno after malloca fails
10027         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
10028         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
10029         * lib/canonicalize-lgpl.c (__realpath):
10030         Don't assume malloca sets errno on failure.
10032 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10034         strtod: port errno handling to z/OS
10035         * lib/strtod.c (strtod): Save and restore errno more reliably.
10037 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
10039         strtod: port to z/OS
10040         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
10041         implementation.
10043 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10045         strtod: port to z/OS
10046         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
10047         implementation.
10049         regex, string: rename to avoid '__string'
10050         * lib/regex.h, lib/string.in.h: Do not use the identifier
10051         '__string', as it is effectively reserved by string.h on z/OS.
10053         c-strcase-tests, wcwidth-tests: depend on c-ctype
10054         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
10055         Add c-ctype.
10057 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
10059         thread: port to z/OS
10060         * lib/glthread/thread.c, lib/glthread/thread.h:
10061         Rudimentary gl_thread support for z/OS.
10063         maint: port tests to z/OS errno behavior
10064         * tests/test-nonblocking-reader.h:
10065         * tests/test-nonblocking-writer.h:
10066         Accommodate z/OS errno code preferences. (I believe this should
10067         still be within spec; IBM is good at following the letter if not
10068         the spirit of such things.)
10070         maint: preprocessor changes to support z/OS
10071         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
10072         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
10073         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
10074         * tests/test-nonblocking-pipe.h:
10076         fclose, strstr-simple, wchar: port to z/OS
10077         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
10078         Changes to the Autoconf M4 code to support z/OS.  Note that
10079         fclose() is broken in a different way on z/OS than it is on other
10080         systems, thus the special-case in fclose.m4.
10082         iconv_open-utf-tests, iconv-tests: port to EBCDIC
10083         * tests/test-iconv-utf.c, tests/test-iconv.c:
10084         Added appropriately conditional #pragmas so that the test strings
10085         in test-iconv-utf.c are correctly interpreted in ASCII instead of
10086         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
10087         addressed in a more portable way by simply rewriting all the ASCII
10088         literal characters as octal escapes, but then you would lose the
10089         partial readability that the strings have now. Also, iconv_open()
10090         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
10092         c-strcase-tests, wcwidth-tests: port to EBCDIC
10093         * tests/test-c-strcasecmp.c: Include c-ctype.h.
10094         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
10095         * tests/test-wcwidth.c: Likewise.
10097 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10099         stdbool: don't require _Bool for C++
10100         Problem reported by David Seifert in:
10101         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
10102         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
10103         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
10104         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
10105         stricter about checking that bool and _Bool are compatible in C.
10107 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10109         getdelim: remove dependency on realloc-posix
10110         * lib/canonicalize-lgpl.c (alloc_failed)
10111         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
10112         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
10113         Use __set_errno where needed, for consistency.
10114         * lib/getdelim.c (alloc_failed): New function.
10115         (getdelim): Use it.
10117 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
10119         parse-datetime: add optional debug printing
10120         Print parsing information, warnings, and errors to stderr.
10121         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
10122         * lib/parse-datetime.y:
10123         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
10124         (PROGRESS*): Same as DEBUG, for progress reporting.
10125         (dbg_printf): Print message to stderr, with 'date' prefix.
10126         (struct parser_control): Add 'debug_*_seen' variables.
10127         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
10128         (debug_print_current_time, debug_print_relateive_time): Prints the
10129         current/relative date/time value of parser_control.
10130         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
10131         (to_year): Warn about 2-digit year parsing.
10132         (yylex):   Warn about unrecognized words.
10133         (get_effective_timezone): Returns current timezone in minutes.
10134         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
10135         clearly and unambigiously as possible.
10136         (debug_mktime_not_ok): Print detailed information about failed
10137         date/time values.
10138         (parse_datetime): Add DEBUG messages for failures, warnings. Add
10139         PROGRESS messages for status messages.
10140         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
10142 2016-08-06  Jim Meyering  <meyering@fb.com>
10144         tests/init.sh: exclude dash with bad "local" semantics
10145         * tests/init.sh (gl_shell_test_script_): Add a function to
10146         eliminate a shell like "dash" (unlike bash, zsh) that has
10147         surprising/risky "local var='...'" semantics.  Inspired by
10148         the problem and discussion in https://bugs.gnu.org/24116#11.
10150 2016-08-02  Ján Tomko  <jtomko@redhat.com>
10152         maint.mk: expand the prohibit_doubled_word regex
10153         This check has a static list of words that are checked for
10154         repetitions.  Expand it before running the perl script to
10155         avoid using expensive captures.  This decreases the cost
10156         for libvirt from 1.66s to 0.66s.
10157         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
10158         (sc_prohibit_doubled_word): Use it.
10160 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10162         useless-if-before-free: skip non-matching lines early
10163         * build-aux/useless-if-before-free: First match each line with the
10164         simple/quick /\bif\b/ and reject if there is no match. This often
10165         saves the cost of the much more involved regular expression.
10166         For libvirt, this decreases the cost from 1.44s to 1.02s.
10168 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10170         maint.mk: speed up sc_po_check
10171         sc_po_check would skip files based on their names, or on the
10172         existence of files with derived names. Rewrite it to use perl
10173         instead of shell to make the check faster.
10174         * top/maint.mk (perl_translatable_files_list_): Define.
10175         (sc_po_check): Use it.
10177 2016-07-30  Ján Tomko  <jtomko@redhat.com>
10179         maint.mk: speed up require_config_h_first
10180         Instead of spawning three processes per file,
10181         rewrite the check in perl and run it once for all the files.
10182         * top/maint.mk (perl_config_h_first_): Define.
10183         (sc_require_config_h_first): Use it in place of shell code.
10185 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10187         maint.mk: speed up sc_po_check
10188         sc_po_check would skip files based on their names, or on the
10189         existence of files with derived names. Rewrite it to use perl
10190         instead of shell to make the check faster.
10191         * top/maint.mk (perl_translatable_files_list_): Define.
10192         (sc_po_check): Use it.
10194 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10196         obstack: pacify GCC 6 with -Wnull-dereference
10197         Problem reported by Assaf Gordon in:
10198         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
10199         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
10200         Declare with __attribute_noreturn__.
10201         * lib/obstack.h (__attribute_noreturn__): New macro.
10203 2016-07-13  Eric Blake  <eblake@redhat.com>
10205         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
10206         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
10207         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
10209 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10211         doc: mention glibc SSIZE_MAX buglet
10212         * doc/posix-headers/limits.texi (limits.h): Document the bug.
10214 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
10216         printf-posix: Fix mingw build
10217         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
10218         expression for detecting C symbol prefixes but forgot to qoute square
10219         brackets in the command line arguments for grep.  That way when
10220         building with mingw the condition was false although it ought to be
10221         true instead.  In particular scenarios this led to the following
10222         compile error:
10224             Cannot export rpl_printf: symbol not found
10225             Cannot export rpl_scanf: symbol not found
10226             collect2: error: ld returned 1 exit status
10228         Fix this by properly quoting square brackets.
10230 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10232         mktime: call tzset as per POSIX
10233         Problem reported by Ludovic Courtès in:
10234         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
10235         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
10236         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
10238 2016-06-26  Pádraig Brady  <P@draigBrady.com>
10240         fts: handle readdir() errors
10241         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
10242         but also upon error when it will also set errno.  Therefore
10243         flag the error case from readdir().  We treat the case where
10244         no items are read the same as if the dir can't be accessed,
10245         i.e. by setting fts_errno to FTS_DNR.
10247 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10249         intprops: port better to GCC 7
10250         GCC 7 __builtin_add_overflow supports a new usage form, where the
10251         last argument is a null pointer, and which merely returns 1 if an
10252         overflow would occur.  This is a constant expression if all
10253         arguments are constants, and should generate faster code when code
10254         needs to be generated.
10255         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
10256         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10257         Use builtin operations if available.
10258         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
10259         operations are available, as it's almost surely faster.
10261 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10263         intprops-test: port to GCC 6
10264         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
10265         since the bug is not fixed in GCC 6.1.
10267 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10269         xalloc-oversized: port to GCC 7; fewer warnings
10270         GCC 7 will have a better way to deal with integer overflow.
10271         Plus, fix a warnings problem reported by Tim Ruehsen in:
10272         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
10273         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
10274         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
10275         For GCC 5, use __xalloc_oversized if both args are constants,
10276         or if pedantic.
10278 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10280         regex: port to Sun C
10281         Reported by Daiki Ueno.
10282         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
10283         __restrict, in prototype.  This fixes a problem I introduced in
10284         the 2016-02-19 merge from glibc.
10286 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10288         stdbool: Restore __bool_true_false_are_defined check
10289         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
10290         __bool_true_false_are_defined is still defined, even with C++11.
10292 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
10294         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
10295         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
10297 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10299         Use GCC_LINT, not lint
10300         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
10301         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
10302         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
10303         Document problem with lint and _Noreturn.
10304         * lib/diffseq.h (IF_LINT, IF_LINT2):
10305         * lib/fts.c (sccsid):
10306         * lib/getndelim2.c (IF_LINT):
10307         * lib/gl_anylinked_list2.h (gl_linked_iterator)
10308         (gl_linked_iterator_from_to):
10309         * lib/gl_anytree_list2.h (gl_tree_iterator)
10310         (gl_tree_iterator_from_to):
10311         * lib/gl_anytree_oset.h (gl_tree_iterator):
10312         * lib/gl_array_list.c (gl_array_iterator)
10313         (gl_array_iterator_from_to):
10314         * lib/gl_array_oset.c (gl_array_iterator):
10315         * lib/gl_carray_list.c (gl_carray_iterator)
10316         (gl_carray_iterator_from_to):
10317         * lib/idcache.c:
10318         * lib/inet_ntop.c (IF_LINT):
10319         * lib/regcomp.c (build_charclass_op, create_tree):
10320         * lib/regex_internal.c (re_acquire_state)
10321         (re_acquire_state_context):
10322         * lib/trigl.c (rcsid):
10323         * lib/trim.c (IF_LINT):
10324         * lib/vasnprintf.c (IF_LINT):
10325         * lib/verify.h (assume):
10326         Treat GCC_LINT like lint.
10328 2016-05-29  Bruno Haible  <bruno@clisp.org>
10330         secure_getenv: Port to many more platforms.
10331         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
10332         functions.
10333         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
10334         for non-BSD Unix platforms and for native Windows.
10335         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
10336         Prompted by a request from Nikos Mavrogiannopoulos.
10338 2016-05-27  Eric Blake  <eblake@redhat.com>
10340         canonicalize: Fix broken probe for realpath.
10341         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
10342         in logic introduced in 54615b95.
10344 2016-05-26  Eric Blake  <eblake@redhat.com>
10346         unsetenv: relax to LGPLv2+
10347         * modules/unsetenv (License): Match setenv license.
10349 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
10351         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
10352         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
10353         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
10354         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
10355         (commonarg, dirargs, dirs, infoarg, generate_ascii)
10356         (generate_html, generate_info, generate_tex, outdir)
10357         (source_extra, split, srcfile, texarg): Move above 'version'.
10358         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
10360 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10362         manywarnings: update for GCC 6.1
10363         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10364         Add GCC 6.1 options that apply to C.
10365         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
10366         do not apply to C, are obsolescent, etc.
10368 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
10370         glob: size_t overflow checks
10371         * lib/glob.c (__has_builtin): New macro.
10372         (size_add_wrapv, glob_use_alloca): New static functions.
10373         (glob, glob_in_dir): Check for size_t overflow in several places,
10374         and fix some size_t checks that were not quite right.
10376         glob: don't assume INT_MAX < SIZE_MAX
10377         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
10378         latter is not portable to (probably theoretical) hosts where
10379         SIZE_MAX <= INT_MAX.
10381 2016-05-09  Bruno Haible  <bruno@clisp.org>
10383         Fix undefined behaviour in gettext.h.
10384         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
10385         pointer's value after the storage it points to has been freed.
10386         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
10387         Spotted by Coverity.
10389 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10391         git-version-gen: avoid undefined shift
10392         Problem reported by Mosè Giordano in:
10393         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
10394         * build-aux/git-version-gen: Avoid undefined behavior if invoked
10395         with --prefix or --fallback but without a later argument.  While
10396         we're at it, omit unnecessary quotes.
10398 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
10400         glob: merge glibc changes into lib/glob.c
10401         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
10402         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
10403         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
10404           struct dirent [BZ #19779]
10405         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
10406           callback gl_readdir
10407         2015-10-20 Convert miscellaneous function definitions to prototype style
10408         2015-10-20 Convert 113 more function definitions to prototype style
10409           (files with assertions)
10410         2015-06-12 Fix getlogin_r namespace (bug 18527).
10411         2014-02-10 Use glibc_likely instead __builtin_expect.
10412         2013-10-20 When glob pattern contains a trailing slash match only
10413           directories. Fixes bug 10278.
10414         2013-09-04 glob: silence -Wattribute warnings
10415         2013-06-07 Avoid use of "register" as optimization hint.
10416         2012-09-25 Use size_t instead of int for internal variables in glob
10417           (bug 14621)
10418         2011-07-20 Check for overflows in expressions
10419         2011-05-28 Remove unused variable
10420         2011-05-22 Add a few more alloca size checks
10421         2010-03-27 Whitespace fixes
10422         2010-03-27 Fix one more issue with the glob patch
10423         2010-03-24 Fix glob with empty pattern
10424         2008-05-27 Remove useless more "if" tests before "free"
10425         * modules/glob (Depends-on): Add stdint.
10427 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10429         mktime: port to stricter signed overflow checking
10430         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
10431         (long_int): Require width for INT_MAX * 3 * (seconds per year),
10432         instead of merely for INT_MAX * 2.  In practice platforms that
10433         do the latter also do the former.
10434         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
10435         (shr): New static function, replacing SHR.  All uses changed.
10436         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
10437         and TIME_T_MAX.  All uses changed.
10438         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
10439         Use long_int, not time_t.
10440         (long_int_avg): New static function, replacing time_t_avg.
10441         All uses changed.  Round toward positive infinity, as that
10442         generates slightly better code.
10443         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
10444         by INT_ADD_WRAPV.
10445         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
10446         (convert_time): New static function.
10447         (ranged_convert): Use it
10448         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
10449         Use simpler test for loop exit.
10450         (__mktime_internal): Store negative of guessed offset, to simplify
10451         overflow checking.  Remove no-longer-needed test for small time_t
10452         overflows.
10454         mktime: speed up DEBUG_MKTIME benchmarks
10455         Call tzset just once, at the start, rather than for every test
10456         case.  This lets us measure the CPU cost of mktime as opposed to
10457         that of tzset.  This is relevant when TZ is not set and glibc is
10458         being used.  This speeds up tests by a factor of 40 on my Fedora
10459         23 x86-64 platform.
10460         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
10461         to call tzset and as a sanity check.  Later on, use localtime_r
10462         instead of localtime.
10464         mktime: resurrect DEBUG_MKTIME testing
10465         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
10466         Include <string.h>, for strcmp.
10468         mktime: simplify DEBUG_MKTIME
10469         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
10470         Simplify later usage accordingly.
10472         Port mktime_internal offset to unsigned time_t
10473         This avoids some assumptions about wraparound arithmetic on
10474         signed integer overflow.
10475         * lib/mktime-internal.h (mktime_offset_t): New type.
10476         (mktime_internal): Use it in decl.
10477         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
10479         * lib/mktime.c (__mktime_internal, localtime_offset):
10480         * lib/timegm.c (timegm): Use it.
10481         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
10482         (gl_FUNC_MKTIME): Require it.
10484 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10486         xstrtol: prohibit monstrosities like "1bB"
10487         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
10488         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
10489         "B" only if the first suffix needs a base.
10490         * tests/test-xstrtol.sh: Test this.
10492 2016-04-21  Pádraig Brady  <P@draigBrady.com>
10494         xstrtod: reinstate setting of *result upon ERANGE
10495         * lib/xstrtod.c (XSTRTOD): The user may decide to use
10496         the returned limits upon ERANGE, so allow and document that.
10498 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
10500         xstrtod: modify *result only if no errors
10501         * lib/xstrtod.c (XSTRTOD).
10503 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10505         btowc: document problems in C locale
10506         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
10507         with mbrtowc.  See: http://bugs.gnu.org/23269#32
10509 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10511         mktime: improve integer overflow checking
10512         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
10513         (WRAPV): Remove; no longer needed.
10514         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
10515         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
10516         Remove.  Use intprops.h defns instead.
10517         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
10518         Use bool for Boolean, for clarity.
10519         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
10520         detect integer overflow.
10521         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
10523         intprops: check two's complement assumption
10524         Suggested by Eric Blake in:
10525         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
10526         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
10527         short, int, long, and (if available) long long are two's complement.
10528         * modules/intprops (Depends-on): Add 'verify'.
10530         intprops, mktime, strtol: assume two's complement
10531         These macros were not portable to every conforming C11 ones'
10532         complement platform.  It's not worth the hassle of porting to some
10533         platforms that use ones' complement or signed magnitude, as such
10534         platforms are almost purely theoretical nowadays and porting even
10535         to some of them makes the code harder to review for little
10536         practical benefit.  Problem reported by Florian Weimer in:
10537         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
10538         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10539         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
10540         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
10541         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10542         (TYPE_SIGNED_MAGNITUDE):
10543         Remove.  All uses rewritten to assume two's complement, which is
10544         all we can reasonably test nowadays anyway.
10545         * top/maint.mk (_intprops_names): Remove the removed macros.
10547 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
10549         stdint: port to strict C11 left shift
10550         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
10551         Pacify clang -Wshift-negative-value, which should be an issue only
10552         on clang setups where stdint.h does not conform to C11 or to C++11.
10553         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
10555 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10557         mbrtowc: work around glibc bug#19932
10558         Fix mbrtowc so that it never returns -1 in the C locale,
10559         as this conflicts with a future version of POSIX
10560         http://austingroupbugs.net/view.php?id=663#c2738
10561         and causes problems with GNU grep: http://bugs.gnu.org/23234
10562         See glibc bug 19932:
10563         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
10564         * doc/posix-functions/mbrlen.texi (mbrlen):
10565         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10566         Document the glibc bug.
10567         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
10568         Include hard-locale.h, locale.h.
10569         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
10570         if the bug is possible.
10571         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
10572         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
10573         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
10574         * modules/mbrtowc (Depends-on): Add hard-locale.
10575         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
10576         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
10577         * tests/test-mbrtowc5.sh: New file.
10579 2016-04-03  Pedro Alves  <palves@redhat.com>
10581         stdint: detect good enough pre-C++11 stdint.h in C++ mode
10582         When gnulib is configured in C++ mode for a system with a working C99
10583         implementation of stdint.h that predates C++11, gnulib ends up
10584         substituting stdint.h anyway.  This works on most targets, but on e.g.,
10585         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
10586         MinGW is LLP64.  Instead of trying to detect the right types, detect
10587         good-enough-pre-C++11 stdint.h and in such case define
10588         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
10589         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
10590         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
10591         conforms to C99.  If it does, check whether it hides symbols
10592         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
10593         does, define those macros in config.h.
10595 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10597         argp: merge changes from glibc
10598         Among other things, this should fix problems found by a Coverity
10599         scan and reported by Andrei Borzenkov:
10600         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
10601         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
10602         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
10603         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
10604         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
10605         * lib/argp.h:
10606         Merge changes from glibc.
10607         * tests/test-argp-2.sh: Adjust to match new behavior.
10609 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10611         stddef: support configuring with g++
10612         Problem reported by Ángel González in:
10613         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
10614         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
10615         Do not define if _GCC_MAX_ALIGN_T is defined.
10617 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10619         test-framework-sh: minor cleanups
10620         * tests/init.sh (testdir_prefix_): Output a trailing newline,
10621         since strictly speaking POSIX requires this.
10622         (setup_): Do not use the variable 'fail', as that makes the
10623         trace output harder to read ('fail' is typically used by
10624         tests to mean the test failed).  Treat // portably.
10625         Check that new directory is not merely a sibling of the tmp dir.
10626         Avoid unnecessary invocation of tr.
10628         test-framework-sh: revert port to NetBSD 7.0
10629         It was a false alarm; I misinterpreted Assaf Gordon's report.
10630         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10631         Restore.
10632         (test_dir_): Adjust to mktempd_ change.
10633         (mktempd_): Restore 2nd arg.  Use -t again.
10634         (base_template_, template_, nx_): Resurrect old code.
10636         Port better to Alpine Linux
10637         Its diff implementation does not support -c, but does support -U3.
10638         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10639         * tests/init.sh (diff_opt_): New var.
10640         (compare_): Prefer diff -U3 to diff -c to plain diff.
10642 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10644         test-framework-sh: port to NetBSD 7.0
10645         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10646         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10647         Remove.  All uses removed.
10648         (test_dir_): Adjust to mktempd_ change.
10649         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
10650         (base_template_, template_, nx_): Simplify by hardcoding.
10652 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10654         gitlog-to-changelog: suppress ignored chatter
10655         * build-aux/gitlog-to-changelog: Do not warn about skipping
10656         an SHA if it would have been ignored anyway.
10658 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
10660         setlocale: add "sv" to Windows language table
10661         * lib/setlocale.c (language_table) [W32]: Add "sv".
10662         Reported in <https://savannah.gnu.org/bugs/?44588>.
10664 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10666         sys_select: port to new Cygwin
10667         Problem reported by Ken Brown in:
10668         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
10669         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
10670         diagnostics.
10672 2016-03-17  Jim Meyering  <meyering@fb.com>
10674         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
10675         * tests/test-userspec.c (main): Remove unnecessary braces and fix
10676         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
10677           test-userspec.c:176:9: error: statement is indented as if it were \
10678             guarded by... [-Werror=misleading-indentation]
10679                    {
10680                    ^
10681           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
10682                  if (!diag && !T[i].result)
10683                  ^~
10685 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
10687         time_rz: port to clang -Wunused-const-variable
10688         * lib/time_rz.c (TZ): Remove.  All uses removed.
10690         std-gnu11: improve clang support
10691         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
10692         2016-03-15 Also try clang
10693         2016-03-15 Port C11 and C++11 testing to clang
10695         select: port more to Intel 2016.1.150 compiler
10696         Problem reported by Balázs Hajgató in:
10697         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
10698         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
10700 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
10702         select: try to port to 2016.1.150 compiler
10703         Problem reported by Balázs Hajgató in:
10704         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
10705         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
10706         POSIX specifies 'restrict'.
10708 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10710         localename-tests: memory allocation fixes
10711         * tests/test-localename.c (test_locale_name)
10712         (test_locale_name_thread): Don't call freelocale on a locale
10713         that was the base of a successful newlocale, as that
10714         results in a double free.  Problem reported by Assaf Gordon.
10715         (test_locale_name_thread): Free saved names after use, to pacify
10716         gcc -fsanitize=address.
10718 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10720         intprops: make .h file license match module
10721         * lib/intprops.h: Change the license wording to match glibc format.
10722         This is what is in modules/intprops anyway.  See:
10723         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
10725 2016-03-08  Eric Blake  <eblake@redhat.com>
10727         acl: fix missing return on Cygwin
10728         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
10729         fall off end of function. Fixes http://bugs.gnu.org/22949
10731 2016-03-05  Bruno Haible  <bruno@clisp.org>
10733         extern-inline: port to PGI CC
10734         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
10735         keyword 'inline'.
10736         Reported by Adam James Stewart in:
10737         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
10739 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10741         signbit: port back to pre-C++11 GCC
10742         * lib/math.in.h (signbit): Do previous change only if
10743         __cplusplus < 201103.  See Jonathan Wakely in:
10744         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
10746 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
10748         mountlist: recognize autofs-mounted remote file systems, too
10749         Originally reported at: https://bugzilla.redhat.com/1309247
10750         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
10751         "-hosts" because it is used by autofs to mount remote file systems.
10753 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10755         signbit: port to C++ with GCC 6
10756         * lib/math.in.h (signbit) [__cplusplus]:
10757         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
10758         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
10760         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
10762         regex: make it closer to libc
10763         Make Idx a signed type, rather than possibly unsigned.
10764         The unsignedness was not really buying us anything, since the code
10765         overflows for other reasons before getting to PTRDIFF_MAX.  Making
10766         it signed allows us to use -1 and -2 with abandon, like libc does,
10767         thus lessening the number of differences between gnulib and libc.
10768         Also, it should help avoid gratuitous warnings like the one
10769         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
10770         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
10773         regex: merge patches from libc
10775         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
10776         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
10777         Convert miscellaneous function definitions to prototype style.
10778         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
10779         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
10780         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
10781         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
10782         (re_search_internal):
10783         Convert to prototype-style function definition.
10784         Use internal_function for internal functions.
10786 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10788         stdalign: port to older HP and IBM cc
10789         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
10790         C compilers, by checking their version numbers.  These version
10791         numbers appear in MariaDB and in Qt code that dates way back and
10792         that conditiionally uses the 'aligned' attribute.
10794 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10796         stdalign: port to clang 3.7.0
10797         Problem reported by Herbert J. Skuhra in:
10798         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
10799         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
10800         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
10801         https://llvm.org/bugs/show_bug.cgi?id=26547
10803 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10805         readdir_r: now obsolescent
10806         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
10807         * lib/mountlist.c (read_file_system_list): Add a FIXME.
10809 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10811         misc: port better to gcc -fsanitize=address
10812         Without these patches, ./configure CFLAGS='-fsanitize=address'
10813         would compute incorrect values.  This patch fixes some (but not all)
10814         test failures with recent glibc, with this configuration.
10815         * m4/acl.m4 (gl_ACL_GET_FILE):
10816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
10817         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
10818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
10819         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
10820         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10821         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10822         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
10823         * m4/getline.m4 (gl_FUNC_GETLINE):
10824         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
10825         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
10826         * m4/regex.m4 (gl_REGEX):
10827         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10828         * tests/test-calloc-gnu.c (main):
10829         * tests/test-duplocale.c (main):
10830         * tests/test-getgroups.c (main):
10831         * tests/test-getline.c (main):
10832         * tests/test-inttostr.c (main):
10833         * tests/test-localename.c (test_locale_name)
10834         (test_locale_name_thread, test_locale_name_environ)
10835         (test_locale_name_default):
10836         * tests/test-regex.c (main):
10837         * tests/test-setlocale1.c (main):
10838         * tests/test-stat.h (test_stat_func):
10839         Free heap-allocated storage before exiting.
10840         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
10841         Don't match *_foo symbols inserted by AddressSanitizer.
10842         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
10844 2016-02-02  Jim Meyering  <meyering@fb.com>
10846         verify-tests: also remove stray test-verify.Tpo
10847         * modules/verify-tests (Makefile.am): Arrange for "make clean"
10848         to remove the test-verify.Tpo file that is left behind by
10849         the automake-generated rule upon compilation failure.
10850         Otherwise, that .Tpo file would cause a failed "make distcheck"
10851         at least for grep.
10853 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10855         std-gnu11: new module
10856         This makes it easier for applications to prefer C11 and C++11
10857         to older variants, when compiling C and C++ code.
10858         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10859         a nontrivial chunk of GPLed Autoconf source code.
10860         * COPYING: Mention the m4/*.m4 copyright situation.
10861         * MODULES.html.sh (std-gnu11): New module.
10862         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10864 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10866         get-permissions, strftime: fix grammar in comments
10867         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10868         some grammar fixes Alan Mackenzie made to GNU Emacs.
10870 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10872         gettext: mark as obsolete
10873         Suggested by Paul Eggert in:
10874         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10875         * modules/gettext (Status): Mark as obsolete.
10876         (Notice): Suggest to use 'gettext-h' instead.
10877         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10878         the 'gettext' module.
10880 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10882         gnulib-tool: don't give up on ln -s so easily
10883         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10884         because an earlier one failed.  The targets could be on different
10885         file systems.  Problem reported by KO Myung-Hun in:
10886         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10888         closedir: fix OS/2-related typos
10889         Problem reported by KO Myung-Hun in:
10890         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10891         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10892         in the last couple of changes.
10894 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10896         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10897         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10898         copying a directory.
10900 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10902         regex: treat [x] as x if x is a unibyte encoding error
10903         Problem reported by Aharon Robbins in:
10904         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10905         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10906         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10908         closedir, dirfd, opendir: port to OpenSolaris 5.10
10909         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10910         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10911         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10912         Don't use ${word##pat} substitution, as it doesn't work in
10913         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10914         http://bugs.gnu.org/22443#11
10916 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10918         bootstrap: use American spelling
10919         * build-aux/bootstrap: Honor American spelling.
10921 2016-01-22  Karl Berry  <karl@freefriends.org>
10923         * doc/posix-functions/localtime.texi,
10924         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10926 2016-01-21  Bruno Haible  <bruno@clisp.org>
10928         hash-pjw-bare: fix comment
10929         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10931         wcwidth: Replace also on OpenBSD 5.8
10932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10933         * doc/posix-functions/wcwidth.texi: Update.
10935 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10937         gnu-web-doc-update: fix addition of new files
10938         If there were already added (emnpty) dirs,
10939         then cvs aborts the add with the message:
10940           cvs [add aborted]: there is a version in <./dirname> already
10941         * build-aux/gnu-web-doc-update: Add directories separately
10942         to the addition of files, to avoid the above issue
10943         impacting the addition of files.
10945 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10947         utimens-tests: avoid pulling gettext .m4 files
10948         Although this is not the right fix to the original problem:
10949         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10950         it makes it possible again for consumer projects to use arbitrary
10951         version of gettext, through the steps described at:
10952         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10953         See here for details:
10954         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10955         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10956         'gettext'.
10957         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10958         'gettext'.
10960 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10962         regex: pacify static checkers
10963         Problem and draft fix reported by Aharon Robbins in:
10964         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10965         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10966         Clear memory to pacify static checkers.
10968         regex: fix [ diagnostic
10969         Problem and fix reported by Aharon Robbins in:
10970         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10971         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10973         regex: fix memory leaks
10974         Problem and draft fix reported by Aharon Robbins in:
10975         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10976         * lib/regcomp.c (build_range_exp, build_charclass_op)
10977         * lib/regex_internal.c (re_dfa_add_node):
10978         Fix memory leak on failure.
10980 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10982         fts: don't unconditionally use leaf optimization for NFS
10983         NFS st_nlink are not accurate on all implementations,
10984         leading to aborts() if that assumption is made.
10985         See <https://bugzilla.redhat.com/1299169>
10986         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10987         the white list, and document the issue.
10989 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10990             KO Myung-Hun  <komh@chollian.net>
10992         gnulib-tool: don't assume ln -s works
10993         * gnulib-tool (func_ln_s): New function.
10994         (func_ln): Use it.
10996 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10998         utimes: detect utimes() correctly on OS/2 kLIBC
10999         utimes() of OS/2 kLIBC has some limitations.
11000         1. OS/2 itself supports a file date since 1980 year in local time.
11001         2. OS/2 itself supports only even seconds for a file time.
11002         3. utimes() of OS/2 kLIBC does not work on an opened file.
11003         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
11004         * doc/posix-functions/utimes.texi: Document the above limitations of
11005         utimes() on OS/2 kLIBC.
11007 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11008             KO Myung-Hun  <komh@chollian.net>
11010         openat_proc_name: port to OS/2 kLIBC
11011         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
11012         instead of /proc/self/fd.
11013         * lib/openat-proc.c (openat_proc_name):
11014         Don't assume file name length is less than INT_MAX.
11015         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
11017 2016-01-14  KO Myung-Hun  <komh@chollian.net>
11019         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
11020         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
11021         definitions of intptr_t and uintptr_t (which use int and unsigned)
11022         to avoid clashes with declarations of system functions like sbrk.
11023         * lib/stdint.in.h (intptr_t, uintptr_t): Check
11024         _INTPTR_T_DECLARED before defining them.
11026         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
11027         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
11028         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
11029         Declare on kLIBC.
11030         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
11031         fd associated with dirp.
11032         (_gl_register_dirp_fd): New. Register fd associated with dirp to
11033         dirp_fd_list.
11034         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
11035         (dirfd): Implemented for kLIBC.
11036         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
11037         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
11038         succeeds.
11039         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
11040         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11041         (REPLACE_DIRFD): Define to 1 if replaced.
11042         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
11043         * modules/closedir (Depends-on): Add dirfd.
11044         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
11045         condition.
11046         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
11047         * modules/opendir (Depends-on): Add dirfd.
11049         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
11050         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
11051         * lib/dup.c (dup_nothrow): New.
11052         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
11053         (klibc_dup2): New.
11054         * lib/fcntl.c (klibc_fcntl): New.
11055         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
11056         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
11057         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
11058         fd.
11060         pipe_filter_ii_execute: port to OS/2 kLIBC
11061         Pipes on kLIBC do not support O_NONBLOCK like Win32.
11062         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
11063         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
11064         Reuse Win32 code on OS/2 kLIBC.
11065         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
11066         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
11068         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
11069         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
11070         static inline function.  The implementation of wcwidth in wcwidth.c
11071         causes a "conflicting types" error.
11072         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
11074         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
11075         spawn() on OS/2 kLIBC is not silly like one on Windows
11076         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
11077         empty string on OS/2 kLIBC.
11079         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
11080         On OS/2 kLIBC, select() works only on sockets.
11081         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
11083         binary-io: don't put fd in binary mode if it is a console on EMX
11084         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
11085         a console on EMX.
11087 2016-01-15  Pádraig Brady  <P@draigBrady.com>
11089         doc: mention unfixed issues with unsupported localtime() values
11090         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
11091         returns nonsense for localtime(2^56).
11092         * doc/posix-functions/localtime_r.texi: Likewise.
11094 2016-01-14  Pádraig Brady  <P@draigBrady.com>
11096         doc: mention setlocale() issues on OpenBSD
11097         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
11098         never fails, and the need to check categories individually.
11100 2016-01-14  Pádraig Brady  <P@draigBrady.com>
11102         sig2str: list all signals on FreeBSD >= 7
11103         FreeBSD >= 7 is contravening POSIX by not defining NSIG
11104         to the maximal statically defined signal value.
11105         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
11106         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
11107         where available, even when NSIG is defined.
11109 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11111         acl-permissions: port to USE_ACL==0 platforms
11112         I ran into this problem when building bleeding-edge GNU Emacs
11113         with gcc -fsanitize=address on Fedora 23.  On this platform
11114         the ACL library does not pass the 'configure' test and Emacs
11115         then does not build due in part to what appear to be typos in the
11116         ACL part of Gnulib.
11117         * lib/acl-internal.c (free_permission_context):
11118         * lib/acl-internal.h (struct permission_context):
11119         Test whether USE_ACL is nonzero, not whether it is defined.
11121 2016-01-12  Martin Sebor  <msebor@redhat.com>
11123         mktime: rename macro to avoid glibc clash
11124         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
11125         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
11127 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11129         Port "$@" to OpenIndiana ksh93
11130         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
11131         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
11132         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
11133         bug long-dead shells, so remove the workaround.
11134         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
11135         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
11136         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
11137         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
11138         Use "$@" instead of ${1+"$@"}.
11140         Port Universal Time settings to strict POSIX
11141         * build-aux/announce-gen, build-aux/bootstrap:
11142         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
11143         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
11144         * build-aux/gnupload, build-aux/mkinstalldirs:
11145         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
11146         * build-aux/update-copyright, build-aux/useless-if-before-free:
11147         * build-aux/vc-list-files, tests/test-strftime.c:
11148         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
11149         but POSIX says the behavior of TZ="UTC" is undefined.
11151 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11153         msvc-inval: fix problem with unset shell var
11154         Problem reported by Karl Berry in:
11155         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
11156         * modules/msvc-inval (Depends-on):
11157         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
11158         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
11160 2016-01-01  Pádraig Brady  <P@draigBrady.com>
11162         tests: for compare_(), use cmp -s where available
11163         * tests/init.sh (compare_): Only fall back to cmp without
11164         the POSIX defined -s option, where this is not available.
11166 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11168         version-etc: new year
11169         * build-aux/gendocs.sh (version):
11170         * doc/gendocs_template:
11171         * doc/gendocs_template_min:
11172         * doc/gnulib.texi:
11173         * lib/version-etc.c (COPYRIGHT_YEAR):
11174         Update copyright dates by hand in templates and the like.
11175         * all files: Run 'make update-copyright'.
11177 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
11179         human: fix output buffer overrun by 1
11180         * lib/human.c (human_readable): Fix off-by-one typo in buffer
11181         calculation that could lead to a one-byte buffer overrun.
11183 2015-12-28  Daiki Ueno  <ueno@gnu.org>
11185         maint: fix operator precedence in mbrtowc test
11186         This is a fix for test breakage introduced by commit 45228d96; the
11187         equality expression must be parenthesized when negated with '!',
11188         otherwise we always get:
11190           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
11192         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
11193         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11195 2015-12-23  James Youngman  <jay@gnu.org>
11197         regexprops-generic: update from regex.h
11198         * doc/regexprops-generic.texi: update by running the regexprops binary
11199         from findutils (the command line is 'regexprops "Regular Expressions"
11200         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
11201         gnulib with GNU grep had made this document out-of-date.
11203 2015-12-23  Pádraig Brady  <P@draigBrady.com>
11205         strftime-tests: avoid false failure on OS X
11206         * tests/test-strftime.c (struct localtime_rz_test): Add an
11207         ahistorical member which is used to warn rather than fail
11208         when tm_isdst isn't set for such entries.  This is the case for
11209         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
11211 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
11213         fts: ensure leaf optimization is used for NFS
11214         NFS provides usable dirent.d_type but not necessarily for all entries
11215         of large directories.  See <https://bugzilla.redhat.com/1252549>
11216         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
11218 2015-12-20  Pádraig Brady  <P@draigBrady.com>
11220         fts: enable leaf optimization for XFS
11221         XFS provides usable dirent.d_type only for DT_DIR,
11222         but the noleaf optimization still applies.
11223         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
11225 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11227         intprops: comment fix
11228         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
11229         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
11231         intprops-test: work around GCC bug 68971
11232         Problem reported by Pádraig Brady in:
11233         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
11234         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
11235         (main): Add a case that better tests 64-bit long in this area.
11237 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
11239         gnulib-tool: allow multiple --local-dir usage
11240         * gnulib-tool: Use --local-dir to construct compound
11241         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
11242         PATH_SEPARATOR early.
11243         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
11244         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
11245         func_determine_path_separator because that needs to be detected
11246         earlier now.
11247         (func_determine_path_separator): New function.
11248         (func_path_foreach, func_path_foreach_inner): New functions.
11249         (func_path_prepend, func_path_append): Likewise.
11250         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
11251         (func_lookup_file, func_all_modules): Use new functions to work
11252         with local_gnulib_path.
11253         (func_modules_in_dir, func_exists_module): New callbacks for
11254         func_path_foreach.
11255         (func_exists_module, func_get_tests_module): Likewise.
11256         (func_is_local_file, func_should_symlink): New helper methods.
11257         (func_add_file, func_update_file): Use new func_should_symlink
11258         instead, DRY.
11259         (func_reconstruct_cached_local_gnulib_path): New helper.
11260         (func_reconstruct_cached_dir): New callback.
11261         (func_import): The cached_local_gnulib_dir renamed to
11262         cached_local_gnulib_path similarly to local_gnulib_dir.
11263         Use new func_reconstruct_cached_local_gnulib_path.
11264         (func_count_relative_local_gnulib_path): New sub-method.
11265         (func_create_testdir): Use func_should_symlink, DRY.
11266         (func_create_megatestdir): Use new functions to work with
11267         local_gnulib_path correctly.
11268         (func_append_local_dir): New helper.
11270 2015-12-08  Pádraig Brady  <P@draigBrady.com>
11272         fix freadptr to work with ungetc on all uClibc configs
11273         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
11274         where GNU coreutils cut(1) generates invalid output on uClibc
11275         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
11276         * lib/freadptr.c (freadptr): Return NULL if there are
11277         ungotten chars.  In this case freadseek() will iterate
11278         again to process the ungotten character.
11280 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11282         xalloc-oversized: improve performance with GCC 5
11283         * lib/xalloc-oversized.h (xalloc_oversized):
11284         Improve performance with GCC 5 by using __builtin_mul_overflow.
11286 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11288         intprops: new public macro EXPR_SIGNED
11289         Emacs can use this macro, so make it public.
11290         * doc/intprops.texi (Arithmetic Type Properties): Rename from
11291         'Integer Type Determination', since some of these macros apply
11292         to non-integer types.  Clarify what kinds of constant expressions
11293         these macros return.  Say when the arguments can be non-integers.
11294         Mention newly published macro EXPR_SIGNED.
11295         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
11296         make it public.  All uses changed.
11298         intprops: fix typo in clang port
11299         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
11300         '__builtin_add_overflow' that is not caught by compiler.
11302 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11304         test-timespec: fix typo in previous change
11305         * tests/test-timespec.c (main): Fix typo that reduced test quality.
11307         timespec-sub: fix overflow bug; add tests
11308         * lib/timespec-add.c (timespec_add):
11309         * lib/timespec-sub.c (timespec_sub):
11310         Work even if time_t is narrower than int (a theoretical
11311         possibility).  Redo code for a bit more clarity.
11312         * lib/timespec-sub.c (timespec_sub):
11313         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
11314         * modules/timespec-tests, tests/test-timespec.c: New files.
11316         intprops-test: suppress -Woverlength-strings
11317         Problem reported by Pádraig Brady in:
11318         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
11319         It is not worth the hassle to port this test to compilers that
11320         cannot handle long strings in diagnostics.
11321         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
11323 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11325         quotearg: add quotearg_n_style_colon()
11326         This quotes with default options of the specified style,
11327         but with quoting enabled for instances of ':'.
11328         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
11329         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
11331 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11333         intprops: revise _WRAPV macros, revert _OVERFLOW
11334         The incompatible changes to the _OVERFLOW macros were too much of
11335         a hassle in practice, so revert them.  Instead, change the new
11336         _WRAPV macros to make them closer in behavior to GCC 5's new
11337         builtin_add_overflow etc. functions.  No other software was using
11338         these newly-added macros yet, so this should be OK.
11339         * NEWS: Revert previous change, since the incompatible change
11340         has been reverted, and nobody used the incompatible version.
11341         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
11342         Document revised behavior.
11343         (Integer Range Overflow): Adjust example to match above revisions.
11344         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
11345         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
11346         these can be used in integer constant expressions again.
11347         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
11348         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
11349         needed.
11350         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11351         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11352         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
11353         Remove, as they did not seem that useful.
11354         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
11355         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
11356         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
11357         Support new semantics.
11358         (__has_builtin): New macro, if not alreay defined.
11359         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
11360         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11361         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11362         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11363         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
11364         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
11365         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
11366         New macros.
11367         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
11369 2015-11-03  Jim Meyering  <meyering@fb.com>
11371         intprops: add parentheses for when OP has precedence lower than "-"
11372         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
11373         "a OP b" must be parenthesized for when OP is like "<<", which has
11374         lower precedence than the following "-". Reported by Pádraig Brady.
11376 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11378         quotearg: constify get_quoting_style parameters
11379         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
11380         * lib/quotearg.c (get_quoting_style): Likewise.
11382 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11384         quotearg: add support for $'' shell escaping
11385         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
11386         items and descriptions.
11387         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
11388         above types by quoting like "shell", but using $'...' syntax
11389         for non printable characters, which should provide unambiguous
11390         printable output for any input.
11391         * tests/test-quotearg-simple.c: Update accordingly.
11393 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11395         maint: use a more standard return from mbrtowc test
11396         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
11397         from the test program as this is non standard and often
11398         indicates an unhandled case in the test program.
11399         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11401 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11403         intprops: add WRAPV and const flavors for GCC 5
11404         If available, use GCC 5's builtin functions for efficient integer
11405         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
11406         and safely compute the low-order bits of the correct answer.
11407         A downside of these efficient functions is that they cannot be
11408         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
11409         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
11410         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
11411         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
11412         Document the changes.
11413         (Wraparound Arithmetic): New section.
11414         (Integer Range Overflow):
11415         Put this subsection last, since it's least useful.
11416         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
11417         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
11418         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
11419         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11420         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11421         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
11422         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11423         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
11424         New macros.
11425         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11426         Generate calls to GCC builtins if available, for speed.
11427         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11428         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11429         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11430         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
11431         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
11432         (CHECK_QUOTIENT, CHECK_REMAINDER):
11433         Test WRAPV and CONST flavors (when available) too.
11435 2015-10-30  Pádraig Brady  <P@draigBrady.com>
11437         doc: use extended timezone format in iso-8601 example
11438         * doc/parse-datetime.texi: The standard states that extended format
11439         is to be used consistently throughout.
11440         Note that lib/parse-datetime.y can handle either tz format.
11442 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11444         stdalign: port to Sun C 5.9
11445         * doc/posix-headers/stdalign.texi: Document this.
11446         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
11447         __attribute__ ((__aligned__ (...))).
11449 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11451         time_rz: fix comment about tzalloc
11452         * lib/time_rz.c (tzalloc): Fix comment.
11454 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11456         stdalign: work around pre-4.9 GCC x86 bug
11457         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
11458         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
11459         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
11461 2015-10-18  Pádraig Brady  <P@draigBrady.com>
11463         maint.mk: sc_tight_scope: remove extraneous expressions
11464         * top/maint.mk (tight_scope): This is not really required since
11465         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
11466         that matches all nm entries.  But it does remove extraneous entries
11467         that may be confusing or cause issue in future maintenance.
11469 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11471         time_rz: return NULL if localtime_r fails
11472         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
11473         while still attempting to pacify bleeding-edge GCC.
11475         fts: port to C11 alignof
11476         * doc/posix-headers/stdalign.texi (stdalign.h):
11477         Document the C11 restriction.
11478         * lib/fts.c: Include stddef.h, for max_align_t.
11479         (fts_alloc): Align using max_align_t, not FTSENT.
11480         * modules/fts (Depends-on): Add stddef.
11482 2015-10-18  Jim Meyering  <meyering@fb.com>
11484         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
11485         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
11486         would see this:
11488         lib/time_rz.c: In function 'localtime_rz':
11489         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
11490           [-Werror=nonnull]
11491                    if (tm && !save_abbr (tz, tm))
11492                        ^
11494         That was complaining about "tm" because it is a parameter that was
11495         declared with the __nonnull__ attribute.
11496         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
11497         result of localtime_r.
11499 2015-10-17  Jim Meyering  <meyering@fb.com>
11501         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
11502         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
11503         name-extraction regexp mistakenly used \S+, and would mistakenly
11504         extract "*F" from "extern int *F()" rather than the desired "F".
11505         Use \w+ instead.
11507 2015-10-17  Jim Meyering  <meyering@fb.com>
11509         maint.mk: sc_tight_scope: factor and support OS X
11510         * top/maint.mk (_gl_tight_scope): Address three issues:
11511         - factor out four instances of code that wraps a string in "^...$"
11512         - allow nm-reported symbol names to have an optional leading "_"
11513         - add "main" to the list of ignored variable names, because on os x,
11514         "main" has nm-reported type "S" in the variable-checking section.
11516 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
11518         safe-alloc-tests: fix typo in license header
11519         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
11521 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
11523         copy-file: fix mem leak in error case
11524         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
11525         upon error opening or performing I/O to the src and dest files.
11527 2015-10-15  Mike Frysinger  <vapier@chromium.org>
11529         localename: control langinfo.h inclusion
11530         This header is only used to work around buggy behavior in old
11531         versions of glibc, so do not include it all the time.  Otherwise
11532         we get build failures on systems that do not provide langinfo.h.
11533         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
11534         in the source later on.
11535         The patch was originally submitted to gettext as:
11536         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
11538 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11540         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
11541         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
11542         * lib/u64.c, lib/unistd.c:
11543         Append 'typedef int dummy;', to pacify compilers that are picky
11544         about empty translation units.
11546 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
11548         accept4-tests: fix to avoid non portable flags
11549         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
11550         as they are the only documented ones, and passing others may trigger
11551         EINVAL (seen on FreeBSD 10.1-RELEASE).
11552         * doc/glibc-functions/accept4.texi: Mention that we don't provide
11553         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
11555 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
11557         gnulib-tool: fix tests of 'extensions' module
11558         This complements f8fe25fab60e3c687a124 commit.
11559         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
11560         emitting of initial gl_EARLY macros.
11561         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
11562         replaced with func_emit_pre_early_macros call.
11564 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11566         unicase/locale-language: fix typo in utf-8 cookie
11567         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
11568         Problem reported by Zbigniew Jędrzejewski-Szmek.
11570 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11572         xalloc: do not worry about GCC 5 warning on 32 bit
11573         * lib/xalloc.h: Revert previous change.
11574         I found a better way to fix this in coreutils.
11576 2015-10-02  Pádraig Brady  <P@draigBrady.com>
11578         xalloc: avoid GCC 5.1 warning on 32 bit
11579         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
11580         xalloc_oversized(), which was seen to give this warning
11581         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
11582         when simplifying conditional".
11584 2015-10-02  Daiki Ueno  <ueno@gnu.org>
11586         uniname/uniname-tests: avoid compiler warnings
11587         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
11588         unused local variables.
11589         (test_alias_lookup): Fix alias name display in failure cases.
11591 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11593         c-ctype: do not worry about EBCDIC + char signed
11594         Drop support for EBCDIC with char being signed, as this breaks too
11595         many programs.  Problem reported by Ben Pfaff in:
11596         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
11597         * lib/c-ctype.h: Verify that we are not using EBCDIC with
11598         char being signed.
11599         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
11600         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
11601         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
11602         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
11603         * tests/test-c-ctype.c (test_all):
11604         Simplify by assuming standard char values cannot be negative.
11605         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
11607 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11609         c-ctype: port better to z/OS EBCDIC
11610         Problems reported by Daniel Richard G. in:
11611         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
11612         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
11613         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
11614         (_C_CTYPE_OTHER_CNTRL): New macro.
11615         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
11616         from SCHAR_MIN, as the functions are defined only from values
11617         promoted from char or from unsigned char, not necessarily from
11618         signed char.
11620 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
11622         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
11624         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
11625         and ARFLAGS variables.  Doing this unconditionally could break
11626         later Automake's AM_PROG_AR invocation (at least it's
11627         AC_CHECK_TOOLS call to detect correct 'ar' binary).
11629         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
11630         Amsterdam Compiler Kit, so make the previous code to have effects
11631         only on ACK, and rather automatically call the Automake's
11632         AM_PROG_AR as soon as possible to decide other cases.
11634         References:
11635         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
11637         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
11638         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
11639         is possible, keep setting AR/ARFLAGS to reasonable defaults.
11640         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
11641         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
11642         'extensions' module is used.
11643         * modules/extensions (configure.ac-early): Remove as this snippet
11644         is added to gnulib-comp.m4 earlier anyway.
11646 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11648         sockets: MS Windows initalization fixes
11649         Problem reported by Test User in:
11650         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
11651         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
11652         Correct the endianness.
11653         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
11654         number mismatch, not just on <.  Cleanup before any such failure.
11656 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11658         gc: fix detection of installed libgcrypt version
11659         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
11660         at least as recent as 1.4.4.  The previously used macro is not
11661         available now, since modules were removed in version 1.6.0.
11663 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11665         c-ctype: rewrite to use inline functions
11666         This simplifies maintenance, since it makes for just one
11667         implementation of each function, letting the compiler have the fun
11668         of optimization.  In practice this works well nowadays with GCC.
11669         E.g., c_isascii might need only three instructions even though the
11670         source code lists every ASCII character individually in a large
11671         switch statement.
11672         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
11673         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
11674         * NEWS: Document the API change.
11675         * lib/c-ctype.c: Drastically simplify, since this now just expands
11676         inline functions.
11677         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11678         (C_CTYPE_INLINE): New macro.
11679         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
11680         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
11681         Verify that either ASCII or EBCDIC is being used.
11682         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
11683         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
11684         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
11685         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
11686         New private macros.
11687         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
11688         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
11689         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
11690         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
11691         (c_tolower, c_toupper): When converting, return the unsigned char,
11692         as that is what z/OS does.
11693         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
11694         of some c-ctype.h macros.
11695         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
11696         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
11697         c_tolower promotion to be compatible with z/OS.
11699 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
11701         gitlog-to-changelog: trim only trailing whitespaces
11702         This is fix for --format regression introduced by commit
11703         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
11704         doubled %n string) had no effect anymore.  This format
11705         specification has been used e.g. by GNU paxuitils (commit
11706         edfd8bcc3).
11708         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
11709         newlines in commmit messages.
11711 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11713         Test that c_iscntrl agrees with iscntrl, etc.
11714         Suggested by Daniel Richard G. in:
11715         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
11716         * modules/c-ctype-tests (Depends-on): Add ctype.
11717         * tests/test-c-ctype.c: Include <ctype.h>.
11718         (NCHARS): New constant.
11719         (test_agree_with_C_locale): New function.
11720         (main): Use it.
11721         (test_all): Use named constants.
11723         c-ctype: improve c_isascii testing
11724         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
11725         Add a test to count the number of ASCII characters.
11727 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11729         savewd: remove SAVEWD_CHDIR_READABLE
11730         It was problematic in the light of file systems that ignore umask.
11731         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
11732         * NEWS: Document this.
11733         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
11734         successful, -1 (setting errno) on failure, rather than something
11735         more complicated than that.
11736         * lib/mkdir-p.c (make_dir_parents):
11737         Do not use SAVEWD_CHDIR_READABLE.
11738         * lib/savewd.c (savewd_chdir):
11739         Remove support for SAVEWD_CHDIR_READABLE.
11740         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
11742         c-ctype: port better to EBCDIC
11743         Problems reported by Daniel Richard G. in
11744         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
11745         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
11746         Include "verify.h".
11747         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
11748         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
11749         Define as enum constants with value false, if not defined, so that
11750         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
11751         code more portable, as both branches of the 'if' are compiled on
11752         all platforms.
11753         (C_CTYPE_EBCDIC): New constant.
11754         Verify that the character set is either ASCII or EBCDIC.
11755         (to_char): New static function.
11756         (c_isascii, c_iscntrl):
11757         Assume standard control-character assignments for EBCDIC.
11758         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
11759         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
11760         Rewrite to use 'if' instead of 'ifdef'.
11761         Use to_char if non-ASCII.  Prefer <= to >=.
11762         Prefer true and false to 1 and 0, for booleans.
11763         (c_iscntrl): Use 'if', not 'ifdef'.
11764         * modules/c-ctype (Depends-on): Add verify.
11765         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
11766         (to_char): New function.
11767         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
11769 2015-09-21  Pádraig Brady  <P@draigBrady.com>
11771         nanosleep: fix return code for interrupted replacement
11772         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
11773         that we return -1 in the case the call is interrupted by a signal,
11774         rather than the current value of 1.
11775         Diagnosed and tested by Daniel Richard G.
11777 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11779         Diagnose ERE '()|\1'
11780         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
11781         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
11782         track of the set of previously-completed subexpressions available
11783         before the first alternative, and restore this set just before
11784         parsing each subsequent alternative.  This lets us diagnose the
11785         invalid back-reference in the ERE '()|\1'.
11787         regex: merge patches from libc
11789         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11790         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
11791         * lib/regex_internal.h:
11792         Include <libc-lock.h> instead of <bits/libc-lock.h>.
11794         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
11795         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
11796         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
11797         wcscoll.
11798         * lib/regexec.c (check_node_accept_bytes): Likewise.
11800         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11801         Fix regex wcrtomb namespace (bug 18496).
11802         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
11803         instead of wcrtomb.
11805         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11806         Fix regex wctype namespace (bug 18495).
11807         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
11808         instead of towlower.
11809         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
11810         instead of iswlower.  Call __towupper instead of towupper.
11811         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
11812         instead of iswalnum.
11814         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
11815         * lib/regcomp.c (parse_bracket_exp): Initialize type to
11816         COLL_SYM in a couple of places to avoid uninitialized variable
11817         wanings on tilegx gcc 4.8.2.
11819         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11820         * lib/regex_internal.h: Remove NOT_IN_libc.
11822         2014-11-17  Andreas Schwab  <schwab@suse.de>
11823         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
11825         2014-09-11  Roland McGrath  <roland@hack.frob.com>
11826         Move findidx nested functions to top-level.
11827         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
11828         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
11829         Pass new arguments to findidx.
11830         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
11831         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
11832         Don't #include it inside the function.  Pass new arguments to findidx.
11833         * lib/regex_internal.h:
11834         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
11835         (re_string_elem_size_at): Don't #include it inside the function.
11836         Pass new arguments to findidx.
11838         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11839         Check if DEBUG is defined in regex_internal.c
11840         * lib/regex_internal.c: Check if DEBUG is defined and is set.
11842 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
11844         ceill: detect buggy OpenBSD implementation
11845         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
11846         which returns zero for small values.  Discussed here:
11847         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
11849 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11851         mountlist: add me_mntroot field on Linux machines
11852         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11853         mount_entry so Linux machines based on /proc/self/mountinfo can
11854         distinguish between bind mounts and original mounts.  In reality bind
11855         mounts aren't treated differently than mountroot=/ mounts by the
11856         kernel, but the user often wants these bind mounts distinguished.
11857         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11858         More details at https://pad.lv/1432871
11860 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11862         doc: Describe to use multiple instances of gnulib
11863         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11864         instances of gnulib with different modules can be used, for example one
11865         for a lib and another one for associated tools.
11867 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11869         base32: mark function as __attribute__ const
11870         * lib/base32.h (isbase32): Mark __attribute__ const as
11871         suggested by GCC, and consistent with the base64 module.
11873 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11875         gnulib-tool: don't transform binary files with sed
11876         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11877         .mo and .class files.
11878         Reported by Denis Denisov.
11880 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11882         gperf: respect silent rules
11883         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11884         V_GPERF_0 for silent rules.
11885         * modules/iconv_open (Makefile.am): Use V_GPERF.
11886         * modules/unicase/locale-language (Makefile.am): Likewise.
11887         * modules/unicase/special-casing (Makefile.am): Likewise.
11888         * modules/unictype/category-byname (Makefile.am): Likewise.
11889         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11890         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11891         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11892         * modules/unictype/property-byname (Makefile.am): Likewise.
11893         * modules/unictype/scripts (Makefile.am): Likewise.
11894         * modules/uninorm/composition (Makefile.am): Likewise.
11896 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11898         Improve port of stdalign to C++11
11899         Problem reported by Sundaram in:
11900         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11901         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11902         (__alignas_is_defined): Define if C++11 or newer.
11904 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11906         pmccabe2html: fix gawk regex escaping
11907         * build-aux/pmccabe2html: Add one more backslash to properly
11908         escape the gsub replacement value.  Fixes this error:
11909         gawk: ./build-aux/pmccabe2html:425: \
11910         warning: escape sequence `\&' treated as plain `&'
11912 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11914         time_rz: port to pedantic memcpy
11915         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11916         that reject memcpy (..., NULL, 0).
11918 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11920         time_rz: port better to MinGW
11921         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11922         Instead, store the tzname copy in the struct tm_zone object.
11923         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11924         * lib/strftime.c [!_LIBC]:
11925         * lib/time_rz.c: Include time-internal.h.
11926         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11927         name from *TZ rather than from TZNAME, doable because *TZ now has
11928         a tzname_copy member.
11929         * lib/time-internal.h: New file, with contents taken from
11930         lib/time_rz.c.  It's separate because strftime.c now accesses
11931         struct tm_zone members.
11932         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11933         New member tzname_copy.
11934         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11935         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11936         Initialize tzname_copy member.
11937         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11938         in tzname_copy member.
11939         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11940         (restore_tzname): Remove; no longer needed.  All calls removed.
11941         * modules/time_rz (Files): Add lib/time-internal.h.
11943         time: port __need_time_t to MinGW
11944         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11945         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11947 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11949         strftime: fix newly-introduced bug on Solaris
11950         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11951         consistently at the start, rather than doing some of the setup at
11952         the start and some in the %Z format spec.  This is cleaner, and
11953         works better with time_rz on platforms like Solaris where struct
11954         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11955         mktime_z and localtime_rz can mess up the tzname cache.
11957         test-strftime: test for Solaris bug
11958         * modules/strftime-tests (Depends-on): Add strerror.
11959         * tests/test-strftime.c: Include <errno.h>.
11960         (posixtm_test): New function, containing the old 'main'.
11961         (struct tzalloc_test, struct localtime_rz_test): New types.
11962         (TZ, LT): New static vars.
11963         (tzalloc_test): New function.
11964         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11966         time_rz: port to Solaris etc.
11967         Works around a tzname problem on platforms like Solaris that have
11968         tzname but not tm_zone, by setting tzname at the appropriate time
11969         and restoring it later.
11970         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11971         New static vars.
11972         (save_abbr) [HAVE_TZNAME]: Set them.
11973         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11974         (restore_tzname): New function.
11975         (localtime_rz, mktime_z): Use it.
11977         time_rz: now LGPL
11978         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11980         time_rz: make a constant 'const'
11981         * lib/time_rz.c (local_tz): Now const.
11983         time_rz: fix off-by-one typo
11984         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11986 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11988         fprintftime, strftime: use timezone_t args
11989         * NEWS: Document the change.
11990         * lib/fprintftime.h (fprintftime):
11991         * lib/strftime.c (extra_args) [my_strftime]:
11992         * lib/strftime.h (nstrftime):
11993         Time zone arg is now of type timezone_t, not int.
11994         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11995         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11996         (my_strftime) [emacs && !my_strftime]:
11997         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11998         Remove; Emacs doesn't need this any more.
11999         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
12000         fprintftime and nstrftime to call tzset.
12001         (ut) [!my_strftime]: Remove, replacing with ...
12002         (tz) [!my_stftime]: ... this new macro.  All uses changed.
12003         (strftime_case_): Use localtime_rz and mktime_z instead
12004         of localtime_r and mktime.
12005         * modules/fprintftime (Depends-on): Add time_rz.
12006         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
12007         * tests/test-strftime.c (main): Adjust to new nstrftime API.
12009         time_rz: new module
12010         * MODULES.html.sh: Add time_rz.
12011         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
12012         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
12013         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
12014         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
12015         New var HAVE_TIMEZONE_T (default 0).
12016         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12017         New var GNULIB_TIME_RZ (default 0).
12018         * modules/time (time.h): Substitute the new vars.
12020         flexmember: license is now unlimited
12021         * modules/flexmember (License): Change to unlimited,
12022         since its only source file gives an unlimited license.
12024 2015-07-15  Eric Blake  <eblake@redhat.com>
12026         maint: update copyright paper procedures
12027         * config/srclist.txt: Drop outdated files.
12028         * doc/Copyright/conditions.txt: Update to latest.
12029         * doc/Copyright/assign.changes.manual: Delete.
12030         * doc/Copyright/assign.future.manual: Likewise.
12031         * doc/Copyright/assign.manual: Likewise.
12032         * doc/Copyright/assign.translation.manual: Likewise.
12033         * doc/Copyright/disclaim.changes.manual: Likewise.
12034         * doc/Copyright/disclaim.manual: Likewise.
12035         * doc/Copyright/disclaim.program: Likewise.
12037 2015-07-07  Daiki Ueno  <ueno@gnu.org>
12039         localename: fix link error on Illumos
12040         Illumos defines __sun, but does not have getlocalename_l nor the
12041         equivalent.  This partially reverts commit 387c214.
12042         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
12043         available, as well as uselocale.
12044         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
12045         use getlocalename_l if it is not available.
12047 2015-07-07  Daiki Ueno  <ueno@gnu.org>
12049         unistr/uN-strtok-tests: avoid a trivial leak
12050         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
12051         input and delim after the multibyte delimiter tests.
12053 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12055         file-has-acl, acl-permissions: fix HP-UX typos
12056         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
12057         * lib/file-has-acl.c (file_has_acl):
12058         * lib/set-permissions.c (context_acl_from_mode)
12059         (context_aclv_from_mode, set_acls):
12060         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
12061         They were introduced by the recent ACL changes.
12063         regex: match current GNU grep behavior
12064         These symbols have not matched GNU grep behavior for quite some time.
12065         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
12066         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
12067         Change to match current GNU behavior.
12068         Simplify by expressing it as differences from POSIX BREs and EREs.
12069         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
12071 2015-07-03  Jim Meyering  <meyering@fb.com>
12073         set-permissions.c: adjust acl_from_mode's cpp guard
12074         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
12075         directives identical to those guarding the sole use.
12076         Otherwise, on some systems, we'd get a warning about
12077         the function being defined but not used.
12078         Also, filter through cppi to correct misleading indentation
12079         of cpp directives.
12081 2015-07-03  Pádraig Brady  <P@draigBrady.com>
12083         tests: restrict shells to those that support 'local'
12084         The local keyword is very widely supported and used
12085         in tests in coreutils and grep at least.  Therefore
12086         restrict to testing with shells that support it.
12087         This mainly excludes /bin/sh on Solaris.
12088         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
12090 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
12091         and Daiki Ueno  <ueno@gnu.org>
12093         unistr/uN-strtok: handle multibyte delimiters
12094         Previously, uN_strtok moved PTR to the next unit to the token end.
12095         When DELIM contained a multibyte character, the new position could
12096         be a middle of a multibyte character.
12097         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
12098         after the token.
12099         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
12100         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
12101         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
12102         * modules/unistr/u8-strtok (Depends-on): Depend on
12103         unistr/u8-strmblen.
12104         * modules/unistr/u16-strtok (Depends-on): Depend on
12105         unistr/u16-strmblen.
12106         * modules/unistr/u32-strtok (Depends-on): Depend on
12107         unistr/u32-strmblen.
12108         * tests/unistr/test-u-strtok.h: New file.
12109         * tests/unistr/test-u8-strtok.c: New file.
12110         * tests/unistr/test-u16-strtok.c: New file.
12111         * tests/unistr/test-u32-strtok.c: New file.
12112         * modules/unistr/u8-strtok-tests: New file.
12113         * modules/unistr/u32-strtok-tests: New file.
12114         * modules/unistr/u16-strtok-tests: New file.
12116 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
12118         update-copyright: fix test failure with perl >= 5.22 (trivial)
12119         * build-aux/update-copyright: Escape a literal left curly bracket,
12120         required with perl >= 5.22
12122 2015-07-02  Daiki Ueno  <ueno@gnu.org>
12124         u{16,32}-strstr-tests: relax timeout condition
12125         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
12126         tests can take longer than 5 seconds to complete.
12127         Reported by Dagobert Michelsen in:
12128         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
12129         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
12130         seconds to 10 seconds.
12131         * tests/unistr/test-u32-strstr.c (main): Likewise.
12133 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
12135         gnulib-common.m4: change the ARFLAGS default to 'cr'
12136         In some GNU/Linux distributions people started to compile 'ar'
12137         binary with --enable-deterministic-archives (binutils project).
12138         That, however, in combination with previous autotools long time
12139         working default AR{_,}FLAGS=cru causes warnings on such
12140         installations:
12141         ar: `u' modifier ignored since `D' is the default (see `U')
12142         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
12143         set already.
12145 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
12147         selinux-h: avoid double free after *getfilecon()
12148         Originally reported by Ben Shelton on bug-tar:
12149         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
12150         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
12151         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
12152         param should be freed by freecon(3) (regardless the return value).
12154 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
12156         fix pty related tests issues on Windows (trivial)
12157         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
12158         however it's still present in tests/ subdirectory of the final project.
12159         Therefore avoid it to pass `make check`.
12160         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
12161         will just return -ENOSYS, so avoid this non applicable test allowing
12162         the build to proceed.
12164 2015-07-01  Pádraig Brady  <P@draigBrady.com>
12166         acl: fix definition of acl_from_mode on FreeBSD
12167         This was causing basic coreutils copy operations to fail
12168         with ENOTSUP or ENOENT error messages.
12169         * lib/acl-internal.h (acl_from_mode): Only define when
12170         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
12171         of acl_from_mode() defined in lib/set-permissions.c to
12172         be used on FreeBSD at least.
12173         * lib/set-permissions.c: Fix up comment spelling,
12174         and a redundant variable assignment; noticed in passing.
12176 2015-06-30  Pádraig Brady  <P@draigBrady.com>
12178         readutmp: port to FreeBSD >= 9
12179         * lib/readutmp.h: Map utmpxname() to setutxdb().
12180         With that coreutils who(1) and pinky(1) tests pass.
12182 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12184         mgetgroups: port to strict OS X
12185         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
12186         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
12187         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
12188         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
12190 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
12192         mgetgroups: port to strict OS X
12193         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
12194         Document the getgrouplist problem.
12195         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
12196         New macro.
12197         (mgetgroups): Use it.
12198         * m4/mgetgroups.m4 (gl_MGETGROUPS):
12199         Check for OS X signature for getgrouplist.
12201 2015-06-29  Jim Meyering  <meyering@fb.com>
12203         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
12204         It started like this when building coreutils' latest on OS X,
12205         invoking ./configure with a nonempty --cache=.cache:
12207           lib/linkat.c:46:42: error: operator '||' has no right operand
12208           lib/linkat.c: In function 'rpl_linkat':
12209           lib/linkat.c:330:27: error: #if with no expression
12211         Here's linkat.c's line 46:
12213           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
12215         Here's some context:
12217           $ grep linkat_nofoll .cache
12218           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
12219           $ grep LINKAT_SYM lib/config.h
12220           #define LINKAT_SYMLINK_NOTSUP
12222         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
12223         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
12224         but that violates a tenet of AC_CACHE_CHECK: it must
12225         have no side effect other than setting its cache variable.
12227         What happens is that when the cache is set, we'd skip the
12228         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
12229         defined to whatever value it happened to have in configure's
12230         environment.  In my case, it was not defined, so this later code:
12232           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
12233             [Define to 1 if linkat can create hardlinks to symlinks])
12235         would emit code with an empty RHS.
12237         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
12238         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
12240 2015-06-28  Jim Meyering  <meyering@fb.com>
12242         mountlist: avoid an unused-label warning on OS X
12243         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
12244         Building on OS X, I saw a warning about the "free_then_fail" label
12245         being unused.  Give it the _GL_UNUSED_LABEL attribute.
12247         error.c: correct printf-style format: %d -> %u
12248         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
12249         rather than %d, to match the type of "line_number", unsigned int.
12251 2015-06-25  Pádraig Brady  <P@draigBrady.com>
12253         fts: avoid reading beyond the heap allocation
12254         GCC 5.1.1 with -O2 and -fsanitize=address reports
12255         a read of size 4 from a heap object of size 3 is indeed invalid,
12256         though this may be due to incorrect padding assumptions by GCC, see:
12257         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
12258         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
12259         * modules/fts: Depend on stdalign.
12261 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12263         savedir: avoid undefined behavior in qsort call
12264         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12265         "runtime error: null pointer passed as argument 1,
12266          which is declared to never be null"
12267         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
12269 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12271         userspec: avoid undefined behavior in gettext call
12272         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12273         "runtime error: null pointer passed as argument 2,
12274          which is declared to never be null"
12275         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
12277 2015-06-20  Glenn Morris  <rgm@gnu.org>
12279         gitlog-to-changelog: improve gitmerge.el commits
12280         Let the Emacs ChangeLog generation process exclude "skipped"
12281         messages from merge commits (Bug#20717).
12282         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
12284 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12286         wchar: fix MinGW compilation warnings
12287         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
12288         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
12289         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
12291 2015-06-20  Daiki Ueno  <ueno@gnu.org>
12293         uniname/uniname-tests: use pristine data files
12294         For copyright and maintenance reasons, use the data files from UCD
12295         without modification.
12296         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
12297         (getfield): Remove.
12298         (aliases_count): New global variable.
12299         (fill_names): Skip comments and empty lines in the input.  Don't
12300         use getfield.
12301         (fill_aliases): Likewise.
12302         (main): Change the expected command line arguments to:
12303         NAMES... ["--" ALIASES...].
12304         * tests/uniname/test-uninames.sh: Adjust to the change in
12305         test-uninames.c.
12306         * tests/uniname/UnicodeDataNames.txt: Remove.
12307         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
12308         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
12309         file from Unicode 8.0.0.
12311 2015-06-19  Pádraig Brady  <P@draigBrady.com>
12313         linked-list, linkedhash-list: avoid compiler warnings
12314         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12315         -Werror=suggest-attribute=pure (from GCC 5.1.1).
12317 2015-06-19  Daiki Ueno  <ueno@gnu.org>
12319         libunistring: bump minimum version to 0.9.6
12320         * all modules depending on updated Unicode data: Regenerate.
12321         The modules are listed by a script that does:
12322         - for each file listed by: git show --oneline --name-only 705f4efc
12323           - deduce the containing modules, based on "Files:"
12324         - deduce the modules which depend on the containing modules, based
12325           on "Depends-on:"
12327 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12329         uniname/uniname: update to Unicode 8.0.0
12330         * lib/uniname/uninames.h: Regenerate.
12331         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
12332         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
12334 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12336         libunistring: update to Unicode 8.0.0
12337         * lib/gen-uni-tables.c (SIZEOF): New macro.
12338         (output_numeric): Increase the maximum number of fractions from
12339         128 to 160.  Increase the level3 value width from 7 bits to 8
12340         bits.  Use SIZEOF instead of a hard-coded integer.
12341         (output_blocks): Decrease the cut-off threshold from 0x30000 to
12342         0x28000.
12343         (fill_blocks): Increase the maximum number of blocks from 256 to
12344         384.  Use SIZEOF instead of a hard-coded integer.
12345         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
12346         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
12347         value width.
12348         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
12349         a new case added to LBP22.
12350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
12351         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
12352         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
12353         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
12354         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
12355         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12356         lib/uniwidth/width.c.
12357         * all generated files under lib/uni* and tests/uni*: Regenerate.
12359 2015-06-16  Pádraig Brady  <P@draigBrady.com>
12361         gnu-web-doc-update: add --mirror to remove stale files
12362         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
12363         out of date files from the CVS server.  Since this is usually
12364         appropriate, a prompt is given when the option is not specified,
12365         along with the `cvs remove` command that would be run.
12367 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12369         acl-permissions: pacify -Wsuggest-attribute=const
12370         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
12371         * lib/acl-internal.h (free_permission_context):
12372         Declare with attribute const if ! (defined USE_ACL &&
12373         (HAVE_ACL_GET_FILE || defined GETACL)).
12375         fsync: document AIX misbehavior
12376         * doc/posix-functions/fsync.texi (fsync):
12377         Document failure on AIX with read-only file descriptor.
12379 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
12381         stdio: Don't redefine gets when using C++
12382         * lib/stdio.in.h (gets): Disable warning on C++.
12384 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
12386         acl-permissions: port to AIX, C89 HP-UX
12387         Problems reported by Michael Felt.
12388         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
12389         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
12390         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
12391         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
12392         Add cast for AIX, whose system calls are declared to accept
12393         char * even though the arguments are really char const *.
12394         * lib/get-permissions.c (get_permissions):
12395         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
12396         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
12397         that broke a build.
12398         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
12399         Rework types to pacify xlc.
12401 2015-06-03  Pádraig Brady  <P@draigBrady.com>
12403         vasprintf-posix: avoid compiling vasnprintf where possible
12404         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
12405         module where not required.  For example on a GNU/Linux system
12406         when gnulib-tool is run with the --conditional-dependencies option.
12408 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12410         file-has-acl: fix build on Mac OS X 10
12411         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
12412         which has an incompatible 6 parameter getxattr() call.
12413         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
12414         call on Mac OS X >= 10.4.
12415         * doc/glibc-functions/fgetxattr.texi: Likewise.
12416         * lib/file-has-acl.c: Revert to more complete combined check.
12417         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
12418         Reported by Jack Howarth.
12420 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12422         prefix-gnulib-mk: remove no longer needed special case
12423         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
12424         continued lib_SOURCES lines are no longer present,
12425         so special case handling of such entries is not required.
12427 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12429         acl: don't depend on the deprecated qacl module
12430         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
12432 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12434         gnulib-tool: concatenate lib_SOURCES to a single line
12435         * gnulib-tool: Refactor the line merging sed logic,
12436         and use that to output a single lib_SOURCES line for each module.
12437         gnulib using projects often postprocess this output to prepend
12438         subdir paths to each item, and having a single line simplifies this
12439         processing allowing better decoupling from the gnulib-tool output.
12441 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
12443         pthread_sigmask: discount system version if a simple macro (trivial)
12444         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
12445         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
12446         function to ensure it's available.
12448 2015-05-31  Pádraig Brady  <P@draigBrady.com>
12450         readlinkat: avoid OS X 10.10 trailing slash bug
12451         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
12452         has this bug.
12453         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
12454         that OS X 10.10 has this function.
12455         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
12456         as done for readlink().
12457         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
12458         trailing slash bug, and assume readlinkat() has the same issue.
12459         Also fix a typo where $gl_cv_decl_readlink_works was tested,
12460         rather than the correct $gl_cv_decl_readlinkat_works.
12462 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12464         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
12465         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
12466         module rewrite.
12468         acl-permissions: Fix build on Solaris and Cygwin
12469         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
12470         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
12471         ace_entries variables have moved into struct permission_context but
12472         they were still accessed as local variables here.
12474 2015-05-29  Pádraig Brady  <P@draigBrady.com>
12476         linkat: avoid OS X 10.10 trailing slash with symlink bug
12477         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
12478         causes the symlink to be dereferenced, and if it points
12479         to a non existent file, that file will be created as
12480         a hard link to "path1".
12481         This fixes a test failure in test-linkat.c.
12482         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
12483         this case.  The existing workaround in linkat.c for
12484         trailing slash issues, suffices for this case.
12485         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
12486         the list of platforms with trailing slash issues.
12488 2015-05-28  Pádraig Brady  <P@draigBrady.com>
12490         unlinkat: handle ignoring of ".." on Darwin 14
12491         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
12492         on Mac OS X 10.10, where it ignores paths with a trailing "..",
12493         so handle in the same manner.
12494         * m4/unlinkat.m4: Comment on this Darwin issue.
12495         * doc/posix-functions/unlink.texi: Update the latest version
12496         where the issue was seen.
12497         * doc/posix-functions/unlinkat.texi: Mention this issue.
12498         Fixes a test failure in test-unlinkat.c.
12500 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12502         qacl: split into qcopy-acl and qset-acl
12503         Emacs needs the former, but not the latter.
12504         * modules/acl-permissions: New file, containing most of the old qacl.
12505         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
12506         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
12507         * modules/qcopy-acl, modules/qset-acl: New files.
12508         * MODULES.html.sh (File system functions):
12509         Mention the new modules, and mention qacl while we're at it.
12511 2015-05-27  Glenn Morris  <rgm@gnu.org>
12513         gitlog-to-changelog: new option --ignore-line
12514         (This patch is imported from the GNU Emacs master.)
12515         This option ignores individual commit lines matching a pattern.
12516         * build-aux/gitlog-to-changelog: Add --ignore-line option.
12518 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
12520         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
12521         Implement get_permissions and set_permissions primitives for getting all
12522         the permissions of a file, storing them, and later setting them. (In the
12523         minimal case, the permissions consist only of a file mode.) Reimplement
12524         qset_acl and qcopy_acl based on these new primitives: this avoids code
12525         duplication and makes error handling more consistent.
12526         The Solaris and Cygwin code still uses duplicate code paths for setting
12527         a file mode while making sure that no acls exist and setting an explicit
12528         acl; this is no worse than before, but could be cleaned up.  The AIX
12529         code still doesn't read ACLs, it only makes sure that acls don't get in
12530         the way when setting a file mode.
12531         * lib/acl-internal.h (struct permission_context): New data structure.
12532         (get_permissions, set_permissions, free_permission_context): Declare.
12533         * lib/acl-internal.c (free_permission_context): New helper function.
12534         * lib/get-permissions.c (get_permissions): New helper function split off
12535         from qcopy_acl.
12536         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
12537         AIX, set a file's permissions based only on a file mode.
12538         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
12539         other platforms construct a temporary acl from the file mode and set
12540         that acl in the same way as setting an acl read from the source file.
12541         This should help avoid code duplication and inconsistent / buggy
12542         behavior.
12543         (set_acls): New helper function Split off from qcopy_acl.
12544         (chmod_or_fchmod): Moved here from qset-acl.c.
12545         (set_permissions): New helper function.
12546         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
12547         set_permissions.
12548         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
12549         * modules/qacl: Add get-permissions.c and set-permissions.c.
12551         file-has-acl: Split feature tests again (Bug#20667)
12552         * lib/file-has-acl.c: Instead of testing for
12553         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
12554         define them when needed.
12555         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
12556         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
12558 2015-05-27  Pádraig Brady  <P@draigBrady.com>
12560         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
12561         This avoids a conflict with "FORTIFY_SOURCE" variants
12562         of the string functions when they're replaced on NetBSD-6.0.1
12563         and Darwin-14.3.0 at least.
12564         * lib/string.in.h: Avoid including our "lib/string.h" while
12565         including the system <string.h>.
12567 2015-05-26  Eric Blake  <eblake@redhat.com>
12569         stdio: limit __gnu_printf__ witness to gcc 4.4+
12570         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
12571         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
12573         error: use correct printf attributes on mingw
12574         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
12576         inttypes: force correct mingw PRIdMAX even without <stdio.h>
12577         * modules/inttypes (Depends-on): Require extensions, so that mingw
12578         always uses GNU style inttypes.
12579         * lib/inttypes.in.h: On mingw, include <stdio.h>.
12581         stdio: fix probe on mingw under gcc 5.1
12582         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
12583         around new gcc preprocessor rules.
12585 2015-05-07  Glenn Morris  <rgm@gnu.org>
12587         gitlog-to-changelog: parse "Tiny-change"
12588         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
12589         "Copyright-paperwork-exempt".  (Bug#20324)
12591 2015-05-06  Pádraig Brady  <P@draigBrady.com>
12593         doc: document glibc posix_fallocate() issues
12594         * doc/posix-functions/posix_fallocate.texi: Mention the
12595         glibc efficiency problems and issues with NFS.
12597 2015-05-05  Karl Berry  <karl@freefriends.org>
12599         * build-aux/gendocs.sh (usage): document new css default
12600         for HTML (--htmlarg).
12602 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12604         extern-inline: no need for workaround in GCC 5.1
12605         * doc/extern-inline.texi (extern inline):
12606         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12607         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
12608         around these bugs in GCC 5.1 and later.  Maybe in a decade or
12609         two we can remove these workarounds.
12611 2015-04-28  Pádraig Brady  <P@draigBrady.com>
12613         eealloc, pagealign_alloc, xalloc: avoid clang warnings
12614         Avoid [-Wunknown-attributes] warnings like:
12615         warning: unknown attribute '__alloc_size__' ignored
12616         * lib/xalloc.h: Don't use the __alloc_size__  attribute
12617         with clang, as support has been fully removed as of clang 3.5:
12618         https://github.com/llvm-mirror/clang/commit/c047507a
12619         * lib/eealloc.h: Likewise.
12620         * lib/pagealign_alloc.h: Likewise.
12622 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12624         tests: pacify GCC 5.1's stricter printf checking
12625         * tests/test-dirname.c (main):
12626         * tests/test-getaddrinfo.c (simple):
12627         * tests/test-getlogin.c (main):
12628         * tests/test-getndelim2.c (main):
12629         * tests/test-inttostr.c (CK):
12630         * tests/test-md5.c (main):
12631         * tests/test-read-file.c (main):
12632         * tests/test-sha1.c (main):
12633         Fix mismatches between printf format and value signedness.
12634         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
12635         Remove, as CAST_VAL always returned a value of type uintmax_t.
12637         fts: port to GCC 5.1 with --enable-gcc-warnings
12638         Without this fix, GCC 5.1 (correctly) warns about a subscript
12639         error on the fts_name component of FTSENT.  It's actually a
12640         flexible member, so define it that way on C99 or later hosts.
12641         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
12642         structure that now has a flexible array member.
12643         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
12644         (FTSENT): fts_name is now flexible on C99-or-later platforms.
12645         * modules/fts (Depends-on): Add flexmember.
12647 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12649         file-has-acl: port to CentOS 6
12650         Problem reported by Tom G. Christensen in:
12651         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
12652         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
12653         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
12654         HAVE_GETXATTR.
12655         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
12656         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
12657         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
12658         file-has-acl.c actually needs.
12660 2015-04-26  Pádraig Brady  <P@draigBrady.com>
12662         file-has-acl: always return false when ACLs aren't supported
12663         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
12664         change the GNU/Linux getxattr path, to transform "not supported"
12665         errors to a false return rather than an error.  This is handled
12666         within file_has_acl() due to the platform specific tests to
12667         determine if ACLs are not supported.
12669 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12671         gettext: propagate po/Makefile.in.in too
12672         * build-aux/po/Makefile.in.in: Copy from latest gettext.
12673         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
12674         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
12675         between Makefile.in.in and the gettext-runtime m4 files.
12677 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12679         file-has-acl: new module, split from acl
12680         And add a new module file-has-acl-tests to match.
12681         I ran into a problem with the recent changes to the acl module,
12682         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
12683         When using the fixed version with Emacs, I discovered that
12684         file-has-acl wasn't separated out well enough for Emacs (e.g., it
12685         had multiple libraries, but needed only one), so I fixed that too.
12686         * NEWS: Document this incompatible change.
12687         * modules/file-has-acl, modules/file-has-acl-tests: New files.
12688         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
12689         Initialize gl_need_lib_has_acl.
12690         (gl_FUNC_ACL): Require it.
12691         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
12692         Move the file-has-acl.c-relevant stuff to ...
12693         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
12694         use_xattrs = 0' typo, and omit some needless work.  Set
12695         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
12696         when gl_FUNC_ACL is called.
12697         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
12698         (Link): Remove $(LIB_HAS_ACL).
12699         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
12700         (check_PROGRAMS): Move stuff relevant to file-has-acl to
12701         modules/file-has-acl-tests.
12702         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
12704         manywarnings: add GCC 5.1 warnings
12705         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
12706         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
12707         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
12708         -Wsuggest-override, -Wuse-without-only.  Change
12709         -Wnormalized=... operands to match 5.1.
12710         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
12711         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
12712         -Wdiscarded-qualifiers, -Wformat-signedness,
12713         -Wincompatible-pointer-types, -Wint-conversion,
12714         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
12715         -Wshift-count-negative, -Wshift-count-overflow,
12716         -Wsizeof-array-argument, -Wsuggest-final-methods,
12717         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
12718         and add -Warray-bounds=2 as a special case.
12720 2015-04-21  Simon Josefsson  <simon@josefsson.org>
12722         doc: update FDL template to match FDL examples.
12723         * doc/alloca-opt.texi:
12724         * doc/alloca.texi:
12725         * doc/c-ctype.texi:
12726         * doc/c-strcase.texi:
12727         * doc/c-strcaseeq.texi:
12728         * doc/c-strcasestr.texi:
12729         * doc/c-strstr.texi:
12730         * doc/c-strtod.texi:
12731         * doc/c-strtold.texi:
12732         * doc/ctime.texi:
12733         * doc/error.texi:
12734         * doc/gcd.texi:
12735         * doc/gnulib-tool.texi:
12736         * doc/inet_ntoa.texi:
12737         * doc/intprops.texi:
12738         * doc/lib-symbol-visibility.texi:
12739         * doc/maintain.texi:
12740         * doc/parse-datetime.texi:
12741         * doc/quote.texi:
12742         * doc/regexprops-generic.texi:
12743         * doc/standards.texi: Remove spurious 'with' in FDL license
12744         template.
12746 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
12748         lstat: fix cross-compilation 'ln -s' problem
12749         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
12750         Have the test program call 'symlink' rather than a separate
12751         script run 'ln -s'; this is more likely to work in
12752         cross-compilation environments.  Reported by Pavel Fedin in:
12753         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
12755 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
12757         gendocs.sh: default to a common CSS style sheet for HTML output
12758         * build-aux/gendocs.sh (htmlarg): Change default value.
12760 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
12762         gnulib-tool: output bold attribute more portably
12763         * gnulib-tool (func_show_module_list): Change hexadecimal
12764         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
12765         encoded numbers as arguments to `printf' is not portable,
12766         and is not claimed by POSIX.  This is the case with FreeBSD.
12768 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12770         qacl: Simplify HP-UX acl_nontrivial check
12771         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
12772         acl_nontrivial. Check if the acl has at most three entries instead (it must
12773         have exactly three entries according to the HP-UX documentation). Ignore
12774         uids and gids as long as an entry is either for a user (i.e., the owner),
12775         a group (i.e., the owning group), or others.
12776         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
12777         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
12779 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
12781         acl: On Linux, check for acls without libacl
12782         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
12783         library function to check for the presence of acls, avoiding a library.
12784         * lib/file-has-acl.c: Include xattr headers if we have them.
12785         (file_has_acl): On Linux, use getxattr().
12786         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
12787         file_has_acl(). Check for xattr headers and getxattr().
12789 2015-04-14  Ángel González  <keisial@gmail.com>
12791         tempname: avoid unused parameter warnings (trivial)
12792         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
12793         (try_nocreate): Likewise.
12795 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
12797         fseeko: fix build failure on NetBSD >= 6 (trivial)
12798         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
12799         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
12801 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12803         gitlog-to-changelog: port to MS-Windows
12804         * build-aux/gitlog-to-changelog (git_dir_option):
12805         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
12806         MS-Windows Perl.  Reported by Eli Zaretskii in:
12807         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
12809 2015-04-07  Karl Berry  <karl@gnu.org>
12811         gendocs: new option --tex for passing args to texi2dvi.
12812         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
12813         (TEXI2DVI): cut to just command name.
12814         (usage): mention new option, and update copyright.
12815         <generate_tex>: use it.
12817 2015-04-07  Karl Berry  <karl@gnu.org>
12819         * config/srclistvars.sh (GETTEXT): new definition.
12820         * config/srclist.txt: use it for gettext .m4 files.
12821         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
12822         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
12823         and continuing into April.
12825 2015-04-07  Daiki Ueno  <ueno@gnu.org>
12827         uniname/uniname-tests: fix failure due to alias
12828         Reported by Jack Howarth in:
12829         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
12830         * tests/uniname/test-uninames.c (name_has_alias): New function.
12831         (test_inverse_lookup): Exclude character name with valid alias,
12832         from randomly generated character names.
12833         (main): Fill unicode_aliases before calling test functions.
12835 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
12837         hash: remove deprecated hash_insert0 function
12838         * lib/hash.h (hash_insert0): Remove deprecated function.
12839         * lib/hash.c (hash_insert0): Likewise.
12841 2015-04-02  Pádraig Brady  <P@draigBrady.com>
12843         mountlist: remove dependency on libmount
12844         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
12845         directly, rather than depending on libmount, which has many
12846         dependencies due to its dependence on libselinux, as detailed at:
12847         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
12848         Note we restrict this to __linux__ as that's probably where this
12849         interface will remain.  If ever porting, it would be best
12850         to first pull the makedev() wrapper from coreutils to a gnulib module.
12851         Note also we don't add a getline dependency to the mountlist module,
12852         as all Linux versions are sufficient.
12854 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12856         stddef: port to pre-C11 GCC on x86
12857         On this platform, max_align_t should have an alignment of 8 even
12858         though the storage alignments of double, long, etc. max out at 4.
12859         Inspired by a comment of Andreas Schwab's here:
12860         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12861         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12862         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12863         * tests/test-stddef.c: Test __alignof__ too, if available.
12865 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12867         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12868         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12870 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12872         yesno: make EOL optional in ENABLE_NLS case also (trival)
12873         * lib/yesno.c (yesno): Check for EOL before replacing.
12874         * tests/test-yesno.sh: Add a test case (test along with gettext).
12876 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12878         fdopendir-tests: test it does not close its arg
12879         * tests/test-fdopendir.c (main): Test that fdopendir does not
12880         close its argument.  From a suggestion by David Grayson in:
12881         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12883 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12885         gitlog-to-changelog: trim trailing white space
12886         * build-aux/gitlog-to-changelog (main):
12887         Trim trailing white space from commit message lines.
12888         This is helpful for processing the GNU Emacs repository,
12889         which dates back to 1985 and contains a lot of such lines.
12891         gitlog-to-changelog: new option --ignore-matching
12892         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12893         Support new option --ignore-matching=PAT, which ignores all
12894         commit messages whose first line matches PAT.
12896 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12898         fdopendir: port better to MinGW
12899         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12900         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12901         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12902         * modules/fdopendir (Depends-on): Add dirfd.
12904 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12906         fdopendir: fix typo in comment
12907         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12909 2015-03-09  Eric Blake  <eblake@redhat.com>
12911         error: document all entry points provided
12912         * doc/glibc-functions/error_print_progname.texi
12913         (error_print_progname): Mention the error module.
12914         * doc/glibc-functions/error_at_line.texi (error_at_line):
12915         Likewise.
12916         * doc/glibc-functions/error_message_count.texi
12917         (error_message_count): Likewise.
12918         * doc/glibc-functions/error_one_per_line.texi
12919         (error_one_per_line): Likewise.
12921 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12923         vasnprintf: pacify clang 3.5.0
12924         Problem reported by Werner Lemberg in:
12925         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12926         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12927         The casts aren't needed, since the characters in question are ASCII.
12929 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12931         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12932         * lib/dirent--.h (GNULIB_defined_opendir):
12933         * lib/dirent.in.h (GNULIB_defined_opendir)
12934         (GNULIB_defined_closedir):
12935         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12936         #undef only if Gnulib defined it.
12938         poll: port to MSVC v18 on MS-Windows 8.1
12939         Problem reported by Gisle Vanem in:
12940         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12941         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12942         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12943         Add sys_socket.
12945 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12947         tests: support stderr verification with returns_()
12948         * tests/init.sh (returns_): Disable tracing for this wrapper
12949         function, so that stderr of the wrapped command is unchanged,
12950         allowing for verification of the contents.
12952 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12954         passfd: avoid valgrind uninitalised data warning
12955         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12956         to include just the fd we've initialized, rather than including
12957         the extra space used for alignment.
12959 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12961         uniwbrk/u32-wordbreaks-tests: fix copyright
12962         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12964         dup2: doc and test for Android bug
12965         Reported by Kevin Cernekee in:
12966         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12967         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12968         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12970 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12972         Replace dup2() on Android
12973         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12974         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12975         fails.  Using rpl_dup2() fixes this because it has an explicit test
12976         for this condition.
12978 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12980         Android doesn't define RLIM_SAVED_*
12981         Portability problem reported by Kevin Cernekee in:
12982         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12983         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12984         Mention the portability problem.
12985         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12986         Define if not defined.
12987         * m4/dup2.m4 (gl_FUNC_DUP2):
12988         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12989         Likewise.
12991 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12993         vasnprintf-posix-tests: use consistent test
12994         * tests/test-vasnprintf-posix.c (test_function):
12995         Use "<" in assert instead of "<=", for consistency with other tests.
12997 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12999         printf, isinf, etc.: noncanonical != NaN
13000         Do not require that isinf, printf, etc. treat noncanonical
13001         values as NaNs.  Instead, require only that they do not crash.
13002         Problem reported by Joseph Myers in:
13003         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
13004         * doc/posix-functions/dprintf.texi (dprintf):
13005         * doc/posix-functions/fprintf.texi (fprintf):
13006         * doc/posix-functions/isfinite.texi (isfinite):
13007         * doc/posix-functions/isinf.texi (isinf):
13008         * doc/posix-functions/isnan.texi (isnan):
13009         * doc/posix-functions/printf.texi (printf):
13010         * doc/posix-functions/snprintf.texi (snprintf):
13011         * doc/posix-functions/sprintf.texi (sprintf):
13012         * doc/posix-functions/vdprintf.texi (vdprintf):
13013         * doc/posix-functions/vfprintf.texi (vfprintf):
13014         * doc/posix-functions/vprintf.texi (vprintf):
13015         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13016         * doc/posix-functions/vsprintf.texi (vsprintf):
13017         Document this.
13018         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
13019         * m4/isinf.m4 (gl_ISINFL_WORKS):
13020         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
13021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
13022         * tests/test-isfinite.c (test_isfinitel):
13023         * tests/test-isinf.c (test_isinfl):
13024         * tests/test-isnan.c (test_long_double):
13025         * tests/test-isnanl.h (main):
13026         * tests/test-snprintf-posix.h (test_function):
13027         * tests/test-sprintf-posix.h (test_function):
13028         * tests/test-vasnprintf-posix.c (test_function):
13029         * tests/test-vasprintf-posix.c (test_function):
13030 o       Test only that noncanonical values do not cause crashes, not that
13031         they are treated as NaNs.  In some cases this means a larger
13032         output buffer is needed.
13034 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
13036         fts: remove redundant close() (trivial)
13037         * lib/fts.c (fts_read): Remove redundant call to close().
13038         Spotted by coverity.
13040 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13042         getdtablesize: port better for Android
13043         Problem reported by Kevin Cernekee in:
13044         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
13045         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
13046         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
13047         Instead, just use getrlimit, taking care to avoid Cygwin bug.
13049         poll: fixes for large fds
13050         * lib/poll.c (poll): Don't check directly for NFD too large.
13051         Don't rely on undefined behavior in FD_SET when an arg exceeds
13052         FD_SETSIZE.  Always set revents afterwards, even if to zero.
13053         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
13054         as that makes the test a bit stricter.
13056 2015-02-19  Kevin Cernekee  <cernekee@google.com>
13058         fcntl: Fix cross compiling
13059         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
13060         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
13062 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13064         dup2, fcntl: cross-compile better for Android
13065         Problem reported by Kevin Cernekee in:
13066         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
13067         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
13068         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
13069         there's little need to cross-compile for older kernels nowadays.
13070         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
13071         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
13073 2015-02-18  Pádraig Brady  <P@draigBrady.com>
13075         getopt: don't crash on memory exhaustion
13076         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
13077         memory exhaustion.  In the _LIBC case we use alloca() as is
13078         already done in glibc, so we don't need to consider the separate
13079         error path in that awkward case.  Also fix a memory leak when
13080         ambiguous options are present.
13081         Reported by Tobias Stoeckmann
13083 2015-02-17  Mike Miller  <mtmiller@ieee.org>
13085         tempname: allow compilation with C++ (trivial)
13086         * lib/tempname.h [C++]: Specify extern "C" linkage.
13087         * lib/tempname.h (try_tempname):
13088         * lib/tempname.c (__try_tempname, __gen_tempname):
13089         Rename 'try' to 'tryfunc'.
13091 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13093         dup2, fcntl: port to AIX
13094         * m4/dup2.m4 (gl_FUNC_DUP2):
13095         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13096         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
13097         The former works on AIX 7.1 but the latter does not.
13098         Also, this may work better with Android; see:
13099         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
13101 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13103         getdtablesize, dup2, fcntl: port to Android
13104         Problem reported by Kevin Cernekee in:
13105         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
13106         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
13107         Mention that getdtablesize doesn't work on Android.
13108         * lib/getdtablesize.c: Use getrlimit substitute only if
13109         getdtablesize is declared.  This should suffice for Cygwin
13110         while not breaking Android.
13111         * m4/dup2.m4 (gl_FUNC_DUP2):
13112         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13113         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
13114         standardized but the latter is not, and sysconf works on Android.
13115         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
13116         Also check that getdtablesize is declared.
13117         This removes the need for a special case for Android.
13119 2015-02-16  Kevin Cernekee  <cernekee@google.com>
13121         localename: Implement gl_locale_name_thread_unsafe for Android
13122         * lib/localename.c: Android API level >= 21 supports two hardcoded
13123         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
13124         the internal __locale_t struct.
13126 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
13128         fts: avoid crash when a cycle is added while traversing
13129         This could be triggered by auto-mounting a recursive bind mount.
13130         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
13131         * lib/fts.c (fts_read): Avoid removing the original hash table item
13132         when leaving a directory that caused a cycle, and preserve the FTS_DC
13133         flag.
13135 2015-02-16  Daiki Ueno  <ueno@gnu.org>
13137         uniname/uniname: support character alias
13138         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
13139         Generate one-way mapping from aliases to codepoints in the
13140         generated tables.  Special case variation selectors to reduce
13141         table size.
13142         * lib/uniname/uniname.c (unicode_character_name): Special case
13143         variation selectors.
13144         (unicode_name_character): Special case variation selectors and
13145         their aliases.
13146         * lib/uniname/uninames.h: Regenerate.
13147         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
13148         * modules/uniname/uniname-tests (Files): Add
13149         tests/uniname/NameAliases.txt.
13150         * tests/uniname/test-uninames.c: Mark as static.
13151         (ALIASLEN): Define.
13152         (struct unicode_alias): New struct.
13153         (unicode_aliases): New variable.
13154         (fill_aliases): New function.
13155         (test_alias_lookup): New test function.
13156         (main): Run the 'test_alias_lookup' test if the second argument is
13157         given.
13158         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
13159         second argument.
13161 2015-02-11  Kevin Cernekee  <cernekee@google.com>
13163         Fix FILE struct compatibility with Android API level >= 21
13164         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
13165         __sferror.  Recent versions of Bionic's stdio.h no longer define
13166         __sferror.
13167         * lib/fbufmode.c: Likewise.
13168         * lib/fflush.c: Likewise.
13169         * lib/fpurge.c: Likewise.
13170         * lib/freadable.c: Likewise.
13171         * lib/freadahead.c: Likewise.
13172         * lib/freading.c: Likewise.
13173         * lib/freadptr.c: Likewise.
13174         * lib/freadseek.c: Likewise.
13175         * lib/fseeko.c: Likewise.
13176         * lib/fseterr.c: Likewise.
13177         * lib/fwritable.c: Likewise.
13179         Assume unbroken ungetc() on Android
13180         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
13181         test case passed when running on an Android host, and the code
13182         hasn't really changed since 2009.
13184         getdtablesize: Fix Android build
13185         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
13186         versions have this symbol in the .so library (at least 32-bit
13187         platforms) but are missing the declaration in the header file,
13188         causing the m4 logic to guess incorrectly.
13190         localename: Fix Android build
13191         * modules/localename (Depends-on): Add langinfo.
13193         getugroups: Fix Android build
13194         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
13195         functions.
13197         euidaccess: Fix Android build
13198         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
13199         AT_EACCESS gets declared.
13201         linkat_nofollow: Add fallback case for cross compiling
13202         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
13204         net_if: Handle content-free <net/if.h> system headers
13205         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
13206         struct if_nameindex.  If not, enable the replacement header.
13208         signal_h: Fix Android build
13209         * lib/signal.in.h: Add Android to the list of platforms that declare
13210         pthread_sigmask() in <pthread.h> instead of <signal.h>.
13212         duplocale: Fix Android build of duplocale-tests
13213         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
13214         is included by test-duplocale.c (but not by duplocale.c).
13215         * modules/duplocale-tests (configure.ac): Check for monetary.h.
13216         * tests/test-duplocale.c: Skip test if monetary.h is absent.
13217         * doc/posix-headers/monetary.texi: Add Android to the list of
13218         platforms missing monetary.h.
13220 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13222         tests: avoid recent -Werror=unused-variable regression in test-locale
13223         * tests/test-locale.c (main): Reference the variable to avoid the
13224         "unused variable" warning.
13226 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13228         maint: various whitespace cleanups in tempname
13229         * lib/tempname.c: Normalize spacing and line length.
13230         * lib/tempname.h: Likewise.
13231         * modules/tempname: Likewise.
13233 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13235         tests: provide returns_() to simplify exit status checking
13236         * tests/init.sh (returns_): A new function for use in tests,
13237         to allow for easier checking of return values, where you expect
13238         a command to exit with failure status.  By checking for a particular
13239         exit code, you don't hide any crashes for example.
13241 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13243         mountlist: only use libmount when specified
13244         There are currently many shared libs dependencies introduced by
13245         libmount with associated runtime and virt mem overhead.
13246         Therefore don't enable by default.
13247         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
13249 2015-02-08  Daiki Ueno  <ueno@gnu.org>
13251         uniname/unimame-tests: don't link with -lunistring
13252         * modules/uniname/uniname-tests (Makefile.am): Don't link against
13253         $(LIBUNISTRING).  Document the rationale why we need to
13254         conditionalize the test.
13256 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13258         fstrcmp: don't assume strlen < INT_MAX
13259         * lib/fstrcmp.c: Include stddef.h and stdint.h.
13260         (uintptr_t): Remove, as we're now assuming stdint.
13261         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
13262         Prefer ptrdiff_t to int when the value could exceed INT_MAX
13263         if the input string is long.
13264         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
13265         uintptr_t to size_t when the underlying value is a pointer casted
13266         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
13267         * modules/fstrcmp (Depends-on): Add stdint.
13269         diffseq: prefer ptrdiff_t to ssize_t
13270         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
13271         ptrdiff_t is the natural type for signed indexes.
13272         On a few older platforms, ssize_t is narrower than size_t.
13274         xalloc: fix typo that suppressed warnings
13275         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
13276         This typo, introduced a couple of years ago, mistakenly suppressed
13277         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
13278         -Wmissing-declarations warnings.
13280         full-read: fix license notice typo
13281         * lib/full-read.h: Remove a stray line in the license notice.
13282         Reported by Sam Ellis in: http://bugs.gnu.org/19808
13284         crypto/gc: fix a -Wswitch warning
13285         Reported by Bruce Korb in:
13286         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
13287         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
13289 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13291         gnulib-tool: fix handling of patch(1) diagnostics
13292         * gnulib-tool: Send diagnostics from patch(1) to stderr,
13293         as otherwise gnulib-tool will reparse that output and attempt
13294         to lookup modules.
13296 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13298         bootstrap: exit immediately upon gnulib-tool failure
13299         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
13300         This was noticed when gnulib-tool exited early due to failure
13301         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
13302         but various confusing errors were then given as the build proceeded.
13304 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
13306         symlinkat: include all required header files
13307         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
13308         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
13309         Reported at https://savannah.gnu.org/bugs/index.php?44151
13310         and by Jack Howarth.
13312 2015-01-29  Pádraig Brady  <P@draigBrady.com>
13314         localename: support Solaris 12 and illumos
13315         * lib/localename.c (gl_locale_name_thread_unsafe): call
13316         getlocalename_l() on newer __sun platforms.
13317         Reported by Alexander Pyhalov.
13318         Fix suggested by Rich Burridge.
13320 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
13322         locale: fix tests on illumos (trivial)
13323         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
13324         so move from global scope to main().
13326 2015-01-24  Daiki Ueno  <ueno@gnu.org>
13328         unictype: avoid undefined left-shift behavior
13329         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
13330         gcc's -fsanitize=shift and running its tests triggered:
13331           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
13332             places cannot be represented in type 'int'
13333         Cast LHS to 'unsigned int' after integer promotion.
13334         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
13335         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
13337 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13339         libunistring: bump version of unitypes dependants
13340         Due to the header file search order, all the headers which depend
13341         on unitypes.h need to be generated, when the preinstalled
13342         libunistring is older.
13343         * modules/unicase/base (configure.ac): Bump minimum version to
13344         0.9.4.
13345         * modules/uniconv/base (configure.ac): Likewise.
13346         * modules/unilbrk/base (configure.ac): Likewise.
13347         * modules/uninorm/base (configure.ac): Likewise.
13348         * modules/unistdio/base (configure.ac): Likewise.
13349         * modules/unistr/base (configure.ac): Likewise.
13350         * modules/uniwbrk/base (configure.ac): Likewise.
13351         * modules/uniwidth/base (configure.ac): Likewise.
13353 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13355         unictype/category-none: fix link with libunistring
13356         Since _UC_CATEGORY_NONE is not a public symbol, it will be
13357         prefixed with "libstring_" when compiled as part of libunistring.
13358         To avoid undefined symbol at link time, increase the minimum
13359         version when the dependant modules are updated.
13360         * modules/unictype/category-none (configure.ac): Bump minimum
13361         version to 0.9.5.
13363 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13365         unitypes: fix build with installed libunistring
13366         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
13367         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
13368         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
13370 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13372         time: port to MinGW32 3.21
13373         Problem reported by Eli Zaretskii in:
13374         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
13375         * lib/time.in.h:
13376         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
13377         * modules/time (Depends-on):
13378         Fall back on unistd.h if the other include files don't define
13379         struct timespec.
13381         update-copyright: apply to self
13382         * build-aux/update-copyright: Fix copyright date.  How ironic!
13384 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13386         libunistring: update to Unicode 7.0.0
13387         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
13388         Manichaean names.
13389         * lib/unictype/joininggroup_name.h: Likewise.
13390         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
13391         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
13392         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
13393         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
13394         (fill_arabicshaping, joining_group_as_c_identifier): Support those
13395         enum values.
13396         (is_property_alphabetic): Accept newly added characters to
13397         cuneiform numeric signs.
13398         (is_property_default_ignorable_code_point): Reject U+0605.
13399         (FIELDLEN): Increase from 120 to 160.
13400         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
13401         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
13402         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
13403         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
13404         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
13405         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
13406         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
13407         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
13408         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
13409         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
13410         U+1E8D0..U+1E8D6.
13411         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
13412         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13413         lib/uniwidth/width.c.
13414         * all generated files under lib/uni* and tests/uni*: Regenerate.
13416 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13418         libunistring: update to Unicode 6.3.0
13419         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13420         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
13421         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
13422         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
13423         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
13424         Update WB5, WB9, WB10, WB13a, and WB13b.
13425         * tests/uniwbrk/test-uc-wordbreaks.c
13426         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
13427         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13428         (UC_BIDI_PDI): New enumeration values.
13429         (bidi_category_byname): Support those enum values.
13430         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
13431         dedicated property assigned.
13432         (is_property_case_ignorable): Check 0x0027.
13433         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13434         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13435         (output_wbp): Support those enum values.
13436         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13437         (UC_BIDI_PDI): New enumeration values.
13438         * lib/unictype/bidi_byname.gperf: Add those property names.
13439         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
13440         U+180E, U+1A1B, and U+2066..U+2069.
13441         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13442         lib/uniwidth/width.c.
13443         * all generated files under lib/uni* and tests/uni*: Regenerate.
13445 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13447         libunistring: update to Unicode 6.2.0
13448         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
13449         (unilbrk_table): Adjust table size.
13450         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13451         for LBP_RI.
13452         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
13453         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
13454         Normalize table index skipping ignored properties.
13455         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
13456         WBP_EXTEND and WBP_FORMAT, which are now computed without using
13457         the table.
13458         * lib/uniwbrk/wbrktable.h: Adjust table size.
13459         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
13460         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
13461         Support rule GB8a.
13462         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
13463         * tests/unigbrk/test-uc-is-grapheme-break.c
13464         (graphemebreakproperty_to_string): Support GBP_RI.
13465         * tests/uniwbrk/test-uc-wordbreaks.c
13466         (wordbreakproperty_to_string): Support WBP_RI.
13467         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
13468         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
13469         (output_lbp): Support LBP_RI.  Adjust some characters changed from
13470         LBP_AL to LBP_ID.
13471         (output_lbp): Support LBP_RI.
13472         (WBP_RI): New enumeration value.
13473         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13474         (output_wbp): Support WBP_RI.
13475         (GBP_RI): New enumeration value.
13476         (output_gbp_test, fill_org_gbp): Support GBP_RI.
13477         * all generated files under lib/uni* and tests/uni*: Regenerate.
13479 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13481         libunistring: update to Unicode 6.1.0
13482         * lib/gen-uni-tables.c (output_joining_group): Switch to
13483         3-level table to accommodate joining groups defined with higher
13484         codepoint value.  Since there are only 88 groups defined in
13485         Unicode 7.0.0, use 7-bit packed format for level3 entries.
13486         (get_lbp): Update for Unicode 6.1.0.
13487         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
13488         3-level table.
13489         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
13490         joining group name.
13491         * lib/unictype/joininggroup_name.h: Likewise.
13492         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
13493         (unilbrk_table): Adjust table size.
13494         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13495         for LBP_HL.
13496         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
13497         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
13498         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
13499         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
13500         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
13501         U+302E..U+302F.
13502         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13503         lib/uniwidth/width.c.
13504         * all generated files under lib/uni* and tests/uni*: Regenerate.
13505         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
13507 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13509         uniwbrk/u32-wordbreaks-tests: add conformance test
13510         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
13511         tests/uniwbrk/test-uc-wordbreaks.c,
13512         tests/uniwbrk/test-uc-wordbreaks.sh, and
13513         tests/uniwbrk/WordBreakTest.txt.
13514         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
13515         test-uc-wordbreaks to $(check_PROGRAMS), and define
13516         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
13517         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
13518         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
13520 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13522         uniwbrk: ignore Extended/Format characters at BOL not BOS
13523         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
13524         characters if the previous character property is one of
13525         WBP_NEWLINE, WBP_CR, and WBP_LF.
13527 2015-01-11  Jim Meyering  <meyering@fb.com>
13529         test-strstr.c: avoid a trivial leak
13530         * tests/test-strstr.c (main): Free haystack.
13532         update-copyright: recognize groff's \(co marker
13533         * build-aux/update-copyright (circle_c_re): Also accept
13534         uses of \(co, as found in gzip.1.
13536 2015-01-08  Pádraig Brady  <P@draigBrady.com>
13538         maint.mk: fix compatibility with OS X nm
13539         * top/maint.mk (_gl_tight_scope): Use the -g option to
13540         show exported items rather than the -e option which is
13541         ignored on all platforms except OS X where it gives an error.
13542         Reported by Assaf Gordon.
13544 2015-01-07  KO Myung-Hun  <komh@chollian.net>
13546         localcharset: improve charset detection on OS/2
13547         Use system codepage when appropriate.  Map OS/2 codepages to
13548         GNU canonical charset names if possible.
13549         * lib/config.charset: Don't output aliases if "$os" is os2*.
13550         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
13551         result for OS/2.
13552         (locale_charset) [OS2]: Use system codepage if codeset is omitted
13553         from the locale name which is neither "C" nor "POSIX".
13555 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13557         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
13558         This reverts the last patch but one, as it shouldn't be needed now
13559         that the typo is fixed.
13560         * lib/count-leading-zeros.h (count_leading_zeros_ll):
13561         * lib/count-trailing-zeros.h:
13562         * lib/count-one-bits.h:
13563         Go back to using 64-bit intrinsics.
13565         count-leading-zeros: fix pragma typos
13566         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
13567         Fix typos in declaration of intrinsics when _MSC_VER.
13569 2015-01-06  Pádraig Brady  <P@draigBrady.com>
13571         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
13572         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
13573         intrinsics in this case.
13574         * lib/count-trailing-zeros.h: Likewise.
13575         * lib/count-one-bits.h: Likewise.
13577 2015-01-06  Daiki Ueno  <ueno@gnu.org>
13579         uniname/uniname: update to Unicode 7.0.0
13580         To accommodate new characters added since Unicode 5.1.0, this
13581         changes the internal representation of codepoint ranges.
13582         Previously, we grouped codepoint ranges by manually assigned 4-bit
13583         tag, which only allowed 16 groups.  This removes the limitation by
13584         switching to binary search on a table.  For the detail rationale
13585         and the benchmark results, see:
13586         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
13587         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
13588         to INDEX, as it no longer represents a codepoint.
13589         (range): New struct.
13590         (main): Switch to intervals list from a bit-pattern based
13591         classification.
13592         * lib/uniname/uninames.h: Regenerate.
13593         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
13594         * modules/uniname/base (configure.ac): Bump minimum version to
13595         0.9.5.
13596         * modules/uniname/uniname (configure.ac): Bump minimum version to
13597         0.9.5.
13599 2015-01-05  Eric Blake  <eblake@redhat.com>
13601         doc: update INSTALL from autoconf
13602         * doc/install.texi: Resync from autoconf.
13603         * doc/INSTALL: Reflect recent autoconf update.
13604         * doc/INSTALL.ISO: Likewise.
13605         * doc/INSTALL.UTF-8: Likewise.
13607         stdio: fix use of PRIdMAX on modern mingw
13608         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
13609         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
13610         to work with modern mingw.
13612 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
13614         pthread: detect git mingw builds with only partial pollution
13615         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
13616         pollution, as seen temporarily in Fedora 21.
13618 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13620         lib-symbol-versions: cache script check
13621         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
13622         Cache the check for linker version scripts.
13623         From a suggestion by Christophe Curis in:
13624         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
13626 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
13628         maint: fix grammar nits in propername (trivial change)
13629         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
13630         and use an adequate verb and tense.
13632 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
13634         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13635         * module/gendocs: Add 'doc/gendocs_template_min'.
13637         * build-aux/gendocs.sh: Change email addresses and upstream URLs
13638         from to Gnulib's.
13639         (scripturl, templateurl): Adjust accordingly.
13641 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13643         gendocs: copyright date and version fix
13644         Reported by Karl Berry in:
13645         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
13646         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
13647         Fix copyright date.
13648         * build-aux/gendocs.sh (scriptversion): Update.
13650 2015-01-01  Karl Berry  <karl@gnu.org>
13652         * doc/install.texi,
13653         * build-aux/mdate-sh,
13654         * build-aux/depcomp,
13655         * build-aux/config.guess,
13656         * build-aux/config.sub,
13657         * build-aux/ar-lib,
13658         * build-aux/compile: revert copyright updates (some from last
13659         year) in slaved files.
13661 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13663         version-etc: new year
13664         * doc/gnulib.texi:
13665         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
13666         * all files: Run 'make update-copyright'.
13668 2014-12-30  Pádraig Brady  <P@draigBrady.com>
13670         xstrtol: ensure errno is reset
13671         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
13672         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
13674         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
13676 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13678         utimens: fix dependency typo
13679         * modules/utimens (Depends-on): Remove 'assure'.
13680         This bug was introduced in the recent 'assure' patch.
13682 2014-12-22  Eric Blake  <eblake@redhat.com>
13684         docs: mention why libgen.h is bad
13685         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
13687 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13689         assure: new module
13690         This works better than 'assert' when compiling with -DNDEBUG,
13691         as it avoids some compiler diagnostics in that case.
13692         Reported by Norihiro Tanaka in:
13693         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
13694         * MODULES.html.sh (func_all_modules): Add 'assure'.
13695         * lib/assure.h, modules/assure: New files.
13696         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
13697         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
13698         Prefer 'assure' to 'assert'.
13699         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
13700         * modules/chdir-long, modules/cycle-check, modules/fchdir:
13701         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
13702         Depend on 'assure'.
13704 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
13706         stdalign: port better to HP compilers
13707         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
13708         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
13710         stdalign: work around Apple GCC 4.0 bug
13711         Reported by David Fang in:
13712         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
13713         * lib/stdalign.in.h (_Alignas):
13714         * m4/stdalign.m4 (gl_STDALIGN_H):
13715         Do not use aligned attribute with GCC 4.0 on Apple.
13717 2014-12-16  Pádraig Brady  <P@draigBrady.com>
13719         getcwd: fix test failure on OS X 10.9
13720         * m4/getcwd-path-max.m4: Avoid the replacement if it
13721         won't be effective due to the PATH_MAX limitation of lstat().
13722         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
13723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
13724         for this case for use in tests, and also exclude this
13725         case when setting REPLACE_GETCWD.
13726         * tests/test-getcwd.c (test_long_name): Restrict the
13727         tested path length so that lstat() will not be passed
13728         a path greater than PATH_MAX.
13729         Also key a test condition on HAVE_OPENAT_SUPPORT rather
13730         than AT_FDCWD, since the latter is set unconditionally
13731         since Sep 2009 in commit 52c658e9.
13733 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
13735         parse-datetime: avoid a compiler warning with byacc (trivial)
13736         * lib/parse-datetime.y (yylex): Use the same prototype in the
13737         function definition as the declaration, to avoid a -Wstrict-prototypes
13738         warning seen when using byacc.
13740 2014-12-12  Daiki Ueno  <ueno@gnu.org>
13742         unicase/locale-language-tests: fix LOCALE_FR test
13743         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
13744         a French locale with traditional encoding.
13745         Reported by umerqayam in:
13746         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
13748 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13750         stddef: support C11's max_align_t
13751         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
13752         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
13753         Do not undef, as that might cause max_align_t to be defined twice.
13754         Instead, change use to check for _GL_STDDEF_WINT_T too.
13755         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
13756         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
13757         Check for max_align_t.
13758         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
13759         * modules/stddef-tests (Depends-on): Add stdalign.
13760         * tests/test-stddef.c: Test max_align_t.
13762 2014-12-11  Daiki Ueno  <ueno@gnu.org>
13764         unistd: fix iOS check conditional
13765         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
13766         as 0 or 1 in <TargetConditionals.h>, and the previous check always
13767         yielded true on non-iOS environment.
13768         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
13769         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
13770         they are defined.
13772 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13774         posixtm: avoid compiler warning in a better way
13775         * lib/posixtm.c (IF_LINT): Remove.
13776         (year, posix_time_parse):
13777         Return true (not 0) if successful.  All callers changed.
13778         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
13780 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13782         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
13783         started with '/' on EMX.
13785 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13787         freopen: workaround freopen() on OS/2 kLIBC
13788         * lib/freopen.c (rpl_freopen): Workaround.
13789         * m4/freopen.m4: Add os2* case.
13791         get_shared_library_fullname: port to EMX
13792         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
13793         on EMX, respectively.
13794         (_DLL_InitTerm): New on EMX.
13795         (get_shared_library_fullname): Implement on EMX.
13797         find_executable: port to EMX
13798         * lib/progreloc.c (find_executable): Implement on EMX.
13800         sched: check struct sched_param in spawn.h as well
13801         * lib/sched.in.h: Include spawn.h on kLIBC.
13802         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
13804 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
13806         bootstrap: Allow perl modules in $buildreq
13807         * build-aux/bootstrap: Add case for perl modules.
13809 2014-12-08  Pádraig Brady  <P@draigBrady.com>
13811         apply _GL_ATTRIBUTE_PURE to some inline functions
13812         clang 3.4.2 flagged these inline functions as pure
13813         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
13814         * lib/sig-handler.h (get_handler): Likewise.
13815         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
13816         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
13818 2014-12-06  Pádraig Brady  <P@draigBrady.com>
13820         vasnprintf: fix potential use after free
13821         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
13822         flagged by clang-analyzer 3.4.2.
13824 2014-12-05  Pádraig Brady  <P@draigBrady.com>
13826         filevercmp, posixtm: avoid compiler warnings with -O3
13827         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
13828         * lib/posixtm.c: (IF_LINT): Define.
13829         (posix_time_parse): Use it to void a "may be used uninitialized"
13830         warning, seen only with -O3.
13832 2014-12-05  Bruno Haible  <bruno@clisp.org>
13834         Fix LDBL80_WORDS macro on big endian platforms.
13835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
13836         LDBL80_WORDS macro.
13837         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13838         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13839         * tests/test-isfinite.c (test_isfinitel): Likewise.
13840         * tests/test-isinf.c (test_isinfl): Likewise.
13841         * tests/test-isnan.c (test_long_double): Likewise.
13842         * tests/test-isnanl.h (main): Likewise.
13843         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
13844         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
13845         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
13846         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
13847         Reported by Pádraig Brady.
13849 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13851         git-version-gen: do not print new line characters
13852         * build-aux/git-version-gen: Use printf instead of echo and tr.
13854         gnulib-tool: recognize x:* as an absolute path
13855         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13856         (func_relconcat): Likewise.
13858 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13860         argp: avoid extraneous translation and mem leak with empty pre doc
13861         * lib/argp-help.c (argp_doc): Never translate the empty string,
13862         when "\v" is the first or last character of the string, as that
13863         has a reserved meaning to return the header info from a po file.
13864         This also fixes a small memory leak in the !post case.
13865         The issue can be seen with this command for example:
13866         LC_MESSAGES=en_US grub2-mknetdir --help
13868 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13870         uniname/uniname-tests: skip if system's libunistring is used
13871         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13872         uniname/uniname module is not compiled.
13874 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13876         printf: fix configure check on big endian systems
13877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13879 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13881         pipe-filter-gi, pipe-filter-ii: port to AIX
13882         On AIX 7.1, 'select' is defined as static and cannot be referred
13883         to from inline function.
13884         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13885         the definition...
13886         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13887         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13889 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13891         gitlog-to-changelog: add --until
13892         * build-aux/gitlog-to-changelog: Support new --until option.
13893         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13895 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13897         extern-inline: update commentary about GCC bugs
13898         * m4/extern-inline.m4: Add another GCC bug number to comments.
13900 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13902         gen-uni-tables: untabify
13903         * lib/gen-uni-tables.c: Untabify.
13905 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13907         gen-uni-tables: check out-of-range values added to 3-level tables
13908         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13909         (output_joining_type, output_ident_category): Check out-of-range
13910         values added to 3-level tables.
13912 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13914         gen-uni-tables: utilize 'assert'
13915         * lib/gen-uni-tables.c: Include <assert.h>.
13916         (output_category, output_combclass, output_decimal_digit_test)
13917         (output_decimal_digit, output_digit_test, output_digit)
13918         (output_numeric, get_mirror_value, fill_properties)
13919         (fill_property30, is_property_alphabetic)
13920         (is_property_default_ignorable_code_point)
13921         (is_property_uppercase, is_property_lowercase)
13922         (is_property_cased, is_property_case_ignorable)
13923         (is_property_changes_when_lowercased, is_property_iso_control)
13924         (is_property_math, fill_arabicshaping, output_joining_group)
13925         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13926         (output_wbp, fill_org_gbp, get_decomposition)
13927         (output_decomposition, fill_composition_exclusions)
13928         (debug_output_composition_tables, output_composition_tables)
13929         (redistribute_casefolding_rules, output_casing_rules): Use
13930         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13931         reporting.
13933 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13935         gen-uni-tables: cosmetic improvements
13936         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13937         variables specification.
13938         (is_outdigit): Remove unused function.
13940 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13942         fcntl-h-tests: port to PA-RISC GNU/Linux
13943         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13945 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13947         fts: port to C89
13948         Problem reported for MSVC 16 by Gisle Vanem in:
13949         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13950         * lib/fts.c (fts_build): Avoid declaration before statement.
13952 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13954         unistd: port to iOS
13955         Problem reported by André Klitzing in:
13956         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13957         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13959 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13961         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13962         Problem reported by Alan Modra in:
13963         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13964         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13965         Always cast the function arg, reverting this part of the previous
13966         change.
13968 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13970         obstack: avoid potentially-nonportable function casts
13971         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13972         Remove, replacing with ...
13973         (call_chunkfun, call_freefun): New static functions.
13974         All uses changed.  Avoid potentially-nonportable casts.
13975         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13976         (_obstack_begin_worker): Omit last two args, since they
13977         rely on potentially-nonportable casts.  All callers changed.
13978         * lib/obstack.h (_OBSTACK_CAST): New macro.
13979         Use it everywhere the old API used a potentially-nonportable cast.
13980         The new API doesn't cast.
13981         (struct obstack): Use unions rather than requiring
13982         potentially-nonportable casts.
13983         (obstack_chunkfun, obstack_freefun): Return void.
13985 2014-11-03  Alan Modra  <amodra@gmail.com>
13987         obstack: fix macro return values
13988         * lib/obstack.h (obstack_next_free): Return void *.
13989         (obstack_1grow_fast, obstack_blank_fast): Return void.
13990         For __GNUC__ macros:
13991         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13992         For !__GNUC__ macros:
13993         (obstack_make_room, obstack_grow, obstack_grow0)
13994         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13996 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13998         obstack: do not assume system-supplied obstack is size_t safe
13999         * m4/obstack.m4: New file.
14000         * modules/obstack (Files): Add it.
14002         obstack: port to platforms that #define __alignof__
14003         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
14004         not if !_LIBC.  We don't know of any platforms that #define
14005         __alignof__, but it might be useful in tests.  Conversely,
14006         glibc assumes GCC.
14008 2014-11-03  Pádraig Brady  <P@draigBrady.com>
14010         linkat: don't unconditionally replace on GNU/Linux
14011         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
14012         was redundant for a few reasons.  It was present to support compiling
14013         on new systems but running on the old narrow window of Linux 2.6.1[67].
14014         It setup and cleaned up test files which weren't actually used.
14015         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
14016         implicit in the following check.
14018 2014-11-03  Pádraig Brady  <P@draigBrady.com>
14020         linkat: wrap to handle symlinks on OS X 10.10
14021         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
14022         but not usable because it doesn't support creating hardlinks
14023         to symlinks.  Therefore add a generic test for this capability
14024         and fallback to our emulation if linkat() fails with ENOTSUP.
14026 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14028         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
14029         * doc/posix-functions/open.texi (open):
14030         * doc/posix-functions/openat.texi (openat):
14031         Document that these functions do not set errno to ELOOP when
14032         a symlink is opened with O_NOFOLLOW.
14034 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14036         obstack: add NEWS entry for recent incompatible changes
14037         * NEWS: Describe recent changes.
14039 2014-10-30  Pádraig Brady  <P@draigBrady.com>
14041         mountlist: don't use libmount to decide on dummy/remote
14042         * lib/mountlist.c (read_file_system_list): Don't use the libmount
14043         routines to determine whether a file system is dummy or remote,
14044         as they're not currently compatible.  For example the remoteness
14045         is determined on file system type (for which the list seems incomplete),
14046         rather than simply checking for a ':' in the device name.
14047         Also libmount currently determines that 'tmpfs' is a dummy file system
14048         even though it has associated storage.
14050 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14052         obstack: prefer __alignof__ to alignof
14053         This is for portability to pre-4.7 GCC when compiling glibc.
14054         See Joseph S. Myers in:
14055         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
14056         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
14057         New macro, defined by including and using <alignof.h>.
14058         (MAX): New macro.
14059         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
14060         Do not use enums as they are not portable to some broken compilers.
14061         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
14063         obstack: prefer alignof to calculating alignments by hand
14064         * lib/obstack.c: Include <stdalign.h>.
14065         (struct fooalign): Remove.
14066         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
14067         * modules/obstack (Depends-on): Add stdalign.
14069 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
14071         obstack: use size_t alignments and check for overflow
14072         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
14073         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
14074         * lib/obstack.h (struct obstack.alignment_mask):
14075         Use _OBSTACK_SIZE_T, not int, for alignments.
14076         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
14077         overflows, e.g., when adding the alignment.
14079 2014-10-29  Alan Modra  <amodra@gmail.com>
14081         obstack: 64-bit obstack support, part 3
14082         This finally enables full 64-bit obstack support.  The glibc
14083         shared library specific code is removed from obstack.c too, and
14084         the error handling code conditionally compiled under control of
14085         another macro, _OBSTACK_NO_ERROR_HANDLER.
14086         * lib/obstack.h: Include string.h earlier.
14087         (_OBSTACK_INTERFACE_VERSION): Define.
14088         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
14089         * lib/obstack.c: Don't include shlib-compat.h.
14090         (OBSTACK_INTERFACE_VERSION): Delete.
14091         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
14092         glibc code is compatible with version 2.  Don't include stdio.h for
14093         __GNU_LIBRARY.
14094         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
14095         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
14096         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
14097         glibc shared library specific source.
14099         obstack: 64-bit obstack support, part 2
14100         This gets us 4G obstack support, without changing ABI
14101         compatibility, apart from possibly introducing some
14102         signed/unsigned comparison warnings in code that uses obstack.h.
14103         a) Replace "int" size parameters, return values, and macro local vars
14104            with _OBSTACK_SIZE_T, an "unsigned int" for now.
14105         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
14106         c) Make all obstack macros checking available room use obstack_room.
14107            "next_free + desired > chunk_limit" may wrap the lhs for chunks
14108            allocated near the top of memory.
14109         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
14110         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
14111         in place of "int" size parameters, return values and local vars.
14112         (_CHUNK_SIZE_T): Define.
14113         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
14114         union use an _OBSTACK_SIZE_T integer type.
14115         For __GNUC__ versions of the following macros...
14116         (obstack_room): Rename local var.
14117         (obstack_make_room): Use obstack_room.
14118         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
14119         obstack_int_grow, obstack_blank): Likewise.
14120         (obstack_finish): Use unsigned comparison when comparing aligned
14121         next_free against chunk_limit.
14122         (obstack_free): Cast OBJ to remove possible const qualifier.
14123         For !__GNUC__ versions of the following macros...
14124         (obstack_make_room): Use obstack_room.
14125         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
14126         obstack_int_grow, obstack_blank): Likewise.
14127         (obstack_finish): Use unsigned comparision when comparing aligned
14128         next_free against chunk_limit.
14129         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
14130         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
14131         _OBSTACK_SIZE_T.
14132         (_obstack_begin, _obstack_begin_1): Likewise.
14133         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
14134         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
14136         obstack: 64-bit obstack support, part 1
14137         a) Correct calls to alloc function, to use a size_t arg.  "long" is
14138            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
14139            and "size_t" 64 bits.
14140         b) Consolidate _obstack_begin and _obstack_begin1 code.
14141         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
14142         use "size_t" rather than "long".
14143         (_obstack_begin, _obstack_begin1): Likewise.
14144         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
14145         obstack_chunkfun): Update alloc function casts.
14146         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
14147         (chunkfun_type, freefun_type): New typdefs.
14148         (_obstack_begin_worker): Split out from ..
14149         (_obstack_begin, _obstack_begin_1): ..here.
14151         obstack: tidy part 2
14152         a) Don't be concerned about "not polluting the namespace with stddef.h
14153            symbols" in obstack.h, since gnulib string.h includes stddef.h
14154            anyway, and it seems unlikely that anyone would care.
14155         b) Don't roll our own slow memcpy in _obstack_newchunk.
14156         c) Rename obstack_free to _obstack_free.  This makes the naming
14157            consistent with other obstack functions and obviates the need for
14158            __obstack_free.  Ancient obstack.c defined both obstack_free and
14159            _obstack_free.  We continue to do that for _LIBC via an alias.
14160         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
14161            is clever, but nowadays gcc warns on undefined macros.  You'll get
14162            an undefined macro warning if simulating an old gcc with -U__GNUC__
14163            -U__GNUC_MINOR__ -D__GNUC__=1.
14164         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
14165         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
14166         (__obstack_free): Delete, update refs.
14167         (_obstack_free): Rename from obstack_free.
14168         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
14169         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
14170         * lib/obstack.c: Don't include stddef.h.
14171         (COPYING_UNIT): Delete.
14172         (_obstack_begin): Formatting fix.
14173         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
14174         (_obstack_free): Rename from __obstack_free, update alias.  Move
14175         undef of obstack_free to where it is needed.
14177         obstack: tidy part 1
14178         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
14179            to me, and result in overlong lines after later patches.
14180         b) Move error handling code, to avoid a forward declaration and to
14181            simplify later patches in this series.
14182         * lib/obstack.h (struct obstack <temp>): Rename fields of union
14183         and update all uses.
14184         * lib/obstack.c: Include stdlib.h earlier.
14185         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
14186         in file.
14187         (print_and_abort): Remove now redundant forward declaration.
14189 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14191         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
14192         Without this change, in bleeding-edge fileutils Autoconf complains
14193         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
14194         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
14195         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
14196         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
14198 2014-10-24  Daiki Ueno  <ueno@gnu.org>
14200         iconv: avoid false detection of non-working iconv
14201         The INBUF arguments of iconv can be either 'const char **'
14202         or 'char **'.  If CC is g++, the difference causes a compile error
14203         and thus leads to a false detection of non-working iconv.
14204         Reported by Eli Zaretskii and Werner LEMBERG in:
14205         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
14206         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
14207         iconv.  Bump serial number.
14209 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14211         bootstrap: print more diagnostics for missing programs
14212         * build-aux/bootstrap: only suppress stderr when checking for
14213         alternative program names.  This supports programs issuing non
14214         standard error messages.
14216 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14218         bootstrap: only update the gnulib submodule
14219         * build-aux/bootstrap: Restrict the "submodule update" command
14220         to the gnulib path.
14222 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
14224         symlinkat: port to AIX 7.1
14225         * doc/posix-functions/symlinkat.texi (symlinkat):
14226         Mention AIX porting problem.
14227         * lib/symlinkat.c: Always include errno.h.
14228         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
14229         * lib/unistd.in.h (symlinkat): Add replacement machinery.
14230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
14231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
14232         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
14233         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
14234         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
14236         readlinkat: port to AIX 7.1
14237         * doc/posix-functions/readlink.texi (readlink):
14238         * doc/posix-functions/readlinkat.texi (readlinkat):
14239         Mention AIX porting problem.
14240         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
14241         New function.
14242         * lib/unistd.in.h (readlinkat): Add replacement machinery.
14243         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
14244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
14245         * modules/readlinkat (configure.ac): Also compile replacement
14246         if REPLACE_READLINKAT.
14247         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
14249 2014-10-12  Karl Berry  <karl@gnu.org>
14251         * doc/posix-functions/dirname.texi: remove spurious {.
14253 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
14255         basename, dirname: Improve documentation.
14256         * doc/posix-functions/basename.texi: Mention dirname module and
14257         base_name() function.
14258         * doc/posix-functions/dirname.texi: Mention dir_name() and
14259         mdir_name() functions.
14260         Suggested by Werner LEMBERG <wl@gnu.org>.
14262 2014-09-24  Jim Meyering  <meyering@fb.com>
14264         exclude: declare exclude_patopts static
14265         * lib/exclude.c (exclude_patopts): Declare static,
14266         to avoid triggering a -Wmissing-prototypes warning.
14267         The alternative (declaring it in the .h file) would
14268         require publicizing the private "struct patopts".
14270 2014-09-21  Werner Lemberg  <wl@gnu.org>
14272         dirname: support compilation with C++
14273         * lib/dirname.h: Add necessary C linkage declarations.
14275 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14277         qsort_r: include <config.h>
14278         Problem reported by Tom G. Christensen in:
14279         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
14280         * lib/qsort.c [!_LIBC]: Include <config.h> first.
14282 2014-09-16  Dylan Cali  <calid1984@gmail.com>
14284         avltree-list: avoid compiler warnings (trivial)
14285         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14286         -Werror=suggest-attribute=pure.
14287         * lib/gl_array_list.c: Likewise.
14288         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
14289         declaration to avoid -Werror=missing-prototypes.  This is not added
14290         to a header as only exported for tests.  Add (void) to the
14291         check_invariants() call to indicate we're discarding the result
14292         in this context which avoids -Werror=unused-value.  Note we don't
14293         use ignore_value here to avoid a dependency as we know we'll not
14294         be adding __attribute__((warn_unused_result)) to check_invariants().
14295         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
14297 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
14299         qsort_r: new module, for GNU-style qsort_r
14300         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
14302 2014-09-15  Werner LEMBERG  <wl@gnu.org>
14304         strerror_r-posix: support compilation with C++
14305         * lib/strerror_r.c: Add necessary C linkage declarations.
14307 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
14309         fcntl-h: fix compilation with Intel C++ compiler (trivial)
14310         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
14312 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
14314         mountlist: use /proc/self/mountinfo when available
14315         Use libmount to propagate device IDs provided by Linux in
14316         /proc/self/mountinfo.  This will give more accurate output when
14317         using df in chroot'ed environments as the device IDs are not
14318         determined by stat() which may be inaccurate within the chroot.
14319         * lib/mountlist.c (read_file_system_list): Use the libmount routines
14320         from util-linux to parse "/proc/self/mountinfo" or fall back to
14321         standard getmntent() processing.
14322         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
14323         getmntent() is used, as is the case on GNU/Linux.
14325 2014-09-07  Eric Wong  <normalperson@yhbt.net>
14327         users.txt: add cmogstored
14328         cmogstored has used gnulib since the beginning in 2012 to support
14329         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
14331 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14333         Trivial change.
14334         * gnulib-tool: Use same options as build-aux/bootstrap to download
14335         PO files.
14337 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14339         Trivial change.
14340         * gnulib-tool: Fallback to wget when rsync of PO files fails.
14342 2014-09-04  Eric Blake  <eblake@redhat.com>
14344         maintainer-makefile: add syntax check for useless ';;'
14345         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
14347 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14349         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
14350         Problem reported by Assaf Gordon in:
14351         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14352         Apparently Ubuntu is doing some fancy link-time optimization
14353         that doesn't work with -lpthread but does work with -pthread.
14354         Work around the bug by preferring -pthread to -lpthread.
14355         * m4/pthread.m4 (gl_PTHREAD_CHECK):
14356         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
14357         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14358         Treat -pthread like -lpthread.
14360 2014-09-04  Eric Blake  <eblake@redhat.com>
14362         error: drop spurious semicolon
14363         * lib/error.c (__error_at_line): Fix ';;'.
14365 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14367         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
14368         * m4/gnulib-common.m4 (AC_C_RESTRICT):
14369         Override AC_C_RESTRICT unconditionally.
14370         Update from autoconf, incorporating:
14371         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
14372         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
14374 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14376         manywarnings: add GCC 4.9 warnings
14377         Also, make it easier to maintain this in the future.
14378         * build-aux/gcc-warning.spec: Add -Wabi-tag,
14379         -Wconditionally-supported, -Wdelete-incomplete,
14380         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
14381         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
14382         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
14383         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
14384         only for older GCC versions that need them.  Handle
14385         -Wnormalized=nfc specially, so that the 'comm' command used
14386         for maintenance doesn't get confused.
14388 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14390         vasnprintf: fix bugs in width computation
14391         * lib/vasnprintf.c (VASNPRINTF):
14392         Rework previous change, which introduced a bug,
14393         to avoid the warning in a different way.
14394         Avoid undefined behavior if the width arg is less than -INT_MAX.
14395         Avoid unnecessary use of HAS_WIDTH local.
14397 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
14399         vasnprintf: Avoid signed/unsigned comparison warning.
14400         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
14401         compare end addr of generated string w/ maximum end addr.
14403 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14405         parse-datetime: Avoid pointer difference.
14406         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
14407         instead of calculating difference of pointers.  This removes an
14408         annoying warning, devoid of any use.
14410 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14412         qsort_r: new module, for GNU-style qsort_r
14413         This works even on FreeBSD, which has an incompatible qsort_r API.
14414         * MODULES.html.sh: Add it.
14415         * doc/glibc-functions/qsort_r.texi: It's now supported.
14416         * lib/qsort.c: New file, taken from glibc with minor changes
14417         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
14418         removed.
14419         * lib/qsort_r.c: New file, compiled only on FreeBSD.
14420         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
14421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
14422         * modules/qsort_r, modules/qsort_r-tests: New files.
14423         * modules/stdlib (Makefile): Set up its defaults.
14424         * tests/test-qsort_r.c: New file.
14426 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14428         vla: new module
14429         GNU RCS can use this, mostly for documentation I expect.  See:
14430         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
14431         * MODULES.html.sh: Add vla.
14432         * lib/vla.h, modules/vla: New files.
14434 2014-08-07  Daiki Ueno  <ueno@gnu.org>
14436         localename: make gl_locale_name_thread really thread-safe on Windows
14437         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
14438         "glthread/lock.h".
14439         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
14440         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
14442 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
14444         getpass: don't assume struct termios
14445         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
14446         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
14447         * lib/getpass.c (getpass): Port to systems lacking struct termios.
14449         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
14450         Problem reported by Jonas 'Sortie' Termansen in:
14451         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
14452         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
14453         Implement via sysconf for platforms that lack getdtablesize.
14455         vararrays: modernize AC_C_VARARRAYS for C11
14456         This backports a change I recently made to Autoconf.
14457         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
14458         VLAs are not supported, as this is what C11 does.  The old macro
14459         HAVE_C_VARARRAYS is still defined if they are supported, but is
14460         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
14462 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
14464         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
14465         * build-aux/install-reloc (func_create_wrapper): Also wrap
14466         strerror-override, stat, stat.
14468 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14470         sys_select: fix FD_ZERO problem on Solaris 10
14471         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
14472         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
14473         to expand to an expression that invoked memset without necessarily
14474         including <string.h>.  The problem was that the first include
14475         defined _SYS_TIME_H, causing the second include to short-circuit.
14476         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
14477         Also, fix what appears to be a cut-and-paste typo, by replacing
14478         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
14479         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
14481         accept: document Solaris 10 type glitch
14482         * doc/posix-functions/accept.texi (accept): Mention that
14483         Solaris 10 'accept' takes void * last arg, not socklen_t *.
14485 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
14487         extern-inline: port to FreeBSD, DragonFly
14488         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
14489         is present if either __DragonFly__ or __FreeBSD__ is defined.
14490         FreeBSD problem reported by Andrey Borzenkov in:
14491         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
14492         Also, worry about __APPLE__ only if __MACH__ is also defined,
14493         as this is more consistent with the rest of gnulib.
14494         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
14495         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
14497 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
14499         regex: Make #if/#ifdef usage consistent for DEBUG
14500         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
14501         of the inconsistent usage of #if and #ifdef as that works with
14502         both Glibc and Gnulib's style.
14504 2014-07-31  Eric Blake  <eblake@redhat.com>
14506         openat-die: use _Noreturn markup
14507         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
14508         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
14509         _Noreturn.
14511 2014-07-30  Eric Blake  <eblake@redhat.com>
14513         test-open: port to cygwin, which lacks Fortify
14514         * tests/test-open.h (ALWAYS_INLINE): New macro.
14515         (__always_inline): Don't abuse internal symbol on non-glibc.
14517 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
14519         localename: Enforce declarations before statements.
14520         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
14521         first statement.
14523 2014-07-18  Jim Meyering  <meyering@fb.com>
14525         test-userspec: don't look up numeric user names
14526         * tests/test-userspec.c: I found a system for which getpwnam("0")
14527         returned a pointer to a non-root user's entry, and that made the
14528         test fail.
14529         (T): Prefix each numeric input with "+", to inhibit lookup.
14531 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
14533         localcharset, localename: MS-Windows support for non-default locales
14534         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
14535         falling back on the default system codepage, try extracting
14536         the codepage from what 'setlocale' returns.  This allows to
14537         take into account changes of the codeset due to non-default
14538         locale set by a previous call to 'setlocale'.
14539         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
14540         Define if not already defined.
14541         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
14542         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
14543         current locale by calling 'setlocale', then converting the
14544         locale name into LCID by calling 'get_lcid'.  This allows to
14545         take into account changes in the current locale from the
14546         default one, in contrast to GetThreadLocale.
14548 2014-07-14  Daiki Ueno  <ueno@gnu.org>
14550         announce-gen: avoid failure when Digest::SHA is installed
14551         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
14552         Digest::SHA1->new in print_checksums fails.
14553         * build-aux/announce-gen (digest_classes): New associative array
14554         for available message digest implementations.
14555         (print_locations): Use it.
14557 2014-07-13  Pádraig Brady  <P@draigBrady.com>
14559         gettext: revert "update macros to version 0.19"
14560         This reverts commit 9b9370ca, as it currently requires that
14561         developers of any project that explicitly uses the gettext module
14562         or implicitly uses it through the utimens-tests or
14563         futimens-tests modules, use gettext >= 0.19.
14564         However there are some stability and availablity issues with
14565         that version at present.  We can reinstate this soon, when stability
14566         is addressed and packages are more readily available.
14568 2014-07-12  Jim Meyering  <meyering@fb.com>
14570         regex: don't deref NULL upon heap allocation failure
14571         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
14572         failure in one more place.
14573         To trigger the segfault, configure grep -with-included-regex,
14574         build it, and run these commands:
14575         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
14576         I discovered this while replying to a private report from
14577         Jens Schleusener about excessive memory consumption by grep
14578         when using a regular expression like the one above.
14580 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14582         regex: fix memory leak in compiler
14583         Fix by Andreas Schwab in:
14584         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
14585         * lib/regcomp.c (parse_reg_exp): Deallocate partially
14586         constructed tree before returning error.
14588 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14590         announce-gen: avoid perl warnings
14591         * build-aux/announce-gen: add two minor checks to avoid
14592         "use of uninitialized value" warnings when command-line parameters are
14593         missing.
14595 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14597         localename: avoid -Wsuggest-attribute={const,pure} warnings
14598         * lib/localename.c (string_has): Tag internal function as pure.
14599         * lib/localename.h (gl_locale_name_default): Tag extern declaration
14600         as const when appropriate.
14602 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
14604         nl_langinfo: Fix last change.
14605         * lib/nl_langinfo.c (includes): Drop redundant include.
14607 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14609         error: Fix -Wundef warnings in glibc
14610         * lib/error.c [_LIBC]: Define default macros for
14611         glibc.
14612         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
14613         Check _LIBC before STRERROR_R_CHAR_P.
14615         error: Sync from glibc master
14616         * lib/error.c [_LIBC]: Remove INTUSE usage.
14617         (error_tail): Remove unused macro ALLOCA_LIMIT.
14618         Fix potential buffer overflow.  Fix potential NULL dereference
14619         in strcmp.
14621 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
14623         nl_langinfo: fix build under mingw
14624         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
14626 2014-07-09  Andrew D Warshall  <warshall@99main.com>
14628         mountlist: do not classify a bind-mounted dir entry as "dummy"
14629         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
14630         1-argument getmntent() (instead of assuming absence).
14632 2014-07-08  Eric Blake  <eblake@redhat.com>
14634         maint.mk: less syntax-check noise when SIGPIPE is ignored
14635         * top/maint.mk (_sc_header_without_use)
14636         (sc_require_config_h_first): Parse full list.
14638 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
14639             Paul Eggert  <eggert@cs.ucla.edu>
14641         nl_langinfo: CODESET on MS-Windows and more items from localeconv
14642         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
14643         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
14644         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
14645         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
14646         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
14647         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
14648         Include <stdio.h> if Microsoft Windows.
14649         Include <time.h> if !REPLACE_NL_LANGINFO.
14650         (ctype_codeset): New function, taken from rpl_nl_langinfo,
14651         and with improvements for Microsoft Windows.
14652         (rpl_nl_langinfo): Use it.
14653         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
14654         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
14655         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
14656         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
14657         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
14658         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
14659         corresponding values returned by 'localeconv'.  Compute the values
14660         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
14661         'strftime' with a suitable struct tm value.
14663 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14665         Bruno Haible has stepped down as maintainer.
14666         See Karl Berry in:
14667         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
14668         Daiki Ueno has volunteered to maintain libunistring; see:
14669         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
14670         * modules/gen-uni-tables, modules/libunistring:
14671         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
14672         * modules/unicase/base, modules/unicase/cased:
14673         * modules/unicase/empty-prefix-context:
14674         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
14675         * modules/unicase/locale-language, modules/unicase/special-casing:
14676         * modules/unicase/tocasefold, modules/unicase/tolower:
14677         * modules/unicase/totitle, modules/unicase/toupper:
14678         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
14679         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
14680         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
14681         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
14682         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
14683         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
14684         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
14685         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
14686         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
14687         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
14688         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
14689         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
14690         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
14691         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
14692         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
14693         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
14694         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
14695         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
14696         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
14697         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
14698         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
14699         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
14700         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
14701         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
14702         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
14703         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
14704         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
14705         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
14706         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
14707         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
14708         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
14709         * modules/unicase/ulc-casexfrm, modules/unicodeio:
14710         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
14711         * modules/uniconv/u16-conv-to-enc:
14712         * modules/uniconv/u16-strconv-from-enc:
14713         * modules/uniconv/u16-strconv-from-locale:
14714         * modules/uniconv/u16-strconv-to-enc:
14715         * modules/uniconv/u16-strconv-to-locale:
14716         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
14717         * modules/uniconv/u32-strconv-from-enc:
14718         * modules/uniconv/u32-strconv-from-locale:
14719         * modules/uniconv/u32-strconv-to-enc:
14720         * modules/uniconv/u32-strconv-to-locale:
14721         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
14722         * modules/uniconv/u8-strconv-from-enc:
14723         * modules/uniconv/u8-strconv-from-locale:
14724         * modules/uniconv/u8-strconv-to-enc:
14725         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
14726         * modules/unictype/bidicategory-all:
14727         * modules/unictype/bidicategory-byname:
14728         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
14729         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
14730         * modules/unictype/bidiclass-byname:
14731         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
14732         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
14733         * modules/unictype/block-all, modules/unictype/block-list:
14734         * modules/unictype/block-of, modules/unictype/block-test:
14735         * modules/unictype/category-C, modules/unictype/category-Cc:
14736         * modules/unictype/category-Cf, modules/unictype/category-Cn:
14737         * modules/unictype/category-Co, modules/unictype/category-Cs:
14738         * modules/unictype/category-L, modules/unictype/category-LC:
14739         * modules/unictype/category-Ll, modules/unictype/category-Lm:
14740         * modules/unictype/category-Lo, modules/unictype/category-Lt:
14741         * modules/unictype/category-Lu, modules/unictype/category-M:
14742         * modules/unictype/category-Mc, modules/unictype/category-Me:
14743         * modules/unictype/category-Mn, modules/unictype/category-N:
14744         * modules/unictype/category-Nd, modules/unictype/category-Nl:
14745         * modules/unictype/category-No, modules/unictype/category-P:
14746         * modules/unictype/category-Pc, modules/unictype/category-Pd:
14747         * modules/unictype/category-Pe, modules/unictype/category-Pf:
14748         * modules/unictype/category-Pi, modules/unictype/category-Po:
14749         * modules/unictype/category-Ps, modules/unictype/category-S:
14750         * modules/unictype/category-Sc, modules/unictype/category-Sk:
14751         * modules/unictype/category-Sm, modules/unictype/category-So:
14752         * modules/unictype/category-Z, modules/unictype/category-Zl:
14753         * modules/unictype/category-Zp, modules/unictype/category-Zs:
14754         * modules/unictype/category-all, modules/unictype/category-and:
14755         * modules/unictype/category-and-not, modules/unictype/category-byname:
14756         * modules/unictype/category-longname, modules/unictype/category-name:
14757         * modules/unictype/category-none, modules/unictype/category-of:
14758         * modules/unictype/category-or, modules/unictype/category-test:
14759         * modules/unictype/category-test-withtable:
14760         * modules/unictype/combining-class:
14761         * modules/unictype/combining-class-all:
14762         * modules/unictype/combining-class-byname:
14763         * modules/unictype/combining-class-longname:
14764         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
14765         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
14766         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
14767         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
14768         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
14769         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
14770         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
14771         * modules/unictype/digit, modules/unictype/joininggroup-all:
14772         * modules/unictype/joininggroup-byname:
14773         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
14774         * modules/unictype/joiningtype-all:
14775         * modules/unictype/joiningtype-byname:
14776         * modules/unictype/joiningtype-longname:
14777         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
14778         * modules/unictype/mirror, modules/unictype/numeric:
14779         * modules/unictype/property-all, modules/unictype/property-alphabetic:
14780         * modules/unictype/property-ascii-hex-digit:
14781         * modules/unictype/property-bidi-arabic-digit:
14782         * modules/unictype/property-bidi-arabic-right-to-left:
14783         * modules/unictype/property-bidi-block-separator:
14784         * modules/unictype/property-bidi-boundary-neutral:
14785         * modules/unictype/property-bidi-common-separator:
14786         * modules/unictype/property-bidi-control:
14787         * modules/unictype/property-bidi-embedding-or-override:
14788         * modules/unictype/property-bidi-eur-num-separator:
14789         * modules/unictype/property-bidi-eur-num-terminator:
14790         * modules/unictype/property-bidi-european-digit:
14791         * modules/unictype/property-bidi-hebrew-right-to-left:
14792         * modules/unictype/property-bidi-left-to-right:
14793         * modules/unictype/property-bidi-non-spacing-mark:
14794         * modules/unictype/property-bidi-other-neutral:
14795         * modules/unictype/property-bidi-pdf:
14796         * modules/unictype/property-bidi-segment-separator:
14797         * modules/unictype/property-bidi-whitespace:
14798         * modules/unictype/property-byname:
14799         * modules/unictype/property-case-ignorable:
14800         * modules/unictype/property-cased:
14801         * modules/unictype/property-changes-when-casefolded:
14802         * modules/unictype/property-changes-when-casemapped:
14803         * modules/unictype/property-changes-when-lowercased:
14804         * modules/unictype/property-changes-when-titlecased:
14805         * modules/unictype/property-changes-when-uppercased:
14806         * modules/unictype/property-combining:
14807         * modules/unictype/property-composite:
14808         * modules/unictype/property-currency-symbol:
14809         * modules/unictype/property-dash:
14810         * modules/unictype/property-decimal-digit:
14811         * modules/unictype/property-default-ignorable-code-point:
14812         * modules/unictype/property-deprecated:
14813         * modules/unictype/property-diacritic:
14814         * modules/unictype/property-extender:
14815         * modules/unictype/property-format-control:
14816         * modules/unictype/property-grapheme-base:
14817         * modules/unictype/property-grapheme-extend:
14818         * modules/unictype/property-grapheme-link:
14819         * modules/unictype/property-hex-digit:
14820         * modules/unictype/property-hyphen:
14821         * modules/unictype/property-id-continue:
14822         * modules/unictype/property-id-start:
14823         * modules/unictype/property-ideographic:
14824         * modules/unictype/property-ids-binary-operator:
14825         * modules/unictype/property-ids-trinary-operator:
14826         * modules/unictype/property-ignorable-control:
14827         * modules/unictype/property-iso-control:
14828         * modules/unictype/property-join-control:
14829         * modules/unictype/property-left-of-pair:
14830         * modules/unictype/property-line-separator:
14831         * modules/unictype/property-logical-order-exception:
14832         * modules/unictype/property-lowercase, modules/unictype/property-math:
14833         * modules/unictype/property-non-break:
14834         * modules/unictype/property-not-a-character:
14835         * modules/unictype/property-numeric:
14836         * modules/unictype/property-other-alphabetic:
14837         * modules/unictype/property-other-default-ignorable-code-point:
14838         * modules/unictype/property-other-grapheme-extend:
14839         * modules/unictype/property-other-id-continue:
14840         * modules/unictype/property-other-id-start:
14841         * modules/unictype/property-other-lowercase:
14842         * modules/unictype/property-other-math:
14843         * modules/unictype/property-other-uppercase:
14844         * modules/unictype/property-paired-punctuation:
14845         * modules/unictype/property-paragraph-separator:
14846         * modules/unictype/property-pattern-syntax:
14847         * modules/unictype/property-pattern-white-space:
14848         * modules/unictype/property-private-use:
14849         * modules/unictype/property-punctuation:
14850         * modules/unictype/property-quotation-mark:
14851         * modules/unictype/property-radical:
14852         * modules/unictype/property-sentence-terminal:
14853         * modules/unictype/property-soft-dotted:
14854         * modules/unictype/property-space:
14855         * modules/unictype/property-terminal-punctuation:
14856         * modules/unictype/property-test, modules/unictype/property-titlecase:
14857         * modules/unictype/property-unassigned-code-value:
14858         * modules/unictype/property-unified-ideograph:
14859         * modules/unictype/property-uppercase:
14860         * modules/unictype/property-variation-selector:
14861         * modules/unictype/property-white-space:
14862         * modules/unictype/property-xid-continue:
14863         * modules/unictype/property-xid-start:
14864         * modules/unictype/property-zero-width, modules/unictype/scripts:
14865         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14866         * modules/unictype/syntax-c-whitespace:
14867         * modules/unictype/syntax-java-ident:
14868         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14869         * modules/unigbrk/u16-grapheme-breaks:
14870         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14871         * modules/unigbrk/u32-grapheme-breaks:
14872         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14873         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14874         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14875         * modules/unigbrk/uc-is-grapheme-break:
14876         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14877         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14878         * modules/unilbrk/u16-width-linebreaks:
14879         * modules/unilbrk/u32-possible-linebreaks:
14880         * modules/unilbrk/u32-width-linebreaks:
14881         * modules/unilbrk/u8-possible-linebreaks:
14882         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14883         * modules/unilbrk/ulc-possible-linebreaks:
14884         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14885         * modules/uniname/uniname, modules/uninorm/base:
14886         * modules/uninorm/canonical-decomposition:
14887         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14888         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14889         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14890         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14891         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14892         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14893         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14894         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14895         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14896         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14897         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14898         * modules/unistdio/base, modules/unistdio/u-printf-args:
14899         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14900         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14901         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14902         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14903         * modules/unistdio/u16-u16-sprintf:
14904         * modules/unistdio/u16-u16-vasnprintf:
14905         * modules/unistdio/u16-u16-vasprintf:
14906         * modules/unistdio/u16-u16-vsnprintf:
14907         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14908         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14909         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14910         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14911         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14912         * modules/unistdio/u32-u32-asnprintf:
14913         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14914         * modules/unistdio/u32-u32-sprintf:
14915         * modules/unistdio/u32-u32-vasnprintf:
14916         * modules/unistdio/u32-u32-vasprintf:
14917         * modules/unistdio/u32-u32-vsnprintf:
14918         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14919         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14920         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14921         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14922         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14923         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14924         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14925         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14926         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14927         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14928         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14929         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14930         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14931         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14932         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14933         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14934         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14935         * modules/unistr/u16-check, modules/unistr/u16-chr:
14936         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14937         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14938         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14939         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14940         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14941         * modules/unistr/u16-move, modules/unistr/u16-next:
14942         * modules/unistr/u16-prev, modules/unistr/u16-set:
14943         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14944         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14945         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14946         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14947         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14948         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14949         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14950         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14951         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14952         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14953         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14954         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14955         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14956         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14957         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14958         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14959         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14960         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14961         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14962         * modules/unistr/u32-next, modules/unistr/u32-prev:
14963         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14964         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14965         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14966         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14967         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14968         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14969         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14970         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14971         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14972         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14973         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14974         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14975         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14976         * modules/unistr/u8-check, modules/unistr/u8-chr:
14977         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14978         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14979         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14980         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14981         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14982         * modules/unistr/u8-next, modules/unistr/u8-prev:
14983         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14984         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14985         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14986         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14987         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14988         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14989         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14990         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14991         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14992         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14993         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14994         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14995         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14996         * modules/uniwbrk/base, modules/uniwbrk/table:
14997         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14998         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14999         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
15000         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
15001         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
15002         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
15003         * modules/uniwidth/width, modules/utf16-ucs4:
15004         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
15005         * modules/utf8-ucs4-unsafe:
15006         Change maintainer from Bruno Haible to Daiki Ueno.
15007         This is my guess at the libunistring modules; please feel free
15008         to fix if I guessed incorrectly.
15009         * modules/accept4, modules/acl, modules/acos, modules/acosf:
15010         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
15011         * modules/areadlink, modules/array-list, modules/array-mergesort:
15012         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
15013         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
15014         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
15015         * modules/binary-io, modules/bison-i18n, modules/btowc:
15016         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
15017         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
15018         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
15019         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
15020         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
15021         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
15022         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
15023         * modules/closedir, modules/concat-filename, modules/copy-file:
15024         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
15025         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
15026         * modules/csharpcomp-script, modules/csharpexec:
15027         * modules/csharpexec-script, modules/ctype, modules/diffseq:
15028         * modules/dprintf, modules/dprintf-posix, modules/dup:
15029         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
15030         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
15031         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
15032         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
15033         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
15034         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
15035         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
15036         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
15037         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
15038         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
15039         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
15040         * modules/findprog, modules/findprog-lgpl, modules/floor:
15041         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
15042         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
15043         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
15044         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
15045         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
15046         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
15047         * modules/freadable, modules/freadahead, modules/freadptr:
15048         * modules/freadseek, modules/freopen, modules/frexp:
15049         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
15050         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
15051         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
15052         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
15053         * modules/ftello, modules/full-read, modules/full-write:
15054         * modules/fwritable, modules/fwriteerror, modules/gcd:
15055         * modules/get-rusage-as, modules/get-rusage-data:
15056         * modules/getdtablesize, modules/getrusage, modules/gettext:
15057         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
15058         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
15059         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
15060         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
15061         * modules/iconv, modules/iconv-h, modules/iconv_open:
15062         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
15063         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
15064         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
15065         * modules/integer_length_ll, modules/ioctl, modules/isatty:
15066         * modules/isblank, modules/isnand, modules/isnand-nolibm:
15067         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
15068         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
15069         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
15070         * modules/javaexec, modules/javaexec-script, modules/javaversion:
15071         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
15072         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
15073         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
15074         * modules/lib-symbol-visibility, modules/libsigsegv:
15075         * modules/linked-list, modules/linkedhash-list, modules/list:
15076         * modules/localcharset, modules/locale, modules/localeconv:
15077         * modules/localename, modules/lock, modules/log, modules/log-ieee:
15078         * modules/log10, modules/log10-ieee, modules/log10f:
15079         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
15080         * modules/log1p, modules/log1p-ieee, modules/log1pf:
15081         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
15082         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
15083         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
15084         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
15085         * modules/logf, modules/logf-ieee, modules/login_tty:
15086         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
15087         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
15088         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
15089         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
15090         * modules/mbscspn, modules/mbsinit, modules/mbslen:
15091         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
15092         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
15093         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
15094         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
15095         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
15096         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
15097         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
15098         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
15099         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
15100         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
15101         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
15102         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
15103         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
15104         * modules/posix_spawn, modules/posix_spawn-internal:
15105         * modules/posix_spawn_file_actions_addclose:
15106         * modules/posix_spawn_file_actions_adddup2:
15107         * modules/posix_spawn_file_actions_addopen:
15108         * modules/posix_spawn_file_actions_destroy:
15109         * modules/posix_spawn_file_actions_init:
15110         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
15111         * modules/posix_spawnattr_getpgroup:
15112         * modules/posix_spawnattr_getschedparam:
15113         * modules/posix_spawnattr_getschedpolicy:
15114         * modules/posix_spawnattr_getsigdefault:
15115         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
15116         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
15117         * modules/posix_spawnattr_setschedparam:
15118         * modules/posix_spawnattr_setschedpolicy:
15119         * modules/posix_spawnattr_setsigdefault:
15120         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
15121         * modules/pow, modules/powf, modules/printf-frexp:
15122         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
15123         * modules/progname, modules/propername, modules/pselect:
15124         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
15125         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
15126         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
15127         * modules/read, modules/readdir, modules/readlink:
15128         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
15129         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
15130         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
15131         * modules/relocatable-script, modules/remainder:
15132         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
15133         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
15134         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
15135         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
15136         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
15137         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
15138         * modules/setlocale, modules/sh-quote, modules/shutdown:
15139         * modules/signal, modules/signbit, modules/sigpipe:
15140         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
15141         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
15142         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
15143         * modules/snippet/link-warning, modules/snippet/unused-parameter:
15144         * modules/snprintf, modules/snprintf-posix, modules/spawn:
15145         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
15146         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
15147         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
15148         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
15149         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
15150         * modules/streq, modules/strerror_r-posix, modules/striconv:
15151         * modules/striconveh, modules/striconveha, modules/strncat:
15152         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
15153         * modules/sublist, modules/sys_resource, modules/sys_utsname:
15154         * modules/sys_wait, modules/system-posix, modules/system-quote:
15155         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
15156         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
15157         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
15158         * modules/truncf, modules/truncf-ieee, modules/truncl:
15159         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
15160         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
15161         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
15162         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
15163         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
15164         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
15165         * modules/wait-process, modules/waitpid, modules/wcpcpy:
15166         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
15167         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
15168         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
15169         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
15170         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
15171         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
15172         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
15173         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
15174         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
15175         * modules/write, modules/xconcat-filename, modules/xlist:
15176         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
15177         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
15178         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
15179         * modules/y0, modules/y1, modules/yn:
15180         Remove Bruno Haible as maintainer; if he's the sole maintainer,
15181         change the maintainer to 'all'.  Let's hope someone volunteers.
15183 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
15185         mktime: merge #if/#ifdef usage from glibc
15186         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
15187         as that works with both Glibc's and Gnulib's style.
15188         See thread starting at Siddhesh Poyarekar's bug report at:
15189         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
15191 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
15193         git-version-gen: improve option descriptions
15194         * build-aux/git-version-gen: Mention that --prefix and --fallback
15195         have a mandatory argument.
15197 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15199         regex: fix memory leak in compiler
15200         Fix by Andreas Schwab in:
15201         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
15202         * lib/regcomp.c (parse_expression): Deallocate partially
15203         constructed tree before returning error.
15205         regex: merge patch from libc
15206         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
15207         Combine __USE_BSD and __USE_SVID into __USE_MISC.
15208         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
15210 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15212         acl: port to gcc -Wredundant-decls
15213         From a request by Dmitry Antipov in:
15214         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
15215         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
15216         "#ifndef _GL_ACL_H".
15218 2014-06-11  Bruce Korb  <bkorb@gnu.org>
15219         Jim Meyering  <meyering@fb.com>
15221         parse-duration: eliminate 68-year duration limit
15222         * lib/parse-duration.c: Include "intprops.h".
15223         (TIME_MAX): Rename to MAX_DURATION and define to
15224         TYPE_MAXIMUM(time_t).
15225         * modules/parse-duration (Depends-on): Add intprops.
15226         Reported by Jonas 'Sortie' Termansen.
15228 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15230         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
15231         * modules/pthread (Depends-on): Add 'extensions', as it defines
15232         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
15233         (configure.ac-early): New section.
15234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
15235         it is no longer needed.
15237 2014-06-14  Pádraig Brady  <P@draigBrady.com>
15239         pthread: define thread-safe macros on some platforms
15240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
15241         for thread-safe operation on some platforms.
15243 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15245         regex: don't be multithreaded if USE_UNLOCKED_IO.
15246         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
15247         * lib/regex_internal.h: Do not use multithreaded version if
15248         USE_UNLOCKED_IO is defined.  This is a hack, but it works
15249         around a porting bug with coreutils 8.22 on AIX 7.1.
15251 2014-06-11  Daiki Ueno  <ueno@gnu.org>
15253         gettext: update macros to version 0.19
15254         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
15255         depend on gl_EXTERN_INLINE and drop support for older Bison
15256         versions.
15258 2014-06-10  Pádraig Brady  <P@draigBrady.com>
15260         select,poll: fix console handle check on windows 8
15261         lib/poll.c (IsConsoleHandle): Change from testing the lower
15262         2 bits of the handle to the more expensive but accurate syscall.
15263         lib/select.c: Likewise.
15265 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15267         select: fix waiting on anonymous pipes on MS-Windows
15268         * lib/select.c (rpl_select): Fall back to polling when select()
15269         indicates there is nothing to check, while due to the timeout not
15270         expiring, activity is indicated on one of the handles.
15271         Also clear the TIMEOUT argument if the timer does expire.
15273 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15275         times: fix to return non constant value on MS-Windows
15276         * lib/times.c (times): Don't use the process creation time,
15277         rather clock() which on windows returns the number of
15278         clock ticks since the process started.
15280 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
15282         isatty: fix to work on windows 8
15283         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
15284         2 bits of the handle to the more expensive but accurate syscall.
15286 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15288         maint: fix typo in fdl.texi
15289         * doc/fdl.texi: Fix typo (missing '@').
15290         Somehow this was in fdl.texi but not fdl-1.3.texi.
15292 2014-06-06  Ben Walton  <bdwalton@gmail.com>
15294         mountlist: avoid hasmntopt const type warning on solaris
15295         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
15296         with char * instead of const char *.  Passing the constant string
15297         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
15298         to avoid the warning.
15300 2014-06-04  Eric Blake  <eblake@redhat.com>
15302         maintainer-makefile: delete obsolete code
15303         * top/maint.mk (build_aux): Drop old code, as threatened.
15305         maintainer-makefile: avoid spurious error messages
15306         * top/maint.mk (syntax-check): Guard definition and use of
15307         $(shell) by whether Makefile is present.
15309 2014-06-03  Ben Walton  <bdwalton@gmail.com>
15311         rename: avoid unused-but-set-variable compiler warning
15312         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
15313         it is possible that dst_exists may be set but not used.  Mark it with
15314         the unused attribute to avoid compiler warnings.
15316 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15318         rename: mark a label as potentially unused
15319         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
15320         by marking the out label as potentially unused.
15321         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
15323 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
15325         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
15326         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
15328 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15330         acl: apply pure attribute to two functions
15331         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
15332         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
15334 2014-06-01  Pádraig Brady  <P@draigBrady.com>
15336         gnulib-common.m4: add _GL_UNUSED_LABEL
15337         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
15338         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
15340 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
15342         dup2, fcntl, fcntl-h: port to AIX 7.1
15343         This fixes some porting problems discovered when testing the latest
15344         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
15345         in grep but it could be important for other applications.
15346         * doc/posix-functions/dup2.texi:
15347         * doc/posix-functions/fcntl.texi:
15348         * doc/posix-headers/fcntl.texi:
15349         Document AIX bugs.
15350         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
15351         Define to 0 if outside 'int' range.
15352         * m4/dup2.m4 (gl_FUNC_DUP2):
15353         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15354         Check for getdtablesize.  If it's available, test a value just
15355         outside its range instead of testing 1000000.  When cross-compiling,
15356         guess that AIX will fail this improved test.
15358 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
15360         printf, config.rpath: Port to FreeBSD 10.
15361         Problem reported by Tijl Coosemans in:
15362         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
15363         * build-aux/config.rpath (hardcode_libdir_flag_spec)
15364         (hardcode_direct): Simplify FreeBSD configuration.
15365         (library_names_spec): Don't mishandle FreeBSD 10+.
15366         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
15367         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
15368         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
15369         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
15370         Don't mishandle FreeBSD 10+ when cross-compiling.
15372         ftoastr: work around compiler bug in IBM xlc 12.1
15373         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
15374         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
15375         around a compiler bug in IBM xlc 12.1.0.0: it complains
15376         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
15377         _GL_FLT_PREC_BOUND.'
15379 2014-05-30  Kieran Colford  <colfordk@gmail.com>
15381         valgrind-tests: fixed misleading help message
15382         * m4/valgrind-tests.m4: The help message generated by configure
15383         implied that valgrind was disabled by default, which it wasn't.
15384         Adjusted the help message using s/enable/disable/ to clarify.
15386 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
15388         isfinite, isinf, isnan tests: fix for little-endian PowerPC
15389         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
15390         first double of a PowerPC "double double" pair.
15391         * tests/test-isinf.c (test_isinfl): Likewise.
15392         * tests/test-isnan.c (test_long_double): Likewise.
15393         * tests/test-isnanl.h (main): Likewise.
15394         * tests/test-signbit.c (test_signbitl): Likewise.
15396 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15398         exclude-tests: port to AIX 7.1
15399         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
15400         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
15401         the regex code uses locks.
15403 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
15405         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
15406         Without this fix, Emacs would sometimes call sigprocmask instead
15407         of pthread_sigmask, which is a no-no in multithreaded applications.
15408         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
15409         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15410         Suppress check for pthread_sigmask working without -lpthread if
15411         the application always links with -lpthread.  Do not link with
15412         $LIBMULTITHREAD if gl_THREADLIB is not defined.
15413         * m4/timer_time.m4 (gl_TIMER_TIME):
15414         Require gl_THREADLIB only if it is defined.  Do not append
15415         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
15417 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
15419         gnulib-tool: wget translations using --no-verbose rather than --quiet
15420         This allows the user to see error messages if any (--quiet hides them)
15421         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
15423 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
15425         gnulib-tool: adjust translation wget to avoid a https redirection
15426         Context: http://translationproject.org/latest/gnulib redirects to
15427            https://translationproject.org/latest/gnulib/
15428         Rationale: if the user falls back to wget, she doesn't have rsync and
15429         is probably in a minimal build environment, where packages such as
15430         'ca-certificates' are missing as well, resulting in a failed (and
15431         difficult to detect since ignored) translation initial fetch.
15432         Consequently let's avoid https if possible, and add the missing
15433         trailing slash.  This also avoids an unnecessary 302 redirection.
15434         * gnulib-tool: Add trailing slash to gnulib URL.
15436 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15438         getlogin_r-tests: check return value rather than errno
15439         * tests/test-getlogin_r.c (main): As per POSIX we should be
15440         verifying the return value from getlogin_r() rather than errno.
15442 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15444         getlogin_r-tests: fix various issues in recent change
15445         * tests/test-getlogin_r.c: Include required headers that were
15446         missed in recent commit eec20b4e.
15447         Also consistently check the errno rather than the return value from
15448         getlogin_r as POSIX only specifies that non zero is returned on error.
15449         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
15451 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15453         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
15454         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
15455         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
15456         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
15457         * lib/spawn-pipe.c:
15458         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
15459         and then 'int open64(const char *, int, ...);', which means the
15460         declaration for 'open' gets lost if we later '#undef open'.
15461         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
15462         where the compilation reported the non-fatal error "In function
15463         'openat_proc_name' ... warning: implicit declaration of function
15464         'open'".  In this case the error is relatively harmless, but in
15465         other cases it might not be so minor.
15467 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15469         xalloc: don't potentially generate invalid code for xmemdup calls
15470         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
15471         this function can initialize the newly-allocated storage with new
15472         pointers, which means this function is not malloc-like.  See:
15473         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
15475 2014-05-19  Pádraig Brady  <P@draigBrady.com>
15477         getlogin_r-tests: avoid false failure under sudo/ssh etc.
15478         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
15479         changes from commit 97249cf29 to not depend on environment variables.
15481 2014-05-18  Pádraig Brady  <P@draigBrady.com>
15483         getlogin-tests: avoid false failure under cron
15484         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
15485         since that's not what's under test.  Centos 6 was seen to return
15486         EINVAL for ttyname() when run from cron.
15488 2014-05-16  Jim Meyering  <meyering@fb.com>
15490         mbrtowc.m4: fix a comment typo
15491         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
15492         emitted documentation string.
15494 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15496         mbrlen, mbrtowc: fix bug with empty input
15497         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
15498         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
15499         so this is mainly for documentation.
15500         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
15501         (gl_FUNC_MBRTOWC): Use it.
15502         * tests/test-mbrtowc.c (main): Test for the bug.
15504 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15506         doc: document mbrtowc and mbrlen problem with empty input
15507         * doc/posix-functions/mbrlen.texi (mbrlen):
15508         * doc/posix-functions/mbrtowc.texi (mbrtowc):
15509         Document portability problem when the input string is empty.  See:
15510         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
15512         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
15513         Problem reported by Eli Zaretskii in:
15514         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
15515         * doc/posix-functions/execl.texi (execl):
15516         * doc/posix-functions/execle.texi (execle):
15517         * doc/posix-functions/execlp.texi (execlp):
15518         * doc/posix-functions/execv.texi (execv):
15519         * doc/posix-functions/execve.texi (execve):
15520         * doc/posix-functions/execvp.texi (execvp):
15521         Mention spawn+exit problem on non-Cygwin Windows platforms.
15523 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
15525         getlogin-tests: avoid false failure under sudo/ssh etc.
15526         * modules/getlogin-tests (configure.ac): Check for ttyname().
15527         * tests/test-getlogin.c (main): Don't depend on environment variables
15528         to correlate with getlogin(), since sudo and ssh etc. can tamper
15529         with the LOGNAME and USER env vars.  Instead lookup the name from
15530         the uid associated with the stdin tty.
15532 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15534         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
15535         These were found when building the latest grep snapshot on IRIX 6.5.
15536         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
15537         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
15538         never used later.
15539         * lib/quotearg.c (quoting_options_from_style):
15540         * lib/xstrtol.c (__xstrtol):
15541         Use enum instead of 0, to pacify IRIX 6.5 cc.
15543 2014-04-18  Pádraig Brady  <P@draigBrady.com>
15545         gitlog-to-changelog: revert inclusion of git-log-fix file
15546         * build-aux/git-log-fix: Delete dummy file.
15547         * modules/gitlog-to-changelog: Don't reference (overwrite)
15548         the project specific git-log-fix file.
15550 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
15552         maint.mk: Relax the copyright check to cater for non FSF projects
15553         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
15554         to not require the "Free" suffix after the copyright years.
15556 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
15558         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
15559         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
15560         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
15561         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
15562         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
15564 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
15566         exclude: port to strict C99
15567         Strict C does not allow converting a function pointer to void *
15568         and vice versa.  Pass a pointer to a function pointer instead.
15569         * lib/exclude.c (add_exclude_file):
15570         Pass the address of the function pointer.
15571         (call_addfn): And deference the address here, to match.
15573 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15575         regex: do not depend on malloc-gnu
15576         * modules/regex (Depends-on): Remove malloc-gnu.
15577         It's no longer needed, because of the 2012-12-29 patch
15578         "regex: port to hosts where malloc (0) == NULL".
15579         Reported by Nathan Kennedy in:
15580         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
15582 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
15584         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
15585         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
15586         * doc/posix-functions/expl.texi: Mention the workaround.
15588 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15590         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
15591         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
15592         size to be zero even when the pointer is nonnull.  This
15593         accommodates the use case where P is malloc (0) and *PN is 0 on a
15594         host where malloc (0) yields nonnull.
15596 2014-04-09  Eric Blake  <eblake@redhat.com>
15598         fts: avoid unnecessary strlen calls
15599         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
15601 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15603         fts: avoid unnecessary strlen calls
15604         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
15605         when that can be faster than strlen.
15607 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15609         fts: avoid unnecessary strlen calls
15610         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
15611         (fts_build): Store the length of the dp->d_name entry in a local variable
15612         instead of calling strlen() several times via the above, removed macro.
15613         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
15614         run by ~4%, yet this reduces the execution time by about a third if run
15615         via "ltrace -c rm -rf some-dir".
15617 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15619         obstack: Remove ancient NeXTSTEP gcc support conditional
15620         This change will ease merging with glibc.  The "#if ... __NEXT__"
15621         causes a warning with -Wundef which glibc now enables by default.
15622         Problem reported by Will Newton in
15623         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
15624         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
15625         so go with that.
15626         * lib/obstack.h (__extension__):
15628 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15630         obstack: merge with glibc changes
15631         * lib/obstack.c, lib/obstack.h: Merge from glibc.
15632         This is mostly indenting and commentary changes.
15633         Instances of 'register' have been removed.
15635 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15637         strftime: wrap macros in "do {...} while(0)"
15638         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
15639         this macro in "do {...} while(0)" to prevent false use as a
15640         single statement, e.g., in an un-braced "{}" else-block.
15641         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
15642         (strftime_case_): Remove 'else' after 'goto' - which was the
15643         only non-fatal, un-braced use of one of the above macros.
15644         Spotted by coverity (NESTING_INDENT_MISMATCH).
15646 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15648         modechange: avoid memory leaks for invalid octal modes
15649         * lib/modechange.c (mode_compile): During the parsing of
15650         notations like +40, free the 'mc' buffer for invalid mode
15651         strings like +17777 (greater than the maximum octal mode),
15652         =18 (bad octal mode characters) or u=1 ('affected' with
15653         octal modes).
15654         Reproducer, e.g.:
15655             $ valgrind --leak-check=full chmod +17777 file
15656         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
15657         add notations +40, 00440, etc.".
15658         Spotted by coverity (RESOURCE_LEAK).
15660 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15662         gitlog-to-changelog: include a dummy git-log-fix file
15663         Problem reported by Nathan Stratton Treadway in:
15664         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
15665         * build-aux/git-log-fix: New file.
15667 2014-03-13  Jim Meyering  <meyering@fb.com>
15669         gitlog-to-changelog: also include the file, git-log-fix
15670         * modules/gitlog-to-changelog (Files): Add git-log-fix.
15671         Reported by Assaf Gordon.
15673 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
15675         regex: port to OS X 10.8.5 en_US.UTF-8 locale
15676         This fixes a bug when ignoring case and when comparing the
15677         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
15678         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
15679         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
15680         titlecase letter is neither lowercase nor uppercase, but
15681         uppercasing the titlecase letter (via towupper) yields the
15682         uppercase letter, so the two letters should match when ignoring case.
15683         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
15684         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
15685         Don't test whether a character is lowercase before uppercasing it.
15687 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
15689         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
15690         This is basically one of the options Bruno Haible proposed in:
15691         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
15692         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
15693         * lib/stdint.in.h: Use it.
15694         * modules/stdint (Depends-on): Add sys_types.
15696 2014-02-26  Pádraig Brady  <P@draigBrady.com>
15698         parse-datetime: fix crash or infloop in TZ="" parsing
15699         * lib/parse-datetime.y (parse_datetime): Break out of the
15700         TZ="" parsing loop once the second significant " is found.
15701         Also skip over any subsequent whitespace to be consistent
15702         with the non TZ= case.
15703         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
15705 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15707         savedir: new symbol for fast-read version
15708         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
15709         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
15710         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
15711         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
15713 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15715         unistd: port readlink to Mac OS X 10.3.9
15716         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
15717         around self-include problem in Mac OS X 10.3.9 when combined with
15718         readlink module.  Problem reported by Klaus Zietler in
15719         <http://bugs.gnu.org/16825>.
15721 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15723         diffseq: remove TOO_EXPENSIVE heuristic
15724         Problem with diffutils reported by Vincent Lefevre in
15725         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
15726         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
15727         Although appropriate for circa-1993 hardware, these days the heuristic
15728         seems to be more trouble than it's worth.
15729         * lib/diffseq.h: Modernize citations.
15730         (struct context): Remove member too_expensive.
15731         All uses changed.
15732         (struct partition): Remove members lo_minimal, hi_minimal.
15733         All uses changed.
15734         (diag, compareseq): Remove arg find_minimal.  All uses changed.
15735         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
15736         1993 to make 'diff' run faster (but not as well) on large inputs.
15737         These days, computers are fast enough that it's typically better
15738         to run slower but more accurately.
15739         * lib/fstrcmp.c: Remove duplicate comment.
15740         * lib/fstrcmp.c (strcmp_bounded):
15741         * lib/git-merge-changelog.c (compute_differences):
15742         Adjust to diffseq.h changes.
15743         * NEWS: Document the change.
15745         savedir: simplify by using stpcpy
15746         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
15747         (streamsavedir): Use stpcpy instead.
15748         * modules/savedir (Depends-on): Add stpcpy.
15750 2014-02-21  Pádraig Brady  <P@draigBrady.com>
15752         spawn: fix link error on uclibc
15753         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
15754         to incorporate -lrt if needed (on uclibc for example).
15755         * modules/posix_spawn: Reference the substituted LIB.
15757 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
15758         timer: fix uClibc detection of threading
15759         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
15760         enabled in uClibc.
15762 2014-02-21  Eric Blake  <eblake@redhat.com>
15764         maintainer-makefiles: provide AC_PROG_SED for older autoconf
15765         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
15767 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15769         exclude: add support for posix regexps
15771         This commit adds support for POSIX extended regular expressions
15772         and fixes a long-standing memory leak (pattern buffer was never
15773         freed).  It also implements a new interface function to read
15774         exclude patterns from a FILE, which passes an additional parameter
15775         to its callback function, thereby allowing to preserve its state
15776         between invocations.
15778         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
15779         (pattern_buffer): New struct.
15780         (exclude): New member patbuf.
15781         (exclude_add_pattern_buffer): New function.
15782         (free_exclude_segment): Free regexps.
15783         (free_exclude): Free allocated pattern buffers.
15784         (exclude_patopts): New function.
15785         (file_pattern_matches): Use exclude_patopts.
15786         (add_exclude): support regexps.
15787         (add_exclude_fp): New function.
15788         (add_exclude_file): Rewrite using add_exclude_fp.
15789         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15790         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15791         (add_exclude_fp)
15792         (add_exclude_file): Rewrite using add_exclude_fp.
15793         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15794         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15795         (add_exclude_fp)
15796         (exclude_add_pattern_buffer): New prototypes.
15797         * modules/exclude: Depends on regex and filename.
15799 2014-02-20  Eric Blake  <eblake@redhat.com>
15801         maintainer-makefiles: use $(SED) for syntax check
15802         * modules/maintainer-makefile (configure.ac): Check for sane sed.
15803         * top/maint.mk: Change sed to $(SED).
15805 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
15806             Paul Eggert  <eggert@cs.ucla.edu>
15808         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
15809         Patch based on an idea by Dick Streefland in
15810         <https://savannah.gnu.org/patch/?7892>.
15811         * NEWS: Document this.
15812         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
15813         (direntry_t, comparison_function): New types.
15814         (direntry_cmp_name): New function.
15815         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
15816         (streamsavedir, savedir): New arg OPTION.
15817         (streamsavedir): Simplify memory allocation.
15818         (fdsavedir): Remove.
15819         * lib/savedir.h (enum savedir_option): New type.
15820         (streamsavedir, savedir): New arg OPTION.
15821         (fdsavedir): Remove.
15823 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15825         file-type: add support for doors and other less-common file types
15826         Problem with S_ISDOOR reported by Rich Burridge.
15827         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
15828         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
15829         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
15831 2014-01-23  Eric Blake  <eblake@redhat.com>
15833         pthread: work around winpthread header pollution on mingw
15834         * lib/time.in.h: Move pthread workarounds...
15835         * lib/pthread.in.h: ...here.
15836         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
15837         detect macro pollution on mingw.
15838         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
15840 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15842         qacl: check for fchmod
15843         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
15844         and qset-acl.c both use HAVE_FCHMOD.
15846 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15848         fdopen-tests: port to Tru64
15849         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15850         descriptor that is not open, as POSIX doesn't specify the
15851         resulting behavior and the test does not work on Tru64.
15852         Problem reported by Steven M. Schweda in:
15853         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15855         stdalign: port to HP-UX compilers
15856         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15857         if __HP_cc or __HP_aCC are nonzero.
15859 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15861         strtoimax: port to platforms lacking 'long long'
15862         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15863         check whether strtoll is declared, which causes the C file to
15864         wrongly report an error.  Problem reported by Steven M. Schweda in:
15865         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15866         * lib/strtoimax.c (strtoull):
15867         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15868         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15870 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15872         relocatable-perl: fix texi syntax
15873         * doc/relocatable-maint.texi: Escape braces.
15875 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15877         relocatable-perl: like relocatable-script, but for Perl scripts
15878         * build-aux/relocatable.pl.in: Add.
15879         * doc/relocatable-maint.texi: Add documentation.
15880         * modules/relocatable-perl: Add.
15882 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15884         tests: fix export bug in previous patch
15885         Problem reported by Jim Meyering.
15886         * tests/init.sh (re_shell): New var, which is exported instead of
15887         re_shell_.
15889         tests: simplify porting to Solaris 10 /bin/sh
15890         Some test cases in 'grep' need a shell that groks '$(';
15891         export re_shell_ for their benefit.  Problem reported for 'grep'
15892         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15893         * tests/init.sh (re_shell_): Export if it's used.
15895 2014-01-06  Eric Blake  <eblake@redhat.com>
15897         md5, sha1, sha256, sha512: support older autoconf
15898         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15899         for autoconf < 2.63b.
15901         include_next: port to autoconf 2.63
15902         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15904 2014-01-04  Jim Meyering  <meyering@fb.com>
15906         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15907         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15908         so that "make sc_maint" will ding anyone who puts non-ascii
15909         in any of gnulib's .texi files.
15911 2014-01-03  Jim Meyering  <meyering@fb.com>
15913         freadable, fwritable, fwriting: declare with the "pure" attribute
15914         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15915         * lib/fwritable.h (fwritable): Likewise.
15916         * lib/fwriting.h (fwriting): Likewise.
15917         Suggested by Bruno Haible.
15919         maint.mk: adapt openat.h-include-without-use test
15920         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15921         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15922         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15923         With this change, running "make sc_maint" in gnulib's top-level
15924         directory now passes for me.
15926 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15928         doc: use ASCII in .texi files where UTF-8 isn't needed
15929         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15930         * doc/posix-functions/setkey.texi, doc/regex.texi:
15931         Use ASCII input, not UTF-8.
15933 2014-01-02  Jim Meyering  <meyering@fb.com>
15935         freading: declare with the "pure" attribute
15936         * lib/freading.h (freading): Declare with the "pure" attribute.
15938         manywarnings: remove -Wmudflap
15939         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15940         it is no longer supported in gcc-4.9-to-be.
15942 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15944         relocatable-script: remove unused code
15945         Problem reported by Reuben Thomas in:
15946         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15947         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15949 2014-01-01  Jim Meyering  <meyering@fb.com>
15951         maint: fix public-submodule-commit to work with newer git
15952         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15953         We were over-quoting the test arguments, and somewhere prior to
15954         version 1.8.5.2.229, git stopped removing those excess quotes,
15955         which made the test fail, since the unexpanded strings would
15956         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15957         command wasn't even being run.
15959 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15961         doc: update main copyright year
15962         * doc/gnulib.texi: Update copyright date.
15964 2014-01-01  Eric Blake  <eblake@redhat.com>
15966         version-etc: new year
15967         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15968         * all files: run 'make update-copyright'
15970 2013-12-24  Eric Blake  <eblake@redhat.com>
15972         passfd: give nicer error for recvfd at eof
15973         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15974         * tests/test-passfd.c (main): Enhance test to cover this.
15976 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15978         gettimeofday: port recent C++ fix to Emacs
15979         Without this further patch, Emacs won't build due to
15980         the portcheck failing.  Also, this simplifies the patch a bit.
15981         * lib/time.in.h (localtime, gmtime): Don't replace unless
15982         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15983         * lib/time.in.h (localtime, gmtime):
15984         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15985         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15986         * modules/time (time.h):
15987         Don't worry about the possibility of localtime and gmtime
15988         being absent; they're present in all C libraries we know about.
15989         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15990         Don't assume sys_time is present and has been initialized.
15991         Instead, use a hack that should work even if it hasn't been.
15992         Don't use a portcheck for gmtime or localtime; this supports
15993         the hack.
15994         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15996 2013-12-17  John W. Eaton  <jwe@gnu.org>
15998         gettimeofday: fix C++ crosscompilation
16000         Never replace gmtime and localtime by macros when compiling with
16001         C++, this prevents <ctime> from being included.
16003         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
16004         define gmtime and localtime as preprocessor macros.  Instead
16005         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
16006         REPLACE_LOCALTIME substitutions.
16007         * lib/time.in.h: Declare gmtime and localtime when needed.
16008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
16009         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
16010         * modules/time: Depend on gettimeofday, and substitute the above
16011         variables in time.h.
16013 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16015         qacl: port to Windows better
16016         See Eli Zaretskii in
16017         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
16018         * lib/file-has-acl.c (acl_access_nontrivial):
16019         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
16020         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
16022 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
16024         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
16025         * lib/gl_openssl.h: Cast void pointers to a specific type.
16027 2013-12-07  Pádraig Brady  <P@draigBrady.com>
16029         open-tests: fix build failure with -Werror=old-style-declaration
16030         * tests/test-open.h: Reorder the inline to avoid the issue.
16032 2013-12-07  Pádraig Brady  <P@draigBrady.com>
16034         md5, sha1, sha256, sha512: fix link error with partial libcrypto
16035         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
16036         init time, so that if early checks find crypto routines,
16037         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
16038         avoiding link failures.
16040 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16042         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
16043         This provides a new way to specify the default for
16044         gl_CRYPTO_CHECK, one that is reflected in the --help message.
16045         Emacs uses this, as well as the old way.
16046         This attempts to implement a suggestion by Pádraig Brady in
16047         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
16048         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
16049         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
16051         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
16052         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
16053         Add support for a new option, --with-openssl=auto, which causes
16054         the library to be used if available and silently ignored if not.
16055         Add support to allow configure.ac to specify its own
16056         default, by setting with_openssl_default before invoking gl_INIT.
16058 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16060         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
16061         Problem reported by Daiki Ueno in:
16062         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
16063         * tests/test-open.h (__always_inline):
16064         New macro, if not already defined.
16065         (test_open): Use it.
16067 2013-12-04  Eric Blake  <eblake@redhat.com>
16069         include_next: minimize code duplication
16070         * modules/include_next (Depends-on): Add absolute-header.
16071         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
16072         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
16074 2013-12-04  Pádraig Brady  <P@draigBrady.com>
16076         getcwd: fix compile error in configure check
16077         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
16079 2013-12-04  Pádraig Brady  <P@draigBrady.com>
16081         regex: suppress core dumps from detection code
16082         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
16083         to suppress core dumps that may well occur on glibc systems.
16084         These core dumps might not be cleaned up automatically, or could
16085         trigger some system core dump handling logic.
16087 2013-12-03  Pádraig Brady  <P@draigBrady.com>
16089         md5, sha1, sha256, sha512: support mandating use of openssl
16090         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
16091         description, to list the now 3 separate options.  also don't
16092         mention the default=no, since this is implicit given the option
16093         is described as --with-openssl rather than --without-openssl.
16094         If projects change the default they're free to document that.
16095         with --with-openssl[=yes] we now error out when the specified
16096         hash algorithm is not available in libcrypto.
16098 2013-12-03  Ivailo  <xakepa10@gmail.com>
16100         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
16101         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
16102         -Wformat-nonliteral checks, as these edge cases are part of the test.
16104 2013-12-03  Eric Blake  <eblake@redhat.com>
16106         regex: avoid glibc deadlock during configure
16107         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
16108         glibc bug 15078 in turn triggers bug 16159.
16109         Reported by Michal Privoznik.
16111 2013-12-02  Pádraig Brady  <P@draigBrady.com>
16113         md5, sha1, sha256, sha512: use openssl routines if available.
16114         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
16115         routines will be used if available, requiring apps to link @LIB_CRYPTO@
16116         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
16117         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
16118         in the standard system location.
16119         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
16120         * m4/sha256.m4: Likewise with SHA256.
16121         * m4/sha512.m4: Likewise with SHA512.
16122         * m4/md5.m4: Likewise with MD5.
16123         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
16124         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
16125         * lib/sha256.h: Likewise with SHA256.
16126         * lib/sha512.h: Likewise with SHA512.
16127         * lib/md5.h: Likewise with MD5.
16128         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
16129         * lib/sha256.c: Likewise with SHA256.
16130         * lib/sha512.c: Likewise with SHA512.
16131         * lib/md5.c: Likewise with MD5.
16132         * modules/crypto/sha1 (Link:): Add the new optional lib.
16133         (Depends-on:): Add dependency on extern-inline.
16134         * modules/crypto/sha256: Likewise.
16135         * modules/crypto/sha512: Likewise.
16136         * modules/crypto/md5: Likewise.
16137         * modules/crypto/sha1-tests: Reference the lib here too.
16138         * modules/crypto/md5-tests: Likewise.
16139         * modules/crypto/gc-des-tests: Likewise.
16140         * modules/crypto/gc-hmac-md5-tests: Likewise.
16141         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16142         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16143         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16144         * modules/crypto/gc-md5-tests: Likewise.
16145         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16146         * modules/crypto/gc-sha1-tests: Likewise.
16147         * modules/crypto/gc-tests: Likewise.
16148         * modules/crypto/hmac-md5-tests: Likewise.
16149         * modules/crypto/hmac-sha1-tests: Likewise.
16150         * modules/crypto/hmac-sha256-tests: Likewise.
16151         * modules/crypto/hmac-sha512-tests: Likewise.
16153 2013-11-29  RV1971  <rv1971@web.de>
16155         base64: (trivial) fix compilation regression on some compilers
16156         * lib/base64.c: Don't return the void function,
16157         instead split to a separate return statement.
16159 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16161         ignore-value: revert previous code change
16162         * lib/ignore-value.h (ignore_value): Use __extension__ and
16163         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
16164         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
16165         Change the comment to try to explain this better.
16167 2013-11-27  Pádraig Brady  <P@draigBrady.com>
16169         selinux-h: improve stub types and add more stub functions
16171         * lib/se-selinux.in.h: Change security_context_t to a typedef
16172         rather than a define, as it's a pointer type and so is better
16173         as a typedef to avoid issues declaring multiple variables
16174         with the comma operator.  Also add stub for string_to_security_class().
16175         * lib/se-context.in.h: Add stub functions for
16176         context_{type,range,role,user}_get().
16178 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16180         ignore-value: prefer GCC version back through 2.0
16181         The code didn't match the comments, so I did a bit of software
16182         archaeology.  GCC 2.0 seems to support __extension__ and
16183         __typeof__, so fix both code and comments to use 2.0.
16184         * lib/ignore-value.h (ignore_value): Use __extension__ and
16185         __typeof__ for GCC 2.0 through 3.3, too.
16187 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
16189         pty: Activate the signature wrapper of forkpty.
16190         The intended preprocessor macro HAVE_FORKPTY is
16191         never defined, yet `lib/forkpty.c' depends on it.
16193         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
16194         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
16195         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
16197 2013-11-18  Jim Meyering  <meyering@fb.com>
16198         and Paul Eggert  <eggert@cs.ucla.edu>
16200         quotearg: don't attempt to store 1 << 31 into an "int"
16201         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
16202         gcc's new -fsanitize=undefined and running its tests triggered some
16203         new test failures due to undefined behavior, all with this diagnostic:
16204           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
16205             cannot be represented in type int
16206         Rather than shifting "1" left to form a mask, shift the bits right and
16207         simply use "1" as the mask.
16209 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16211         error: depend on stdio
16212         Problem reported by Nikos Mavrogiannopoulos in
16213         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
16214         * modules/error (Depends-on): Add stdio.
16216 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
16218         * doc/relocatable-maint.texi (Supporting Relocation): Improve
16219         wording.
16220         Reported by Reuben Thomas <rrt@sc3d.org>.
16222 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16224         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
16225         New function and macro, to work around _DARWIN_C_SOURCE problem.
16226         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
16228 2013-11-11  Pádraig Brady  <P@draigBrady.com>
16230         base64: provide a fast path for encoding well sized buffers
16231         Avoid conditionals in the base64 encoding loop,
16232         which was seen to give 60% better throughput.
16233         * lib/base64.c (base64_encode_fast): A new function to be called
16234         when we don't want to NUL terminate, and we have enough space
16235         in the output to encode the given input.
16236         (base64_encode): Call the _fast() version when appropriate.
16237         Also remove a redundant mask with 0x3F on the first encoded byte.
16239 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16241         extern-inline: port better to OS X 10.9
16242         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
16243         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
16244         OS X 10.9, except for g++ where the bug is still present.
16245         See <http://trac.macports.org/ticket/41033>.
16247 2013-11-08  Eric Blake  <eblake@redhat.com>
16249         fpending: fix regression on DragonFly BSD
16250         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
16251         * lib/fpending.h (__fpending): Don't declare twice.
16252         Reported by GW in
16253         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
16255 2013-11-05  Jim Meyering  <meyering@fb.com>
16257         hash: relax license to LGPLv2+, for libguestfs
16258         * modules/hash (License): Change from GPL to LGPLv2+.
16260 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16262         intprops: port to Oracle Studio c99
16263         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
16264         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
16266 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16268         obstack: pacify HP C
16269         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
16270         warning "conversion from pointer to smaller integer" from HP
16271         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
16272         C89 or later nowadays, so cast to void instead of int.  Privately
16273         reported by H.Merijn Brand.  Also, change header to match glibc's,
16274         to make checking against glibc easier.
16276 2013-10-29  Jim Meyering  <meyering@fb.com>
16278         maint.mk: prefer gpgv2 over gpgv
16279         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
16280         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
16281         Reported by Gary Vaughan.
16283 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16285         isnan: port to VAX
16286         Reported by John Klos for NetBSD-5/VAX in
16287         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
16288         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
16289         (FUNC): Use it.
16291 2013-10-28  Jim Meyering  <meyering@fb.com>
16293         gnulib-tool: protect against CDPATH
16294         * gnulib-tool: Many "cd" built-in functions print a directory name
16295         to stdout when CDPATH is set, e.g.,
16296           $ bash -c 'CDPATH=/; cd tmp'
16297           /tmp
16298         Unset it, when possible.  Prompted by a comment from Bruce Korb.
16300         maint.mk: restore functionality removed by recent change...
16301         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
16302         the context of a shallow-cloned gnulib repository: "git describe"
16303         would fail in such a directory.  However, that change made it so
16304         the reported gnulib revision no longer includes the version number
16305         or a commit count, even when run from a full clone.
16306         * top/maint.mk (gnulib-version): Use the full "git describe"
16307         output when possible, e.g., the form above, rather than the
16308         abbreviated, no-tag, no-commit-count string, and fall back to
16309         using a 10-byte hash, rather than the default minimal-length
16310         hash prefix, since while the minimal-length one may be fine today,
16311         it is likely not to be unique for very long.
16313 2013-10-26  Jim Meyering  <meyering@fb.com>
16315         maint.mk: fix "release" target to build _version
16316         This fixes a bug in README-release whereby following the outlined
16317         steps, one would publish a tarball whose programs would report
16318         --version output not consistent with the package version number.
16319         This bug caused grep-2.15 to produce a grep program whose
16320         --version option made it print 2.14.56-1e3d rather than 2.15.
16321         * top/maint.mk (release): Making this target build "_version"
16322         ensures that the new version number is reflected in configure.
16324 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
16326         install-reloc: Support multi-binary installation.
16327         * build-aux/install-reloc: Support installing multiple programs in
16328         one invocation, as done by Automake starting with commit
16329         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
16330         Haible <bruno@clisp.org>, archived at
16331         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
16332         Reported by Sylvain <beuc@gnu.org>.
16334 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16336         selinux-h: Really build without selinux when library is missing.
16337         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
16338         continue without selinux, as already told in the warning message.
16340 2013-10-21  Jim Meyering  <meyering@fb.com>
16342         regex: also remove dependency on HAVE_WCSCOLL
16343         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
16345 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
16347         xfreopen: Fix typo. s/frepoen/freopen/
16348         * lib/xfreopen.c: Fix description.
16349         * modules/xfreopen: Likewise.
16351 2013-10-21  Jim Meyering  <meyering@fb.com>
16353         regex: don't depend on wcscoll
16354         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
16355         It is no longer used.
16357 2013-10-20  Jim Meyering  <meyering@fb.com>
16359         error: add the printf attribute to a static function
16360         * lib/error.c (error_tail): Add the printf attribute, to placate
16361         gcc's -Werror=suggest-attribute=format option.
16363 2013-09-30  Jim Meyering  <meyering@fb.com>
16365         fpending, obstack, strerror-override: use pure+const function attrs
16366         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
16367         * lib/obstack.c (_obstack_allocated_p): Likewise.
16368         * lib/obstack.h (_obstack_memory_used): Likewise.
16369         (_obstack_memory_used): Likewise.
16370         * lib/strerror-override.h (strerror_override): Declare with
16371         the "const" attribute.
16373 2013-10-18  Eric Blake  <eblake@redhat.com>
16375         extern-inline: make safe for -Wundef usage
16376         Reported by Vladimir 'phcoder' Serbinenko in
16377         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
16378         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
16380 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16382         mkfifo-tests, etc.: allow HP-UX 11.11 bug
16383         Problem reported by Daniel Richard G. in
16384         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
16385         * doc/posix-functions/mkfifo.texi (mkfifo):
16386         * doc/posix-functions/mkfifoat.texi (mkfifoat):
16387         * doc/posix-functions/mknod.texi (mknod):
16388         * doc/posix-functions/mknodat.texi (mknodat):
16389         Document the HP-UX 11.11 bug.
16390         * tests/test-mkfifo.h (test_mkfifo):
16391         Allow the HP-UX 11.11 bug.
16393 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16395         acl: allow cross-compilation to Gentoo
16396         Problem reported by Gabriel Marcano in
16397         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
16398         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
16399         test only whether it links.
16401 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16403         mgetgroups: remove dependency on realloc-gnu
16404         The dependency violates the comment in realloc-gnu, which
16405         says that tests can't depend on realloc-gnu; some tests depend
16406         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
16407         Problem reported by Daniel Richard G. in
16408         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
16409         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
16410         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
16411         not realloc-gnu.
16413 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16415         regex-tests: port to HP-UX 11.11
16416         Problem reported by Daniel Richard G. in
16417         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
16418         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
16420 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16422         verify: document some 'assume' pitfalls
16423         * doc/verify.texi (Compile-time Assertions):
16424         Mention that 'assume (E)' can sometimes slow things down.
16425         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
16427 2013-10-10  Eric Blake  <eblake@redhat.com>
16429         strtoumax: fix typo in previous commit.
16430         * modules/strtoumax (Depends-on): Fix typo.
16431         * modules/strtoimax (Depends-on): Likewise.
16433 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16435         strtoumax: port to Solaris 8
16436         This problem was introduced in the recent HP-UX patch.
16437         Reported by Tom G. Christensen in
16438         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
16439         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
16440         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
16442 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16444         strtoimax, strtoumax: port to HP-UX 11.11
16445         Problem reported by Daniel Richard G. in
16446         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
16447         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
16448         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
16449         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
16450         REPLACE_STRTOUMAX.
16451         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
16452         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
16453         Replace the function if defined as a macro but not as a function.
16454         * modules/inttypes-incomplete (inttypes.h): Substitute
16455         REPLACE_STRTOUMAX.
16456         * modules/strtoumax (configure.ac): Replace strtoumax if
16457         REPLACE_STRTOUMAX.
16459 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16461         strtoimax: port to HP-UX 11.11
16462         Problem reported by Daniel Richard G.
16463         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
16464         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
16465         they might clash with inttypes.h.
16467 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16469         New module 'count-trailing-zeros'.
16470         * MODULES.html.sh: Mention it.
16471         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
16472         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
16473         * modules/count-trailing-zeros-tests:
16474         * tests/test-count-trailing-zeros.c:
16475         New files.
16477         count-leading-zeros: port to MSC; support types wider than 64 bits
16478         The ideas behind the MSC port are stolen from Emacs.
16479         * lib/count-leading-zeros.h:
16480         Don't include verify.h: it's no longer needed, as types wider than
16481         64 bits are now supported.
16482         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
16483         performance with MSC.  All uses changed.  Do not assume that TYPE
16484         has at most 64 bits.
16485         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
16486         All uses changed.  Fold the subtraction from 31 into the table.
16488         count-one-bits: port to MSC; support types wider than 64 bits
16489         The ideas behind the MSC port are stolen from Emacs.
16490         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
16491         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
16492         Don't include verify.h: it's no longer needed, as types wider than
16493         64 bits are now supported.
16494         (COUNT_ONE_BITS_GENERIC): New macro.
16495         (popcount_supported) [_MSC_VER]: New inline function.
16496         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
16497         performance with MSC.  All uses changed.  Do not assume that TYPE
16498         has at most 64 bits.
16499         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
16501 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
16503         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
16504         * lib/mountlist.c (read_file_system_list): fix leak of directory
16505         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
16507 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16509         tests: improve diagnostic when an assertion fails
16510         * tests/macros.h (ASSERT): Report the assertion that failed.
16512 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16514         verify: new macro 'assume'
16515         This is taken from Emacs, and should be generally useful.
16516         * doc/verify.texi (assume): Document it.
16517         * lib/verify.h (assume): New macro.
16518         (__has_builtin): Expand to 0 if not defined.
16520 2013-09-26  Eric Blake  <eblake@redhat.com>
16522         dup2, dup3: work around another cygwin crasher
16523         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
16524         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
16525         * tests/test-dup2.c (main): Likewise.
16526         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
16527         * lib/dup3.c (dup3): Likewise.
16528         * doc/posix-functions/dup2.texi (dup2): Document it.
16529         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16531         getdtablesize: work around cygwin issue
16532         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
16533         * modules/getdtablesize (configure.ac): Build replacement.
16534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
16535         * modules/unistd (Makefile.am): Expose the witness.
16536         * lib/unistd.in.h (getdtablesize): Declare replacement.
16537         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
16538         * tests/test-getdtablesize.c (main): Test it.
16539         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
16541 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
16543         pmccabe2html: escaping of special characters
16544         Escape all '<', '>', and '&' in HTML output.
16545         * build-aux/pmccabe2html (html_fnc): Call gsub()
16546         instead of sub() to capture all '<', '>', and '&'.
16547         Neither of '<' and '>' is special in a regexp,
16548         so first arguments to gsub() are corrected. Also,
16549         in replacement strings, ampersand must be escaped.
16550         Finally, '&' must be handled first, then '<' and '>'.
16552 2013-09-24  Eric Blake  <eblake@redhat.com>
16554         manywarnings: enable nicer gcc warning messages
16555         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
16556         some -f options for optimal warnings.
16558 2013-09-21  Jim Meyering  <meyering@fb.com>
16560         timespec: use the new TIMESPEC_RESOLUTION in a few more places
16561         * lib/timespec-add.c (timespec_add): Also replace 999999999
16562         with TIMESPEC_RESOLUTION - 1.
16563         * lib/timespec-sub.c (timespec_sub): Likewise.
16565 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16567         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
16568         Problem reported by Dagobert Michelsen via Eric Blake in
16569         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
16570         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
16571         not AC_COMPILE_IFELSE.
16573 2013-09-23  Eric Blake  <eblake@redhat.com>
16575         configmake: support new --runstatedir option
16576         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
16577         even if autoconf was too old to provide the command line option.
16578         * modules/configmake (Makefile.am): Propagate it to .h file.
16580 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16582         ctype, string: depend on extern-inline
16583         This is needed to complete the recent OS X fixes.
16584         Also, fix related documentation as suggested by Eric Blake.
16585         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16586         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
16587         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
16588         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
16589         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
16590         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
16591         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
16592         * doc/posix-functions/toupper.texi:
16593         List the 'ctype' gnulib module.
16594         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
16595         * doc/posix-functions/strncpy.texi:
16596         List the 'string' gnulib module.
16597         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
16598         Add string.
16599         * modules/ctype, modules/string (Depends-on): Add extern-inline.
16601 2013-09-19  Pádraig Brady  <P@draigBrady.com>
16603         userspec: support optional parameters to parse_user_spec()
16604         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
16605         then avoid group processing and treat the full spec as a user.
16606         (parse_with_separator): Allow the USERNAME and GROUPNAME to
16607         be optional params (NULL), in which case they're ignored.
16609 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16611         timespec: new function make_timespec, and new constants
16612         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
16613         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
16614         (make_timespec): New function.
16615         * lib/dtotimespec.c (dtotimespec):
16616         * lib/timespec-add.c (timespec_add):
16617         * lib/timespec-sub.c (timespec_sub):
16618         * lib/utimens.c (validate_timespec):
16619         * lib/utimensat.c (rpl_utimensat):
16620         Use these new constants and functions.
16622         stdio: OS X port of putc_unlocked + extern inline
16623         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
16624         * doc/posix-functions/putc_unlocked.texi:
16625         * doc/posix-functions/putchar_unlocked.texi:
16626         Document this portability problem.
16628         signal: OS X port of sigaddset etc. + extern inline
16629         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
16630         (sigismember): #undef on problematic Apple platforms.
16631         * doc/posix-functions/sigaddset.texi:
16632         * doc/posix-functions/sigdelset.texi:
16633         * doc/posix-functions/sigemptyset.texi:
16634         * doc/posix-functions/sigfillset.texi:
16635         * doc/posix-functions/sigismember.texi:
16636         Document this portability problem.
16638         extern-inline: do not always suppress extern inline on OS X
16639         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
16640         extern inline on Apple only if the particular compile-time
16641         configuration is known to have the problem.
16642         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
16643         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
16644         other Gnulib modules.
16646         extern-inline: document fixes for ctype and wctype macros
16647         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16648         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
16649         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
16650         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
16651         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
16652         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
16653         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
16654         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
16655         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
16656         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
16657         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
16658         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
16659         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
16660         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
16661         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
16662         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
16663         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
16664         * doc/posix-functions/strncpy.texi:
16665         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
16666         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
16667         Document that Gnulib fixes portability problems with these
16668         functions on OS X 10.8 and earlier when called from plain inline
16669         or extern inline functions.
16671 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
16673         fflush, freadahead, fseeko: Fix for Android
16674         Suggested by Bruno Haible in:
16675         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
16676         * lib/stdio-impl.h: Use local __sfileext definition.
16678 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
16680         pmccabe2html: Portability to other awk versions.
16681         The functions systime() and strftime() are available
16682         in Gawk only.  Properly close two HTML-tags 'style'
16683         and 'span'.
16684         * build-aux/pmccabe2html (BEGIN): Store timing
16685         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
16686         systime() in HTML_COMMENT.
16687         (html_header): Correctly close tag 'style'.
16688         (END): Replace strftime() by CHRONOS_TIME.  Close
16689         tag 'span' correctly, not as 'div'.
16691 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16693         getgroups: statement without effect
16694         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
16695         Change equality conditional to expected assignment.
16697 2013-09-09  Eric Blake  <eblake@redhat.com>
16699         glob: fix compilation
16700         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
16702 2013-09-07  Eric Blake  <eblake@redhat.com>
16704         glob: fix build for platforms without __THROW
16705         * lib/glob.in.h (__THROW): Add definition again.
16707 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
16709         regex-quote: fix buffer access out of bounds
16710         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
16711         * lib/regex-quote.c (regex_quote_spec_pcre):
16712         Fix typo that resulted in an out-of-bounds read.
16714 2013-09-04  Eric Blake  <eblake@redhat.com>
16716         glob: avoid -Wattribute warnings on glibc
16717         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
16718         __THROWNL, not __THROW, on static functions.
16719         * lib/glob.in.h (__THROW): Adjust...
16720         (__THROWNL): ...accordingly.
16722 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16724         headers: check that _GL_INLINE_HEADER_BEGIN is defined
16725         Suggested by Bruce Korb in:
16726         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
16727         * doc/extern-inline.texi (extern inline):
16728         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
16729         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
16730         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
16731         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
16732         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
16733         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
16734         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
16735         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
16736         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
16737         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
16738         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
16739         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
16740         * lib/xtime.h:
16741         Check that _GL_INLINE_HEADER_BEGIN is defined.
16743 2013-08-29  Pádraig Brady  <P@draigBrady.com>
16745         bootstrap: remove the --version requirement from ancillary tools
16746         * build-aux/bootstrap (check_exists): A new refactored function to
16747         determine if a command exists.
16748         (find_tool): Use the new function which does not require the
16749         --version option to be supported.
16750         (check_versions): Use the new function.
16752 2013-08-26  Simon Josefsson  <simon@josefsson.org>
16754         gc: support HMAC-SHA256 and HMAC-SHA512.
16755         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
16756         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
16757         functions.
16758         (gc_hmac_md5): Use symbolic constant.
16759         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
16760         (gc_hmac_sha256, gc_hmac_sha512): New functions.
16761         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
16762         * m4/sha256.m4: Protect against empty expansion.
16763         * m4/sha512.m4: Likewise.
16764         * lib/hmac-sha256.c: New file.
16765         * lib/hmac-sha512.c: Likewise.
16766         * m4/gc-hmac-sha256.m4: Likewise.
16767         * m4/gc-hmac-sha512.m4: Likewise.
16768         * m4/gc-sha256.m4: Likewise.
16769         * m4/gc-sha512.m4: Likewise.
16770         * modules/crypto/gc-hmac-sha256: Likewise.
16771         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16772         * modules/crypto/gc-hmac-sha512: Likewise.
16773         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16774         * modules/crypto/hmac-sha256: Likewise.
16775         * modules/crypto/hmac-sha256-tests: Likewise.
16776         * modules/crypto/hmac-sha512: Likewise.
16777         * modules/crypto/hmac-sha512-tests: Likewise.
16778         * tests/test-gc-hmac-sha256.c: Likewise.
16779         * tests/test-gc-hmac-sha512.c: Likewise
16780         * tests/test-hmac-sha256.c: Likewise.
16781         * tests/test-hmac-sha512.c: Likewise
16783 2013-08-24  Daiki Ueno  <ueno@gnu.org>
16785         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
16786         of AC_CHECK_DECLS.
16788 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16790         selinux-at: omit unnecessary include
16791         * lib/selinux-at.c: Don't include dosname.h; not needed, since
16792         this source file doesn't use its macros, and subsidiary files that
16793         use the macros already include it.
16795 2013-08-21  Eric Blake  <eblake@redhat.com>
16797         d-ino: avoid false negative on symlink
16798         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
16799         Reported by Stephane Chazelas.
16801 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
16803         bootstrap: port to OpenBSD sed
16804         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
16805         does not interpret `-' as a file argument to mean stdin.
16807 2013-08-15  Eric Blake  <eblake@redhat.com>
16809         warnings: minor optimization
16810         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
16812         warnings: check -Wfoo rather than -Wno-foo
16813         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
16814         -Wno-, test if the compiler recognizes the positive form instead.
16816 2013-08-15  Karl Berry  <karl@gnu.org>
16818         * config/srclist-update: add option "doclicense" to placate
16819         pulling *.texi files from Emacs.  Write terse usage
16820         documentation at the top.
16822 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16824         xvasprintf-tests: port to GCC with hardening flags
16825         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
16826         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
16827         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
16829 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16831         fpending: port to recent Cygwin change to stdio_ext.h
16832         Reported by LRN in
16833         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
16834         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
16835         just declare __fpending unless it's a macro.
16836         A duplicate decl shouldn't hurt.
16837         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
16838         call compiles and links, instead of separately checking for
16839         decl and lib function.
16840         * modules/fpending (configure-ac):
16841         Adjust to fpending.m4's renaming of shell variable.
16843 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16845         sys_time: port to OpenBSD
16846         * lib/sys_time.in.h: Simply delegate to the system's header
16847         in the BSDish cases as well.  Problem reported by Mike Miller in
16848         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
16849         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16850         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16851         wider than time_t.
16853 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16855         bootstrap: support checksum utils having -c but not --status
16856         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16857         Add sha1 to the list of supported checksum utils since it's now
16858         supported through adjustments below.
16859         (update_po_files): Remove the use of --status
16860         in a way that will suppress all error messages, but since this is
16861         only used to minimize updates, it shouldn't cause an issue.
16862         Exit early if there is a problem updating the po file checksums.
16863         (find_tool): Remove the check for --version support as this
16864         is optional as per commit 86186b17.  Don't even check for the
16865         presence of the command as if that is needed, it's supported
16866         through configuring prerequisites in bootstrap.conf.
16867         Prompt that when a tool isn't found, one can define an environment
16868         variable to add to the hardcoded search list.
16870 2013-08-05  Jim Meyering  <meyering@fb.com>
16872         regex: port to non-glibc/lock-using systems
16873         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16874         system with GNULIB_LOCK would fail due to absence of the
16875         included "glthread/lock.h".  This would affect any package
16876         for which the "lock" module is used only by the regex module,
16877         and not explicitly used.
16878         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16879         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16880         Add a dependency on the "lock" module.
16882 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16884         localecharset: make locale_charset thread-safe on Mac OS X
16885         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16886         instead of MB_CUR_MAX.
16888 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16890         gettext: update to version 0.18.3
16891         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16892         require AC_PROG_SED to allow user to specify custom sed command when
16893         generating en@quot PO file.
16895 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16897         bootstrap: use correct source when copying build-aux files
16898         * build-aux/bootstrap (gnulib_extra_files): This variable is
16899         relative to upstream gnulib layout, not downstream.
16901 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16903         tmpdir: fix bug in VMS port
16904         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16905         See Steven M. Schweda in
16906         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16908 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16910         tmpdir: port to VMS, to // != /, and to long dirs
16911         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16912         __secure_getenv, so that we're more like the glibc version.
16913         All uses changed.
16914         (path_search): Don't put slash after directory if __VMS.
16915         Problem reported by Steven M. Schweda in
16916         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16917         Simplify code to add slash; no need for a loop.
16918         Do not remove trailing slash from "//".
16919         Do not assume dlen <= INT_MAX.
16921 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16923         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16924         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16925         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16926         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16928         accept4, dup3, pipe2: port to Cygwin
16929         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16930         * lib/accept4.c (accept4) [O_BINARY]:
16931         * lib/dup3.c (dup3) [O_BINARY]:
16932         * lib/pipe2.c (pipe2) [O_BINARY]:
16933         Use set_binary_mode, not setmode.
16934         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16935         * modules/binary-io (Depends-on): Remove module indicator.
16936         These last two bits undo the previous change to pipe2 and binary-io.
16938 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16940         mountlist: add support for deallocating returned list entries
16941         * lib/mountlist.c (free_mount_entry): A new exported function
16942         to deallocate a mount list entry.
16943         (read_file_system_list): Refactor to use the new deallocation function.
16944         Suggested by Anton Ovchinnikov.
16946 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16948         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16949         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16950         * lib/stdalign.in.h (_Alignas, _Alignof):
16951         Port to FreeBSD 9.1, and to C11 and C++11.
16952         (_Alignas): Also support ICC.
16953         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16954         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16956 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16958         fnmatch: don't goto over declaration
16959         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16960         undefined behavior for goto over a declaration.
16961         Problem reported by Charlie Brown in
16962         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16964         pipe2: decouple from binary-io a bit
16965         This is for Emacs, which needs pipe2 but not binary-io.
16966         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16967         * modules/binary-io (Depends-on): Add module indicator.
16969 2013-07-03  Eric Blake  <eblake@redhat.com>
16971         mgetgroups: relax license to LGPLv2+
16972         * modules/getugroups (License): Change from GPLv3+.
16973         * modules/mgetgroups (License): Likewise.
16974         * modules/getgroups (License): Change from LGPLv3+.
16976         xalloc-oversized: relax license to LGPLv2+
16977         * modules/xalloc-oversized (License): Change from GPLv3+.
16979         nproc: relax license to LGPLv2+
16980         * modules/nproc (License): Change from LGPLv3+.
16982         bootstrap: honor --no-git
16983         * build-aux/bootstrap: Don't even try to use git when user is
16984         pointing to a static checkout.
16986 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16988         ignore-value: port to gcc -pedantic
16989         * lib/ignore-value.h (ignore_value):
16990         Port to gcc -pedantic, by using __extension__.
16991         Reindent as per usual gnulib style nowadays.
16992         Simplify GCC version check.
16994 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16996         extern-inline: port to gcc -std=c89
16997         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16998         Do not use __gnu_inline__ if pedantic and pre-C99.
17000 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
17002         doc: document extern-inline
17003         * doc/extern-inline.texi: New file.
17004         * doc/gnulib.texi (alloca-opt): Include it.
17005         * m4/extern-inline.m4: Move some comments to documentation,
17006         and others closer to what they describe.
17008         doc: chatter less
17009         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
17010         (updated-stamp): Use it.  This causes 'make' to output just
17011         one file name rather than zillions.
17013         fflush, fseeko: port to musl cross-compiles
17014         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
17015         on some implementation that (1) is not known to be buggy,
17016         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
17017         cross-compiled to so we can't easily check for lack of
17018         conformance.  This is for cross-compiling to musl.
17019         Reported by Rich Felker in
17020         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
17021         * m4/fclose.m4 (gl_FUNC_FCLOSE):
17022         * m4/fflush.m4 (gl_FUNC_FFLUSH):
17023         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
17024         Adjust to above change.
17025         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
17026         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
17027         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
17028         known not to work, or unknown.
17030 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17032         msvc-inval: port to mingw-w64
17033         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
17034         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
17035         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
17037 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
17039         getcwd-lgpl: port to Tru64
17040         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
17041         Problem reported by Steven M. Schweda in
17042         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
17044         tests: port large-fd POSIX spawn tests to OS X
17045         Problem reported by Daiki Ueno in
17046         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
17047         * tests/test-posix_spawn_file_actions_addclose.c:
17048         * tests/test-posix_spawn_file_actions_adddup2.c:
17049         * tests/test-posix_spawn_file_actions_addopen.c:
17050         Include <limits.h>, for OPEN_MAX, if available.
17051         (big_fd): New static function.
17052         (main): Use it.
17054 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
17056         tests/nap.h: use an adaptive delay to avoid ctime update issues
17057         The recent change in nap.h (5191133e) decreased the probability of lost
17058         races to about a third, however such problems could still be observed
17059         in virtual machines and openSUSE's OBS.
17060         Before, nap() detected the needed time once empirically and then used
17061         that delay (together with a small correction multiplier) in further
17062         calls.  This problem has been reported and discussed several times,
17063         including guesses about possible kernel issues:
17064         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
17065         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
17066         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
17067         http://bugs.gnu.org/12820
17068         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
17069         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
17070         Now, nap() avoids the race alltogether by verifying on a reference
17071         file whether a timestamp difference has happened.
17072         * tests/nap.h (nap_fd): Define file descriptor variable for the
17073         witness file.
17074         (nap_works): Change return value to bool.  Change passing
17075         the old file's status by value instead of by reference as this function
17076         does no longer update that timestamp; rename the function argument from
17077         st to old_st.  Remove the local variables cdiff and mdiff because that
17078         function now returns true/false instead of the precise delay.
17079         (guess_delay): Remove function.
17080         (clear_tmp_file): Add new function to close and unlink the witness file.
17081         (nap): Instead of re-using the delay which has been calculated during
17082         the first call, avoid the race by actually verifying that a timestamp
17083         difference can be observed on the current file system.  Use an adaptive
17084         approach for the delay to minimize execution time.  Assert that the
17085         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
17086         = 2^31 - 1 = 2.1s.
17087         Use atexit to call clear_tmp_file when the process terminates.
17089 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17091         sig2str: port to C++
17092         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
17093         Reported by Daniel J Sebald in
17094         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
17096 2013-05-30  Eric Blake  <eblake@redhat.com>
17098         docs: mention cygwin shortcoming in <sys/un.h>
17099         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
17101         vasnprintf: silence mingw compiler warning
17102         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
17104 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17106         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
17107         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
17108         This fixes a porting bug I recently reintroduced in regex, and
17109         some other instances that I discovered while testing the fix.
17110         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
17111         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
17112         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
17113         with an empty argument if this is a pedantic pre-C99 GCC.
17114         * lib/verify.h: Do not use _Static_assert if this is a pedantic
17115         pre-C11 GCC.
17117         regex: adapt to locking regime instead of depending on pthread
17118         Instead of depending on pthread, adapt to whatever thread
17119         modules are in use.  Problem reported by Ludovic Courtès in
17120         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
17121         and by Mats Erik Andersson in
17122         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
17123         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
17124         Support either the 'lock' module, or the 'pthread' module, or
17125         no module.
17126         (lock_lock, lock_unlock): New macros.
17127         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
17128         * modules/lock, modules/pthread (configure.ac): Add module indicator.
17129         * modules/regex (Depends-on): Remove pthread.
17131 2013-05-22  Eric Blake  <eblake@redhat.com>
17133         getgroups: document portability issues
17134         * doc/glibc-functions/initgroups.texi (initgroups): Mention
17135         multithread safety.
17136         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
17137         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
17138         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
17139         getugroups.
17140         * doc/posix-functions/getgroups.texi (getgroups): Mention
17141         multithread safety and mgetgroups.
17143 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
17145         test-lchown, test-chown: also skip test if chown fails with EPERM
17146         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
17147         skip this test, to handle FAT file systems.
17148         * tests/test-chown.h (test_chown): Likewise.
17150 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17152         regex: fix dfa race in multithreaded uses
17153         Problem reported by Ludovic Courtès in
17154         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
17155         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
17156         New macros.  All uses of __libc_lock_define, __libc_lock_init
17157         changed to use the first two of these.
17158         (__libc_lock_lock, __libc_lock_unlock): New macros, for
17159         non-glibc platforms.
17160         (struct re_dfa_t): Define the lock unconditionally.
17161         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
17162         '#ifdef _LIBC"s.
17163         * modules/regex (Depends-on): Add pthread, if we use the
17164         included regex.
17166         * lib/regcomp.c: Do actions that are not needed for glibc,
17167         but may be needed elsewhere.
17168         (regfree, re_compile_internal): Destroy the lock.
17169         (re_compile_internal): Check for lock-initialization failure.
17171         malloca: port to compilers that reject size-zero arrays
17172         This fixes a bug introduced in my previous patch.
17173         * lib/malloca.c (struct preliminary_header): Use an int
17174         rather than a character array of size int; that's simpler.
17175         (struct header): Remove, replacing with ...
17176         (union header): New type.  This avoids the need for declaring a
17177         character array of size zero, which is not allowed on some platforms.
17178         All uses changed.
17180 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17182         parse-datetime, tests: don't use "string" + int
17183         Recent versions of 'clang' complain about C source code that
17184         uses expressions of the form '"string literal" + integer',
17185         I guess on the theory that it's confusing for readers who are
17186         used to C++.  On those grounds I suppose it's OK to make this
17187         minor style change.
17188         * lib/parse-datetime.y (parse_datetime):
17189         * tests/test-fchdir.c (main):
17190         * tests/test-snprintf-posix.h (test_function):
17191         * tests/test-snprintf.c (main):
17192         * tests/test-vasnprintf-posix.c (test_function):
17193         * tests/test-vasnprintf.c (test_function):
17194         * tests/test-vsnprintf.c (main):
17195         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
17196         Rewrite '"str" + E' to '&"str"[E]'.
17198 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17200         argmatch: port to C++
17201         * lib/argmatch.h [__cplusplus]: Add extern "C".
17203         argp: typo fix
17204         * lib/argp-help.c: Typo in comment.
17206 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17208         manywarnings: update for GCC 4.8.0
17209         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17210         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
17211         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
17212         -Wmissing-noreturn, as they are duplicates of other warnings.
17213         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
17214         was documented to be flaky in earlier versions of GCC.
17216         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
17217         * tests/test-spawn.c (main):
17218         * tests/test-sys_socket.c (main):
17219         * tests/test-sys_wait.c (main):
17220         Don't have a switch value that isn't covered by a case.
17222         getaddrinfo-tests: port --enable-gcc-warnings to clang
17223         * tests/test-getaddrinfo.c (simple):
17224         Avoid casts from looser to stricter-aligned pointers.
17226         thread: port --enable-gcc-warnings to clang
17227         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
17228         Include <signal.h>, to pacify a warning about pthread_sigmask.
17230         stdio: use __REDIRECT for fwrite, fwrite_unlocked
17231         * lib/stdio.in.h (fwrite):
17232         When working around bug 11959, use __REDIRECT rather than '#define
17233         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
17234         fix the -Wunused-value issue with clang, and it works with GCC too.
17235         Problem with targeting reported by Eric Blake in
17236         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
17237         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
17238         debugging the fwrite issue.
17240         stdio: port --enable-gcc-warnings to clang
17241         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
17242         since the GCC workaround for fwrite does not pacify clang.
17244         sig2str: port --enable-gcc-warnings to clang
17245         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
17247         obstack: port --enable-gcc-warnings to clang
17248         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
17249         Avoid casts from looser to stricter-aligned pointers.
17251         memchr2: port --enable-gcc-warnings to clang
17252         * lib/memchr2.c (memchr2):
17253         Avoid casts from looser to stricter-aligned pointers.
17255         mbsstr: port --enable-gcc-warnings to clang
17256         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
17257         Avoid casts from looser to stricter-aligned pointers.
17259         malloca: port --enable-gcc-warnings to clang
17260         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
17261         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
17263         inttostr: port --enable-gcc-warnings to clang
17264         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
17266         warnings: port to clang
17267         Problem reported by Daniel P. Berrange via Eric Blake in
17268         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
17269         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
17270         (gl_WARN_ADD): Use it.
17272 2013-05-11  Jim Meyering  <meyering@fb.com>
17274         quotearg: do not read beyond end of buffer
17275         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
17276         end of an ARG for which no length was specified.  With an N-byte
17277         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
17278         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
17279         via coreutils' misc/sort-debug-keys.sh test and detected by running
17280         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
17281         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
17282         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
17283         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
17284         characters correctly."
17286 2013-05-11  Daiki Ueno  <ueno@gnu.org>
17288         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
17289         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
17290         compilation target is Mac OS X 10.6.
17291         Problem reported by parafin and Andoni Morales in
17292         <http://savannah.gnu.org/bugs/?37844> and
17293         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
17295 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17297         mkdir-p: remove assumptions about umask and mode
17298         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
17299         umask is 0, or that MODE is a subset of MODE_BITS.
17301 2013-05-10  Eric Blake  <eblake@redhat.com>
17303         maint.mk: catch more abuse of HAVE_DECL in syntax-check
17304         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
17306 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
17308         deps: require Automake >= 1.9.6 in generated Makefile fragments
17310         That is the same minimal version required in the DEPENDENCIES file.
17311         Moreover, the old code generated a requirement of Automake >= 1.5,
17312         and that is an insanely outdated version.
17314         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
17315         * tests/havelib/rpathlx/Makefile.am: Likewise.
17316         * tests/havelib/rpathly/Makefile.am: Likewise.
17317         * tests/havelib/rpathlyx/Makefile.am: Likewise.
17318         * tests/havelib/rpathlz/Makefile.am: Likewise.
17319         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
17320         * tests/havelib/rpathx/Makefile.am: Likewise.
17321         * tests/havelib/rpathy/Makefile.am: Likewise.
17322         * tests/havelib/rpathz/Makefile.am: Likewise.
17324 2013-05-08  Eric Blake  <eblake@redhat.com>
17326         bootstrap: AC_INIT may have more than four parameters
17327         * build-aux/bootstrap (extract_package_name): Correctly extract
17328         non-empty tarname field.  Avoid range in regex.
17329         Based on a report by Sami Kerola <kerolasa@iki.fi>.
17331 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17333         qacl: port to MS-Windows port of GNU Emacs
17334         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
17335         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
17336         port of GNU Emacs.  Problem reported by Eli Zaretskii in
17337         <http://bugs.gnu.org/14295#14>.
17339 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
17341         acl: include quote.h
17342         * lib/copy-acl.c: Include quote.h.
17343         * lib/set-acl.c: Likewise.
17345 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
17347         fchownat, renameat, unlinkat: update statat dependencies
17348         These modules use statat and lstatat, not fstatat; so depend on
17349         the statat module, which was split out recently from fstatat.
17350         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
17351         * modules/renameat: Likewise.  Also delete fstat.
17352         URL: http://bugs.gentoo.org/468790
17354 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
17356         Assume gnulib is checked out from Git, not CVS
17358         In fact, access to the gnulib repository through CVS has been
17359         disabled, or more precisely, got broken and was never restored; see:
17360         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
17362         Note that support for CVS is not removed completely and unthinkingly
17363         by this change: only support for CVS checkouts of gnulib itself is
17364         removed.  For example, the 'bootstrap' script still cater to .cvsingore
17365         files and CVS directories, for the benefit of those poor gnulib clients
17366         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
17368         * gnulib-tool: Simplify accordingly.
17369         * posix-modules: Likewise.
17370         * MODULES.html.sh: Likewise.
17371         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
17372         repository.
17373         * doc/gnulib-intro.texi: Likewise.
17374         * doc/gnulib-readme.texi: Likewise.
17375         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
17376         sample '.gitignore' file rather than a sample '.cvsignore'.
17377         * NEWS: Update.
17378         * m4/extensions.m4: While at it, remove a comment mistakenly referring
17379         to "CVS Autoconf" rather than "git Autoconf".
17381 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
17383         utimensat-tests, etc.: try to fix some races
17384         Problem reported by Bernhard Voelker in
17385         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
17386         I don't know whether this patch fixes that race condition, but it
17387         fixes *some* race conditions, so it should be a win.
17388         * modules/chown-tests (Depends-on):
17389         * modules/fchownat-tests (Depends-on):
17390         * modules/fdutimensat-tests (Depends-on):
17391         * modules/futimens-tests (Depends-on):
17392         * modules/lchown-tests (Depends-on):
17393         * modules/stat-time-tests (Depends-on):
17394         * modules/utimens-tests (Depends-on):
17395         * modules/utimensat-tests (Depends-on):
17396         Depend on nanosleep, not usleep.
17397         * modules/chown-tests (test_chown_LDADD):
17398         * modules/lchown-tests (test_lchown_LDADD):
17399         * modules/stat-time-tests (test_stat_time_LDADD):
17400         New macro.
17401         * modules/fchownat-tests (test_fchownat_LDADD):
17402         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
17403         * modules/futimens-tests (test_futimens_LDADD):
17404         * modules/utimens-tests (test_utimens_LDADD):
17405         * modules/utimensat-tests (test_utimensat_LDADD):
17406         Add $(LIB_NANOSLEEP).
17407         * modules/stat-time-tests (Files): Add tests/nap.h.
17408         * tests/nap.h: Include <limits.h>, for INT_MAX.
17409         (lt_mtime): Remove.
17410         (diff_timespec): New function.
17411         (get_stat): Rename from get_mtime.  All callers changed.
17412         (nap_works): Determine the needed delay by inspecting the
17413         file system's timestamp jumps; this should be more reliable.
17414         Look at both mtime and ctime, and take the maximum of the two jumps.
17415         (nap_works, guess_delay):
17416         Return a nanosecond count, not a microsecond count.
17417         All callers changed.
17418         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
17419         failure.
17420         (nap): Multiply the guess by 1.125, to accommodate the case where
17421         the file system's clock is a bit slower than nanosleep's clock.
17422         * tests/test-stat-time.c (BASE): New macro.
17423         Include nap.h.
17424         (nap): Remove; nap.h now defines this.  This removes a duplicate
17425         implementation of 'nap'.
17427         utimens, utimensat: work around Solaris UTIME_OMIT bug
17428         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
17429         Linux kernel 2.6.32 does.  Work around it in the same way.
17430         * doc/posix-functions/futimens.texi (futimens):
17431         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
17432         * lib/utimens.c (fdutimens, lutimens):
17433         * lib/utimensat.c (rpl_utimensat): Work around the bug.
17435         gettext: now it's your responsibility to add -I$(top_builddir)/intl
17436         Formerly, it was your responsibility to do this for all Makefile.ams
17437         other than Gnulib's.  Now it's your responsibility to do it for
17438         Gnulib's Makefile.am, too.
17439         * NEWS: Document this.
17440         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
17442         acl: include errno.h to get errno
17443         Reported by Daiki Ueno in
17444         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
17445         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
17447 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17449         tests: don't assume getdtablesize () <= 10000000
17450         * modules/cloexec-tests:
17451         * modules/dup2-tests:
17452         * modules/dup3-tests:
17453         * modules/nonblocking-tests:
17454         * modules/posix_spawn_file_actions_addclose-tests:
17455         * modules/posix_spawn_file_actions_adddup2-tests:
17456         * modules/posix_spawn_file_actions_addopen-tests:
17457         * modules/unistd-safer-tests:
17458         Depend on the getdtablesize module.
17459         * tests/test-cloexec.c:
17460         * tests/test-dup-safer.c:
17461         * tests/test-dup2.c:
17462         * tests/test-dup3.c:
17463         * tests/test-fcntl.c:
17464         * tests/test-nonblocking.c:
17465         * tests/test-posix_spawn_file_actions_addclose.c:
17466         * tests/test-posix_spawn_file_actions_adddup2.c:
17467         * tests/test-posix_spawn_file_actions_addopen.c:
17468         Don't assume getdtablesize () <= 10000000.
17470 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
17472         extern-inline: work around bug in Sun c99
17473         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17474         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
17476 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17478         qacl: new module, broken out from the acl module
17479         This is for GNU Emacs, which wants the acl functions but does
17480         not want 'error' invoked when they fail.
17481         * lib/acl-internal.h: Do not include error.h, quote.h.
17482         (ENOSYS, ENOTSUP): Remove; no longer needed.
17483         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
17484         * lib/acl.h: Include <stdbool.h>.
17485         (acl_errno_valid): New function.
17486         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
17487         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
17488         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
17489         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
17490         (ACL_INTERNAL_INLINE): Remove; no longer needed.
17491         * lib/file-has-acl.c (file_has_acl):
17492         * lib/qcopy-acl.c (qcopy_acl):
17493         * lib/qset-acl.c (qset_acl):
17494         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
17495         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
17496         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
17497         lib/file-has-acl.c, m4/acl.m4 to qacl module.
17498         Add lib/set-acl.c.
17499         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
17500         Add qacl.
17501         (configure.ac): Move gl_FUNC_ACL to qacl module.
17502         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
17503         Rename set-mode-acl.c to set-acl.c.
17504         * lib/acl-errno-valid.c: New file.
17505         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
17506         copy_acl function remains in copy-acl.c.
17507         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
17508         (_): Remove; not needed.
17509         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
17510         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
17511         * modules/qacl: New file, moved from the old modules/acl.
17512         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
17513         Remove set-mode-acl.c, copy-acl.c.
17514         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
17516         alignof, intprops, malloca: port better to IBM's C compiler
17517         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
17518         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
17519         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
17521 2013-04-25  Daiki Ueno  <ueno@gnu.org>
17523         wctype-h: fix gettext link error on mingw
17524         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
17525         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
17526         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
17527         rpl_towupper and rpl_towupper.
17529 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
17531         regex-tests, regex: allow glibc re_search behavior
17532         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
17533         re_search input data to make the multi-character collating element
17534         in it clearly visible, and treat re_search return code 0 as valid.
17535         * m4/regex.m4 (gl_REGEX): Likewise.
17537 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17539         stdalign: doc fix
17540         * doc/posix-headers/stdalign.texi (stdalign.h):
17541         Gnulib doesn't support '_Alignof expr'.
17543 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
17545         stdalign: port to stricter ISO C11
17546         ISO C11 says that _Alignof's operand must be a parenthesized type.
17547         Problem reported by Eli Zaretskii in
17548         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
17549         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
17550         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
17552 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17554         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
17555         Problem reported by Marco Atzeri in
17556         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
17557         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
17558         Simply delegate to the system <sys/select.h> in this case too.
17559         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
17560         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
17561         be needed on Solaris either.
17562         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
17563         Simply delegate to the system <sys/time.h> in this case.
17565 2013-03-19  Karl Berry  <karl@gnu.org>
17567         * build-aux/gnupload: check for erroneous (with gnupload) use of
17568         ftp-upload.gnu.org, tweak help.
17570 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17572         copy-file, rpmatch: fix problems found by cppcheck
17573         Reported by Arno Onken in
17574         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
17575         * lib/rpmatch.c (try): Fix memory leak.
17576         * lib/copy-file.c: Include "ignore-value.h".
17577         (qcopy_file_preserving): Ignore chown value.
17578         * modules/copy-file (Depends-on): Add ignore-value.
17580 2013-01-27  Jim Meyering  <jim@meyering.net>
17582         prefix-gnulib-mk: give better diagnostics
17583         * build-aux/prefix-gnulib-mk: Don't just "die".
17584         Give better diagnostics upon failure.
17586 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17588         putenv: port to Solaris 10
17589         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
17590         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
17591         is not what is wanted here.
17592         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
17593         declaration, not for its existence.
17595 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
17597         mktime: fix configure typo
17598         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
17600 2013-03-12  Eric Blake  <eblake@redhat.com>
17602         regex-tests: skip UTF-8 test on mingw
17603         * modules/regex-tests (Depends-on): Add localcharset.
17604         * tests/test-regex.c (main): Use it to skip test on mingw.
17606 2013-03-11  Eric Blake  <eblake@redhat.com>
17608         tests: make it easier to bypass alarm time in debugger
17609         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
17610         * tests/test-memmem.c (main): Likewise.
17611         * tests/test-passfd.c (main): Likewise.
17612         * tests/test-ptsname.c (main): Likewise.
17613         * tests/test-ptsname_r.c (main): Likewise.
17614         * tests/test-strcasestr.c (main): Likewise.
17615         * tests/test-strstr.c (main): Likewise.
17617         regex: port to mingw's recent addition of undeclared alarm
17618         * doc/posix-functions/alarm.texi (alarm): Document that alarm
17619         exists but still doesn't work in newer mingw.
17620         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
17621         not existence.  Ensure SIGALRM is not trapped.
17622         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
17623         * m4/regex.m4 (gl_REGEX): Likewise.
17624         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
17625         * tests/test-regex.c (main): Use correct probe for alarm.
17627         putenv: avoid compilation warning on mingw
17628         * lib/putenv.c (_unsetenv): Protect variable declaration.
17629         (putenv): Fix indentation.
17631 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
17633         unistd: don't prevent Tru64 Unix from using gnulib strtod.
17634         * lib/unistd.in.h: be careful not to include un-needed system
17635         stdlib.h from here, because that prevents gnulib stdlib.h from
17636         defining rpl_strtod correctly.
17638 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
17640         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
17641         changesets, but for the 'precision 0' test.
17642         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17643         round-to-even, since POSIX says rounding is implementation-defined
17644         and OS X 10.8.2 rounds 1.51 to 1 here.
17646         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
17647         changeset.
17648         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17649         round-to-even, since POSIX says rounding is implementation-defined
17650         and OS X 10.8.2 rounds 1.5 to 1 here.
17652 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17654         vasnprintf-posix-tests: allow rounding 1.5 to 1
17655         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
17656         round-to-even, since POSIX says rounding is implementation-defined
17657         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
17658         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
17660         bootstrap: port to FreeBSD
17661         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
17662         that treat '--' differently.  Reported by Mats Erik Andersson in
17663         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
17665 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
17667         regex: rename remaining __attribute calls to __attribute__.
17668         2012-02-25 changed definition of __attribute, but left some uses
17669         unchanged, preventing compilation of regex module on most non-gcc
17670         environments.
17671         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
17672         (lookup_collation_sequence_value, build_range_exp)
17673         (build_collating_symbol): Set attributes with newly renamed
17674         __attribute__ decorator.
17675         * lib/regex_internal.c (re_string_peek_byte_case)
17676         (re_node_set_compare, re_node_set_contains): Likewise.
17677         * lib/regexec.c (acquire_init_state_context): Likewise.
17679 2013-03-06  Bruno Haible  <bruno@clisp.org>
17681         execute: Revert last change, but use a different condition.
17682         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
17683         on Windows.
17685 2013-03-05  Eric Blake  <eblake@redhat.com>
17687         execute: drop dead code
17688         * lib/execute.c (nonintr_close, nonintr_open): Delete.
17690 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
17692         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
17693         * m4/non-recursive-gnulib-prefix-hack.m4
17694         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
17695         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
17696         <http://bugs.gnu.org/10305#237>.
17698 2013-03-04  Eric Blake  <eblake@redhat.com>
17700         test-getsockopt: avoid compiler warning
17701         * tests/test-getsockopt.c (includes): Ensure close is declared.
17703 2013-03-02  Bruno Haible  <bruno@clisp.org>
17705         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
17706         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
17708 2013-03-02  Bruno Haible  <bruno@clisp.org>
17710         gettext: Update to version 0.18.2.
17711         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
17712         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
17713                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
17715 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17717         regex: merge patches from libc
17719         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17720         * lib/regex_internal.h (__attribute__): Rename from __attribute.
17721         All uses changed.
17722         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
17723         (re_string_wchar_at, re_string_elem_size_at):
17724         Mark function as possibly unused.
17726         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
17727         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
17728         elements compare against the byte sequence of it, not its name.
17730 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17732         putenv: port better to native Windows
17733         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17734         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
17735         (_unsetenv): Use _putenv if available.
17736         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
17737         a bit less likely to cause damage.
17738         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17739         Fix the wrong value with SetEnvironmentVariable.
17740         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
17741         code better.
17743 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17745         regex: ignore old-style-definition warnings
17746         * lib/regex.c: Add pragma to ignore these warnings.
17747         Problem reported for GNU tar by Pavel Raiskup.
17749 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17751         getcwd: support coreutils better
17752         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
17753         but this might not be correct in coreutils, which disables
17754         the raw decl checks.  Problem reported by Nagendra in
17755         <http://bugs.gnu.org/10305#192>.
17756         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
17757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17758         Test the getcwd function, not any macro, since getcwd.c wants the
17759         function.
17760         * m4/getcwd.m4 (gl_FUNC_GETCWD):
17761         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
17762         compile, as might happen if there's a macro but no function.
17764         strtod: support coreutils better
17765         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
17766         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
17767         disables the raw decl checks.  This assumes there is an underlying
17768         strtod, but that's a safe assumption these days.
17769         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
17771         mountlist: port to HP NonStop
17772         Reported by Joachim Schmitz in
17773         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
17774         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
17775         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
17777 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17779         extern-inline: avoid compilation error with HP-UX cc
17780         Reported by Richard Lloyd in
17781         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
17782         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17783         Suppress extern inline with HP-UX cc.  This should be safe,
17784         though it may hurt performance.  Perhaps someone with some HP-UX
17785         experience can come up with a higher-performance fix.
17787 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17789         putenv: fix heap corruption with mixed putenv/_putenv
17790         Problem reported by Michael Goffioul in
17791         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
17792         * lib/putenv.c (putenv) [HAVE__PUTENV]:
17793         Rely on _putenv to allocate the new environment.
17794         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17795         * modules/putenv (configure.ac): Use it.
17797 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
17799         unsetenv etc.: port to Solaris 11 + GNU Emacs
17800         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
17801         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
17802         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
17803         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
17804         idea but is too painful to fix right now), and without this gnulib
17805         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
17806         compiling unsetenv.c on Solaris 11.  Fix the problem for
17807         unsetenv.c, and fix other similar occurrences.
17809 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17811         secure_getenv: fix C++ declaration typo
17812         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17813         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
17814         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
17816 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17818         careadlinkat: stop exporting careadlinkatcwd
17819         Only Emacs used it directly, and Emacs no longer needs it.
17820         * NEWS: Document this simplification.
17821         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
17822         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
17823         for readlink.
17824         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
17825         Don't include stdlib.h; no longer needed.
17826         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
17827         * lib/relocwrapper.c: Adjust comment to match new dependencies.
17828         * modules/areadlink (Depends-on): Add readlink.
17829         (Maintainer): Add self.
17830         * modules/careadlinkat (Depends-on): Remove readlink.
17832         extensions: port better to HP-UX
17833         This is merged from git Autoconf.
17834         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17835         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
17836         so that it's compatible with the value used when compiling.
17838         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
17839         Problem reported by Mats Erik Andersson in
17840         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
17841         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17842         openpty function exists, not merely when we intend to replace it.
17843         This corrects the 2013-01-31 patch, which mistakenly defined
17844         HAVE_OPENPTY even on hosts that lacked it.
17846 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17848         secure_getenv: fix include typo
17849         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17851         secure_getenv: port better to FreeBSD and Solaris
17852         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17853         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17854         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17855         This works better on BSDish platforms.
17856         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17857         Test for issetugid if __secure_getenv is missing.
17859 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17861         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17862         Some of these changes are merged in from git Autoconf.
17863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17864         When deciding whether to define _XOPEN_SOURCE, inspect the
17865         preprocessor macro __hpux instead of the more-heavyweight
17866         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17867         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17868         as the key for __EXTENSIONS__.
17870         unistd: avoid namespace pollution on non-glibc systems
17871         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17872         This avoids namespace pollution on non-glibc systems, by causing
17873         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17874         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17875         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17877 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17879         tmpdir: use secure_getenv
17880         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17881         Define to secure_getenv, not getenv.
17882         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17883         as that's now secure_getenv's job.
17884         * modules/tmpdir (Depends-on): Add secure_getenv.
17886         tempname: use secure_getenv
17887         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17888         Define to secure_getenv, not getenv.
17889         * modules/tempname (Depends-on):
17890         Add secure_getenv.
17892         secure_getenv: new module
17893         * MODULES.html.sh (Extra functions based on ANSI C 89):
17894         Add secure_getenv.
17895         * doc/glibc-functions/secure_getenv.texi: New file.
17896         * doc/gnulib.texi: Include it.
17897         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17898         New files.
17899         * lib/stdlib.in.h (secure_getenv): New decl.
17900         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17901         * modules/stdlib (stdlib.h):
17902         Add secure_getenv checks.
17904 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17906         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17907         Reported for OS X 10.8.2 by Assaf Gordon in
17908         <http://bugs.gnu.org/13516>.
17909         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17910         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17911         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17912         so that they can be kept in sync more easily.  Avoid PATH_MAX
17913         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17914         mkdir or chdir failure.
17915         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17916         lib/getcwd.c.
17917         (test_abort_bug): Do not test for the deep directory bug unless we
17918         have openat support.  Avoid PATH_MAX test on the Hurd.
17920         regex-tests, regex: fix bug: memset undeclared
17921         * tests/test-regex.c: Don't include regex.h twice.  Include
17922         string.h, to declare memset.  Christensen's report also mentioned
17923         this issue.
17924         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17925         test-regex.c, to avoid future problems like this.  Remove
17926         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17927         twice.
17929         regex-tests: fix link errors on older Solaris
17930         These need to link with @LIBINTL@ to get libintl_gettext.
17931         Problem reported by Tom G. Christensen in
17932         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17933         * modules/regex-tests (test_regex_LDADD): New macro.
17935 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17937         regex-tests: new module
17938         * modules/regex-tests, tests/test-regex.c: New files.
17940         regex: fix off-by-one error in configure test
17941         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17943 2013-01-31  Eric Blake  <eblake@redhat.com>
17945         regex: avoid infinite configure test
17946         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17948 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17950         openpty: fix bug where HAVE_OPENPTY wasn't defined
17951         See the thread starting at:
17952         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17953         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17954         openpty function exists, not merely when we intend to replace it.
17956 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17958         sys_time: port to Solaris 2.6
17959         There is a circularity problem on Solaris 2.6, where <time.h> includes
17960         <sys/time.h> for struct timespec.  The include nesting is gnulib
17961         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17962         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17963         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17964         <sys/siginfo.h>; the last, innermost file needs struct
17965         timestruc_t, which is defined in <sys/time.h>, which has not been
17966         fully parsed.  Problem reported by Tom G. Christensen in
17967         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17968         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17969         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17970         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17971         uses split double-inclusion guards.
17973 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17975         regex: test for buffer overrun
17976         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17977         for the just-fixed regex bug.
17979 2013-01-29  Andreas Schwab  <schwab@suse.de>
17981         regex: fix buffer overrun in regexp matcher [BZ #15078]
17982         * lib/regexec.c (extend_buffers): Add parameter min_len.
17983         (check_matching): Pass minimum needed length.
17984         (clean_state_log_if_needed): Likewise.
17985         (get_subexp): Likewise.
17987 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17989         mountlist: don't consider "devtmpfs" as dummy
17990         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17991         as there is storage associcated with it.
17993 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17995         futimens-tests, utimens-tests: Depend on gettext.
17996         This works around a problem introduced in my 2013-01-12 patch,
17997         which added @LIBINTL@ to these modules.
17998         * modules/futimens-tests (Depends-on):
17999         * modules/utimens-tests (Depends-on): Add gettext.
18001 2013-01-26  Eric Blake  <eblake@redhat.com>
18003         test-getpeername: fix typo
18004         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
18006 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
18008         bootstrap: remove the need for a sorted .gitignore file
18009         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
18010         rename to insert_if_absent(), so that we don't need or generate
18011         a sorted .gitignore file.  We do require a .gitignore with no
18012         existing duplicate entries and enforce that.
18013         (sort_patterns): Remove this function as we now use the simpler
18014         technigue of inserting blacklist entries at the top of the file,
18015         assuming gnulib won't be inserting !whitelist entries.
18017 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18019         readlinkat: don't depend on gl_FUNC_OPENAT
18020         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
18021         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
18022         renameat.m4, symlinkat.m4; but one thing at a time.
18024         statat: new module, split out from fstatat
18025         GNU Emacs needs the POSIX-specified fstatat, but not the
18026         gnulib-specified statat and lstat.  Split the latter two into a
18027         new module 'statat'.
18028         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
18029         * lib/openat.h, lib/statat.c (STATAT_INLINE):
18030         Rename from FSTATAT_INLINE. All uses changed.
18031         * modules/fstatat (Files): Remove lib/statat.c.
18032         (gl_MODULE_INDICATOR([fstatat])): Remove.
18033         (lib_SOURCES): Remove.
18034         (Maintainer): Add self.
18035         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
18036         * tests/test-fstatat.c (BASE): Don't define if already defined.
18037         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
18039 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18041         tests: don't assume fd 99 is closed
18042         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
18043         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
18044         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
18045         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
18046         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
18047         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
18048         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
18049         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
18050         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
18051         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
18052         * tests/test-fwrite.c, tests/test-getpeername.c:
18053         * tests/test-getsockname.c, tests/test-getsockopt.c:
18054         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
18055         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
18056         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
18057         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
18058         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
18059         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
18060         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
18061         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
18062         * tests/test-unlinkat.c, tests/test-unlockpt.c:
18063         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
18064         Close file descriptor 99, instead of assuming it's already closed.
18066 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18068         stpncpy: port to OS X 10.8
18069         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
18070         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
18072 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
18074         unistd: port to recent mingw
18075         * lib/unistd.in.h: Remove special invocation convention for mingw,
18076         which breaks for the latest mingw version.  See John W. Eaton in
18077         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
18079         largefile: port better to Mac OS X 10.5
18080         This patch is backported from Autoconf git.
18081         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
18082         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
18083         with ino_t size being different for configuration time versus
18084         build/run time.  Problem reported by PHO in
18085         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
18087 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18089         doc: clarify -Werror
18090         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
18091         clarify that it's intended for developers, not for ordinary builds,
18092         and mention --enable-gcc-warnings as one possible use.
18094 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
18096         stdint: fix build with Android's Bionic fox x86
18097         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
18098         was already included as _SSIZE_T_DEFINED_ might also be defined
18099         in include/machine/_types.h, which is included by stdio.h
18101 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
18103         net_if-tests: port to Solaris 7 + GCC 3.4.6
18104         Problem reported by Tom G. Christensen in
18105         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
18106         * tests/test-net_if.c (ni): Move to next the code that uses it,
18107         so that it's declared only if needed.
18109 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18111         net_if-tests: port to older Solaris
18112         Problem reported by Tom G. Christensen in
18113         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18114         * modules/net_if-tests (NET_IF_LIB): New substitution.
18115         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
18116         (HAVE_IF_NAMEINDEX): New C macro.
18117         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
18119         system-quote-tests: port to older Solaris
18120         Problem reported by Tom G. Christensen in
18121         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18122         * tests/test-system-quote-child.c (fopen, fread): Undef.
18124         c-xvasprintf etc.: fix link errors on older Solaris
18125         These need to link with @LIBINTL@ to get libintl_gettext.
18126         Problem reported by Tom G. Christensen in
18127         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18128         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
18129         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
18130         * modules/futimens-tests (test_futimens_LDADD):
18131         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
18133 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18135         locale: port to Solaris 2.6 and 7 + GNU gettext
18136         * lib/locale.in.h: Just include_next <locale.h> when
18137         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
18138         when combining the localename module with GNU gettext 0.18.2.
18139         Problem reported by Tom G. Christensen in
18140         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
18142 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18144         stdlib: port to Solaris 2.6
18145         Also, the code worked on Solaris 7 through 9 only by accident.
18146         Problem reported by Tom G. Christensen in
18147         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
18148         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
18149         simply include the system stdlib.h.
18150         * lib/getopt.in.h (__need_system_stdlib_h):
18151         * lib/pthread.in.h (__need_system_stdlib_h):
18152         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
18153         Define when including <stdlib.h>, to avoid problems at least for
18154         the pthread case on Solaris 2.6 and 7.  These .h files can get by
18155         with the system stdlib.h.
18157 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
18159         doc: update main copyright year
18160         * doc/gnulib.texi: Update copyright date.
18162         doc: improve ISO 8601 discussion
18163         * doc/parse-datetime.texi (Combined date and time of day items):
18164         Specify more carefully what formats are supported and what is
18165         done with excess precision.
18167 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18169         doc: avoid small caps
18170         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
18171         they're more trouble than they're worth.  Suggested by Karl Berry
18172         in <http://bugs.gnu.org/13360>.
18174         regex: conform to strict C
18175         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
18176         From Aharon Robbins.
18178         gnulib-tool: fix incompatibility with autopoint 0.18.2
18179         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
18180         Problem reported by Tom G. Christensen in
18181         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
18183 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18185         fprintftime: bring back and reword fwrite comment
18186         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
18188         stdio: remove now-unnecessary stdio.c
18189         Since stdio.in.h no longer uses inline functions, we no longer
18190         need to compile the extern versions.
18191         * lib/stdio.c: Remove.
18192         * modules/stdio (Files): Remove lib/stdio.c.
18193         (lib_SOURCES): Remove.
18195         unicodeio: depend on stdio, not ignore-value
18196         * lib/unicodeio.c: Do not include ignore-value.h.
18197         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
18198         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
18200         fprintftime: depend on stdio, not ignore-value
18201         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
18202         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
18203         since the stdio module arranges to silence that warning now.
18204         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
18206 2012-10-04  Simon Josefsson  <simon@josefsson.org>
18208         stdint-tests: Fix expanded-before-required-warning.
18209         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
18211 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18213         fwrite: silence __wur only for older glibc versions
18214         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
18215         This will help us remove this workaround some time in the far future.
18217 2013-01-03  Eric Blake  <eblake@redhat.com>
18219         fwrite: silence __wur without using inline
18220         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
18221         just gcc, and in a way that avoids inline issues.
18222         * modules/stdio (Depends-on): Drop extern-inline.
18224 2013-01-03  Jim Meyering  <jim@meyering.net>
18226         update-copyright: avoid copyright notice date corruption
18227         Given a sequence of copyright year numbers in which the final
18228         one was a two-digit number that happened to be a substring of
18229         a preceding four-digit year number, we would mistakenly update
18230         the substring (from two- to four-digit) rather than the two-digit
18231         number at the end, which, combined with the addition of the current
18232         4-digit year number would yield two 5-digit year numbers, e.g.,
18233         here, it would convert the first "99" to "1999, 2013" rather than
18234         the final one:
18235           1991, 99
18236           11999, 20131, 1999
18237         * build-aux/update-copyright: Tighten a regexp.
18238         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
18239         Reported by Joseph Myers in
18240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
18242 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18244         regex: omit needless signed-pointer casts
18245         * lib/regcomp.c (build_charclass, build_charclass_op):
18246         Use char *, not unsigned char *, for class name and extra.
18247         The char values are always nonnegative so there's no need to
18248         insist on unsigned char * here, and using char * removes the need
18249         for casts.  Reported by Aharon Robbins in
18250         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18252         regex: support Gawk, which never uses alloca
18253         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
18254         Do not include in this case.  Gawk doesn't supply a substitute
18255         alloca.h and doesn't need one.
18257         regex: port __libc_lock_define usage to C89
18258         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
18259         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
18260         does not conform to C89, as it has an empty macro argument.
18261         Reported by Aharon Robbins in
18262         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18264 2013-01-01  Eric Blake  <eblake@redhat.com>
18266         maint: update all copyright year number ranges
18267         Run "make update-copyright".
18269         version-etc: bump copyright year reported in --version
18270         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
18272 2012-12-31  Eric Blake  <eblake@redhat.com>
18274         sigprocmask-tests: skip test if pid is unexpectedly large
18275         * tests/test-sigprocmask.c (main): Add range check.
18277         git-version-gen: avoid test -z portability glitch
18278         * build-aux/git-version-gen: Prefer portable test spelling, since
18279         git-version-gen is run on more than just developer machines.
18281 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
18283         git-version-gen: add --fallback option to use if git is not present
18284         * build-aux/git-version-gen: Add support for the new option --fallback,
18285         which comes into play when there is no $tarball_version_file and
18286         git is not working.
18287         (scriptversion): Update.
18289         maint.mk: handle missing git with more grace
18290         * top/maint.mk (no-submodule-changes, public-submodule-commit):
18291         Quietly proceed if git is not present.
18293 2012-12-31  Eric Blake  <eblake@redhat.com>
18295         dup2: work around cygwin bug
18296         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
18297         * lib/dup2.c (rpl_dup2): Work around it.
18298         * doc/posix-functions/dup2.texi (dup2): Document it.
18300 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18302         regex: remove unnecessary dependency on localcharset.h
18303         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
18304         hasn't been needed for years.
18305         * modules/regex (Depends-on): Remove localcharset.
18307         regex: revert single-byte change
18308         * lib/regexec.c (check_node_accept_bytes): Revert previous change
18309         to this function.  This was alredy fixed in a different way, at
18310         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
18311         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
18312         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
18314         regex: simplify based on Gawk version
18315         * lib/regex_internal.c (re_dfa_add_node): Simplify.
18316         Reported by Aharon Robbins in
18317         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18319 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18321         regex: check that pattern char is single-byte
18322         Reported by Aharon Robbins in
18323         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18324         * lib/regexec.c (check_node_accept_bytes):
18325         Return 0 if the pattern string has a multibyte character here.
18327         regex: implement rational ranges
18328         Reported by Aharon Robbins in
18329         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18330         * lib/regcomp.c (build_range_exp) [!_LIBC]:
18331         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
18332         Implement rational ranges.
18334         regex: avoid redefining __wctype
18335         Reported by Aharon Robbins in
18336         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18337         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
18338         #undef before defining.
18340         regex: port to hosts where malloc (0) == NULL
18341         Reported by Aharon Robbins in
18342         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18343         * lib/regex_internal.c (re_node_set_alloc):
18344         Don't assume that malloc (0) yields nonnull.
18345         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
18346         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
18347         * modules/regex (Files): Add m4/eealloc.m4.
18349         regex: port to C89
18350         Reported by Aharon Robbins in
18351         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18352         * lib/regcomp.c (init_word_char): Declaration before statement.
18354         regex: merge glibc changes
18355         Also, copy the license wording from glibc.  This simplifies
18356         merging changes.  gnulib-tool will change the wording to GPL as
18357         appropriate, when importing it to other packages.  The only
18358         glibc change made since the last merge, which needs merging, is:
18359         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
18360         * lib/regex_internal.h (gettext): Remove use of INTUSE.
18362         * users.txt: Add Emacs.
18364         doc: omit mention of version when not needed
18365         * doc/gnulib-intro.texi (Portability and Application Code):
18366         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
18367         Don't mention particular dates or versions when not necessary, so
18368         that the documentation won't go out of date so quickly.
18370         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
18372 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
18374         bootstrap: pass --force to autoreconf.
18375         * build-aux/bootstrap (AUTORECONFFLAGS): New.
18376         Add "--force" so that Automake's ylwrap and other such tools
18377         be updated at each bootstrap invocation.
18378         Use it.
18380 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18382         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
18383         The earlier patch forgot to update one of the #if conditions, causing
18384         a problem on Debian testing i386 reported by Mats Erik Andersson
18385         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
18386         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
18387         (__argp_fmtstream_puts, argp_fmtstream_puts)
18388         (__argp_fmtstream_write, argp_fmtstream_write)
18389         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
18391         * doc/gnulib-readme.texi: Minor fixups.
18392         (Portability guidelines): Modernize URLs.  Remove some repetition.
18393         (Indent with spaces not TABs): Reword to avoid too-long lines.
18394         Remove some '@ifset standalone' stuff that isn't used.
18396         * doc/gnulib-readme.texi (Portability guidelines):
18397         ctype.h, not ctime.h.
18399         Correct name of POSIX.1-2001.
18400         * doc/posix-functions/fgetc.texi (fgetc):
18401         * doc/posix-functions/fgets.texi (fgets):
18402         * doc/posix-functions/fread.texi (fread):
18403         * doc/posix-functions/fscanf.texi (fscanf):
18404         * doc/posix-functions/getc.texi (getc):
18405         * doc/posix-functions/getchar.texi (getchar):
18406         * doc/posix-functions/scanf.texi (scanf):
18407         POSIX.1-2001, not POSIX-2001.
18409         doc: move README into manual
18410         * README: Move contents to new file doc/gnulib-readme.texi.
18411         Replace with a one-line summary.
18412         * doc/gnulib.texi (Brief Overview): New section,
18413         with old intro preface.  Include gnulib-readme.texi for contents.
18414         (Philosophy): Rename from "Introduction", since this
18415         section no longer introduces the rest.  Write a new preface.
18416         * doc/gnulib-readme.texi: New file, with the old contents of
18417         README texinfo-ized.  This way, the README info appears
18418         in the online and printed manual.
18420 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
18422         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
18423         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
18424         c_vasprintf() prototype.
18426 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
18428         c-vasprintf: Fix "empty declaration" warning reported by GCC.
18429         * lib/c-vasprintf.h: Remove stray semicolon.
18431 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18433         gettext: avoid obsolete macro AM_PROG_MKDIR_P
18434         It is obsolete and is planned to be removed from Automake 1.14; see
18435         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
18436         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
18437         (installdirs-data, installdirs-data-yes):
18438         Use $(MKDIR_P), not $(mkdir_p).
18439         * m4/intl.m4 (AM_INTL_SUBDIR):
18440         * m4/po.m4 (AM_PO_SUBDIRS):
18441         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
18443 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18445         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
18446         On this platform, we are not optimizing but we are using
18447         the substitute for extern inlines, so compile as if
18448         C99-style extern inline, or a substitute, is available.
18449         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
18450         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
18451         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
18452         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
18453         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
18454         Declare as ARGP_FS_EI, not as extern.
18455         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
18456         (__option_is_short, _option_is_end, __option_is_end)
18457         [!_LIBC && __USE_EXTERN_INLINES]:
18458         Declare as ARGP_EI, not as extern.
18460 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18462         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
18463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
18464         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
18465         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
18466         ...), as the latter is fatal with older Autoconfs.
18467         Problem reported and fix suggested by Eric Blake in thread starting at
18468         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
18470 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18472         AC_PROG_MKDIR_P: don't workaround if not buggy
18473         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
18474         Define only for Autoconf versions before 2.62.
18475         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
18476         undocumented m4_PACKAGE_VERSION, for consistency with the
18477         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
18478         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
18479         was introduced in 2.62.
18481 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
18483         New 'c-*printf' modules for formatted output in C locale.
18485         New module 'c-vasnprintf'.
18486         * modules/c-vasnprintf: New file.
18487         * lib/c-vasnprintf.c: New file.
18488         * lib/c-vasnprintf.h: New file.
18490         New module 'c-snprintf'.
18491         * modules/c-snprintf: New file.
18492         * modules/c-snprintf-tests: New file.
18493         * lib/c-snprintf.c: New file.
18494         * lib/c-snprintf.h: New file.
18495         * tests/test-c-snprintf.c: New file.
18496         * tests/test-c-snprintf.sh: New file.
18498         New module 'c-vsnprintf'.
18499         * modules/c-vsnprintf: New file.
18500         * modules/c-vsnprintf-tests: New file.
18501         * lib/c-vsnprintf.c: New file.
18502         * lib/c-vsnprintf.h: New file.
18503         * tests/test-c-vsnprintf.c: New file.
18504         * tests/test-c-vsnprintf.sh: New file.
18506         New module 'c-vasprintf'.
18507         * modules/c-vasprintf: New file.
18508         * modules/c-vasprintf-tests: New file.
18509         * lib/c-asprintf.c: New file.
18510         * lib/c-vasprintf.c: New file.
18511         * lib/c-vasprintf.h: New file.
18512         * tests/test-c-vasprintf.c  +: New file.
18513         * tests/test-c-vasprintf.sh: New file.
18515         New module 'c-xvasprintf'.
18516         * modules/c-xvasprintf: New file.
18517         * modules/c-xvasprintf-tests: New file.
18518         * lib/c-xasprintf.c: New file.
18519         * lib/c-xvasprintf.c: New file.
18520         * lib/c-xvasprintf.h: New file.
18521         * tests/test-c-xvasprintf.c: New file.
18522         * tests/test-c-xvasprintf.sh: New file.
18524 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18526         argp: better 'inline'
18527         Use extern-inline module to declare extern inline functions.
18528         This avoids some bogus warning diagnostics.  Problem discovered
18529         when modifying GNU tar to use the manywarnings module.
18530         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
18531         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
18532         Define based on extern-inline.
18533         * modules/argp (Depends-on): Add extern-inline.
18535 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18537         filemode, sys_stat: Handle MPX files a la AIX.
18538         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
18539         * lib/sys_stat.in.h (S_ISMPX): New macro.
18540         * tests/test-sys_stat.c: Add tests for MPX files.
18542 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18544         x-to-1: honor $PERL
18545         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
18546         a chance to use his preferred version of Perl.  This is typically
18547         required by Darwin users whose default /usr/bin/perl does not have all
18548         the libraries required by help2man, and who need to use their MacPorts
18549         installation of Perl instead.
18551 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18553         gnu-web-doc-update: add all the new files, even in new directories
18554         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
18555         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
18556         Use it.
18557         (main): Don't use cvsutils to get the list of unknown files,
18558         just add all the existing files and directories.
18560 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18562         gnu-web-doc-update: improve --help
18563         * build-aux/gnu-web-doc-update: Move comments into --help.
18565 2012-12-07  Eric Wong  <normalperson@yhbt.net>
18567         mountlist: recognize more "dummy" file systems
18568         * lib/mountlist.c (ME_DUMMY_0):
18569         Add these dummy FS names to the list:
18570         - "debugfs" virtual filesystem for kernel debugging
18571         - "devpts" PTY slave filesystem
18572         - "devtmpfs" device filesystem on top of tmpfs/ramfs
18573         - "fusectl" control filesystem for FUSE
18574         - "mqueue" enumerates POSIX message queues
18575         - "rpc_pipefs" kernel <-> userspace bridge for NFS
18576         - "sysfs" is for exporting kernel objects
18577         - "devfs" device filesystem for Linux 2.4 and FreeBSD
18579 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18581         extern-inline: avoid incompatibility with Darwin Libc
18582         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
18583         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
18584         Problem reported by Akim Demaille in
18585         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
18587 2012-12-11  Simon Josefsson  <simon@josefsson.org>
18589         gnupload: Work with GnuPG using gpg-agent (for smartcards).
18590         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
18591         let it handle password prompting.
18593 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
18595         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
18596         * lib/canonicalize.c (canonicalize_filename_mode):
18597         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
18598         fetching the current directory.  Don't overrun the beginning of
18599         rpath if there's no slashes after the MS-Windows drive letter.
18601 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
18603         maint.mk: avoid extra forks
18604         * top/maint.mk (_cfg_mk): The GNU make manual documents that
18605         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
18606         So use that instead of "$(shell test -f FILE && echo FILE)".
18608 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18610         vasnprintf: fix ASCII_ONLY typo
18611         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18612         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18613         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18614         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
18615         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
18617 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18619         list, oset, xlist, xoset: fix extern inline issue with C99
18620         This was introduced by my recent changes for 'inline'.
18621         Problem reported for gettext by Daiki Ueno in
18622         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
18623         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
18624         (gl_list_nx_create, gl_list_size, gl_list_node_value)
18625         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
18626         (gl_list_previous_node, gl_list_get_at)
18627         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
18628         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
18629         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
18630         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
18631         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
18632         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
18633         (gl_list_iterator_free, gl_sortedlist_search)
18634         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
18635         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
18636         (gl_sortedlist_remove):
18637         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
18638         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
18639         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
18640         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
18641         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
18642         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
18643         (gl_list_add_at, gl_sortedlist_add):
18644         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
18645         Wrap these extern decls inside "#if 0", because they are implemented
18646         as inline functions, and extern inline is not what's wanted here.
18647         It would simplify these .h files to remove the extern decls entirely,
18648         although a downside would be less-clear separation between
18649         specification and implementation.
18651 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18653         sys_stat: no 'static inline'
18654         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
18655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
18657         extern-inline: no 'static inline'
18658         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18659         Do not require AC_C_INLINE.
18660         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
18661         'static inline', for older compilers.
18663         snippet/warn-on-use: no 'static inline'
18664         * build-aux/snippet/warn-on-use.h:
18665         Remove unnecessary 'inline' in comment.
18667         rbtree-list, rbtreehash-list: no 'static inline'
18668         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
18669         * lib/gl_anytree_list2.h (node_at):
18670         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
18671         (gl_oset_first, add_nodes_to_buckets):
18672         Now static, not static inline.
18674         regex: no 'static inline'
18675         * lib/regex_internal.c (calc_state_hash):
18676         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
18677         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18678         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
18679         Now static, not static inline.
18680         (inline) [__GNUC__ < 3 && _LIBC]:
18681         Remove macro; no longer needed.
18683         xvasprintf: no 'static inline'
18684         * lib/xvasprintf.c (xstrcat):
18685         Now static, not static inline.
18686         * m4/xvasprintf.m4 (gl_XVASPRINTF):
18687         Do not require AC_C_INLINE.
18689         parse-datetime, parse-duration: no 'static inline'
18690         * lib/parse-datetime.y (to_uchar):
18691         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
18692         (scale_n_add):
18693         Now static, not static inline.
18694         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
18695         * modules/parse-duration (configure.ac):
18696         Do not require AC_C_INLINE.
18698         getaddrinfo: no 'static inline'
18699         * lib/getaddrinfo.c (validate_family):
18700         Now static, not static inline.
18701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
18702         Do not require AC_C_INLINE.
18704         ftruncate, fts, lstat, openat, raise: no 'static inline'
18705         * lib/ftruncate.c (chsize_nothrow):
18706         * lib/fts.c (opendirat, diropen):
18707         * lib/lstat.c (orig_lstat):
18708         * lib/openat.c (orig_openat):
18709         * lib/raise.c (raise_nothrow):
18710         Now static, not static inline.
18711         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
18712         * m4/fts.m4 (gl_FUNC_FTS_CORE):
18713         * m4/lstat.m4 (gl_PREREQ_LSTAT):
18714         * m4/openat.m4 (gl_PREREQ_OPENAT):
18715         * m4/raise.m4 (gl_PREREQ_RAISE):
18716         Do not require AC_C_INLINE.
18718         fflush, stat: no 'static inline'
18719         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18720         (clear_ungetc_buffer, disable_seek_optimization)
18721         (restore_seek_optimization, update_fpos_cache):
18722         * lib/stat.c (orig_stat):
18723         Now static, not static inline.
18724         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
18725         (update_fpos_cache):
18726         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
18727         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
18728         * m4/stat.m4 (gl_PREREQ_STAT):
18729         Do not require AC_C_INLINE.
18731         error, filevercmp: no 'static inline'
18732         * lib/error.c (is_open, flush_stdout):
18733         * lib/filevercmp.c (order):
18734         Now static, not static inline.
18735         * m4/error.m4 (gl_PREREQ_ERROR):
18736         * modules/filevercmp (configure.ac):
18737         Do not require AC_C_INLINE.
18739         dup, execute, fatal-signal, etc.: no 'static inline'
18740         * lib/dup.c (dup_nothrow):
18741         * lib/execute.c (nonintr_close, nonintr_open):
18742         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
18743         * lib/fopen.c (orig_fopen):
18744         * lib/freadseek.c (freadptrinc):
18745         * lib/freopen.c (orig_freopen):
18746         * lib/fstat.c (orig_fstat, fstat_nothrow):
18747         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
18748         (get_rusage_as_via_iterator):
18749         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
18750         * lib/getdtablesize.c (_setmaxstdio_nothrow):
18751         * lib/isatty.c (_isatty_nothrow):
18752         * lib/open.c (orig_open):
18753         * lib/read.c (read_nothrow):
18754         * lib/sigprocmask.c (signal_nothrow):
18755         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
18756         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
18757         * lib/wait-process.c (unregister_slave_subprocess):
18758         * lib/write.c (write_nothrow):
18759         Now static, not static inline.
18760         * lib/spawn-pipe.c (nonintr_open): Define only if
18761         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
18762         * m4/dup.m4 (gl_PREREQ_DUP):
18763         * m4/execute.m4 (gl_EXECUTE):
18764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
18765         * m4/fopen.m4 (gl_PREREQ_FOPEN):
18766         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
18767         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
18768         * m4/fstat.m4 (gl_PREREQ_FSTAT):
18769         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
18770         * m4/isatty.m4 (gl_PREREQ_ISATTY):
18771         * m4/open.m4 (gl_PREREQ_OPEN):
18772         * m4/read.m4 (gl_PREREQ_READ):
18773         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
18774         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
18775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
18776         * m4/wait-process.m4 (gl_WAIT_PROCESS):
18777         * m4/write.m4 (gl_PREREQ_WRITE):
18778         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
18779         Do not require AC_C_INLINE.
18781         c-strtod, memcoll, readutmp: no 'static inline'
18782         * lib/c-strtod.c (c_locale):
18783         * lib/memcoll.c (strcoll_loop):
18784         * lib/readutmp.c (desirable_utmp_entry):
18785         Now static, not static inline.
18786         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
18787         * m4/memcoll.m4 (gl_MEMCOLL):
18788         * m4/readutmp.m4 (gl_READUTMP):
18789         Do not require AC_C_INLINE.
18791         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
18792         * lib/arctwo.c (to_uchar):
18793         * lib/md4.c (set_uint32):
18794         * lib/md5.c (set_uint32):
18795         * lib/sha1.c (set_uint32):
18796         * lib/sha256.c (set_uint32):
18797         * lib/sha512.c (set_uint64):
18798         Now static, not static inline.  This is a bit simpler, and doesn't
18799         affect performance with GCC and default optimization.
18800         * m4/arctwo.m4 (gl_ARCTWO):
18801         * m4/md4.m4 (gl_MD4):
18802         * m4/md5.m4 (gl_MD5):
18803         * m4/sha1.m4 (gl_SHA1):
18804         * m4/sha256.m4 (gl_SHA256):
18805         * m4/sha512.m4 (gl_SHA512):
18806         Do not require AC_C_INLINE.
18808         cond, lock, thread: better 'inline'
18809         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
18810         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
18811         New macros.  Use them instead of static inline, for header functions.
18812         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
18813         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18814         * lib/glthread/lock.c (gl_waitqueue_init)
18815         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18816         * lib/glthread/thread.c (get_current_thread_handle):
18817         Change 'static inline' to 'inline'.
18818         * lib/glthread/cond.h, lib/glthread/thread.h:
18819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18820         * m4/cond.m4 (gl_COND):
18821         * m4/lock.m4 (gl_PREREQ_LOCK):
18822         * m4/thread.m4 (gl_THREAD):
18823         Do not require AC_C_INLINE.
18824         * modules/cond, modules/thread (Depends-on): Add extern-inline.
18826         chdir-long, cycle-check, savewd: better 'inline'
18827         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
18828         (find_non_slash):
18829         * lib/cycle-check.c (is_zero_or_power_of_two):
18830         * lib/savewd.c (savewd_delegating):
18831         Change 'static inline' to 'inline'.
18832         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
18833         Replace all remaining uses of 'static inline' with it.
18834         * lib/savewd.h:
18835         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18836         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
18837         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18838         * m4/savewd.m4 (gl_SAVEWD):
18839         Do not require AC_C_INLINE.
18840         * modules/savewd (Depends-on): Add extern-inline.
18842         base32, base64: no need for 'inline'
18843         * lib/base32.c (to_uchar, get_8, decode_8):
18844         * lib/base64.c (to_uchar, get_4, decode_4):
18845         Change 'static inline' to 'inline'.
18846         * m4/base32.m4 (gl_PREREQ_BASE32):
18847         * m4/base64.m4 (gl_PREREQ_BASE64):
18848         Do not require AC_C_INLINE.
18850         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18851         * lib/gl_array_oset.c (gl_array_nx_add_at):
18852         (gl_array_remove_at):
18853         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18854         (add_to_bucket, remove_from_bucket):
18855         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18856         Change 'static inline' to 'static', as it's simpler to omit
18857         'inline' unless there's a significant performance advantage.
18859         list, oset, xlist, xoset, xsublist: simplify via extern inline
18860         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18861         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18862         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18863         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18864         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18865         New macro.  Replace all uses of 'static inline' with it.
18866         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18867         instead of as macros FOO that are defined to static inline
18868         functions FOO_inline.
18869         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18870         * lib/gl_xsublist.c:
18871         Reimplement from scratch, by defining the corresponding *_INLINE
18872         macro and including the corresponding .h file.  This is simpler.
18873         * modules/list, modules/oset, modules/xlist, modules/xoset:
18874         (Files): Remove m4/gl_list.m4.
18875         (configure.ac): Remove gl_LIST.
18876         * m4/gl_list.m4: Remove.
18877         * modules/list, modules/oset, modules/xlist, modules/xoset:
18878         * modules/xsublist:
18879         (Depends-on): Depend on extern-inline, not inline.
18881         xalloc: better 'inline'
18882         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18883         New macro.  Replace all uses of 'static inline' with it.
18884         (static_inline): Remove.
18885         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18886         Let 'extern inline' do the work automatically, instead of doing
18887         it by hand.
18888         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18889         Remove.  All uses removed.
18890         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18892         gethrxtime: better 'inline'
18893         * lib/xtime.c: New file.
18894         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18895         * lib/xtime.h (XTIME_INCLUDE):
18896         New macros.  Replace all uses of 'static inline' with them.
18897         * lib/gethrxtime.c (gethrxtime): Define only if
18898         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18899         this source file is now always compiled, because of the extern inline.
18900         * lib/gethrxtime.h, lib/xtime.h:
18901         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18902         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18903         if gethrtime works, as they're not needed in that case.
18904         (gl_XTIME): Do not require AC_C_INLINE.
18905         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18906         compiled now.  Move the check into gl_GETHRXTIME.
18907         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18908         (Depends-on): Add extern-inline.
18909         (configure.ac): gethrxtime is always compiled now.
18910         (lib_SOURCES): Add gethrxtime.c.
18912         wctype-h: better 'inline'
18913         * lib/wctype-h.c: New file.
18914         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18915         New macro.  Replace all uses of 'static inline' with it.
18916         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18917         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18918         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18919         (Depends-on): Add extern-inline.
18921         unistd: better 'inline'
18922         * lib/unistd.c: New file.
18923         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18924         New macro.  Replace all uses of 'static inline' with it.
18925         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18926         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18927         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18928         (Depends-on): Add extern-inline.
18930         sys_socket: better 'inline'
18931         * lib/sys_socket.c: New file.
18932         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18933         New macro.  Replace all uses of 'static inline' with it.
18934         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18936         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18937         (Depends-on): Add extern-inline.
18939         stdio: better 'inline'
18940         * lib/stdio.c: New file.
18941         * lib/stdio.in.h (_GL_STDIO_INLINE):
18942         New macro.  Replace all uses of 'static inline' with it.
18943         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18944         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18945         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18946         (Depends-on): Add extern-inline.
18948         sigaction: better 'inline'
18949         * lib/sig-handler.c: New file.
18950         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18951         New macro.  Replace all uses of 'static inline' with it.
18952         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18953         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18954         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18955         (Depends-on): Add extern-inline.
18957         selinux-h: better 'inline'
18958         * lib/se-context.c, lib/se-selinux.c: New files.
18959         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18960         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18961         New macro.  Replace all uses of 'static inline' with it.
18962         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18963         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18964         New macro.  Replace all uses of 'static inline' with it.
18965         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18966         * modules/selinux-h (Files, lib_SOURCES):
18967         Add lib/se-context.c, lib/se-selinux.c.
18968         (Depends-on): Add extern-inline.
18969         (configure.ac): Do not require AC_C_INLINE.
18971         pthread: better 'inline'
18972         * lib/pthread.c: New file.
18973         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18974         New macro.  Replace all uses of 'static inline' with it.
18975         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18976         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18977         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18978         * modules/pthread (Files): Add lib/pthread.c.
18979         (Depends-on): Add extern-inline.
18981         math: better 'inline'
18982         * lib/math.c: New file.
18983         * lib/math.in.h (_GL_MATH_INLINE):
18984         New macro.  Replace all uses of 'static inline' with it.
18985         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18986         * m4/math_h.m4 (gl_MATH_H):
18987         Do not require AC_C_INLINE.
18988         * modules/math (Files, lib_SOURCES):
18989         Add lib/math.c.
18990         (Depends-on): Add extern-inline.
18992         count-one-bits: better 'inline'
18993         * lib/count-one-bits.c: New file.
18994         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18995         New macro.  Replace all uses of 'static inline' with it.
18996         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18997         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18998         Do not require AC_C_INLINE.
18999         * modules/count-one-bits (Files, lib_SOURCES):
19000         Add lib/count-one-bits.c.
19001         (Depends-on): Add extern-inline.
19003         count-leading-zeros: better 'inline'
19004         * lib/count-leading-zeros.c: New file.
19005         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
19006         New macro.  Replace all uses of 'static inline' with it.
19007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19008         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
19009         Do not require AC_C_INLINE.
19010         * modules/count-leading-zeros (Files, lib_SOURCES):
19011         Add lib/count-leading-zeros.c.
19012         (Depends-on): Add extern-inline.
19014         bitrotate: better 'inline'
19015         * lib/bitrotate.c: New file.
19016         * lib/bitrotate.h (BITROTATE_INLINE):
19017         New macros.
19018         Replace all uses of 'static inline' with them.
19019         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19020         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
19021         (Depends-on): Add extern-inline.
19022         (configure.ac): Do not require AC_C_INLINE.
19024 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
19026         maint.mk: avoid gratuitous failure
19027         Reported by Stefano Lattarini in
19028         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
19029         * top/maint.mk (public-submodule-commit): Quote more safely.
19031 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
19033         canonicalize, canonicalize-lgpl: support MS-Windows file names
19034         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
19035         for test cases, which it'd be nice to add at some point.
19036         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
19037         * lib/canonicalize.c (canonicalize_filename_mode):
19038         * lib/canonicalize-lgpl.c (__realpath):
19039         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
19040         slash is at the beginning of the file name.  Use ISSLASH, instead
19041         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
19042         the first character with '/'.  Test for
19043         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
19044         with a drive letter.
19045         * lib/canonicalize.c (SLASHES): New macro.
19046         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
19048 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
19050         fts: introduce FTS_VERBATIM
19051         * lib/fts_.h (FTS_VERBATIM): New bit flag.
19052         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
19053         * lib/fts.c (fts_open): Honor it.
19055 2012-11-09  Pádraig Brady  <P@draigBrady.com>
19057         getlogin-tests: allow errno == ENXIO
19058         * tests/test-getlogin.c (main): Skip tests if getlogin fails
19059         with errno == ENXIO (No controlling tty).
19060         getlogin_r-tests: Likewise. Also allow errno == ENOENT
19061         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
19062         with errno == ENOENT.  This was reported to happen in various
19063         situations on GNU/Linux.
19065 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19067         getlogin-tests: allow errno == ENOENT
19068         * tests/test-getlogin.c (main): Skip tests if getlogin fails
19069         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
19070         when running a test in an Emacs shell buffer.
19072 2012-11-08  Jim Meyering  <jim@meyering.net>
19074         tests/nap.h: avoid warning about unused variable
19075         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
19077         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
19078         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
19079         white space before each of the special-cased file names, to avoid
19080         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
19081         in http://bugs.gnu.org/12830.
19083 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19085         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
19086         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
19087         fails with errno == EBADF when fd is opened with O_PATH.
19088         Reported by Jim Meyering in
19089         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
19090         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
19091         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
19093 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19095         test-utimens: speed up by taking shorter naps
19096         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
19097         New functions.
19098         (nap): Use them, to do a better job of guessing the delay.
19099         On Fedora 17 with ext4 atop md atop hard disks, this made
19100         test-utimens run 10x faster, because the test napped for
19101         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
19102         <http://bugs.gnu.org/12820#11>.
19104 2012-11-07  Jim Meyering  <jim@meyering.net>
19106         mountlist.c: fix a compilation failure
19107         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
19108         I introduced while transforming commit v0.0-7683-g613bcb6
19110 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19112         errno: port to LynxOS 178 2.2.2
19113         Problem reported by Joel Brobecker in
19114         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
19115         * doc/posix-headers/errno.texi (errno.h): Document this.
19116         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
19117         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
19118         Supply a string for EILSEQ.
19119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
19121 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19123         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
19124         Linux kernel 2.6.39 introduced O_PATH (see
19125         <http://lwn.net/Articles/433854/>) and this is a better fallback
19126         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
19127         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
19128         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
19129         * lib/fcntl.in.h (O_ACCMODE):
19130         * tests/test-fcntl-h.c (main):
19131         Do not reject O_ACCMODE merely because it has more than the
19132         minimal number of bits, as POSIX allows extensions here.
19134 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
19136         mountlist: do not classify a bind-mounted dir entry as "dummy"
19137         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
19138         the "none"-testing clause.
19139         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
19140         exception for bind-mounted directories.
19142 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
19144         quote: provide a means to escape strings with nul characters
19145         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
19146         (quote, quote_n): Rename formal arguments for consistency with
19147         quotearg.
19149 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19151         test-raise: don't assume 199 is an invalid signal
19152         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
19154         sh-quote-tests: port to Solaris 9
19155         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
19156         Problem reported by Dagobert Michelsen in
19157         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
19159 2012-10-28  Jim Meyering  <jim@meyering.net>
19161         maint.mk: rename a new configurable variable
19162         * top/maint.mk (_gl_translatable_string_re): Rename from
19163         translation-markers: _gl_ prefix to insulate from user Makefile code,
19164         and the _re suffix to inform that it's a regular expression.
19166 2012-10-26  Eric Blake  <eblake@redhat.com>
19168         maint.mk: let packages tweak sc_po_check pattern
19169         * top/maint.mk (sc_po_check): Add translation-markers, to allow
19170         finding files with other translation markers.
19172 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19174         euidaccess: speed up 'configure' on GNU hosts
19175         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
19176         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
19177         it's needed only in this case.  Use AC_CHECK_DECLS, not
19178         AC_CHECK_DECLS_ONCE.
19179         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
19180         or AC_REQUIRE for AC_FUNC_GETGROUPS.
19182         * lib/regexec.c (re_search_internal): Fix grammar in comment.
19184 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19186         fchmodat, fchownat, fstatat: port to non-inlining compilers
19187         Problem reported for FreeBSD 9 by Jim Meyering in
19188         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
19189         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
19190         New files, which define FCHMODAT_INLINE etc.
19191         * lib/fchmodat.c (FCHMODAT_INLINE):
19192         * lib/fchownat.c (FCHOWNAT_INLINE):
19193         * lib/fstatat.c (FSTATAT_INLINE):
19194         Remove, as chmodat.c etc. now do this.
19195         * modules/fchmodat (Files): Add lib/chmodat.c.
19196         * modules/fchownat (Files): Add lib/chownat.c.
19197         * modules/fstatat (Files): Add lib/statat.c.
19199 2012-10-15  Jim Meyering  <jim@meyering.net>
19201         fchmodat.c, fchownat.c: compile-impeding typos
19202         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
19203         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
19204         Introduced in commit v0.0-7636-gd202279.
19206 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19208         fcntl-h: support GNU flags like O_IGNORE_CTTY
19209         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
19210         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
19211         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
19212         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
19213         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
19214         Define to 0 if not already defined.
19215         * tests/test-fcntl-h.c: Test these new flags.
19217 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19219         faccessat, etc.: support AT_FDCWD-only use
19220         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
19221         this function only if its first argument is AT_FDCWD.
19222         Emacs wants faccessat for AT_EACCESS but not for any first-arg
19223         values other than AT_FDCWD, so it doesn't want all the openat
19224         machinery with fchdir etc.
19225         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
19226         * modules/fstatat, modules/mkdirat, modules/openat (Files):
19227         * modules/unlinkat (Files):
19228         Remove lib/openat-priv.h, as at-internal supplies this file.
19229         Removing this file here allows us to support programs like Emacs
19230         that avoid at-internal.
19232         faccessat: speed up 'configure' on mainstream hosts
19233         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
19234         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
19235         since it's only on unusual platforms that we need to check for
19236         'access', and it's better not to slow 'configure' down on all
19237         platforms.
19239         faccessat: port to Solaris 10
19240         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
19241         Needed on Solaris 10, which doesn't have AT_EACCESS,
19242         so we need the Gnulib fcntl.h, which defines it.
19244 2012-10-14  Pádraig Brady  <P@draigBrady.com>
19245         canonicalize: fix C89 compilation
19246         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
19247         declarations so C89 is supported.  Also remove the comment
19248         referencing memorty allocation as the suggested feature could
19249         not be implemented as suggested.
19250         Reported by Michael Goffioul.
19252 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19254         group-member: omit unnecessary dependencies
19255         This is for Emacs, which has its own allocator and where we
19256         don't want to use xalloc.
19257         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
19258         since we no longer use xmalloc.  Do not include stdbool.h, since
19259         the changes below happen to remove the only use of bool.
19260         (GROUPBUF_SIZE): New constant.
19261         (struct group_info): Remove n_groups member.  Add groupbuf member.
19262         This lets us get the groups without using malloc, usually.
19263         (free_group_info, get_group_info): Adjust to this.
19264         (get_group_info): Return the number of groups found, or -1 on error.
19265         Use plain malloc not xmalloc, and treat its failure as if there
19266         are no groups, as the user already loses in case of error.
19267         (group_member): Simplify, based on changes to get_group_info.
19268         * modules/group-member (Depends-on): Remove dependencies on
19269         xalloc and stdbool.  Add dependency on xalloc-oversized.
19271 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
19273         gethrxtime: port to C++
19274         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
19276 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19278         ptsname: fix macro-name typo
19279         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
19281 2012-10-03  Simon Josefsson  <simon@josefsson.org>
19283         inttostr: Relax license.
19284         * modules/inttostr (License): Change from LGPL to LGPLv2+.
19286 2012-10-03  Eric Blake  <eblake@redhat.com>
19288         ptsname_r: support ptys returned by FreeBSD posix_openpt
19289         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
19290         lives in /dev/pts/.
19292 2012-10-02  Eric Blake  <eblake@redhat.com>
19294         pselect: reject invalid file descriptors
19295         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
19296         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
19297         * modules/pselect (Depends-on): Add dup2.
19298         * doc/posix-functions/pselect.texi (pselect): Document this.
19300         select: reject invalid file descriptors
19301         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
19302         * lib/select.c (rpl_select) [!win32]: Work around it.
19303         * modules/select (Depends-on): Add dup2.
19304         * doc/posix-functions/select.texi (select): Document this.
19306         select: enhance test
19307         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
19308         New functions.
19309         (test_function): Enhance test.
19310         (do_select_bad_fd): Avoid any stale errno values.
19312         ptsname: reject invalid file descriptors
19313         http://www.austingroupbugs.net/view.php?id=503
19314         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
19315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
19316         * modules/stdlib (Makefile.am): Replace witness.
19317         * lib/stdlib.in.h (ptsname): Allow for replacement.
19318         * modules/ptsname (configure.ac): Trigger replacement.
19319         * doc/posix-functions/ptsname.texi (ptsname): Document this.
19321 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
19323         hash-pjw-bare: new module
19324         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
19325         * lib/hash-pjw-bare.h: Likewise.
19326         * modules/hash-pjw-bare: New file.
19327         * MODULES.html.sh (Misc): Add it.
19329 2012-10-02  Eric Blake  <eblake@redhat.com>
19331         manywarnings: cater to more gcc infelicities
19332         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
19333         -Wuninitialized without -O.
19335 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
19337         select, poll tests: Make setsockopt invocation effective.
19338         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
19339         the bind() call.
19340         * tests/test-select.h (open_server_socket): Likewise.
19342 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19344         sockets, sys_stat: restore AC_C_INLINE
19345         This undoes the 2012-09-22 patch.
19346         * m4/sockets.m4 (gl_SOCKETS):
19347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19348         Restore AC_C_INLINE, since MSVC requires __inline or _inline
19349         and does not support plain 'inline'.  Reported by Bruno Haible in
19350         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
19352 2012-09-30  Bruno Haible  <bruno@clisp.org>
19354         localeconv tests: Avoid test failure on OpenIndiana.
19355         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
19356         skip the 'grouping' and 'mon_grouping' tests.
19357         Reported by Jim Meyering.
19359 2012-09-30  Bruno Haible  <bruno@clisp.org>
19361         havelib: Follow libtool developments.
19362         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
19363         Suggested by Simon Josefsson.
19365 2012-09-29  Jim Meyering  <meyering@redhat.com>
19367         fstatat.c: fix a compile-impeding typo
19368         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
19369         Introduced in commit v0.0-7636-gd202279.
19370         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
19372 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
19374         extern-inline: provide a -Wundef safe config.h
19375         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
19376         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
19377         to produce a -Wundef warning free config.h.
19379 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19381         hash-pjw: relax license to LGPLv2+
19382         * modules/hash-pjw (License): Relax, with consent of author.
19384 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19386         maint.mk: fix strict vs. lazy variable issues with RELEASE
19387         * top/maint.mk (_equal): New function.
19388         (member_check): Strip the result to avoid spurious spaces.
19389         (url_dir_list): Do not use ifeq, which is strict, as it will
19390         require RELEASE_TYPE to be defined.
19391         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
19392         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
19393         (announcement_Cc_alpha,announcement_mail_headers_alpha)
19394         (announcement_Cc_beta,announcement_mail_headers_beta)
19395         (announcement_Cc_stable,announcement_mail_headers_stable): these.
19396         (release): Do not depend on $(release-type), as it forces its
19397         evaluation.  Bounce to it.
19399 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19401         maint.mk: formatting changes
19402         * top/maint.mk: Indent bodies of if's.
19404 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
19406         maint.mk: factor the validation of RELEASE_TYPE
19407         With help from Jim Meyering.
19408         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
19409         * top/maint.mk (_empty, _sp): Move their definition earlier.
19410         (member-check, release-type): New.
19411         Use the latter instead of $(RELEASE_TYPE).
19412         Remove now useless local checks.
19414 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19416         maint.mk: provide "make upload" to ease uploading
19417         See
19418         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
19419         Do not depend simply on the current $(VERSION), as there may have been
19420         new commits since the tarball generation.  Rather, rely on $(RELEASE),
19421         as "make release-commit" already does.
19423         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
19424         "make TYPE".
19426         * top/maint.mk (upload_command, upload, release): New.
19427         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
19428         (VERSION): first word of $(RELEASE) is always right.
19429         (emit_upload_commands): Adjust.
19430         * top/README-release: Update.
19432 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19434         maint.mk: silent rules
19435         With help from Stefano Lattarini.
19436         * top/maint.mk (writable-files): Use $(AM_V_GEN).
19437         (announcement): Use $(AM_V_at).
19439 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19441         localename: port gl_locale_name_thread_unsafe to FreeBSD
19442         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
19443         and use the simpler FreeBSD implementation on Mac OS X as well.
19444         Original idea suggested by Ed Maste in
19445         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
19447 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19449         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
19450         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
19451         * lib/mbuiter.c, lib/xsize.c: New files.
19452         * lib/binary-io.h (BINARY_IO_INLINE):
19453         * lib/eealloc.h (EEALLOC_INLINE):
19454         * lib/mbfile.h (MBFILE_INLINE):
19455         * lib/mbiter.h (MBITER_INLINE):
19456         * lib/mbuiter.h (MBUITER_INLINE):
19457         * lib/xsize.h (XSIZE_INLINE):
19458         New macros.
19459         Replace all uses of 'static inline' with them.
19460         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19461         * m4/eealloc.m4 (gl_EEALLOC):
19462         * m4/mbfile.m4 (gl_MBFILE):
19463         * m4/mbiter.m4 (gl_MBITER):
19464         * m4/xsize.m4 (gl_XSIZE):
19465         Do not require AC_C_INLINE.
19466         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
19467         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
19468         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
19469         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
19470         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
19471         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
19472         * modules/binary-io, modules/eealloc, modules/mbfile:
19473         * modules/mbiter, modules/mbuiter:
19474         (Depends-on): Add extern-inline.
19476         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
19477         * lib/pipe-filter-aux.c: New file.
19478         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
19479         Replace all uses of 'static inline' with it.
19480         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19481         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
19482         (filter_retcode): No real need for inline here.
19483         * modules/pipe-filter-gi, modules/pipe-filter-ii:
19484         (Files): Add lib/pipe-filter-aux.c.
19485         (Depends-on): Add extern-inline.
19486         (configure.ac): Do not require AC_C_INLINE.
19487         (lib_SOURCES): Add pipe-filter-aux.c.
19489         fdutimensat: omit unnecessary AC_C_INLINE
19490         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
19492         fchmodat, fchownat, fstatat: use extern-inline
19493         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
19494         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
19495         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
19496         New macros.
19497         * lib/openat.h:
19498         Replace all uses of 'static inline' with them.
19499         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19500         * modules/fchmodat, modules/fchownat, modules/fstatat:
19501         * modules/openat-h:
19502         (Depends-on):
19503         Add extern-inline.
19504         (configure.ac): Remove AC_C_INLINE.
19506         acl, mbchar, priv-set: use extern-inline
19507         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
19508         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
19509         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
19510         New macros.
19511         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
19512         Replace all uses of 'static inline' with it.
19513         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19514         * m4/acl.m4 (gl_FUNC_ACL):
19515         * m4/mbchar.m4 (gl_MBCHAR):
19516         * m4/priv-set.m4 (gl_PRIV_SET):
19517         Remove AC_C_INLINE, since 'inline' is no longer used directly.
19518         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
19519         Add extern-inline.
19521         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
19522         * m4/sockets.m4 (gl_SOCKETS):
19523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19524         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
19525         environments where it's already guaranteed to work, so we needn't
19526         check for it at 'configure'-time.
19528         tls-tests: omit unnecessary 'inline'
19529         * tests/test-tls.c (perhaps_yield): No longer inline.
19530         Simplicity and portability trump efficiency in test cases.
19532         utimens-tests: avoid unnecessary 'inline'
19533         * modules/fdutimensat-tests (configure.ac):
19534         * modules/futimens-tests (configure.ac):
19535         * modules/utimens-tests (configure.ac):
19536         * modules/utimensat-tests (configure.ac):
19537         Remove AC_C_INLINE.
19538         * tests/test-utimens-common.h (ctime_compare):
19539         No longer inline.  Simplicity and portability trump efficiency here.
19541         misc: don't limit commentary to inline functions
19542         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
19543         * lib/xalloc-oversized.h, lib/xsize.h:
19544         Contrast macros to functions in general, not just to inline functions,
19545         when the commentary does not apply only to inline functions.
19547 2012-09-20  Jim Meyering  <meyering@redhat.com>
19549         non-recursive-gnulib-prefix-hack: new module
19550         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
19551         the file that originated in Bison.
19552         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
19553         largely copied from a snippet that resided in bison's configure.ac.
19554         * modules/non-recursive-gnulib-prefix-hack: New file.
19555         * MODULES.html.sh (Support for maintaining and releasing projects):
19556         Add it.
19558 2012-09-18  Jim Meyering  <meyering@redhat.com>
19560         maint.mk: generalize _gl_tight_scope for non-recursive make
19561         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
19562         that *.h would describe additional .h files in the directory
19563         specified by $(_gl_TS_dir).  I.e., add this...
19564         (_gl_TS_other_headers): New variable.
19566         maint.mk: exempt trailing blanks found in "binary" files
19567         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
19568         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
19569         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19571 2012-09-17  Jim Meyering  <meyering@redhat.com>
19573         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
19574         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
19575         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
19576         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19578 2012-09-17  Jim Meyering  <meyering@redhat.com>
19580         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
19581         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
19582         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
19583         It is not in the same category as "exit (0)" or "exit (1)", and
19584         besides, I know of no symbolic name for that 77.  Reported by
19585         Richard W.M. Jones in
19586         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19588 2012-09-17  Jim Meyering  <meyering@redhat.com>
19590         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
19591         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
19592         all uses of #define, not just those that start in column 1.
19593         Richard W.M. Jones reported a false positive in
19594         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19596 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19598         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
19599         * lib/localcharset.c (locale_charset) [DARWIN7]:
19600         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
19601         as these two values are incompatible.  Problem reported by Max Horn.
19602         For more discussion, please see
19603         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
19605         doc: document sticky-EOF issue
19606         * doc/posix-functions/fgetc.texi (fgetc):
19607         * doc/posix-functions/fgets.texi (fgets):
19608         * doc/posix-functions/fread.texi (fread):
19609         * doc/posix-functions/fscanf.texi (fscanf):
19610         * doc/posix-functions/getc.texi (getc):
19611         * doc/posix-functions/getchar.texi (getchar):
19612         * doc/posix-functions/scanf.texi (scanf):
19613         Mention that glibc and default Solaris do not conform to
19614         C99 and POSIX-2001 or later, with respect to how getchar
19615         etc. behave when feof reports nonzero.
19617 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19619         poll: fix poll(0, NULL, msec)
19620         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
19621         but nfd is 0.  In that case poll should behave like select.
19623 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19624             Paolo Bonzini  <bonzini@gnu.org>
19626         poll: fix for systems that can't recv() on a non-socket
19627         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
19628         is readable.  In this case POLLHUP will not be supported.
19629         * doc/posix-functions/poll.texi: Document this.
19631 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
19633         poll/select: document portability problems not fixed by Gnulib.
19634         * doc/posix-functions/poll.texi: poll does not work well on
19635         pipes under Windows.  It has the same limitations as select on
19636         BeOS.
19637         * doc/posix-functions/select.texi: select does not work well
19638         on pipes under Windows.
19640 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19642         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
19643         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
19644         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
19645         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
19647 2012-09-06  Eric Blake  <eblake@redhat.com>
19649         net_if: give more details about the bug being fixed
19650         * doc/posix-headers/net_if.texi: Add clarification.
19652 2012-09-05  Eric Blake  <eblake@redhat.com>
19654         net_if: new module
19655         * modules/net_if: New module, borrowing ideas from netinet_in.
19656         * m4/net_if_h.m4: New file.
19657         * lib/net_if.in.h: Likewise.
19658         * doc/posix-headers/net_if.texi (net/if.h): Document it.
19659         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19660         * tests/test-net_if.c: Make function checks conditional.
19661         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
19663 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
19665         readutmp: fix non-portable UT_PID use
19666         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
19667         Use `UT_PID (u) > 0' as absolute condition.
19669 2012-09-04  Jim Meyering  <meyering@redhat.com>
19671         fts: reduce two or more trailing spaces to just one, usually
19672         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
19673         or more slashes, trim all but the final one.  But if a name consists
19674         solely of two slashes, don't modify it.  If it consists solely of
19675         three or more slashes, strip all but one.
19677         This is part of the solution to a minor problem with rm:
19678         it would print a bogus ELOOP diagnostic when failing to remove
19679         the slash-decorated name of a symlink-to-directory:
19681             $ mkdir d && ln -s d s && env rm -r s/
19682             rm: cannot remove 's': Too many levels of symbolic links
19684         With the change below and a trivial don't-trim-trailing-slashes
19685         adjustment to remove.c, it does this:
19687             $ env rm -r s/
19688             rm: cannot remove 's/': Not a directory
19690         Improved by: Eric Blake
19692         fts: when there is no risk of overlap, use memcpy, not memmove
19693         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
19695 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19697         stdbool: be more compatible with mixed C/C++ compiles
19698         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
19699         Define to bool, true, false, respectively, as GCC's builtin
19700         stdbool.h does.  Problem reported by Michael Goffioul in
19701         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
19703 2012-08-28  Jim Meyering  <meyering@redhat.com>
19705         revert last change: it was not needed
19706         * tests/test-vc-list-files-git.sh: There's already a test for
19707         a working git, just below.
19709 2012-08-28  Jim Meyering  <meyering@redhat.com>
19711         tests: test-vc-list-files-git.sh: skip if git is not available
19712         * tests/test-vc-list-files-git.sh: Skip this test when git is
19713         not available.
19715 2012-08-26  Bruno Haible  <bruno@clisp.org>
19717         gnulib-tool: Remove no-op option --no-changelog.
19718         * gnulib-tool (func_usage): Don't mention --no-changelog.
19719         (do_changelog): Remove variable.
19720         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19722 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19724         doc: remove fdl-1.2.texi
19725         It is no longer used or maintained, and its use of @acronym
19726         is problematic.  See the thread containing
19727         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
19728         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
19729         * doc/old-licenses/fdl-1.2.texi: Remove.
19731         execinfo: port to FreeBSD
19732         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
19733         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
19734         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
19735         * modules/execinfo (Link): Add $(LIB_EXECINFO).
19737 2012-08-23  Jim Meyering  <meyering@redhat.com>
19739         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
19740         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
19741         to placate gcc's -Wold-style-declaration.
19743 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19745         doc: do not use @acronym
19746         * doc/inet_ntoa.texi (inet_ntoa):
19747         * doc/parse-datetime.texi (Seconds since the Epoch)
19748         (Specifying time zone rules):
19749         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
19750         Don't use @acronym.  Problem reported by John Darlington in
19751         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
19753 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19755         stdnoreturn: port to newer GCCs
19756         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
19757         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
19758         Problem reported by Jim Meyering in
19759         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
19760         Also, rename the 'test' function to a void a clash with the
19761         already-supplied 'main' function; this fixes a bug that incorrectly
19762         rejected GCC 4.7.1's <stdnoreturn.h>.
19763         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
19764         Document GCC problem.
19766 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
19768         pipe-filter: fix comment typo
19769         * lib/pipe-filter.h: Mention correct function.
19771 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19773         execinfo: new module
19774         This is for Emacs.  Currently, it provides a no-effect stub
19775         on all platforms where it does not already work.
19776         It already works on glibc-based systems, and on Solaris 11.
19777         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
19778         New files.
19779         * doc/glibc-headers/execinfo.texi (execinfo.h):
19780         * MODULES.html.sh (Misc): Document it.
19782 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19784         extern-inline: support old GCC 'inline'
19785         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
19786         if available.  This applies to GCC versions 2.7 through 4.2, or
19787         when newer GCC is using -fgnu89-inline.  The goal is to address
19788         some of the performance issues mentioned by Bruno Haible in
19789         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
19791 2012-08-20  Eric Blake  <eblake@redhat.com>
19793         maint.mk: avoid redundant file name in message
19794         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19795         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
19796         (sc_makefile_path_separator_check): Remove bogus $(ME).
19798 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
19800         timer-time: fix link order when static linking on glibc
19801         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19802         _after_ -lrt so that it's significant.
19804 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19806         timespec: omit unnecessary AC_C_INLINE
19807         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
19809         stat-time: omit unnecessary AC_C_INLINE
19810         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
19811         Do not require AC_C_INLINE.
19813         ignore-value: omit unnecessary AC_C_INLINE
19814         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
19816         sys_select: avoid 'static inline'
19817         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
19819         mktime: avoid 'static inline'
19820         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
19821         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
19823 2012-08-19  Bruno Haible  <bruno@clisp.org>
19825         gnulib-tool: Improve coding style.
19826         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
19827         func_emit_lib_Makefile_am.
19828         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19830 2012-08-19  Bruno Haible  <bruno@clisp.org>
19832         gnulib-tool: Fix indentation.
19833         * gnulib-tool (func_import): Fix indentation.
19835 2012-08-19  Bruno Haible  <bruno@clisp.org>
19837         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
19838         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
19839         on the list of removed files.
19841 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19843         test-parse-datetime: avoid glibc leap-second glitch
19844         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
19845         with the 2012 rules.  Problem reported by Bruce Dubbs in
19846         <http://bugs.gnu.org/12206>.
19848 2012-08-14  Bruno Haible  <bruno@clisp.org>
19850         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19851         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19852         from argument.
19853         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19855 2012-08-14  Eric Blake  <eblake@redhat.com>
19857         ldexp: relax license
19858         * modules/ldexp (License): Trivial relax, since the module only
19859         provides a permissively licensed m4 file.
19861 2012-08-13  Bruno Haible  <bruno@clisp.org>
19863         gnulib-tool: Fix persistence of --witness-c-macro option.
19864         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19865         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19867 2012-08-11  Eric Blake  <eblake@redhat.com>
19869         count-leading-zeros: use a lookup table on non-gcc compilers
19870         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19871         alternate implementation, suggested by Jim Meyering.
19873 2012-08-10  Eric Blake  <eblake@redhat.com>
19875         count-leading-zeros: new module
19876         * modules/count-leading-zeros: New module.
19877         * m4/count-leading-zeros.m4: New file.
19878         * lib/count-leading-zeros.h: Likewise.
19879         * modules/count-leading-zeros-tests: New test.
19880         * tests/test-count-leading-zeros.c: New file.
19881         * MODULES.html.sh (Integer arithmetic functions): Document it.
19883 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19884             Jim Meyering  <meyering@redhat.com>
19886         maintainer-makefile: Fix syntax error with dash.
19887         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19888         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19890 2012-08-05  Jim Meyering  <meyering@redhat.com>
19892         extern-inline: also ignore -Wmissing-declarations
19893         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19894         required with gcc-4.8.0-to-be.
19896         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19897         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19898         for /error ?([^,]*)/.  This avoids false-positives for strings like
19899         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19901 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19903         gnumakefile: better interaction with Automake-NG
19904         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19905         Automake-NG always contain a definition of VPATH, even in non-VPATH
19906         builds (its value being simply '.' in that case).  So, in the
19907         'clean-GNUmakefile' rule, to determine whether running under a
19908         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19909         '$(VPATH)' expands to the empty string.
19911 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19913         base64: Use extern C scope in header file, for C++.
19914         * lib/base64.h: Add C++ namespace protection.
19916 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19918         stat-time, timespec, u64: support naive out-of-dir builds
19919         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19920         Use '#include "foo.h"', not '#include <foo.h>', when including
19921         one's own interface.  This works better when configuring with
19922         out-of-directory builds, since packages need not add an
19923         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19925 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19927         utimens: use extern-inline
19928         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19929         * lib/utimens.h: Add copyright notice, since this is now large enough
19930         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19931         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19932         * modules/utimens (Depends-on): Add extern-inline.
19934         u64: use extern-inline
19935         * lib/u64.c: New file.
19936         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19937         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19938         * modules/u64 (Files): Add lib/u64.c.
19939         (Depends-on): Add extern-inline.
19940         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19941         does that now.
19942         (lib_SOURCES): Add u64.c.
19944         timespec: use extern-inline
19945         * lib/timespec.c: New file.
19946         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19947         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19948         * modules/timespec (Files): Add lib/timespec.c.
19949         (Depends-on): Add extern-inline.
19950         (lib_SOURCES): Add timespec.c.
19952         stat-time: use extern-inline
19953         * lib/stat-time.c: New file.
19954         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19955         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19956         * modules/stat-time (Files): Add lib/stat-time.c.
19957         (Depends-on): Add extern-inline.
19958         (lib_SOURCES): Add stat-time.c.
19960         extern-inline: new module
19961         * modules/extern-inline, m4/extern-inline.m4: New files.
19962         This is for better support of 'extern inline' a la ISO C99,
19963         with a portable alternative on compilers that do not support
19964         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19965         of the Emacs executable, when compiled with debugging disabled,
19966         which is a typical way that Emacs is built while developing.
19968 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19970         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19971         * build-aux/do-release-commit-and-tag: Move variable definitions
19972         together.
19973         ($branch): Instead of defaulting to "master", default to the current
19974         branch (as gnu-web-doc-update does).
19975         (help): Display the current values of the option arguments.
19976         * top/maint.mk (release-commit): New.
19977         * top/README-release: Simplify the corresponding step.
19979 2012-07-30  Eric Blake  <eblake@redhat.com>
19981         passfd: fix comment on recvfd
19982         * lib/passfd.c (recvfd): Fix comment.
19983         Reported by Jann Horn <jannhorn@googlemail.com>.
19985 2012-07-30  Jim Meyering  <meyering@redhat.com>
19987         maint.mk: avoid a sub-shell
19988         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19990 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19992         maint.mk: use silent-rules support from Automake
19993         * top/maint.mk (news-check, vc-diff-check, announcement)
19994         (no-submodule-changes, alpha beta stable, release-prep)
19995         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19997 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19999         maint.mk: provide a web-manual-update target
20000         * top/maint.mk: here.
20001         * top/README-release: Use it to simplify the web manual update step.
20003 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20005         README-release: shorten the circuit to post a news
20006         * top/README-release: Point directly to the news submission form.
20008 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20010         gnu-web-doc-update: fix --help
20011         * build-aux/gnu-web-doc-update: The information "top level" was written
20012         twice.
20014 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20016         maint.mk: absolute VPATH issue
20017         * top/maint.mk (release-prep): Help Git find .git/.
20018         From Jim Meyering.
20020 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20022         gitlog-to-changelog: fix previous change
20023         * build-aux/gitlog-to-changelog: Fix condition.
20024         Add missing ";".
20026 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20028         gitlog-to-changelog: don't expect .git to be in $srcdir
20029         Reported by Bruno Haible.
20030         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
20031         * build-aux/gitlog-to-changelog (&git_dir_option): New.
20032         Use it.
20034 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20036         maint.mk: absolute VPATH build fix
20037         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
20038         $(srcdir) is not a parent of $(builddir).
20040 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
20042         clean-temp: Fix memory leak.
20043         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
20044         'files' members of tmpdir.
20046 2012-07-27  Jim Meyering  <meyering@redhat.com>
20048         maint.mk: new rule: refresh-gnulib-patches
20049         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
20050         Use this rule to refresh them.
20051         * top/maint.mk (refresh-gnulib-patches): New rule.
20053 2012-07-24  Bruno Haible  <bruno@clisp.org>
20055         gnulib-tool: Fix handling of inctests variable.
20056         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
20057         Reported by Nick Bowler <nbowler@elliptictech.com>.
20059 2012-07-22  Bruno Haible  <bruno@clisp.org>
20061         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
20062         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
20063         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
20064         Remove exemption for getpass.h.
20065         Suggested by Eric Blake.
20067 2012-07-20  Eric Blake  <eblake@redhat.com>
20069         verify: document conflict with -Wnested-externs
20070         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
20072         maint.mk: forbid exit(-1)
20073         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
20075 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20077         fsusage: port back to Solaris
20078         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
20079         error (fsd not declared) on Solaris 10.  Reported privately by
20080         Andrew Borodin.
20082 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
20084         gnu-web-doc-update: fix error messages
20085         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
20087         gnu-web-doc-update: check the requirements.
20088         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
20089         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
20090         * build-aux/bootstrap (find_tool): Comment change.
20092 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
20094         maint.mk: minor simplication.
20095         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
20096         for default values.
20098 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
20100         gitlog-to-changelog: VPATH build issues
20101         If builddir is not a subdirectory of srcdir, running git from it will
20102         fail.
20103         * build-aux/gitlog-to-changelog (--srcdir): New option.
20105 2012-07-15  Bruno Haible  <bruno@clisp.org>
20107         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
20108         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
20109         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
20110         Remove exemption for fpending.h.
20111         Suggested by Eric Blake.
20113 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20115         pthread_sigmask: fix bug on FreeBSD 9
20116         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
20117         Include string.h.
20118         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
20119         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
20120         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
20121         but pthread_sigmask (1729, NULL, NULL) returns zero.
20122         See <http://bugs.gnu.org/11884>.
20123         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
20124         by inspecting whether the main call changed the old mask.
20126 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
20128         README-release: make it more legible
20129         * top/README-release: Improve typography slightly.
20131 2012-07-15  Jim Meyering  <meyering@redhat.com>
20133         maint: require that each sc_... command start with "@"
20134         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
20135         "make sc_maint" helps us avoid this nit.
20137 2012-07-15  Jim Meyering  <meyering@redhat.com>
20139         maint.mk: add leading "@" to quiet new "make syntax-check" rule
20140         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
20142 2012-07-13  Eric Blake  <eblake@redhat.com>
20144         maint.mk: new syntax check for HAVE_DECL checks
20145         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
20146         * cfg.mk
20147         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
20148         Exempt some false positives.
20149         Based on a report by Karel Zak.
20151         argp: make HAVE_DECL usage consistent
20152         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
20153         macros, not whether they are defined.
20154         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
20155         convention with other declaration checks.
20156         Reported by Karel Zak, with suggestions from Paul Eggert.
20158         stat-time: relax license to LGPLv2+
20159         * modules/stat-time (License): Relax, with consent of all authors.
20161         strndup: fix m4 usage error
20162         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
20163         defined, to either 0 or 1.
20164         Reported by Karel Zak.
20166 2012-07-11  Jim Meyering  <meyering@redhat.com>
20168         maint: enable the sc_avoid_if_before_free syntax-check rule
20169         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
20170         (if_before_free_offenders_): Define.
20171         (if_before_free_basename_re_): Define.
20172         Exempt current files with useless if-before-free.
20174 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
20176         gettext: do not assume '#define ... defined ...' behavior
20177         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
20178         Do not use '#define FOO ... defined BAR ...', as the C standard says
20179         it's not portable to expect that this works after macro expansion.
20180         Problem reported for gzip by Steven M. Schweda in
20181         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
20183 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20185         getloadavg: clean out old Emacs and Autoconf cruft
20186         See Glenn Morris in <http://bugs.gnu.org/11905>.
20187         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
20188         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
20189         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
20190         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
20192 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
20194         bootstrap: let warn be like tests/init.sh's warn_
20195         Reported by Jim Meyering.
20196         * build-aux/bootstrap (warn): Remove, replaced by...
20197         (warnf_, warn_): these.
20198         Adjust callers.
20199         Shorten messages that no longer fit in 80 columns.
20201 2012-07-09  Bruno Haible  <bruno@clisp.org>
20203         getopt: Simplify after Emacs changed.
20204         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
20205         (gl_GETOPT_IFELSE): Remove macro.
20207 2012-07-09  Jim Meyering  <meyering@redhat.com>
20209         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
20210         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
20212         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
20213         Bugs in both of those conspired to make the
20214         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
20215         _sc_search_regexp's handling of non-empty $in_files would filter
20216         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
20217         choice of in_files value meant there would be no match in most
20218         projects, due to the presence of two or more Makefile.in files.
20219         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
20220         Fix a bug in how a non-empty $$in_files was processed:
20221         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
20222         in spite of the name, it's a regexp, not a list of file names.
20224 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20226         getloadavg, getopt: fix commentary re configure.in
20227         Autoconf is deprecating the name 'configure.in', so change it to
20228         to the new name 'configure.ac' in a couple of places.
20229         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
20230         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
20231         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
20232         Emacs has renamed it to configure.ac, and it no longer refers
20233         to these macros anyway.
20235         timespec: mark functions with const attributes
20236         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
20237         Mark with _GL_ATTRIBUTE_CONST.
20239 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20241         canonicalize[-lgpl]: handle "guessing" values when cross-building
20242         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20243         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
20244         matches "*yes" instead of just "yes".  Regression introduced in commit
20245         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
20247 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20248             Bruno Haible  <bruno@clisp.org>
20250         canonicalize: make the right guess when cross-compiling to GNU
20251         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
20252         determine whether cross-compiling to glibc systems, so as to
20253         include GNU/Hurd.
20255 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20257         timespec-sub: avoid duplicate include
20258         * lib/timespec-sub.c: Do not include <config.h> twice.
20259         Reported by Juanma Barranquero.
20261 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
20263         bootstrap: use a more consistent error reporting scheme
20264         * build-aux/bootstrap (warn, die): New.
20265         Use them.
20267 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20269         sys_time: allow too-wide tv_sec
20270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
20271         timeval even if tv_sec is wider than time_t.  This allows
20272         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
20273         as without this patch gnulib replaces struct timeval
20274         and OpenBSD futimes therefore has a type mismatch.
20275         * doc/posix-headers/sys_time.texi: Mention this.
20277         pthread: check for both pthread_create and pthread_join
20278         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
20279         alter the check so that it tests for both pthread_create and
20280         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
20281         Suggested by Bruno Haible and Richard Yao in
20282         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
20284         parse-datetime: doc tuneup
20285         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
20286         spacing issues.
20288 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
20290         do-release-commit-and-tag: fix the previous commit
20291         * build-aux/do-release-commit-and-tag: Actually the test was right,
20292         but the comment and the error message were misleading.
20293         Fix comment, and improve error message.
20294         Perform check first, so that NEWS is not modified uselessly.
20296         do-release-commit-and-tag: fix typo
20297         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
20298         _not_ start with a stub.
20300 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20302         pthread: check for pthread_create, not pthread_join
20303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
20304         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
20305         pthread_join in libc.  I hope this removes the need for all the
20306         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
20307         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
20309 2012-07-04  Jim Meyering  <meyering@redhat.com>
20311         parse-datetime: fix failure to diagnose invalid input
20312         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
20313         rather than diagnosing the invalid input.  Now it reports this:
20314         date: invalid date '\260'
20315         * lib/parse-datetime.y (to_uchar): Define.
20316         (yylex): Don't sign-extend "other" bytes.
20317         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
20318         Thanks to Bruno Haible for the patch to this file.
20319         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
20320         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
20322 2012-07-03  Jim Meyering  <meyering@redhat.com>
20324         bootstrap: do not require now-removed build-aux/missing
20325         Now that build-aux/missing is, er, missing, bootstrap would
20326         silently fail.
20327         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
20328         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
20329         no longer part of gnulib.
20330         Diagnose the failure.
20332 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20334         alloca: add support for HP NonStop TNS/E native
20335         * lib/alloca.in.h (alloca): Support the new host.
20336         From a suggestion by Joachim Schmitz in
20337         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
20339 2012-07-02  Pádraig Brady  <P@draigBrady.com>
20341         fsusage: remove code not needed on non GNU/Linux systems.
20343         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20344         Don't include headers no longer needed in this case.
20345         * lib/fsusage.c [STAT_STATVFS &&
20346         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
20347         STAT_STATFS2_FRSIZE to exclude code not used in this case.
20349 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20351         fsusage: include files needed for glibc 2.6 fallback
20352         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20353         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
20354         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
20355         Problem reported by Ludovic Courtès in
20356         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
20358         fsusage: avoid needless check on GNU/Linux
20359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
20360         on GNU/Linux systems, since it can't possibly work.
20362 2012-07-01  Bruno Haible  <bruno@clisp.org>
20364         log: Fix an autoconf >= 2.64 warning.
20365         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
20366         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20368 2012-06-28  Bruno Haible  <bruno@clisp.org>
20370         log10f: Fix possible configuration problem.
20371         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
20372         $LOGF_LIBM.
20373         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20375 2012-06-28  Bruno Haible  <bruno@clisp.org>
20377         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
20378         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
20379         not gl_cv_func_unlink_works.
20380         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20382 2012-06-27  Eric Blake  <eblake@redhat.com>
20384         config: drop scripts that automake says are not independent
20385         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
20386         * build-aux/elisp-comp: Delete.
20387         * build-aux/missing: Likewise.
20388         * build-aux/ylwrap: Likewise.
20389         * modules/elisp-comp: Likewise.
20390         * MODULES.html.sh: Drop mention of elisp-comp.
20391         * NEWS: Mention this.
20393 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
20395         root-uid: new module
20396         This is for portability to Tandem's NonStop Kernel.
20397         * lib/root-uid.h, modules/root-uid: New files.
20398         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
20399         * lib/write-any-file.c, tests/test-sethostname2.c:
20400         Include "root-uid.h".
20401         * lib/euidaccess.c (euidaccess):
20402         * lib/pt_chown.c (main):
20403         * lib/unlinkdir.c (cannot_unlink_dir):
20404         * lib/write-any-file.c (can_write_any_file):
20405         * m4/mknod.m4 (gl_FUNC_MKNOD):
20406         * tests/test-sethostname2.c (geteuid, main):
20407         Don't assume ROOT_UID == 0.
20408         * modules/euidaccess (Depends-on):
20409         * modules/pt_chown (Depends-on):
20410         * modules/sethostname-tests (Depends-on):
20411         * modules/unlinkdir (Depends-on):
20412         * modules/write-any-file (Depends-on):
20413         Add root-uid.
20415         regex: use locale-independent comparison for codeset name
20416         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
20417         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
20418         for codeset name.
20419         * lib/regex_internal.h: Do not include <strings.h>, since we
20420         no longer use strcasecmp.
20421         * modules/regex (Depends-on): Remove strcase.
20423 2012-06-23  Bruno Haible  <bruno@clisp.org>
20425         getopt-posix: No longer guarantee that option processing is resettable.
20426         * doc/posix-functions/getopt.texi: Drop description of problem with
20427         internal state. Fix info about mingw and msvc9.
20428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
20429         option processing by getopt(). Run three test programs instead of one.
20430         Simplify cross-compilation guess.
20431         * NEWS: Mention the change.
20432         Reported by Rich Felker <dalias@aerifal.cx>.
20434 2012-06-26  Bruno Haible  <bruno@clisp.org>
20436         argp, regex: Ensure strcasecmp gets declared.
20437         * lib/argp-help.c: Include <strings.h>.
20438         * lib/regex_internal.h: Likewise.
20439         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
20441 2012-06-24  Bruno Haible  <bruno@clisp.org>
20443         ptsname_r: Make it consistent with ptsname on AIX.
20444         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
20445         implementation as for OSF/1.
20446         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
20447         a pty master.
20449         ptsname_r: Make it consistent with ptsname on OSF/1.
20450         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20451         OSF/1.
20453 2012-06-24  Bruno Haible  <bruno@clisp.org>
20455         ttyname_r: Fix result on OSF/1, Solaris.
20456         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
20458 2012-06-24  Bruno Haible  <bruno@clisp.org>
20460         ptsname_r: Add support for Solaris.
20461         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20462         Solaris.
20464         ptsname_r: Fix test failure on native Windows.
20465         * modules/ptsname_r (Depends-on): Add isatty.
20467         ptsname_r: Fix test failures on IRIX, Solaris.
20468         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
20469         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
20470         accordingly.
20471         * lib/ptsname_r.c: Include <fcntl.h>.
20472         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
20473         set errno if fd is invalid.
20474         * tests/test-isatty.c (main): Update comments.
20476 2012-06-24  Bruno Haible  <bruno@clisp.org>
20478         ptsname test: Extend test.
20479         * tests/test-ptsname.c: Include <errno.h>.
20480         (main): Test behaviour with invalid file descriptor.
20482 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20484         time: fix obsolete comment
20485         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
20486         reference to HAVE_STRUCT_TIMESPEC in comment.
20488 2012-06-23  Bruno Haible  <bruno@clisp.org>
20490         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
20491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
20492         does not handle abbreviated long options with equivalent
20493         disambiguations, set gl_replace_getopt to yes.
20494         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
20496 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20498         time_r: fix typo that always overrode localtime_r decl
20499         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
20500         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
20501         not in a standard include.
20503 2012-06-22  Bruno Haible  <bruno@clisp.org>
20505         Write "Mac OS X" instead of "MacOS X".
20506         * README: Write "Mac OS X" instead of "MacOS X".
20507         * build-aux/bootstrap: Likewise.
20508         * build-aux/install-reloc: Likewise.
20509         * lib/acl-internal.h: Likewise.
20510         * lib/acl_entries.c: Likewise.
20511         * lib/argp-ba.c: Likewise.
20512         * lib/argp-pv.c: Likewise.
20513         * lib/config.charset: Likewise.
20514         * lib/copy-acl.c: Likewise.
20515         * lib/csharpexec.c: Likewise.
20516         * lib/euidaccess.c: Likewise.
20517         * lib/fbufmode.c: Likewise.
20518         * lib/fflush.c: Likewise.
20519         * lib/file-has-acl.c: Likewise.
20520         * lib/filemode.h: Likewise.
20521         * lib/fpurge.c: Likewise.
20522         * lib/freadable.c: Likewise.
20523         * lib/freadahead.c: Likewise.
20524         * lib/freading.c: Likewise.
20525         * lib/freadptr.c: Likewise.
20526         * lib/freadseek.c: Likewise.
20527         * lib/fseeko.c: Likewise.
20528         * lib/fseterr.c: Likewise.
20529         * lib/fsusage.c: Likewise.
20530         * lib/fwritable.c: Likewise.
20531         * lib/fwriting.c: Likewise.
20532         * lib/get-rusage-as.c: Likewise.
20533         * lib/get-rusage-data.c: Likewise.
20534         * lib/getdomainname.c: Likewise.
20535         * lib/idpriv-drop.c: Likewise.
20536         * lib/idpriv-droptemp.c: Likewise.
20537         * lib/localcharset.c: Likewise.
20538         * lib/locale.in.h: Likewise.
20539         * lib/localename.c: Likewise.
20540         * lib/mbsrtowcs-state.c: Likewise.
20541         * lib/nproc.c: Likewise.
20542         * lib/passfd.c: Likewise.
20543         * lib/posix_openpt.c: Likewise.
20544         * lib/printf-parse.c: Likewise.
20545         * lib/progreloc.c: Likewise.
20546         * lib/safe-read.h: Likewise.
20547         * lib/safe-write.h: Likewise.
20548         * lib/sched.in.h: Likewise.
20549         * lib/set-mode-acl.c: Likewise.
20550         * lib/signal.in.h: Likewise.
20551         * lib/stdint.in.h: Likewise.
20552         * lib/stdio-impl.h: Likewise.
20553         * lib/stdlib.in.h: Likewise.
20554         * lib/strtod.c: Likewise.
20555         * lib/sys_select.in.h: Likewise.
20556         * lib/tcgetsid.c: Likewise.
20557         * lib/unistd.in.h: Likewise.
20558         * lib/unlockpt.c: Likewise.
20559         * lib/vasnprintf.c: Likewise.
20560         * lib/vma-iter.c: Likewise.
20561         * lib/wcsrtombs-state.c: Likewise.
20562         * m4/acl.m4: Likewise.
20563         * m4/acosl.m4: Likewise.
20564         * m4/asinl.m4: Likewise.
20565         * m4/atanl.m4: Likewise.
20566         * m4/c-stack.m4: Likewise.
20567         * m4/cosl.m4: Likewise.
20568         * m4/expl.m4: Likewise.
20569         * m4/extensions.m4: Likewise.
20570         * m4/fdatasync.m4: Likewise.
20571         * m4/fmal.m4: Likewise.
20572         * m4/frexp.m4: Likewise.
20573         * m4/frexpf.m4: Likewise.
20574         * m4/frexpl.m4: Likewise.
20575         * m4/fsusage.m4: Likewise.
20576         * m4/getdomainname.m4: Likewise.
20577         * m4/getloadavg.m4: Likewise.
20578         * m4/getopt.m4: Likewise.
20579         * m4/gettext.m4: Likewise.
20580         * m4/gnulib-common.m4: Likewise.
20581         * m4/intdiv0.m4: Likewise.
20582         * m4/intlmacosx.m4: Likewise.
20583         * m4/largefile.m4: Likewise.
20584         * m4/ldexpl.m4: Likewise.
20585         * m4/link-follow.m4: Likewise.
20586         * m4/locale-ar.m4: Likewise.
20587         * m4/locale-fr.m4: Likewise.
20588         * m4/locale-ja.m4: Likewise.
20589         * m4/locale-tr.m4: Likewise.
20590         * m4/locale-zh.m4: Likewise.
20591         * m4/locale_h.m4: Likewise.
20592         * m4/lock.m4: Likewise.
20593         * m4/logl.m4: Likewise.
20594         * m4/mathfunc.m4: Likewise.
20595         * m4/minus-zero.m4: Likewise.
20596         * m4/mktime.m4: Likewise.
20597         * m4/mmap-anon.m4: Likewise.
20598         * m4/multiarch.m4: Likewise.
20599         * m4/nanosleep.m4: Likewise.
20600         * m4/nocrash.m4: Likewise.
20601         * m4/poll.m4: Likewise.
20602         * m4/printf-frexpl.m4: Likewise.
20603         * m4/printf.m4: Likewise.
20604         * m4/signbit.m4: Likewise.
20605         * m4/sinl.m4: Likewise.
20606         * m4/sqrtl.m4: Likewise.
20607         * m4/strerror_r.m4: Likewise.
20608         * m4/tanl.m4: Likewise.
20609         * m4/threadlib.m4: Likewise.
20610         * m4/ttyname_r.m4: Likewise.
20611         * m4/unlink.m4: Likewise.
20612         * m4/visibility.m4: Likewise.
20613         * m4/wcwidth.m4: Likewise.
20614         * tests/minus-zero.h: Likewise.
20615         * tests/test-alloca-opt.c: Likewise.
20616         * tests/test-copy-acl.sh: Likewise.
20617         * tests/test-copy-file.sh: Likewise.
20618         * tests/test-fdatasync.c: Likewise.
20619         * tests/test-file-has-acl.sh: Likewise.
20620         * tests/test-flock.c: Likewise.
20621         * tests/test-fsync.c: Likewise.
20622         * tests/test-localename.c: Likewise.
20623         * tests/test-malloca.c: Likewise.
20624         * tests/test-nonblocking-pipe.h: Likewise.
20625         * tests/test-nonblocking-socket.h: Likewise.
20626         * tests/test-openpty.c: Likewise.
20627         * tests/test-posix_openpt.c: Likewise.
20628         * tests/test-ptsname.c: Likewise.
20629         * tests/test-ptsname_r.c: Likewise.
20630         * tests/test-sameacls.c: Likewise.
20631         * tests/test-select.h: Likewise.
20632         * tests/test-set-mode-acl.sh: Likewise.
20633         * tests/test-snprintf-posix.h: Likewise.
20634         * tests/test-sprintf-posix.h: Likewise.
20635         * tests/test-strtod.c: Likewise.
20636         * tests/test-time.c: Likewise.
20637         * tests/test-vasnprintf-posix.c: Likewise.
20638         * tests/test-vasprintf-posix.c: Likewise.
20639         * doc/acl-resources.txt: Likewise.
20640         * doc/**/*.texi: Likewise.
20641         Reported by Max Horn <max@quendi.de>.
20643 2012-06-22  Bruno Haible  <bruno@clisp.org>
20645         grantpt: Relax requirement regarding invalid file descriptors.
20646         * lib/grantpt.c: Don't include <fcntl.h>.
20647         (grantpt): Don't verify the validity of the file descriptor.
20648         * modules/grantpt (Depends-on): Remove fcntl-h.
20649         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
20650         file descriptors.
20651         * doc/posix-functions/grantpt.texi: Document more platforms on which
20652         grantpt succeeds for invalid file descriptors.
20653         Reported by Rich Felker <dalias@aerifal.cx>.
20655 2012-06-22  Bruno Haible  <bruno@clisp.org>
20657         fbufmode test: Don't test unportable behaviour.
20658         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
20659         (main): Invoke it three times.
20660         Reported by Szabolcs Nagy <nsz@port70.net>
20661         and Rich Felker <dalias@aerifal.cx>.
20663 2012-06-21  Bruno Haible  <bruno@clisp.org>
20665         gnulib-tool: Refactor inctests variable.
20666         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
20667         (func_modules_transitive_closure,
20668         func_modules_transitive_closure_separately,
20669         func_import, func_create_testdir): Update.
20671         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
20672         * gnulib-tool: Accept option --without-tests.
20673         (func_usage): Document --without-tests option. Rearrange.
20674         (inctests): Normalize according to the mode.
20675         * NEWS: Mention the change.
20676         Suggested by Simon Josefsson.
20678 2012-06-21  Bruce Korb  <bkorb@gnu.org>
20680         parse-duration test: Avoid spurious output.
20681         * tests/test-parse-duration.sh: Reindent with leading tabs.
20683 2012-06-21  Jim Meyering  <meyering@redhat.com>
20685         maint: disable the strncpy prohibition
20686         * cfg.mk: Do not prohibit strncpy here.
20688 2012-06-21  Bruno Haible  <bruno@clisp.org>
20690         nonblocking: Avoid compilation error on mingw64.
20691         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
20692         fscanf.
20693         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
20694         * modules/vfscanf (configure.ac): Likewise.
20695         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
20696         definition only if stdio.h has prepared it.
20697         Reported by Daniel P. Berrange <berrange@redhat.com>.
20699 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
20701         gnulib-tool: Use readlink if it is available.
20702         * gnulib-tool (func_readlink): Choose function more appropriately.
20704 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20706         posixtm-tests: port to buggy compiler
20707         Problem reported by Simon Josefsson in
20708         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
20709         * modules/posixtm-tests (Depends-on): Add stdint.
20710         * tests/test-posixtm.c (struct posixtm_test.t_expected):
20711         Now of type int_least64_t, not int64_t, both because that's
20712         what INT64_C returns and because int_least64_t works even
20713         on 72-bit hosts.
20714         (T): Use INT64_C on constants outside the traditional int range,
20715         to work around compiler bug noted by Simon.
20717         mktime: fix integer overflow in 'configure'-time test
20718         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
20719         after integer overflow.  Problem reported by Rich Felker in
20720         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
20721         Also, don't look for further instances of a bug if we've already
20722         found one instance; this helps 'configure' run faster.
20724 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
20726         tmpfile, clean-temp: Fix invocation of GetVersionEx.
20727         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
20728         GetVersionEx correctly.
20729         * lib/clean-temp.c (supports_delete_on_close): Likewise.
20731 2012-06-20  Bruno Haible  <bruno@clisp.org>
20733         fdopen: Allow implementations that don't reject invalid fd arguments.
20734         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
20735         succeeds.
20736         Reported by Rich Felker <dalias@aerifal.cx>.
20738 2012-06-20  Simon Josefsson  <simon@josefsson.org>
20740         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
20741         bring in LIBINTL.
20743 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20745         init.sh: do not rely on autoupated PWD
20746         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
20747         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
20748         Although Nelson's bug was not necessarily fixed by this patch,
20749         it seems wise to make the change for safety.
20750         * tests/init.sh (path_prepend_): Do not rely on PWD updating
20751         automagically after 'cd'; this is not reliable on older shells.
20752         (setup_): Fail if we cannot cd to temporary directory.
20754 2012-06-19  Bruno Haible  <bruno@clisp.org>
20756         stat, fstat: Avoid warnings on mingw64.
20757         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
20758         redefining.
20759         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
20760         Reported by Daniel P. Berrange <berrange@redhat.com>.
20762 2012-06-19  Bruno Haible  <bruno@clisp.org>
20764         stdioext: Add support for musl libc.
20766         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
20767         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
20769         * m4/fseterr.m4: New file.
20770         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
20771         function exists.
20772         * modules/fseterr (Files): Add m4/fseterr.m4.
20773         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
20774         __fseterr does not exist.
20775         (Makefile.am): Remove fseterr.c from lib_SOURCES.
20777         * lib/freadable.h: Update comment.
20779         * lib/fwritable.h: Update comment.
20781         * lib/freading.h: Update comment.
20783         * lib/fwriting.h: Update comment.
20785         * m4/freadahead.m4: New file.
20786         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
20787         that function exists.
20788         * modules/freadahead (Files): Add m4/freadahead.m4.
20789         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
20790         __freadahead does not exist.
20791         (Makefile.am): Remove freadahead.c from lib_SOURCES.
20793         * m4/freadptr.m4: New file.
20794         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
20795         function exists.
20796         * modules/freadptr (Files): Add m4/freadptr.m4.
20797         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
20798         __freadptr does not exist.
20799         (Makefile.am): Remove freadptr.c from lib_SOURCES.
20801         * m4/freadseek.m4: New file.
20802         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
20803         exists.
20804         * modules/freadseek (Files): Add m4/freadseek.m4.
20805         (configure.ac): Invoke gl_FUNC_FREADSEEK.
20807         * lib/fpurge.c (fpurge): Update comment.
20809         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
20811 2012-06-19  Bruno Haible  <bruno@clisp.org>
20813         *printf-posix: Put more info into config.log.
20814         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
20815         exit code into config.log.
20817 2012-06-19  Bruno Haible  <bruno@clisp.org>
20819         getopt-gnu: Fix exit code overflow in autoconf test.
20820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
20821         to keep them below < 128.
20823 2012-06-17  Jim Meyering  <meyering@redhat.com>
20825         maint.mk: fix typo in code to derive GPG key at release time
20826         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
20828 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20830         regex: avoid warning when pointers are not long
20831         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
20832         and uintptr_t, not long, for portability to hosts where pointers and
20833         long have different sizes.  Issue noted by Daniel P. Berrange in
20834         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
20835         and fix suggested by Bruno Haible in
20836         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
20838 2012-06-17  Bruno Haible  <bruno@clisp.org>
20840         dummy: Relicense into the public domain.
20841         * modules/dummy (License): Set to "public domain".
20842         Suggested by Reuben Thomas.
20844 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20846         announce-gen: VPATH issues
20847         * build-aux/announce-gen (--srcdir): New option, used to trim the
20848         $srcdir part of the path from $builddir to NEWS.
20849         * top/maint.mk (announcement): Adjust.
20851 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20853         gnu-web-doc-update: VPATH builds
20854         * build-aux/gnu-web-doc-update (--builddir): New option.
20855         Revamp the handling of options.
20856         Prefer $(...) to `...`.
20857         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20858         the template, and it is GNU mktemp specific.
20859         Prefer set -e to long series of &&.
20860         Restore the initial git branch, not "master".
20861         Properly initialize submodules (don't rely only on bootstrap).
20862         Do not reconfigure blindly, use config.status.
20863         * top/README-release: Update instructions for gnu-web-doc-update.
20865 2012-06-11  Jim Meyering  <meyering@redhat.com>
20867         maint.mk: revert most of the previous change re "all these"
20868         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20869         For rationale, see the discussion at
20870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20872 2012-06-10  Karl Berry  <karl@gnu.org>
20874         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20876         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20878 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20880         parse-duration: Relicense under LGPLv2+.
20881         * modules/parse-duration (License): Change to LGPLv2+.
20883 2012-06-10  Jim Meyering  <meyering@redhat.com>
20885         maint.mk: prohibit common grammar error: "all these"
20886         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20887         the list of prohibited word sequences.  It should be "all of these".
20888         * lib/tempname.c (__gen_tempname): Fix one of them.
20890 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20892         do-release-commit-and-tag: support VPATH builds
20893         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20894         (noteworthy): Defined earlier to factor its value.
20895         (noteworthy_stub): New.
20896         Use it to factor.
20897         (help_version): Split into...
20898         (help, version): these.
20899         Adjust the option processing part.
20900         Support "--option=value" in addition to "--option value".
20901         (builddir): New.
20902         (--builddir): New option.
20903         * top/README-release: Document this.
20904         Reword slightly so that the reader cannot understand that he
20905         has to do these steps before calling do-release-commit-and-tag.
20907 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20909         readme-release: also require announce-gen and maintainer-makefile
20910         * modules/readme-release (Depends-on): here.
20911         * modules/announce-gen, modules/do-release-commit-and-tag,
20912         modules/gnu-web-doc-update, modules/maintainer-makefile
20913         (Description): Point to readme-release.
20915 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20917         maint.mk: fix VPATH issues.
20918         * top/maint.mk (news-check): GNU Make understand $< very well.
20919         (release-prep): NEWS is in $(srcdir).
20921 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20923         readme-release: require the promoted modules.
20924         * modules/readme-release (Depends-on): Add
20925         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20926         in this text.
20928 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20929             Bruno Haible  <bruno@clisp.org>
20931         error, strerror-override: Support mingw64 from Fedora 17.
20932         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20933         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20934         EINPROGRESS.
20935         * lib/strerror-override.h (strerror_override): Test it.
20936         * lib/strerror-override.c (strerror_override): Likewise.
20937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20939 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20940             Bruno Haible  <bruno@clisp.org>
20942         error, strerror-override: Support mingw64 from Fedora 17.
20943         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20944         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20945         * lib/strerror-override.h (strerror_override): Test it.
20946         * lib/strerror-override.c (strerror_override): Likewise.
20948 2012-06-03  Bruno Haible  <bruno@clisp.org>
20950         error, strerror-override: Support new errno values from POSIX:2008.
20951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20952         ENOTRECOVERABLE.
20953         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20954         platforms.
20955         * lib/strerror-override.c (strerror_override): Conditionalize the
20956         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20957         * lib/strerror-override.h (strerror_override): Declare also if
20958         GNULIB_defined_EOWNERDEAD is defined.
20959         * tests/test-errno.c (e130, e131): New variables.
20960         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20961         ENOTRECOVERABLE.
20962         Reported by Paolo Bonzini.
20964 2012-05-31  Jim Meyering  <meyering@redhat.com>
20966         savewd: add missing dependency on sys_wait module
20967         * modules/savewd (Depends-on): Add sys_wait, needed at least
20968         for MSVC.  Report and suggested change by Michael Goffioul.
20970 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20972         system-quote-tests: port to CentOS 5
20973         Problem reported by Tom G. Christensen in
20974         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20975         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20977 2012-05-29  Jim Meyering  <meyering@redhat.com>
20979         maint: fix typos in comments and ChangeLog
20980         Culprits identified and fixed mostly automatically using these commands:
20981         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20982         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20983         using http://github.com/lyda/misspell-check
20984         * ChangeLog: Fix typos.
20985         * doc/solaris-versions: Likewise.
20986         * lib/regexec.c (re_search_stub): Likewise.
20987         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20989 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20991         manywarnings: remove duplicate -Wmultichar entry
20992         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20993         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20994         so keep the entry marked as documented.
20996 2012-05-27  Karl Berry  <karl@gnu.org>
20998         * config/srclist.txt (mktime.c): remove last libc sync,
20999         perhaps just temporarily.
21001 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
21003         regex: don't assume uint64_t or uint32_t
21004         * lib/regcomp.c (init_word_char): Don't assume that the types
21005         uint64_t and uint32_t exist.  The C standard doesn't guarantee
21006         them, and on some 32-bit compilers there is no uint64_t.
21007         Problem reported by Gianluigi Tiesi in
21008         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
21010 2012-05-25  Jim Meyering  <meyering@redhat.com>
21012         maint.mk: add strncpy-prohibiting syntax-check rule
21013         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
21015 2012-05-24  Jim Meyering  <meyering@redhat.com>
21017         maint.mk: compute $(gpg_key_ID) more portably
21018         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
21019         That use of sed is not portable to some fringe systems.
21020         Reported by Paul Eggert in
21021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
21023 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21025         mktime: sync from glibc
21026         * config/srclist.txt: Uncomment mktime.c.
21027         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
21028         First, indent with tabs, since glibc uses tabs and doesn't want to
21029         change and we'd rather be identical to glibc.  Also, two small
21030         coding changes:
21031         (isdst_differ): Use &&, not &, as && is the usual style.
21032         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
21033         for clarity.
21035 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21037         announce-gen: du -h is more portable than du --human
21038         * build-aux/announce-gen (sizes): Invoke du with -h instead
21039         of --human.  Accept leading white space in its output.
21041 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21043         announce-gen: Improve diagnostics.
21044         * build-aux/announce-gen: When parsing command line options,
21045         prefer "announce-gen: option --release-type requires an argument"
21046         to "Option release-type requires an argument".
21048 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21050         maint.mk: gpg_key_ID: use sed more portably
21051         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
21052         the closing brace.
21053         (refresh-po): Fuse two sed invocations into one.
21055 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
21057         gitlog-to-changelog: support the log message format used in Bison.
21058         * build-aux/gitlog-to-changelog: Support --strip-tab and
21059         --strip-cherry-picked.
21061 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
21063         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
21064         the rest of the current time slice to another thread in the current
21065         process. So if the thread that feeds the file decscriptor we're
21066         polling is not in the current process, we get busy-waiting.
21067         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
21068         Patch from Theodore Leblond.
21069         * lib/select.c: Split polling out of the loop that sets the output
21070         fd_sets.  Check for zero result and loop if the wait timeout is
21071         infinite.
21073 2012-05-21  Simon Josefsson  <simon@josefsson.org>
21075         select: Fix build error on IRIX 6.5.
21076         * lib/select.c: Include stddef.h for NULL.
21078 2012-05-21  Simon Josefsson  <simon@josefsson.org>
21080         gc: fix libgcrypt detection on older machines.
21081         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
21082         copyright years because the file has been distributed every year
21083         since it was created.
21085 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21087         crypto: fix bug in large buffer handling
21088         Problem reported by Serge Belyshev for glibc in
21089         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
21090         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
21091         * lib/md4.c (md4_process_block):
21092         * lib/md5.c (md5_process_block):
21093         * lib/sha1.c (sha1_process_block):
21094         * lib/sha256.c (sha256_process_block):
21095         Don't assume the buffer length is less than 2**32.
21096         * lib/sha512.c (sha512_process_block): Likewise.
21097         Here, the bug is present only in the rare case where the host does
21098         not support uint64_t or where size_t is wider than 64 bits.
21099         Use u64size to work around the problems.
21100         * lib/u64.h (u64size): New macro.
21102 2012-05-15  Pádraig Brady  <P@draigBrady.com>
21104         fsusage: fix block size returned on older Linux 2.6
21106         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
21107         which is available since Linux 2.6.
21108         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
21109         when the member is available so it can be used as a fallback.
21110         * doc/posix-functions/statvfs.texi: Mention the hang issue
21111         on Linux < 2.6.36.
21113 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21115         bootstrap: suppress stderr chatter
21116         * build-aux/bootstrap (insert_sorted_if_absent, main program):
21117         Omit unnecessary chatter to stderr.  The main program chatter
21118         was there only inadvertantly.
21120         bootstrap: .gitignore files created by autopoint, libtool
21121         I ran into this problem when bootstrapping the latest diffutils.
21122         After './bootstrap', 'git status' reported lots of untracked files
21123         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
21124         autopoint and do not need to be version-controlled.
21125         * build-aux/bootstrap: Put into .gitignore the files that
21126         autopoint and libtool create, by keeping track of files that exist
21127         after but not before these programs are run.
21128         (version_controlled_file): Move up.  2nd arg is now full file
21129         name, not base name; this is more convenient.  Put CVS at the end,
21130         as it's now somewhat deprecated.
21132 2012-05-14  Jim Meyering  <meyering@redhat.com>
21134         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
21135         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
21136         definition.  Reported by Bruno Haible.
21138 2012-05-13  Bruno Haible  <bruno@clisp.org>
21139             Paul Eggert  <eggert@cs.ucla.edu>
21141         binary-io: Define set_binary_mode function.
21142         * lib/binary-io.h (set_binary_mode): New function.
21143         (SET_BINARY): Define in terms of set_binary_mode.
21144         * modules/binary-io (configure.ac): Require AC_C_INLINE.
21145         * tests/test-binary-io.c (main): Accept an argument, and test either
21146         set_binary_mode or SET_BINARY depending on the argument.
21147         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
21148         argument. Clean up also t-bin-out0.tmp.
21150 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
21152         bootstrap: take advantage of POSIX shell features
21154         The 'bootstrap' script offered by Gnulib script already uses POSIX
21155         shell features (like $((...)) arithmetic expansions) that are not
21156         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
21157         means that bootstrap must already be run using a proper POSIX shell,
21158         which will thus provide more features, like ${var#pattern} parameter
21159         expansion or inversion of a command exit status with '!'.  We can
21160         thus use these features to improve the clarity and the performances
21161         of the bootstrap script.
21163         Suggested by Eric Blake.
21165         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
21166         of sed/expr plus command substitutions, to save some forks.  While
21167         we are at it, prefer the POSIX $(...) form of command substitution,
21168         rather than the legacy form `...` (since the former is visually
21169         clearer and interacts better with quoting), and prefer the idiom:
21170           "if ! CMD; then ACTION ..."
21171         over the idiom:
21172           "if CMD; then :; else ACTION ..."
21173         which was required by legacy Bourne shells not supporting '!'.
21175 2012-05-12  Bruno Haible  <bruno@clisp.org>
21177         system-quote: Add more comments.
21178         * lib/system-quote.h: Add more comments about wilcards and limitations.
21179         Suggested by Eli Zaretskii <eliz@gnu.org>.
21181         sh-quote, system-quote: Add comments about wildcards.
21182         * lib/sh-quote.h: Clarify what happens with wildcard characters.
21183         * lib/system-quote.h: Likewise.
21184         Reported by Eli Zaretskii <eliz@gnu.org>.
21186 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21188         fsusage: check for GNU/Linux statvfs problem dynamically
21189         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
21190         Define STAT_STATFS2_BSIZE too, since in this case the code now
21191         checks dynamically whether statvfs is reliable, falling back on
21192         Linux-style statfs otherwise.
21193         (statvfs_works): New function, for dynamically testing statvfs.
21194         (get_fs_usage) [STAT_STATVFS]: Use it.
21195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
21196         statvfs on GNU/Linux hosts, since it's now done dynamically.
21198 2012-05-10  Bruno Haible  <bruno@clisp.org>
21200         system-quote, execute, spawn-pipe: Escape '?' on Windows.
21201         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
21202         '?' character.
21203         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
21204         * tests/test-system-quote-main.c (check_all): Check also strings like
21205         "??????????".
21206         Reported by Eli Zaretskii <eliz@gnu.org>.
21208 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21210         _Noreturn: port config.h to gcc -Wundef
21211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
21212         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
21213         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
21215 2012-05-10  Bruno Haible  <bruno@clisp.org>
21217         system-quote: Refactor.
21218         * lib/system-quote.h (system_quote_copy): Fix comment.
21219         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
21220         New functions, extracted from system_quote_copy.
21221         (system_quote_length, system_quote_copy): Use these functions.
21222         Reported by Paul Eggert.
21224 2012-05-08  Bruno Haible  <bruno@clisp.org>
21226         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
21227         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
21229 2012-05-08  Bruno Haible  <bruno@clisp.org>
21231         Tests for module 'system-quote'.
21232         * modules/system-quote-tests: New file.
21233         * tests/test-system-quote.sh: New file.
21234         * tests/test-system-quote-main.c: New file.
21235         * tests/test-system-quote-child.c: New file.
21237         New module 'system-quote'.
21238         * lib/system-quote.h: New file.
21239         * lib/system-quote.c: New file.
21240         * modules/system-quote: New file.
21242 2012-05-08  Bruno Haible  <bruno@clisp.org>
21244         sh-quote: Make C++ safe and allow multiple inclusion.
21245         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
21246         declarations in extern "C".
21248 2012-05-08  Bruno Haible  <bruno@clisp.org>
21250         sh-quote tests: Make tests stricter.
21251         * tests/test-sh-quote.c (check_one): Check the return value of
21252         shell_quote_copy.
21253         (main): Check a string with a CR character. Check a string that
21254         contains UCHAR_MAX.
21256 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
21258         warnings.m4: provide a means to specify the program to compile.
21259         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
21260         (gl_WARN_ADD): here.
21261         Use gl_AS_VAR_APPEND.
21262         Support an argument to specify the program to compile.
21263         (gl_WARN_ADD): Accept an argument to specify the program to compile.
21264         AC_SUBST the WARN_CFLAGS when they are used.
21265         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
21266         leave this to gl_WARN_ADD.
21268 2012-05-08  Eric Blake  <eblake@redhat.com>
21270         doc: recommendations on gettext version
21271         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
21272         choice between versions.
21273         * DEPENDENCIES (gettext): Cover both approaches.
21275 2012-05-08  Jim Meyering  <meyering@redhat.com>
21277         init.sh: explain why EXEEXT support uses aliases rather than functions
21278         * tests/init.sh: Add a comment.
21280         init.sh: don't let bash aliases interfere with tests
21281         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
21282         is bash.  This avoids problems for those who alias standard commands to
21283         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
21284         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
21286 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21288         stdint: be more consistent with glibc, SunOS libc
21289         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
21290         (gl_int_fast16_t, gl_uint_fast16_t)
21291         (gl_int_fast32_t, gl_uint_fast32_t)
21292         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
21293         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
21294         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
21295         Be consistent with glibc by default, and with SunOS 5.10 and later
21296         if __sun is defined.  This lessens the likelihood of clashes if
21297         code compiled for older hosts is combined with code compiled for
21298         newer ones.  Problem reported by Niels Möller in
21299         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
21301 2012-05-07  Eric Blake  <eblake@redhat.com>
21303         isatty: relax license to LGPLv2+
21304         * modules/isatty (License): Relax license.
21306 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21308         stat-size: comment fix
21309         * lib/stat-size.h: Remove obsolete comment about indenting.
21311 2012-05-06  Bruno Haible  <bruno@clisp.org>
21313         Tests for module 'sh-quote'.
21314         * modules/sh-quote-tests: New file.
21315         * tests/test-sh-quote.c: New file.
21317 2012-05-06  Bruno Haible  <bruno@clisp.org>
21319         sh-quote: Improve shell_quote_argv's signature.
21320         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
21321         * lib/sh-quote.c (shell_quote_argv): Likewise.
21323 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21325         stdint: document issues with int_fast8_t etc.
21326         * doc/posix-headers/stdint.texi (stdint.h): Say that other
21327         stdint.h substitutes may define these types differently.  See
21328         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
21330 2012-05-05  Bruno Haible  <bruno@clisp.org>
21332         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
21333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
21334         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
21335         or 'guessing no (mishandles large arguments)'.
21337 2012-05-05  Bruno Haible  <bruno@clisp.org>
21339         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
21340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
21341         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21342         set gl_cv_func_link_follows_symlink to "guessing no".
21344 2012-05-05  Bruno Haible  <bruno@clisp.org>
21346         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
21347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
21348         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
21349         "guessing no".
21350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
21352 2012-05-05  Bruno Haible  <bruno@clisp.org>
21354         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
21355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
21356         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21357         set gl_cv_struct_dirent_d_ino to "guessing yes".
21359 2012-05-05  Bruno Haible  <bruno@clisp.org>
21361         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
21362         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
21363         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
21364         "guessing yes".
21366 2012-05-05  Bruno Haible  <bruno@clisp.org>
21368         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
21369         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
21370         compiling to a glibc system, set gl_cv_func_signbit and
21371         gl_cv_func_signbit_gcc to "guessing yes".
21373 2012-05-05  Bruno Haible  <bruno@clisp.org>
21375         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
21376         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
21377         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
21378         to "guessing yes".
21379         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
21380         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
21382 2012-05-05  Bruno Haible  <bruno@clisp.org>
21384         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
21385         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
21386         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
21387         gl_cv_func_realpath_works to "guessing yes".
21389 2012-05-05  Bruno Haible  <bruno@clisp.org>
21391         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
21392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
21393         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
21395 2012-05-04  Bruno Haible  <bruno@clisp.org>
21397         Tweak last commit.
21398         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
21399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21401 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
21403         unistd_h: make it easier to avoid sys_types_h
21404         This is useful for Emacs, which has its own method of porting to
21405         Windows, and which therefore does not need the sys_types_h module.
21406         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
21407         code moved here from gl_SYS_TYPES_H.
21408         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
21409         using the code directly.
21410         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
21411         gl_SYS_TYPES_H.
21412         * modules/sys_types (Files):
21413         * modules/unistd (Files): Add m4/off_t.m4.
21415 2012-05-03  Bruno Haible  <bruno@clisp.org>
21417         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
21418         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
21419         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
21420         "guessing yes" or "guessing no".
21421         (gl_FUNC_LSTAT): Update.
21422         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
21423         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
21424         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
21426 2012-05-03  Bruno Haible  <bruno@clisp.org>
21428         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
21429         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
21430         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
21431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
21432         cross-compiling, choose the first alternative on glibc systems.
21433         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
21435 2012-05-03  Bruno Haible  <bruno@clisp.org>
21437         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
21438         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
21439         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
21441 2012-05-03  Bruno Haible  <bruno@clisp.org>
21443         chown: Avoid "guessing no" when cross-compiling to glibc systems.
21444         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
21446 2012-05-03  Bruno Haible  <bruno@clisp.org>
21448         Avoid "guessing no" guesses when cross-compiling to glibc systems.
21449         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
21450         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
21451         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
21452         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
21453         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
21454         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
21455         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
21456         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
21457         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
21458         compiling to glibc systems, set gl_cv_func_chown_slash_works,
21459         gl_cv_func_chown_ctime_works to "guessing yes".
21460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
21461         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
21462         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
21463         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
21464         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
21465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
21466         compiling to glibc systems, set gl_cv_func_open_directory_works to
21467         "guessing yes".
21468         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
21469         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
21470         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
21471         "guessing yes".
21472         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
21473         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
21474         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
21475         compiling to glibc systems, set gl_cv_func_floorf_ieee to
21476         "guessing yes".
21477         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
21478         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
21479         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
21480         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
21481         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
21482         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
21483         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
21484         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
21485         "guessing yes".
21486         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
21487         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
21488         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
21489         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
21490         "guessing yes".
21491         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
21492         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
21493         "guessing yes".
21494         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
21495         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
21496         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
21497         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
21498         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
21499         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
21500         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
21501         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
21502         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
21503         compiling to glibc systems, set gl_cv_func_log10f_ieee to
21504         "guessing yes".
21505         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
21506         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
21507         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
21508         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
21509         "guessing yes".
21510         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
21511         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
21512         "guessing yes".
21513         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
21514         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
21515         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
21516         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
21517         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
21518         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
21519         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
21520         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
21521         compiling to glibc systems, set gl_cv_func_mkfifo_works to
21522         "guessing yes".
21523         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
21524         compiling to glibc systems, set gl_cv_func_mknod_works to
21525         "guessing yes".
21526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
21527         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
21528         "guessing yes".
21529         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
21530         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
21531         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
21532         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
21533         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
21534         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
21535         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
21536         compiling to glibc systems, set gl_cv_func_svid_putenv to
21537         "guessing yes".
21538         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
21539         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
21540         "guessing yes".
21541         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
21542         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
21543         "guessing yes".
21544         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
21545         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
21546         to "guessing yes".
21547         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
21548         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
21549         to "guessing yes".
21550         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
21551         compiling to glibc systems, set gl_cv_func_rmdir_works to
21552         "guessing yes".
21553         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
21554         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
21555         gl_cv_func_unlink_parent_fails to "guessing yes".
21556         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
21557         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
21558         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
21559         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
21560         gl_cv_func_rename_dest_works to "guessing yes".
21561         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
21562         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
21563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
21564         compiling to glibc systems, set gl_cv_func_roundf_ieee to
21565         "guessing yes".
21566         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
21567         compiling to glibc systems, set gl_cv_func_roundl_ieee to
21568         "guessing yes".
21569         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
21570         compiling to glibc systems, set gl_cv_func_setenv_works to
21571         "guessing yes".
21572         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
21573         compiling to glibc systems, set gl_cv_func_unsetenv_works to
21574         "guessing yes".
21575         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
21576         compiling to glibc systems, set gl_cv_func_sleep_works to
21577         "guessing yes".
21578         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
21579         compiling to glibc systems, set gl_cv_func_stat_file_slash to
21580         "guessing yes".
21581         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
21582         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
21583         "guessing yes".
21584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
21585         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
21586         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
21587         compiling to glibc systems, set gl_cv_func_truncf_ieee to
21588         "guessing yes".
21589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
21590         compiling to glibc systems, set gl_cv_func_truncl_ieee to
21591         "guessing yes".
21592         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
21593         compiling to glibc systems, set gl_cv_func_usleep_works to
21594         "guessing yes".
21595         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
21596         compiling to glibc systems, set gl_cv_func_futimesat_works to
21597         "guessing yes".
21599 2012-05-03  Bruno Haible  <bruno@clisp.org>
21601         Say "guessing yes" or "guessing no" when cross-compiling.
21602         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
21603         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
21604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
21605         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
21606         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
21607         am_cv_func_working_getline to "guessing yes" or "guessing no".
21608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
21609         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
21610         (gl_FUNC_MEMMEM): When cross-compiling, set
21611         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
21612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
21613         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
21614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
21615         set gl_cv_func_strcasestr_works_always to "guessing yes" or
21616         "guessing no".
21617         (gl_FUNC_STRCASESTR): When cross-compiling, set
21618         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
21619         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
21620         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
21621         (gl_FUNC_STRSTR): When cross-compiling, set
21622         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
21623         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
21624         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
21625         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
21626         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
21628 2012-05-01  Bruno Haible  <bruno@clisp.org>
21630         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
21631         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
21632         * build-aux/reloc-ldflags: Likewise.
21633         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
21635 2012-05-01  Bruno Haible  <bruno@clisp.org>
21637         gnulib-tool: Remove transitional code.
21638         * gnulib-tool: Don't warn about --import with 0 arguments any more.
21639         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21641 2012-05-01  Bruno Haible  <bruno@clisp.org>
21643         getcwd: Fix misindentation.
21644         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
21646 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21648         exclude: process exclude and include directives in order
21649         This restores the pre-2009 behavior, and is part of a fix of a
21650         grep bug reported by Quentin Arce in
21651         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
21652         * lib/exclude.c (struct exclude): Remove 'tail' member.
21653         (new_exclude_segment): Prepend the new segment instead of appending.
21654         Return void, since that's now more convenient.
21655         (file_pattern_matches): Renamed from excluded_file_pattern_p.
21656         (file_name_matches): Renamed from excluded_file_name_p.
21657         (file_pattern_matches, file_name_matches):
21658         Return true if the pattern matches, not if it excludes.
21659         All callers changed.
21660         (excluded_file_name): Process the list in reverse order;
21661         since the list is now reversed this restores the pre-2009 behavior.
21662         (add_exclude): Adjust to new reversed-order list.  Use local var
21663         rather than macro, for clarity.
21664         * tests/test-exclude7.sh: Adjust to corrected behavior.
21666         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
21667         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
21668         it's not possible here.  Handle the case of \ at end of pattern
21669         without dumping core.
21670         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
21672         _Noreturn: future-proof non-GNU and non-MSVC compilers
21673         * build-aux/snippet/_Noreturn.h (_Noreturn):
21674         * m4/gnulib-common.m4 (gl_COMMON_BODY):
21675         Do not define _Noreturn if __STDC_VERSION__ indicates this is
21676         C11 or later.  This is more likely to work with random future C
21677         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
21678         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
21680         exclude: handle wildcards with FNM_EXTMATCH
21681         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
21682         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
21683         comment that "has wildcards" really means "has or may have
21684         wildcards".  Simplify by avoiding the need to call strcspn.
21686 2012-04-29  Bruno Haible  <bruno@clisp.org>
21688         gnulib-tool: Fix list of authors.
21689         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
21691 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
21693         bootstrap: support Automake-NG in $buildreq
21694         * bootstrap (check_versions): Handle automake and aclocal from
21695         Automake-NG specially.  They can be specified as respectively
21696         the "automake-ng" and "aclocal-ng" requirements.
21698 2012-04-25  Eric Blake  <eblake@redhat.com>
21700         bootstrap: only force latest Makefile.in.in for gettext module
21701         * build-aux/bootstrap (with_gettext): Only install latest
21702         Makefile.in.in for projects requesting bleeding edge gettext.
21704 2012-04-22  Bruno Haible  <bruno@clisp.org>
21706         doc: Mention reason for replacement on glibc/Linux systems.
21707         * doc/posix-functions/dprintf.texi: Mention the problem with special
21708         'long double' values.
21709         * doc/posix-functions/fprintf.texi: Likewise.
21710         * doc/posix-functions/printf.texi: Likewise.
21711         * doc/posix-functions/snprintf.texi: Likewise.
21712         * doc/posix-functions/sprintf.texi: Likewise.
21713         * doc/posix-functions/vdprintf.texi: Likewise.
21714         * doc/posix-functions/vfprintf.texi: Likewise.
21715         * doc/posix-functions/vprintf.texi: Likewise.
21716         * doc/posix-functions/vsnprintf.texi: Likewise.
21717         * doc/posix-functions/vsprintf.texi: Likewise.
21718         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
21719         platforms with F_DUPFD_CLOEXEC problems.
21720         * doc/posix-functions/glob.texi: Mention which platforms are affected
21721         by the problem with symbolic links.
21722         * doc/posix-functions/linkat.texi: Mention the problem with
21723         AT_SYMLINK_FOLLOW on Linux.
21725 2012-04-22  Bruno Haible  <bruno@clisp.org>
21727         pwrite: Don't replace on all platforms.
21728         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
21730 2012-04-22  Bruno Haible  <bruno@clisp.org>
21732         rint* tests: Avoid gcc warnings.
21733         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
21734         * tests/test-rintf.c (INFINITY, NAN): Likewise.
21735         * tests/test-rintl.c (INFINITY, NAN): Likewise.
21737 2012-04-21  Bruno Haible  <bruno@clisp.org>
21739         users.txt: Update.
21740         * users.txt: Add freedink, wdiff. Update URLs for projects that have
21741         switched from CVS to git, bzr, or svn.
21743 2012-04-21  Bruno Haible  <bruno@clisp.org>
21745         Large File Support for native Windows platforms.
21747         * m4/largefile.m4 (gl_LARGEFILE): New macro.
21748         * modules/largefile (configure.ac): Require gl_LARGEFILE.
21750         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
21751         type.
21752         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
21753         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
21754         * doc/posix-headers/sys_types.texi: Mention the effect of the
21755         'largefile' module.
21757         * lib/fcntl.in.h: Add comments about off_t.
21758         * modules/fcntl-h (Depends-on): Add sys_types.
21760         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
21761         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
21762         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
21763         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
21764         * modules/unistd (Depends-on): Add sys_types.
21765         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
21767         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
21768         instead of lseek.
21769         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
21770         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
21771         * modules/lseek (Depends-on): Add sys_types.
21773         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
21774         msvc-nothrow.h.
21775         (SetFileSize): New function.
21776         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
21777         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
21778         if Large File Support is requested.
21779         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
21780         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
21782         * lib/stdio.in.h: Add comments about off_t.
21783         * modules/stdio (Depends-on): Add sys_types.
21785         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
21786         instead of ftello.
21787         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
21788         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
21789         (gl_PREREQ_FTELLO): New macro.
21790         * modules/ftello (Depends-on): Add sys_types.
21791         (configure.ac): Incoke gl_PREREQ_FTELLO.
21793         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
21794         instead of fseeko.
21795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
21796         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
21797         (gl_PREREQ_FSEEKO): New macro.
21798         * modules/fseeko (Depends-on): Add sys_types.
21799         (configure.ac): Invoke gl_PREREQ_FSEEKO.
21801         * lib/sys_stat.in.h: Add comments about off_t.
21802         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
21803         64-bit integer for st_size in 'struct stat'.
21804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
21805         Define _GL_WINDOWS_64_BIT_ST_SIZE.
21806         * modules/sys_stat (Depends-on): Add sys_types.
21807         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
21809         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
21810         instead of stat or _stat.
21812         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
21813         'struct _stati64' instead of fstat and 'struct stat'.
21814         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
21815         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
21817         Reported by Ray Satiro <raysatiro@yahoo.com>.
21819 2012-04-19  Eric Blake  <eblake@redhat.com>
21821         bootstrap: accommodate older libtool
21822         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
21823         Reported by Daniel P. Berrange.
21825 2012-04-19  Jim Meyering  <meyering@redhat.com>
21827         announce-gen: avoid failure due to lack of Digest::SHA1
21828         Even with the preferred Digest::SHA available, this script
21829         would fail when the backup module, Digest::SHA1, was not installed.
21830         * build-aux/announce-gen: Quote the conditional use of "use".
21831         Reported by Reuben Thomas in:
21832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
21834         bootstrap: don't let a user's CDPATH setting affect this script
21835         When CDPATH is set, cd will sometimes generate output.
21836         When "cd" is run in a subshell whose output matters, that
21837         surprising-to-some output can cause malfunction.
21838         Unsetting CDPATH turns off this shell "feature."
21839         * build-aux/bootstrap (CDPATH): Unset.
21840         Reported by Reuben Thomas in:
21841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
21842         and inspired by his patch here:
21843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
21845 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
21846         and Jim Meyering  <meyering@redhat.com>
21848         maint.mk: catch "see @xref{}" and similar
21849         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21850         prohibit "See also @xref{", "Also see @pxref{", and similar.
21852 2012-04-16  Jim Meyering  <meyering@redhat.com>
21854         bootstrap: really use gnulib's po/Makefile.in.in
21855         * build-aux/bootstrap: Correct the source file name in previous change.
21856         Reported by Akim Demaille.
21858         configmake: correct minor inconsistency in Makefile rule
21859         * modules/configmake (Makefile.am): All other rules like this one
21860         run the final "mv -f ..." in the same backslash-continued command
21861         as the one that does everything else.  This one put the mv -f ...
21862         command on a separate, non-backslash-continued line.
21863         Make it like the others.
21865         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21866         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21867         the one from gettext.  Reported by Akim Demaille.
21869 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21871         Fix recursion of install-* into po directories.
21872         Bison's install-pdf bug reported by Hans Aberg at
21873         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21874         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21875         (install-info, install-pdf, install-ps): New targets.
21877 2012-04-16  Jim Meyering  <meyering@redhat.com>
21879         maint: avoid spurious "make sc_maint" failure
21880         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21881         exempt all *.class file names, for lib/javaversion.class.
21883 2012-04-15  Bruno Haible  <bruno@clisp.org>
21885         lseek: Make configure test independent of environment.
21886         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21887         Windows, we know that lseek() on pipes is broken; skip the runtime
21888         test.
21890 2012-04-14  Bruno Haible  <bruno@clisp.org>
21892         stat: Bypass buggy override in mingw64.
21893         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21894         * lib/stat.c (stat) [mingw64]: Define to _stat.
21895         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21897 2012-04-14  Bruno Haible  <bruno@clisp.org>
21899         pathmax: Fix compilation error on MSVC 9.
21900         * modules/pathmax (Depends-on): Add unistd.
21902 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21904         README: document pointer comparison assumption
21905         * README (Portability guidelines): Document assumption about
21906         pointer comparisons, in response to a recent bug-gnulib comment by
21907         Jeffrey Kegler.
21909 2012-04-12  Bruno Haible  <bruno@clisp.org>
21911         Tests for module 'getrusage'.
21912         * modules/getrusage-tests: New file.
21913         * tests/test-getrusage.c: New file.
21915         New module 'getrusage'.
21916         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21917         warn-on-use.h.
21918         (getrusage): New declaration.
21919         * lib/getrusage.c: New file.
21920         * m4/getrusage.m4: New file.
21921         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21922         is declared.
21923         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21924         HAVE_GETRUSAGE.
21925         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21926         snippet/c++defs, snippet/warn-on-use.
21927         (Makefile.am): Update generation of sys/resource.h. Substitute
21928         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21929         * modules/getrusage: New file.
21930         * doc/posix-functions/getrusage.texi: Mention the new module.
21932 2012-04-12  Bruno Haible  <bruno@clisp.org>
21934         Tests for module 'sys_resource'.
21935         * modules/sys_resource-tests: New file.
21936         * tests/test-sys_resource.c: New file.
21938         New module 'sys_resource'.
21939         * lib/sys_resource.in.h: New file.
21940         * m4/sys_resource_h.m4: New file.
21941         * modules/sys_resource: New file.
21942         * doc/posix-headers/sys_resource.texi: Mention the new module.
21944 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21946         ioctl: Fix compilation error on mingw.
21947         * lib/ioctl.c: Include <windows.h>.
21948         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21950 2012-04-04  Jim Meyering  <meyering@redhat.com>
21952         regex: correct #pragma guard expression
21953         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21954         not 4.3.  Correct its cpp guard expression.
21956 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21958         regex: remove unnecessary type punning
21959         Problem reported by Vladimir Serbinenko in
21960         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21961         * lib/regex.h (struct re_pattern_buffer): Change the type of
21962         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21963         Fix comment to match code.
21964         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21965         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21966         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21967         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21968         (set_regs):
21969         Omit no-longer-necessary casts.
21971 2012-04-03  Bruno Haible  <bruno@clisp.org>
21973         Tests for module 'ilogbl'.
21974         * modules/ilogbl-tests: New file.
21975         * tests/test-ilogbl.c: New file.
21977         New module 'ilogbl'.
21978         * lib/math.in.h (ilogbl): New declaration.
21979         * lib/ilogbl.c: New file.
21980         * m4/ilogbl.m4: New file.
21981         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21983         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21984         Split sed invocation, to avoid the limit of 100 substitutions of
21985         HP-UX 'sed'.
21986         * modules/ilogbl: New file.
21987         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21988         * doc/posix-functions/ilogbl.texi: Mention the new module.
21990 2012-04-03  Bruno Haible  <bruno@clisp.org>
21992         Tests for module 'ilogbf'.
21993         * modules/ilogbf-tests: New file.
21994         * tests/test-ilogbf.c: New file.
21996         New module 'ilogbf'.
21997         * lib/math.in.h (ilogbf): New declaration.
21998         * lib/ilogbf.c: New file.
21999         * m4/ilogbf.m4: New file.
22000         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
22001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
22002         REPLACE_ILOGBF.
22003         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
22004         REPLACE_ILOGBF.
22005         * modules/ilogbf: New file.
22006         * tests/test-math-c++.cc: Check the declaration of ilogbf.
22007         * doc/posix-functions/ilogbf.texi: Mention the new module.
22009 2012-04-03  Bruno Haible  <bruno@clisp.org>
22011         Tests for module 'ilogb'.
22012         * modules/ilogb-tests: New file.
22013         * tests/test-ilogb.c: New file.
22014         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
22015         tests/test-logb-ieee.h.
22017         New module 'ilogb'.
22018         * lib/math.in.h (ilogb): New declaration.
22019         * lib/ilogb.c: New file.
22020         * m4/ilogb.m4: New file.
22021         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
22022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
22023         REPLACE_ILOGB.
22024         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
22025         REPLACE_ILOGB.
22026         * modules/ilogb: New file.
22027         * tests/test-math-c++.cc: Check the declaration of ilogb.
22028         * doc/posix-functions/ilogb.texi: Mention the new module.
22030 2012-04-03  Bruno Haible  <bruno@clisp.org>
22032         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
22033         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
22034         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
22035         (main): Check their values.
22036         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
22037         problem.
22039 2012-04-03  Bruno Haible  <bruno@clisp.org>
22041         Tests for module 'logbl-ieee'.
22042         * modules/logbl-ieee-tests: New file.
22043         * tests/test-logbl-ieee.c: New file.
22045         New module 'logbl-ieee'.
22046         * modules/logbl-ieee: New file.
22048         Tests for module 'logb-ieee'.
22049         * modules/logb-ieee-tests: New file.
22050         * tests/test-logb-ieee.c: New file.
22052         New module 'logb-ieee'.
22053         * modules/logb-ieee: New file.
22055         Tests for module 'logbf-ieee'.
22056         * modules/logbf-ieee-tests: New file.
22057         * tests/test-logbf-ieee.c: New file.
22058         * tests/test-logb-ieee.h: New file.
22060         New module 'logbf-ieee'.
22061         * modules/logbf-ieee: New file.
22063 2012-04-03  Bruno Haible  <bruno@clisp.org>
22065         Tests for module 'logbl'.
22066         * modules/logbl-tests: New file.
22067         * tests/test-logbl.c: New file.
22069         New module 'logbl'.
22070         * lib/math.in.h (logbl): New declaration.
22071         * lib/logbl.c: New file.
22072         * m4/logbl.m4: New file.
22073         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
22074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
22075         REPLACE_LOGBL.
22076         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
22077         REPLACE_LOGBL.
22078         * modules/logbl: New file.
22079         * tests/test-math-c++.cc: Check the declaration of logbl.
22080         * doc/posix-functions/logbl.texi: Mention the new module.
22082 2012-04-02  Bruno Haible  <bruno@clisp.org>
22084         Tests for module 'logbf'.
22085         * modules/logbf-tests: New file.
22086         * tests/test-logbf.c: New file.
22088         New module 'logbf'.
22089         * lib/math.in.h (logbf): New declaration.
22090         * lib/logbf.c: New file.
22091         * m4/logbf.m4: New file.
22092         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
22093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
22094         REPLACE_LOGBF.
22095         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
22096         REPLACE_LOGBF.
22097         * modules/logbf: New file.
22098         * tests/test-math-c++.cc: Check the declaration of logbf.
22099         * doc/posix-functions/logbf.texi: Mention the new module.
22101 2012-04-02  Bruno Haible  <bruno@clisp.org>
22103         logb tests: More tests.
22104         * tests/test-logb.h: New file, based on tests/test-logb.c and
22105         tests/test-frexp.h.
22106         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
22107         (main): Just invoke test_function.
22108         * modules/logb-tests (Files): Add tests/test-logb.h,
22109         tests/minus-zero.h, tests/randomd.c.
22110         (Makefile.am): Add randomd.c to test_logb_SOURCES.
22112         logb: Provide replacement and workarounds.
22113         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
22114         is 1.
22115         * lib/logb.c: New file.
22116         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
22117         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
22118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
22119         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
22120         * modules/logb (Files): Add lib/logb.c.
22121         (Depends-on): Add isfinite, frexp, isnand.
22122         (configure.ac): Compile the replacement code logb.c if needed.
22123         * tests/test-math-c++.cc: Check the declaration of logb.
22124         * doc/posix-functions/logb.texi: Mention the replacement and the bug
22125         with subnormal numbers.
22127 2012-04-02  Bruno Haible  <bruno@clisp.org>
22129         log10* tests: Speed up.
22130         * tests/test-log10.h (test_function): Reduce amount of random numbers
22131         to test.
22133 2012-04-01  Bruno Haible  <bruno@clisp.org>
22135         logf-ieee: Fix test whether logf works.
22136         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
22138 2012-04-01  Bruno Haible  <bruno@clisp.org>
22140         log10l: Work around log10l-ieee test failure on IRIX 6.5.
22141         * lib/log10l.c: Include <float.h>
22142         (log10l): On IRIX, normalize the +Infinity value.
22143         * modules/log10l (Depends-on): Add 'float'.
22144         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
22145         +Infinity.
22147         log10f-ieee: Work around test failure on NetBSD 5.1.
22148         * m4/log10f-ieee.m4: New file.
22149         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
22150         test whether log10f works with a negative argument. Replace it if not.
22151         * lib/log10f.c (log10f): For negative arguments, return NaN.
22152         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
22153         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
22154         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
22156         log10f-ieee: Work around test failure on Solaris 9.
22157         * modules/log10f-ieee (Depends-on): Add log10-ieee.
22158         (configure.ac): Require gl_FUNC_LOG10F.
22160         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22161         * m4/log10-ieee.m4: New file.
22162         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
22163         whether log10 works with a negative argument. Replace it if not.
22164         * lib/log10.c (log10): For negative arguments, return NaN.
22165         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
22166         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
22167         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
22169         Tests for module 'log10l-ieee'.
22170         * modules/log10l-ieee-tests: New file.
22171         * tests/test-log10l-ieee.c: New file.
22173         New module 'log10l-ieee'.
22174         * modules/log10l-ieee: New file.
22176         Tests for module 'log10-ieee'.
22177         * modules/log10-ieee-tests: New file.
22178         * tests/test-log10-ieee.c: New file.
22180         New module 'log10-ieee'.
22181         * modules/log10-ieee: New file.
22183         Tests for module 'log10f-ieee'.
22184         * modules/log10f-ieee-tests: New file.
22185         * tests/test-log10f-ieee.c: New file.
22186         * tests/test-log10-ieee.h: New file.
22188         New module 'log10f-ieee'.
22189         * modules/log10f-ieee: New file.
22191 2012-04-01  Bruno Haible  <bruno@clisp.org>
22193         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
22194         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
22195         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
22196         workaround.
22197         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
22198         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
22199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
22200         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
22201         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
22202         (Depends-on): Update conditions.
22203         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
22204         IRIX 6.5, OSF/1 5.1 problems.
22206 2012-04-01  Bruno Haible  <bruno@clisp.org>
22208         log10f: Work around OSF/1 5.1 bug.
22209         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
22210         * lib/log10f.c (log10f): If logf exists, use it and provide just the
22211         workaround.
22212         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
22213         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
22214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
22215         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
22216         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
22217         (Depends-on): Update conditions.
22218         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
22220 2012-04-01  Bruno Haible  <bruno@clisp.org>
22222         log10: Work around OSF/1 5.1 bug.
22223         * lib/math.in.h (log10): New declaration.
22224         * lib/log10.c: New file.
22225         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
22226         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
22227         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
22228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
22229         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
22230         * modules/log10 (Files): Add lib/log10.c.
22231         (Depends-on): Add math.
22232         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
22233         * tests/test-math-c++.cc: Check the declaration of log10.
22234         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
22236 2012-03-31  Bruno Haible  <bruno@clisp.org>
22238         log10l tests: More tests.
22239         * modules/log10l-tests (Files): Add tests/test-log10l.h,
22240         tests/minus-zero.h, tests/randoml.c.
22241         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
22242         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
22243         (main): Invoke test_function.
22245         log10f tests: More tests.
22246         * modules/log10f-tests (Files): Add tests/test-log10.h,
22247         tests/minus-zero.h, tests/randomf.c.
22248         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
22249         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
22250         (main): Invoke test_function.
22252         log10 tests: More tests.
22253         * tests/test-log10.h: New file.
22254         * modules/log10-tests (Files): Add tests/test-log10.h,
22255         tests/minus-zero.h, tests/randomd.c.
22256         (Makefile.am): Add randomd.c to test_log10_SOURCES.
22257         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
22258         (main): Invoke test_function.
22260 2012-03-31  Simon Josefsson  <simon@josefsson.org>
22262         fflush: Fix syntax error.
22263         * lib/fflush.c: Include unused-parameter.h, needed for
22264         _GL_UNUSED_PARAMETER.
22265         * modules/fflush (Depends-on): Add snippet/unused-parameter.
22267 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22269         regex: pacify GCC when compiling GRUB
22270         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
22271         a diagnostic.  Reported by Vladimir Serbinenko in
22272         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
22274 2012-03-29  Eric Blake  <eblake@redhat.com>
22276         stdio: don't assume gets any more
22277         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
22278         support.
22279         * modules/stdio (Makefile.am): Likewise.
22280         * lib/stdio-read.c (gets): Likewise.
22281         * tests/test-stdio-c++.cc: Likewise.
22282         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
22283         * lib/stdio.in.h (gets): Make warning occur in more places.
22284         * doc/posix-functions/gets.texi (gets): Update documentation.
22285         Reported by Christer Solskogen.
22287         maint.mk: fix syntax checks without exclusions
22288         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
22289         Reported by Daniel P. Berrange.
22291         strerror_r: avoid compiler warning
22292         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
22293         level.
22295         fflush: avoid compiler warning
22296         * lib/fflush.c (update_fpos_cache): Mark variables that are
22297         potentially unused.
22299 2012-03-25  Bruno Haible  <bruno@clisp.org>
22301         Tests for module 'localeconv'.
22302         * modules/localeconv-tests: New file.
22303         * tests/test-localeconv.c: New file.
22305         New module 'localeconv'.
22306         * lib/locale.in.h (localeconv): New declaration.
22307         * lib/localeconv.c: New file.
22308         * m4/localeconv.m4: New file.
22309         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
22310         REPLACE_LOCALECONV.
22311         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
22312         REPLACE_LOCALECONV.
22313         * modules/localeconv: New file.
22314         * modules/nl_langinfo (Depends-on): Add localeconv.
22315         * modules/human (Depends-on): Likewise.
22316         * doc/posix-functions/localeconv.texi: Mention the new module.
22318 2012-03-25  Bruno Haible  <bruno@clisp.org>
22320         locale: Provide a complete 'struct lconv'.
22321         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22322         'struct lconv' does not contain int_p_cs_precedes.
22323         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22324         * doc/posix-headers/locale.texi: Update.
22326         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
22327         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
22328         * doc/posix-headers/locale.texi: Update.
22330         locale: Provide a working 'struct lconv'.
22331         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
22332         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22333         'struct lconv' does not even contain decimal_point.
22334         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
22335         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
22336         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22337         * doc/posix-headers/locale.texi: Mention the problems with
22338         'struct lconv'.
22339         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22341 2012-03-24  Bruno Haible  <bruno@clisp.org>
22343         Enable common subexpression optimization in GCC.
22344         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
22345         macros.
22346         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
22347         GCC attribute 'const'.
22348         (uc_locale_language): Declare with GCC attribute 'pure'.
22349         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
22350         with GCC attribute 'const'.
22351         * lib/unictype.in.h (uc_is_general_category_withtable,
22352         uc_combining_class, uc_combining_class_name,
22353         uc_combining_class_long_name, uc_bidi_class_name,
22354         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
22355         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
22356         uc_decimal_value, uc_digit_value, uc_numeric_value,
22357         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
22358         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
22359         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
22360         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
22361         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
22362         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
22363         Declare with GCC attribute 'const'.
22364         (uc_general_category_name, uc_general_category_long_name,
22365         uc_general_category_byname, uc_general_category,
22366         uc_is_general_category, uc_combining_class_byname,
22367         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
22368         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
22369         Declare with GCC attribute 'pure'.
22370         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
22371         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
22372         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
22373         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
22374         with GCC attribute 'pure'.
22375         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
22376         'const'.
22377         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
22378         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
22379         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
22380         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
22381         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
22382         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
22383         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
22384         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
22385         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
22386         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
22387         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
22388         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
22389         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
22390         GCC attribute 'pure'.
22391         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
22392         'const'.
22393         * lib/uniwidth.in.h (uc_width): Simplify declaration.
22394         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
22395         u32_strwidth): Declare with GCC attribute 'pure'.
22397         Enable common subexpression optimization in GCC.
22398         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22399         (alphasort): Declare with GCC attribute 'pure'.
22400         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22401         (atoll): Declare with GCC attribute 'pure'.
22402         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22403         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22404         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
22405         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22406         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
22407         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
22408         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
22410 2012-03-24  Bruno Haible  <bruno@clisp.org>
22412         gnulib-tool: Avoid unintended error output from 'cmp'.
22413         * gnulib-tool (func_add_file, func_update_file, func_import): Use
22414         "cmp -s", not "cmp > /dev/null".
22416 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
22418         gnulib-tool: fix imprecise comments w.r.t. an automake bug
22420         It's not just Automake versions < 1.9b that creates an empty
22421         pkgdatadir at installation time if pkgdata_DATA is specified
22422         to empty; modern automake versions do this as well, at least
22423         until automake 1.11.4 (not yet released at the moment of writing,
22424         but soon to appear).  That behaviour was generally considered a
22425         feature rather than a bug, at least until this discussion:
22426         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
22428         See also automake bugs #10997 and #11030.
22430         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
22431         reference to relevant automake bug numbers.
22432         (func_emit_tests_Makefile_am): Likewise.
22434 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22436         announce-gen: use Digest::SHA when possible
22437         * build-aux/announce-gen: Use Digest::SHA when possible, falling
22438         back to Digest::SHA1 if necessary.
22440 2012-03-20  Jim Meyering  <meyering@redhat.com>
22442         tests: avoid gcc warnings about argv vs. const initializers
22443         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
22444         warnings about discarding 'const' qualifier from pointer target type.
22445         * tests/test-posix_spawn2.c (main): Likewise.
22447 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22449         README-release: simplify slightly
22450         * top/README-release: Run "git checkout master" only once.
22452 2012-03-15  Mark Wielaard  <mark@klomp.org>
22454         git-merge-changelog: add specific example on how to use with hg.
22455         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
22457 2012-03-18  Mark Wielaard  <mark@klomp.org>
22459         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
22461 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
22463         git-version-gen: don't let "prefix" envvar cause trouble
22464         * build-aux/git-version-gen (prefix): Initialize properly,
22465         so as not to use a value specified via the environment.
22466         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
22468 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22470         regex: diagnose too-large repeat counts in EREs
22471         Previously, the code did not diagnose the too-large repeat count
22472         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
22473         as if it were 'b\{1000000000}', which is unexpected.
22474         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
22475         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
22476         is a reasonable one for this problem.  Another option would be to
22477         create a new REG_OVERFLOW error for repeat counts that are too large.
22478         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
22479         count is too large, so that the caller can distinguish the two cases.
22480         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
22481         "Too large" return code, and that repeat counts are one example of this.
22483 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22485         doc: some glibc x32 integer width issues
22486         * doc/posix-headers/sys_types.texi (sys/types.h):
22487         * doc/posix-headers/time.texi (time.h):
22488         Mention that glibc x32 does not conform to POSIX in a couple of
22489         areas related to integer widths.
22491 2012-03-15  Bruno Haible  <bruno@clisp.org>
22493         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
22494         * lib/fma.c (VOLATILE): New macro.
22495         (FUNC): Use it to work around a GCC compiler bug.
22497 2012-03-13  Bruno Haible  <bruno@clisp.org>
22499         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22500         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
22501         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
22502         REPLACE_HYPOTL to 1.
22503         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
22505 2012-03-13  Bruno Haible  <bruno@clisp.org>
22507         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22508         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
22509         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
22510         REPLACE_REMAINDERL to 1.
22511         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
22512         bug.
22514 2012-03-13  Bruno Haible  <bruno@clisp.org>
22516         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22517         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
22518         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
22519         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
22520         too big rounding errors.
22521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
22522         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
22523         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
22524         (Depends-on): Update conditions.
22525         * tests/test-sqrtl.c (my_ldexpl): New function.
22526         (main): Add test of a particular value.
22527         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22529 2012-03-13  Pádraig Brady  <P@draigBrady.com>
22531         doc: Update timer_* platform portability notes.
22532         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
22533         that always return ENOSYS.
22534         * doc/posix-functions/timer_delete.texi: Likewise.
22535         * doc/posix-functions/timer_gettime.texi: Likewise.
22536         * doc/posix-functions/timer_settime.texi: Likewise.
22538 2012-03-13  Bruno Haible  <bruno@clisp.org>
22540         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22541         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
22542         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
22543         REPLACE_CBRTL to 1.
22544         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22546 2012-03-13  Bruno Haible  <bruno@clisp.org>
22548         remainderl: Avoid compilation error on AIX >= 5.2.
22549         * lib/math.in.h (remainderl): Undefine macro from the system header.
22551 2012-03-13  Bruno Haible  <bruno@clisp.org>
22553         Avoid compilation errors with MSVC option -fp:strict.
22554         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
22555         * lib/cbrtf.c: Likewise.
22556         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22558 2012-03-12  Bruno Haible  <bruno@clisp.org>
22560         uninorm: Don't crash in out-of-memory conditions.
22561         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
22562         gracefully.
22563         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
22564         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
22566 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
22568         quote: fix syntax-check
22569         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
22570         also exports quote_quoting_options.
22572 2012-03-12  Simon Josefsson  <simon@josefsson.org>
22574         Collapse list of copyright years to ranges.  See
22575         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
22576         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
22577         build-aux/csharpexec.sh.in, build-aux/gnupload,
22578         build-aux/install-reloc, build-aux/javacomp.sh.in,
22579         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
22580         build-aux/move-if-change, build-aux/reloc-ldflags,
22581         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
22583 2012-03-11  Bruno Haible  <bruno@clisp.org>
22585         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22586         * m4/log2f-ieee.m4: New file.
22587         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
22588         whether log2f works with a minus zero argument. Replace it if not.
22589         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
22590         (Depends-on): Add log2-ieee.
22591         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
22592         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
22594         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22595         * m4/log2-ieee.m4: New file.
22596         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
22597         whether log2 works with a minus zero argument. Replace it if not.
22598         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
22599         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
22600         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
22602         Tests for module 'log2l-ieee'.
22603         * modules/log2l-ieee-tests: New file.
22604         * tests/test-log2l-ieee.c: New file.
22606         New module 'log2l-ieee'.
22607         * modules/log2l-ieee: New file.
22609         Tests for module 'log2-ieee'.
22610         * modules/log2-ieee-tests: New file.
22611         * tests/test-log2-ieee.c: New file.
22613         New module 'log2-ieee'.
22614         * modules/log2-ieee: New file.
22616         Tests for module 'log2f-ieee'.
22617         * modules/log2f-ieee-tests: New file.
22618         * tests/test-log2f-ieee.c: New file.
22619         * tests/test-log2-ieee.h: New file.
22621         New module 'log2f-ieee'.
22622         * modules/log2f-ieee: New file.
22624 2012-03-11  Bruno Haible  <bruno@clisp.org>
22626         Tests for module 'log2l'.
22627         * modules/log2l-tests: New file.
22628         * tests/test-log2l.c: New file.
22630         New module 'log2l'.
22631         * lib/math.in.h (log2l): New declaration.
22632         * lib/log2l.c: New file.
22633         * m4/log2l.m4: New file.
22634         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
22635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
22636         REPLACE_LOG2L.
22637         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
22638         REPLACE_LOG2L.
22639         * modules/log2l: New file.
22640         * tests/test-math-c++.cc: Check the declaration of log2l.
22641         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
22642         and OSF/1 problems.
22644 2012-03-11  Bruno Haible  <bruno@clisp.org>
22646         Tests for module 'log2f'.
22647         * modules/log2f-tests: New file.
22648         * tests/test-log2f.c: New file.
22650         New module 'log2f'.
22651         * lib/math.in.h (log2f): New declaration.
22652         * lib/log2f.c: New file.
22653         * m4/log2f.m4: New file.
22654         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
22655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
22656         REPLACE_LOG2F.
22657         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
22658         REPLACE_LOG2F.
22659         * modules/log2f: New file.
22660         * tests/test-math-c++.cc: Check the declaration of log2f.
22661         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
22662         and OSF/1 and Cygwin problems.
22664 2012-03-11  Bruno Haible  <bruno@clisp.org>
22666         Tests for module 'log2'.
22667         * modules/log2-tests: New file.
22668         * tests/test-log2.c: New file.
22669         * tests/test-log2.h: New file.
22671         New module 'log2'.
22672         * lib/math.in.h (log2): New declaration.
22673         * lib/log2.c: New file.
22674         * m4/log2.m4: New file.
22675         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
22676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
22677         REPLACE_LOG2.
22678         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
22679         REPLACE_LOG2.
22680         * modules/log2: New file.
22681         * tests/test-math-c++.cc: Check the declaration of log2.
22682         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
22683         and OSF/1 and Cygwin problems.
22685 2012-03-11  Bruno Haible  <bruno@clisp.org>
22687         exp2* tests: More tests.
22688         * tests/test-exp2.h (test_function): Test all integral arguments that
22689         don't need to overflow or denormalized numbers.
22690         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
22691         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
22692         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
22694 2012-03-10  Bruno Haible  <bruno@clisp.org>
22696         log1pl-ieee: Work around test failure on AIX 7.1.
22697         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
22699         log1pl-ieee: Work around test failure on IRIX 6.5.
22700         * m4/log1pl-ieee.m4: New file.
22701         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
22702         test whether log1pl works with a minus zero argument. Replace it if
22703         not.
22704         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
22705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
22706         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
22707         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
22708         (Depends-on): Update conditions.
22709         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22710         m4/signbit.m4.
22711         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
22712         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
22714         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
22715         * m4/log1pf-ieee.m4: New file.
22716         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
22717         test whether log1pf works with a minus zero argument. Replace it if
22718         not.
22719         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
22720         m4/signbit.m4.
22721         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
22722         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
22724         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
22725         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
22726         (configure.ac): Require gl_FUNC_LOG1PF.
22728         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
22729         * m4/log1p-ieee.m4: New file.
22730         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
22731         whether log1p works with a minus zero argument. Replace it if not.
22732         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
22733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
22734         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
22735         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
22736         (Depends-on): Update conditions.
22737         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22738         m4/signbit.m4.
22739         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
22740         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
22742         Tests for module 'log1pl-ieee'.
22743         * modules/log1pl-ieee-tests: New file.
22744         * tests/test-log1pl-ieee.c: New file.
22746         New module 'log1pl-ieee'.
22747         * modules/log1pl-ieee: New file.
22749         Tests for module 'log1p-ieee'.
22750         * modules/log1p-ieee-tests: New file.
22751         * tests/test-log1p-ieee.c: New file.
22753         New module 'log1p-ieee'.
22754         * modules/log1p-ieee: New file.
22756         Tests for module 'log1pf-ieee'.
22757         * modules/log1pf-ieee-tests: New file.
22758         * tests/test-log1pf-ieee.c: New file.
22759         * tests/test-log1p-ieee.h: New file.
22761         New module 'log1pf-ieee'.
22762         * modules/log1pf-ieee: New file.
22764 2012-03-10  Bruno Haible  <bruno@clisp.org>
22766         Tests for module 'log1pl'.
22767         * modules/log1pl-tests: New file.
22768         * tests/test-log1pl.c: New file.
22770         New module 'log1pl'.
22771         * lib/math.in.h (log1pl): New declaration.
22772         * lib/log1pl.c: New file.
22773         * m4/log1pl.m4: New file.
22774         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
22775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
22776         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
22777         * modules/log1pl: New file.
22778         * tests/test-math-c++.cc: Check the declaration of log1pl.
22779         * doc/posix-functions/log1pl.texi: Mention the new module.
22781 2012-03-10  Bruno Haible  <bruno@clisp.org>
22783         Tests for module 'log1pf'.
22784         * modules/log1pf-tests: New file.
22785         * tests/test-log1pf.c: New file.
22787         New module 'log1pf'.
22788         * lib/math.in.h (log1pf): New declaration.
22789         * lib/log1pf.c: New file.
22790         * m4/log1pf.m4: New file.
22791         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
22792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
22793         REPLACE_LOG1PF.
22794         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
22795         REPLACE_LOG1PF.
22796         * modules/log1pf: New file.
22797         * tests/test-math-c++.cc: Check the declaration of log1pf.
22798         * doc/posix-functions/log1pf.texi: Mention the new module.
22800 2012-03-10  Bruno Haible  <bruno@clisp.org>
22802         log1p tests: More tests.
22803         * tests/test-log1p.h: New file.
22804         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
22805         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
22806         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
22807         (main): Invoke test_function.
22809         log1p: Provide replacement for Minix and MSVC.
22810         * lib/math.in.h (log1p): New declaration.
22811         * lib/log1p.c: New file.
22812         * m4/log1p.m4: New file.
22813         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
22814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
22815         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
22816         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
22817         (Depends-on): Add math, isnand, log, round.
22818         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
22819         HAVE_LOG1P is 0.
22820         * tests/test-math-c++.cc: Check the declaration of log1p.
22821         * doc/posix-functions/log1p.texi: Mention the replacement.
22823 2012-03-10  Bruno Haible  <bruno@clisp.org>
22825         math tests: Small simplification.
22826         * tests/test-exp.h (test_function): Use the same err_bound for
22827         'double' on platforms with sizeof (long double) == sizeof (double)
22828         than on platforms with sizeof (long double) > sizeof (double).
22829         * tests/test-exp2.h (test_function): Likewise.
22830         * tests/test-expm1.h (test_function): Likewise.
22831         * tests/test-log.h (test_function): Likewise.
22833 2012-03-10  Bruno Haible  <bruno@clisp.org>
22835         Fix some comments.
22836         * lib/expl.c: Fix an ambiguous comment.
22837         * lib/expm1.c: Likewise.
22838         * lib/expm1l.c: Likewise.
22839         * lib/exp2.c: Likewise.
22840         * lib/exp2l.c: Likewise.
22842 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
22844         regex: allow inclusion of <regex.h> before <limits.h>
22845         Without this patch, portable programs had to include <limits.h> before
22846         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
22847         I ran into this problem with a test version of GNU grep on Solaris 8.
22848         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
22849         This is done conditionally so that this change can be merged
22850         back to glibc.
22851         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22852         using the included regex.
22854         fts: depend on fdopendir
22855         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22856         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22857         problem was introduced when fdopendir was split out.
22859 2012-03-10  Bruno Haible  <bruno@clisp.org>
22861         Remove unused variables.
22862         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22863         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22865 2012-03-10  Bruno Haible  <bruno@clisp.org>
22867         isnanf-nolibm: Fix last commit.
22868         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22870         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22871         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22873 2012-03-10  Bruno Haible  <bruno@clisp.org>
22875         logf-ieee: Work around test failure on NetBSD 5.1.
22876         * m4/logf-ieee.m4: New file.
22877         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22878         whether logf works with a negative argument. Replace it if not.
22879         * lib/logf.c (logf): For negative arguments, return NaN.
22880         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22881         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22882         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22884         logf-ieee: Work around test failure on Solaris 9.
22885         * modules/logf-ieee (Depends-on): Add log-ieee.
22886         (configure.ac): Require gl_FUNC_LOGF.
22888         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22889         * m4/log-ieee.m4: New file.
22890         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22891         log works with a negative argument. Replace it if not.
22892         * lib/log.c (log): For negative arguments, return NaN.
22893         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22894         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22895         * doc/posix-functions/log.texi: Mention the log-ieee module.
22897         Tests for module 'logl-ieee'.
22898         * modules/logl-ieee-tests: New file.
22899         * tests/test-logl-ieee.c: New file.
22901         New module 'logl-ieee'.
22902         * modules/logl-ieee: New file.
22904         Tests for module 'log-ieee'.
22905         * modules/log-ieee-tests: New file.
22906         * tests/test-log-ieee.c: New file.
22908         New module 'log-ieee'.
22909         * modules/log-ieee: New file.
22911         Tests for module 'logf-ieee'.
22912         * modules/logf-ieee-tests: New file.
22913         * tests/test-logf-ieee.c: New file.
22914         * tests/test-log-ieee.h: New file.
22916         New module 'logf-ieee'.
22917         * modules/logf-ieee: New file.
22919 2012-03-10  Bruno Haible  <bruno@clisp.org>
22921         log: Fix bug introduced on 2012-03-09.
22922         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22924 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22926         timer-time: link explicitly with pthreads on glibc
22927         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22928         to support static linking, when newer glibc is
22929         detected, as that contains pthread emulation of
22930         POSIX timer functions where required.
22931         * modules/timer-time: Depend on threadlib to
22932         pull in the appropriate library to link.
22934 2012-03-10  Bruno Haible  <bruno@clisp.org>
22936         log* tests: More tests.
22937         * tests/test-log.h: New file.
22938         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22939         (main): Invoke test_function.
22940         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22941         (main): Invoke test_function.
22942         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22943         (main): Invoke test_function.
22944         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22945         tests/randomd.c.
22946         (Makefile.am): Add randomd.c to test_log_SOURCES.
22947         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22948         tests/randomf.c.
22949         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22950         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22951         tests/randoml.c.
22952         (Depends-on): Add 'float'.
22953         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22955 2012-03-09  Bruno Haible  <bruno@clisp.org>
22957         logl: Work around OSF/1 5.1 bug.
22958         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22959         * lib/logl.c (logl): If logl exists, use it and provide just the
22960         workaround.
22961         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22962         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22964         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22965         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22966         (Depends-on): Update conditions.
22967         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22969 2012-03-09  Bruno Haible  <bruno@clisp.org>
22971         logf: Work around OSF/1 5.1 bug.
22972         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22973         * lib/logf.c (logf): If logf exists, use it and provide just the
22974         workaround.
22975         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22976         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22978         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22979         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22980         (Depends-on): Update conditions.
22981         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22983 2012-03-09  Bruno Haible  <bruno@clisp.org>
22985         log: Work around OSF/1 5.1 bug.
22986         * lib/math.in.h (log): New declaration.
22987         * lib/log.c: New file.
22988         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22989         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22990         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22992         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22993         * modules/log (Files): Add lib/log.c.
22994         (Depends-on): Add math.
22995         (configure.ac): If REPLACE_LOG is 1, compile an override.
22996         * tests/test-math-c++.cc: Check the declaration of log.
22997         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22999 2012-03-09  Jim Meyering  <meyering@redhat.com>
23001         readtokens.c: adjust wording in a comment
23002         * lib/readtokens.c: Insert omitted "that" in a comment.
23004 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
23006         modechange: add notations +40, 00440, etc.
23007         * lib/modechange.c (mode_compile): Support new notations
23008         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
23010 2012-03-08  Bruno Haible  <bruno@clisp.org>
23012         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
23013         * m4/exp2l-ieee.m4: New file.
23014         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
23015         test whether exp2l works with a NaN argument and with a negative
23016         infinity argument. Replace it if not.
23017         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
23018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
23019         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
23020         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
23021         (Depends-on): Update conditions.
23022         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
23023         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
23024         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
23026         Tests for module 'exp2l-ieee'.
23027         * modules/exp2l-ieee-tests: New file.
23028         * tests/test-exp2l-ieee.c: New file.
23030         New module 'exp2l-ieee'.
23031         * modules/exp2l-ieee: New file.
23033         Tests for module 'exp2-ieee'.
23034         * modules/exp2-ieee-tests: New file.
23035         * tests/test-exp2-ieee.c: New file.
23037         New module 'exp2-ieee'.
23038         * modules/exp2-ieee: New file.
23040         Tests for module 'exp2f-ieee'.
23041         * modules/exp2f-ieee-tests: New file.
23042         * tests/test-exp2f-ieee.c: New file.
23043         * tests/test-exp2-ieee.h: New file.
23045         New module 'exp2f-ieee'.
23046         * modules/exp2f-ieee: New file.
23048 2012-03-08  Bruno Haible  <bruno@clisp.org>
23050         Tests for module 'exp2l'.
23051         * modules/exp2l-tests: New file.
23052         * tests/test-exp2l.c: New file.
23054         New module 'exp2l'.
23055         * lib/math.in.h (exp2l): New declaration.
23056         * lib/exp2l.c: New file.
23057         * lib/expl-table.c: New file, extracted from lib/expl.c.
23058         * lib/expl.c (gl_expl_table): New declaration.
23059         (expl): Remove expl_table. Update reference.
23060         * m4/exp2l.m4: New file.
23061         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
23062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
23063         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
23064         * modules/exp2l: New file.
23065         * modules/expl (Files): Add lib/expl-table.c.
23066         (configure.ac): Compile also expl-table.c.
23067         * tests/test-math-c++.cc: Check the declaration of exp2l.
23068         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
23069         problem.
23071 2012-03-08  Bruno Haible  <bruno@clisp.org>
23073         Tests for module 'exp2f'.
23074         * modules/exp2f-tests: New file.
23075         * tests/test-exp2f.c: New file.
23077         New module 'exp2f'.
23078         * lib/math.in.h (exp2f): New declaration.
23079         * lib/exp2f.c: New file.
23080         * m4/exp2f.m4: New file.
23081         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
23082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
23083         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
23084         * modules/exp2f: New file.
23085         * tests/test-math-c++.cc: Check the declaration of exp2f.
23086         * doc/posix-functions/exp2f.texi: Mention the new module and the
23087         IRIX problem.
23089 2012-03-08  Bruno Haible  <bruno@clisp.org>
23091         Tests for module 'exp2'.
23092         * modules/exp2-tests: New file.
23093         * tests/test-exp2.c: New file.
23094         * tests/test-exp2.h: New file.
23096         New module 'exp2'.
23097         * lib/math.in.h (exp2): New declaration.
23098         * lib/exp2.c: New file.
23099         * m4/exp2.m4: New file.
23100         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
23101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
23102         REPLACE_EXP2.
23103         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
23104         REPLACE_EXP2.
23105         * modules/exp2: New file.
23106         * tests/test-math-c++.cc: Check the declaration of exp2.
23107         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
23108         and OpenBSD problems.
23110 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
23112         savedir: fix comment typo
23113         * lib/savedir.c (savedirstream): Fix typo in comment.
23115 2012-03-08  Bruno Haible  <bruno@clisp.org>
23117         test-readtokens.c: use const; remove unwarranted cast
23118         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
23120 2012-03-08  Bruno Haible  <bruno@clisp.org>
23122         fmal: Avoid compilation error on AIX.
23123         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
23124         AIX 5.2..7.1.
23126 2012-03-08  Bruno Haible  <bruno@clisp.org>
23128         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
23129         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
23130         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
23131         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
23132         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
23133         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
23134         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
23136 2012-03-08  Bruno Haible  <bruno@clisp.org>
23138         remainderf: Override buggy system function on IRIX 6.5.
23139         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
23140         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
23141         when it exists.
23142         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
23144 2012-03-08  Jim Meyering  <meyering@redhat.com>
23146         test-readtokens.c: avoid const-related compilation warnings
23147         * tests/test-readtokens.c: Avoid const-related compilation warnings.
23149 2012-03-07  Jim Meyering  <meyering@redhat.com>
23150             Bruno Haible  <bruno@clisp.org>
23152         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
23153         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
23154         tests/randomd.c.
23155         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
23156         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
23157         tests/randoml.c.
23158         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
23160 2012-03-07  Bruno Haible  <bruno@clisp.org>
23162         expm1l: Avoid compilation error on AIX.
23163         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
23164         AIX 5.2..7.1.
23166 2012-03-07  Bruno Haible  <bruno@clisp.org>
23168         expm1l: Don't override undeclared system function on IRIX 6.5.
23169         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
23170         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
23171         it exists. Set HAVE_DECL_EXPM1L.
23172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
23173         HAVE_EXPM1L.
23174         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
23175         HAVE_EXPM1L.
23176         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
23178 2012-03-07  Bruno Haible  <bruno@clisp.org>
23180         remainderl: Don't override undeclared system function on IRIX 6.5.
23181         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
23182         HAVE_REMAINDERL.
23183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
23184         declared when it exists. Set HAVE_DECL_REMAINDERL.
23185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
23186         not HAVE_REMAINDERL.
23187         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
23188         HAVE_REMAINDERL.
23189         * doc/posix-functions/remainderl.texi: Mention missing declaration
23190         problem.
23192 2012-03-07  Bruno Haible  <bruno@clisp.org>
23194         rintf: Don't override undeclared system function on IRIX 6.5.
23195         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
23196         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
23197         exists. Set HAVE_DECL_RINTF.
23198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
23199         HAVE_RINTF.
23200         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
23201         HAVE_RINTF.
23202         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
23204 2012-03-07  Bruno Haible  <bruno@clisp.org>
23206         roundl: Avoid compilation error on AIX.
23207         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
23208         AIX 5.2..7.1.
23210 2012-03-07  Bruno Haible  <bruno@clisp.org>
23212         roundl: Don't override undeclared system function on IRIX 6.5.
23213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
23214         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
23215         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23216         * modules/roundl (configure.ac): For replacement code, test
23217         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23218         (Depends-on): Update conditions.
23219         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
23221 2012-03-07  Bruno Haible  <bruno@clisp.org>
23223         roundf: Don't override undeclared system function on IRIX 6.5.
23224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
23225         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
23226         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23227         * modules/roundf (configure.ac): For replacement code, test
23228         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23229         (Depends-on): Update conditions.
23230         * modules/roundf-ieee (Depends-on): Update conditions.
23231         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
23233 2012-03-07  Bruno Haible  <bruno@clisp.org>
23235         round: Don't override undeclared system function on IRIX 6.5.
23236         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
23237         argument.
23238         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
23239         also when it is not declared. Set HAVE_ROUND. For replacement code,
23240         test HAVE_ROUND, not HAVE_DECL_ROUND.
23241         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
23242         not HAVE_DECL_ROUND.
23243         (Depends-on): Update conditions.
23244         * modules/round-ieee (Depends-on): Update conditions.
23245         * doc/posix-functions/round.texi: Mention the IRIX problem.
23247 2012-03-07  Bruno Haible  <bruno@clisp.org>
23249         copysignf: Don't override undeclared system function on IRIX 6.5.
23250         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
23251         HAVE_COPYSIGNF.
23252         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
23253         declared when it exists. Set HAVE_DECL_COPYSIGNF.
23254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
23255         not HAVE_COPYSIGNF.
23256         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
23257         HAVE_COPYSIGNF.
23258         * doc/posix-functions/copysignf.texi: Mention missing declaration
23259         problem.
23261 2012-03-07  Jim Meyering  <meyering@redhat.com>
23263         readtokens: add tests
23264         * modules/readtokens-tests: New file.
23265         * tests/test-readtokens.c: New file.
23267 2012-03-07  Jim Meyering  <meyering@redhat.com>
23269         quotearg: the module must now include quote.h
23270         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
23271         So must the module.
23272         * modules/quotearg (Files): Add quote.h.
23274 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23276         readtokens: avoid core dumps with unusual calling patterns
23277         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
23278         * lib/readtokens.c: Include limits.h.
23279         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
23280         (readtoken): Don't cache the delimiters; the cache code was buggy
23281         if !delim && saved_delim, or if the new n_delim differs from the old.
23282         Also, it wasn't thread-safe.
23284 2012-03-07  Bruno Haible  <bruno@clisp.org>
23286         quote: Adhere to common module description layout.
23287         * modules/quote (Makefile.am): Add back empty section.
23289 2012-03-06  Akim Demaille  <demaille@gostai.com>
23291         quote: fuse into quotearg
23292         This patch is made for the benefit of Bison.
23293         quote does not leave the choice of the quoting style to the user.
23294         quoting_style provides poor customizability, yet quoting_options,
23295         which is very rich, is hidden inside quotearg.c.  So in order to
23296         allow quote customization, move its implementation to quotearg.c.
23297         * lib/quote.c: Remove.
23298         * modules/quote: Adjust.
23299         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
23300         warning: provide all the members of literal structs.
23301         (quote_quoting_options): New.
23302         (quote, quote_n): Import implementation from quote.c.
23303         * lib/quote.h: Import the comments from quote.c.
23304         (quote_quoting_options): New.
23306 2012-03-06  Bruno Haible  <bruno@clisp.org>
23308         Tests for module 'expm1l-ieee'.
23309         * modules/expm1l-ieee-tests: New file.
23310         * tests/test-expm1l-ieee.c: New file.
23312         New module 'expm1l-ieee'.
23313         * modules/expm1l-ieee: New file.
23315         Tests for module 'expm1f-ieee'.
23316         * modules/expm1f-ieee-tests: New file.
23317         * tests/test-expm1f-ieee.c: New file.
23319         New module 'expm1f-ieee'.
23320         * modules/expm1f-ieee: New file.
23322         Tests for module 'expm1-ieee'.
23323         * modules/expm1-ieee-tests: New file.
23324         * tests/test-expm1-ieee.c: New file.
23325         * tests/test-expm1-ieee.h: New file.
23327         New module 'expm1-ieee'.
23328         * modules/expm1-ieee: New file.
23329         * m4/expm1-ieee.m4: New file.
23330         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
23331         whether expm1 works with a minus zero argument. Replace it if not.
23332         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
23333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
23334         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
23335         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
23336         (Depends-on): Update conditions.
23337         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
23338         AIX problem.
23340 2012-03-06  Bruno Haible  <bruno@clisp.org>
23342         Work around expm1f bug on IRIX 6.5.
23343         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
23344         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
23345         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
23346         not work.
23347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
23348         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
23349         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
23350         (Depends-on): Update conditions.
23351         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
23353 2012-03-06  Bruno Haible  <bruno@clisp.org>
23355         Tests for module 'expm1l'.
23356         * modules/expm1l-tests: New file.
23357         * tests/test-expm1l.c: New file.
23359         New module 'expm1l'.
23360         * lib/math.in.h (expm1l): New declaration.
23361         * lib/expm1l.c: New file.
23362         * m4/expm1l.m4: New file.
23363         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
23364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
23365         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
23366         * modules/expm1l: New file.
23367         * tests/test-math-c++.cc: Check the declaration of expm1l.
23368         * doc/posix-functions/expm1l.texi: Mention the new module.
23370 2012-03-06  Bruno Haible  <bruno@clisp.org>
23372         Tests for module 'expm1f'.
23373         * modules/expm1f-tests: New file.
23374         * tests/test-expm1f.c: New file.
23376         New module 'expm1f'.
23377         * lib/math.in.h (expm1f): New declaration.
23378         * lib/expm1f.c: New file.
23379         * m4/expm1f.m4: New file.
23380         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
23381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
23382         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
23383         * modules/expm1f: New file.
23384         * tests/test-math-c++.cc: Check the declaration of expm1f.
23385         * doc/posix-functions/expm1f.texi: Mention the new module.
23387 2012-03-06  Bruno Haible  <bruno@clisp.org>
23389         Tests for module 'expm1'.
23390         * modules/expm1-tests: New file.
23391         * tests/test-expm1.c: New file.
23392         * tests/test-expm1.h: New file.
23394         New module 'expm1'.
23395         * lib/math.in.h (expm1): New declaration.
23396         * lib/expm1.c: New file.
23397         * m4/expm1.m4: New file.
23398         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
23399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
23400         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
23401         * modules/expm1: New file.
23402         * tests/test-math-c++.cc: Check the declaration of expm1.
23403         * doc/posix-functions/expm1.texi: Mention the new module.
23405 2012-03-06  Bruno Haible  <bruno@clisp.org>
23407         math: Ensure declarations of math functions.
23408         * modules/acosf (Depends-on): Add 'extensions'.
23409         * modules/asinf (Depends-on): Likewise.
23410         * modules/atan2f (Depends-on): Likewise.
23411         * modules/atanf (Depends-on): Likewise.
23412         * modules/cbrt (Depends-on): Likewise.
23413         * modules/cbrtf (Depends-on): Likewise.
23414         * modules/cbrtl (Depends-on): Likewise.
23415         * modules/copysignf (Depends-on): Likewise.
23416         * modules/copysignl (Depends-on): Likewise.
23417         * modules/cosf (Depends-on): Likewise.
23418         * modules/coshf (Depends-on): Likewise.
23419         * modules/expf (Depends-on): Likewise.
23420         * modules/fabsf (Depends-on): Likewise.
23421         * modules/fabsl (Depends-on): Likewise.
23422         * modules/fmaf (Depends-on): Likewise.
23423         * modules/fmal (Depends-on): Likewise.
23424         * modules/fmodf (Depends-on): Likewise.
23425         * modules/fmodl (Depends-on): Likewise.
23426         * modules/frexpf (Depends-on): Likewise.
23427         * modules/frexpl (Depends-on): Likewise.
23428         * modules/hypot (Depends-on): Likewise.
23429         * modules/hypotf (Depends-on): Likewise.
23430         * modules/hypotl (Depends-on): Likewise.
23431         * modules/ldexpf (Depends-on): Likewise.
23432         * modules/ldexpl (Depends-on): Likewise.
23433         * modules/log10f (Depends-on): Likewise.
23434         * modules/log10l (Depends-on): Likewise.
23435         * modules/log1p (Depends-on): Likewise.
23436         * modules/logb (Depends-on): Likewise.
23437         * modules/logf (Depends-on): Likewise.
23438         * modules/modff (Depends-on): Likewise.
23439         * modules/modfl (Depends-on): Likewise.
23440         * modules/powf (Depends-on): Likewise.
23441         * modules/remainderf (Depends-on): Likewise.
23442         * modules/remainderl (Depends-on): Likewise.
23443         * modules/rintf (Depends-on): Likewise.
23444         * modules/rintl (Depends-on): Likewise.
23445         * modules/sinf (Depends-on): Likewise.
23446         * modules/sinhf (Depends-on): Likewise.
23447         * modules/sqrtf (Depends-on): Likewise.
23448         * modules/tanf (Depends-on): Likewise.
23449         * modules/tanhf (Depends-on): Likewise.
23450         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
23451         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
23452         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
23453         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
23454         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
23455         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
23456         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
23457         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
23458         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
23459         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
23460         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
23461         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
23462         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
23463         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
23464         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
23465         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
23466         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23467         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23468         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
23469         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
23470         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23471         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
23472         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
23473         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
23474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
23475         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
23476         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
23477         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23478         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
23479         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23480         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23481         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
23482         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
23483         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23484         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
23485         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
23486         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
23487         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
23488         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
23489         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
23490         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
23492 2012-03-06  Bruno Haible  <bruno@clisp.org>
23494         math: Update module names in warnings.
23495         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23496         tanl): Use specific module name in warn-on-use warning.
23498 2012-03-06  Bruno Haible  <bruno@clisp.org>
23500         expl: Simplify computation.
23501         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
23503 2012-03-05  Bruno Haible  <bruno@clisp.org>
23505         exp* tests: More tests.
23506         * tests/test-exp.h: New file.
23507         * tests/test-exp.c: Include <float.h> and test-exp.h.
23508         (main): Invoke test_function.
23509         * tests/test-expf.c: Include <float.h> and test-exp.h.
23510         (main): Invoke test_function.
23511         * tests/test-expl.c: Include <float.h> and test-exp.h.
23512         (main): Invoke test_function.
23513         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
23514         (Makefile.am): Add randomd.c to test_exp_SOURCES.
23515         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
23516         (Makefile.am): Add randomf.c to test_expf_SOURCES.
23517         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
23518         (Depends-on): Add 'float'.
23519         (Makefile.am): Add randoml.c to test_expl_SOURCES.
23521         expl: Fix precision of computed result.
23522         * lib/expl.c: Completely rewritten.
23523         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
23524         (Maintainer): Add me.
23525         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
23527 2012-03-05  Bruno Haible  <bruno@clisp.org>
23529         cbrt* tests: More tests.
23530         * tests/test-cbrt.h: New file.
23531         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
23532         (main): Invoke test_function.
23533         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
23534         (main): Invoke test_function.
23535         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
23536         (main): Invoke test_function.
23537         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
23538         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
23539         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
23540         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
23541         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
23542         (Depends-on): Add 'float'.
23543         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
23545 2012-03-05  Bruno Haible  <bruno@clisp.org>
23547         hypot* tests: More tests.
23548         * tests/test-hypot.h: New file, partially extracted from
23549         tests/test-hypotl.c.
23550         * tests/test-hypot.c: Include test-hypot.h.
23551         (main): Invoke test_function.
23552         * tests/test-hypotf.c: Include test-hypot.h.
23553         (main): Invoke test_function.
23554         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
23555         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
23556         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
23557         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
23558         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
23559         tests/randomf.c.
23560         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
23561         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
23562         tests/randoml.c.
23563         (Depends-on): Add 'fpucw', 'float'.
23564         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
23566 2012-03-05  Bruno Haible  <bruno@clisp.org>
23568         fpucw: Doc about FreeBSD.
23569         * lib/fpucw.h: Mention FreeBSD in comments.
23571 2012-03-04  Bruno Haible  <bruno@clisp.org>
23573         sqrt* tests: More tests.
23574         * tests/test-sqrt.h: New file.
23575         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
23576         (main): Invoke test_function.
23577         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
23578         (main): Invoke test_function.
23579         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
23580         (main): Invoke test_function.
23581         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
23582         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
23583         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
23584         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
23585         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
23586         (Depends-on): Add 'float'.
23587         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
23589 2012-03-04  Bruno Haible  <bruno@clisp.org>
23591         remainder* tests: More tests.
23592         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
23593         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
23594         (main): Invoke test_function.
23595         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
23596         (main): Invoke test_function.
23597         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
23598         (main): Invoke test_function.
23599         * modules/remainder-tests (Files): Add tests/test-remainder.h,
23600         tests/randomd.c.
23601         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
23602         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
23603         tests/randomf.c.
23604         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
23605         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
23606         tests/randoml.c.
23607         (Depends-on): Add 'float'.
23608         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
23610 2012-03-04  Bruno Haible  <bruno@clisp.org>
23612         remainder, remainderf, remainderl: Fix computation for large quotients.
23613         * lib/remainder.c: Completely rewritten.
23614         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
23615         USE_FLOAT.
23616         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
23617         USE_LONG_DOUBLE.
23618         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
23619         isnand, isinf. Remove round, fma.
23620         * modules/remainderf (Files): Add lib/remainder.c.
23621         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
23622         Remove roundf, fmaf.
23623         * modules/remainderl (Files): Add lib/remainder.c.
23624         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
23625         isinf. Remove roundl, fmal.
23626         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
23627         REMAINDER_LIBM.
23628         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
23629         REMAINDERF_LIBM.
23630         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
23631         REMAINDERL_LIBM.
23633 2012-03-04  Bruno Haible  <bruno@clisp.org>
23635         fmod* tests: More tests.
23636         * tests/test-fmod.h (my_ldexp): New function.
23637         (test_function): Reduce amount of random numbers to test. Add tests
23638         of very large quotients x / y.
23639         * tests/test-fmod.c (MAX_EXP): New macro.
23640         * tests/test-fmodf.c (MAX_EXP): Likewise.
23641         * tests/test-fmodl.c (MAX_EXP): Likewise.
23643 2012-03-04  Bruno Haible  <bruno@clisp.org>
23645         fmod, fmodl: Fix computation for large quotients x / y.
23646         * lib/fmod.c: Completely rewritten.
23647         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
23648         USE_LONG_DOUBLE.
23649         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
23650         isnand. Remove fma.
23651         * modules/fmodl (Files): Add lib/fmod.c.
23652         (Depends-on): Add float, isfinite, signbit, fabsl,
23653         frexpl, ldexpl, isnanl. Remove fma.
23654         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
23655         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
23657 2012-03-03  Bruno Haible  <bruno@clisp.org>
23659         fmod* tests: More tests.
23660         * tests/test-fmod.h: New file.
23661         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
23662         (main): Invoke test_function.
23663         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
23664         (main): Invoke test_function.
23665         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
23666         (main): Invoke test_function.
23667         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
23668         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
23669         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
23670         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
23671         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
23672         (Depends-on): Add 'float'.
23673         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
23675 2012-03-03  Bruno Haible  <bruno@clisp.org>
23677         rint* tests: More tests.
23678         * tests/test-rint.h: New file, partially extracted from
23679         tests/test-rintl.c.
23680         * tests/test-rint.c: Include test-rint.h.
23681         (main): Invoke test_function.
23682         * tests/test-rintf.c: Include test-rint.h.
23683         (main): Invoke test_function.
23684         * tests/test-rintl.c: Include test-rint.h.
23685         (main): Invoke test_function.
23686         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
23687         (Makefile.am): Add randomd.c to test_rint_SOURCES.
23688         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
23689         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
23690         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
23691         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
23693 2012-03-03  Bruno Haible  <bruno@clisp.org>
23695         modf* tests: More tests.
23696         * tests/test-modf.h: New file.
23697         * tests/test-modf.c: Include <float.h> and test-modf.h.
23698         (main): Invoke test_function.
23699         * tests/test-modff.c: Include <float.h> and test-modf.h.
23700         (main): Invoke test_function.
23701         * tests/test-modfl.c: Include <float.h> and test-modf.h.
23702         (main): Invoke test_function.
23703         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
23704         (Makefile.am): Add randomd.c to test_modf_SOURCES.
23705         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
23706         (Makefile.am): Add randomf.c to test_modff_SOURCES.
23707         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
23708         (Depends-on): Add 'float'.
23709         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
23711 2012-03-03  Bruno Haible  <bruno@clisp.org>
23713         fabs* tests: More tests.
23714         * tests/test-fabs.h: New file, partially extracted from
23715         tests/test-fabsl.c.
23716         * tests/test-fabs.c (RANDOM): New macro.
23717         * tests/test-fabsf.c (RANDOM): New macro.
23718         * tests/test-fabsl.c (RANDOM): New macro.
23719         * modules/fabs-tests (Files): Add tests/randomd.c.
23720         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
23721         * modules/fabsf-tests (Files): Add tests/randomf.c.
23722         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
23723         * modules/fabsl-tests (Files): Add tests/randoml.c.
23724         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
23726 2012-03-03  Bruno Haible  <bruno@clisp.org>
23728         ldexp* tests: More tests.
23729         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
23730         * tests/test-ldexp.c (RANDOM): New macro.
23731         * tests/test-ldexpf.c (RANDOM): New macro.
23732         * tests/test-ldexpl.c (RANDOM): New macro.
23733         * modules/ldexp-tests (Files): Add tests/randomd.c.
23734         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
23735         * modules/ldexpf-tests (Files): Add tests/randomf.c.
23736         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
23737         * modules/ldexpl-tests (Files): Add tests/randoml.c.
23738         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
23740 2012-03-03  Bruno Haible  <bruno@clisp.org>
23742         frexp* tests: More tests.
23743         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
23744         * tests/test-frexp.c (RANDOM): New macro.
23745         * tests/test-frexpf.c (RANDOM): New macro.
23746         * tests/test-frexpl.c (RANDOM): New macro.
23747         * modules/frexp-tests (Files): Add tests/randomd.c.
23748         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
23749         * modules/frexpf-tests (Files): Add tests/randomf.c.
23750         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
23751         * modules/frexpl-tests (Files): Add tests/randoml.c.
23752         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
23754 2012-03-03  Bruno Haible  <bruno@clisp.org>
23756         Support for pseudo-random numbers in tests.
23757         * tests/randomf.c: New file.
23758         * tests/randomd.c: New file.
23759         * tests/randoml.c: New file.
23760         * tests/macros.h (randomf, randomd, randoml): New declarations.
23762 2012-03-03  Bruno Haible  <bruno@clisp.org>
23764         frexp* tests: Refactor.
23765         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
23766         * tests/test-frexp.c: Include and use it.
23767         * tests/test-frexpf.c: Likewise.
23768         * tests/test-frexpl.c: Likewise.
23769         * modules/frexp-tests (Files): Add tests/test-frexp.h.
23770         * modules/frexpf-tests (Files): Likewise.
23771         * modules/frexpl-tests (Files): Likewise.
23773 2012-03-02  Jim Meyering  <meyering@redhat.com>
23775         maint: don't specify XZ_OPT=-9ev in dist-related rule
23776         Using xz's -9 option is warranted only if you have a very large
23777         tarball (see xz's documentation for the sizes vs. presets), and
23778         requires 64MiB of memory at decompression time.
23779         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
23780         Automake's default of just "-e" is fine.  Override on a
23781         per-package basis by setting XZ_OPT e.g., in cfg.mk.
23783 2012-03-01  Eric Blake  <eblake@redhat.com>
23785         maint.mk: allow announcement for non-gnulib project
23786         * maint.mk (announcement): Skip gnulib version if not used.
23788 2012-03-01  Jim Meyering  <meyering@redhat.com>
23790         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
23791         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
23792         envvar settings cannot interfere.  Otherwise, setting envvars like
23793         prohibit=foo require=bar, etc. would cause spurious test failures.
23795 2012-03-01  Eric Blake  <eblake@redhat.com>
23797         maint.mk: add per-line exclusions to prohibitions
23798         * maint.mk (_sc_search_regexp): Add $exclude parameter.
23799         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
23800         (sc_const_long_option): Use it.
23802 2012-03-01  Bruno Haible  <bruno@clisp.org>
23804         Tests for module 'expl-ieee'.
23805         * modules/expl-ieee-tests: New file.
23806         * tests/test-expl-ieee.c: New file.
23808         New module 'expl-ieee'.
23809         * modules/expl-ieee: New file.
23811         Tests for module 'exp-ieee'.
23812         * modules/exp-ieee-tests: New file.
23813         * tests/test-exp-ieee.c: New file.
23815         New module 'exp-ieee'.
23816         * modules/exp-ieee: New file.
23818         Tests for module 'expf-ieee'.
23819         * modules/expf-ieee-tests: New file.
23820         * tests/test-expf-ieee.c: New file.
23821         * tests/test-exp-ieee.h: New file.
23823         New module 'expf-ieee'.
23824         * modules/expf-ieee: New file.
23826 2012-02-29  Bruno Haible  <bruno@clisp.org>
23828         cbrtl-ieee: Work around test failure on IRIX 6.5.
23829         * m4/cbrtl-ieee.m4: New file.
23830         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
23831         test whether cbrtl works with a minus zero argument. Replace it if not.
23832         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
23833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
23834         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
23835         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
23836         (Depends-on): Update conditions.
23837         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23838         m4/signbit.m4.
23839         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
23840         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
23841         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
23843         Tests for module 'cbrtl-ieee'.
23844         * modules/cbrtl-ieee-tests: New file.
23845         * tests/test-cbrtl-ieee.c: New file.
23847         New module 'cbrtl-ieee'.
23848         * modules/cbrtl-ieee: New file.
23850         Tests for module 'cbrt-ieee'.
23851         * modules/cbrt-ieee-tests: New file.
23852         * tests/test-cbrt-ieee.c: New file.
23854         New module 'cbrt-ieee'.
23855         * modules/cbrt-ieee: New file.
23857         Tests for module 'cbrtf-ieee'.
23858         * modules/cbrtf-ieee-tests: New file.
23859         * tests/test-cbrtf-ieee.c: New file.
23860         * tests/test-cbrt-ieee.h: New file.
23862         New module 'cbrtf-ieee'.
23863         * modules/cbrtf-ieee: New file.
23865 2012-02-29  Bruno Haible  <bruno@clisp.org>
23867         cbrtf: Work around bug in IRIX 6.5 system function.
23868         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23869         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23870         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23871         work.
23872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23873         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23874         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23875         (Depends-on): Update conditions.
23876         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23878 2012-02-29  Bruno Haible  <bruno@clisp.org>
23880         Tests for module 'cbrtl'.
23881         * modules/cbrtl-tests: New file.
23882         * tests/test-cbrtl.c: New file.
23884         New module 'cbrtl'.
23885         * lib/math.in.h (cbrtl): New declaration.
23886         * lib/cbrtl.c: New file.
23887         * m4/cbrtl.m4: New file.
23888         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23890         HAVE_DECL_CBRTL.
23891         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23892         HAVE_DECL_CBRTL.
23893         * modules/cbrtl: New file.
23894         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23895         * doc/posix-functions/cbrtl.texi: Mention the new module.
23897 2012-02-29  Bruno Haible  <bruno@clisp.org>
23899         Tests for module 'cbrtf'.
23900         * modules/cbrtf-tests: New file.
23901         * tests/test-cbrtf.c: New file.
23903         New module 'cbrtf'.
23904         * lib/math.in.h (cbrtf): New declaration.
23905         * lib/cbrtf.c: New file.
23906         * m4/cbrtf.m4: New file.
23907         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23909         HAVE_DECL_CBRTF.
23910         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23911         HAVE_DECL_CBRTF.
23912         * modules/cbrtf: New file.
23913         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23914         * doc/posix-functions/cbrtf.texi: Mention the new module.
23916 2012-02-29  Bruno Haible  <bruno@clisp.org>
23918         cbrt: Provide replacement on MSVC and Minix.
23919         * lib/math.in.h (cbrt): New declaration.
23920         * lib/cbrt.c: New file.
23921         * m4/cbrt.m4: New file.
23922         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23924         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23925         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23926         (Depends-on): Add dependencies.
23927         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23928         * tests/test-math-c++.cc: Check the declaration of cbrt.
23929         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23930         replacement.
23932 2012-02-29  Bruno Haible  <bruno@clisp.org>
23934         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23935         * m4/hypotl-ieee.m4: New file.
23936         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23937         test whether hypotl works with mixed NaN and Infinity arguments.
23938         Replace it if not.
23939         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23941         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23942         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23943         (Depends-on): Update conditions.
23944         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23945         (Depends-on): Add hypot-ieee.
23946         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23947         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23949         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23950         * m4/hypotf-ieee.m4: New file.
23951         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23952         test whether hypotf works with mixed NaN and Infinity arguments.
23953         Replace it if not.
23954         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23955         (Depends-on): Add hypot-ieee.
23956         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23957         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23959         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23960         * lib/math.in.h (hypot): New declaration.
23961         * lib/hypot.c: New file.
23962         * m4/hypot-ieee.m4: New file.
23963         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23964         whether hypot works with mixed NaN and Infinity arguments. Replace it
23965         if not.
23966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23967         REPLACE_HYPOT.
23968         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23969         * modules/hypot (Files): Add lib/hypot.c.
23970         (Depends-on): Add dependencies.
23971         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23972         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23973         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23974         * tests/test-math-c++.cc: Check the declaration of hypot.
23975         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23977         Tests for module 'hypotl-ieee'.
23978         * modules/hypotl-ieee-tests: New file.
23979         * tests/test-hypotl-ieee.c: New file.
23981         New module 'hypotl-ieee'.
23982         * modules/hypotl-ieee: New file.
23984         Tests for module 'hypot-ieee'.
23985         * modules/hypot-ieee-tests: New file.
23986         * tests/test-hypot-ieee.c: New file.
23988         New module 'hypot-ieee'.
23989         * modules/hypot-ieee: New file.
23991         Tests for module 'hypotf-ieee'.
23992         * modules/hypotf-ieee-tests: New file.
23993         * tests/test-hypotf-ieee.c: New file.
23994         * tests/test-hypot-ieee.h: New file.
23996         New module 'hypotf-ieee'.
23997         * modules/hypotf-ieee: New file.
23999 2012-02-29  Bruno Haible  <bruno@clisp.org>
24001         Remove unused variables.
24002         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
24003         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
24004         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
24005         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
24007 2012-02-29  Eric Blake  <eblake@redhat.com>
24009         termios: fix pid_t always, not just for tcgetsid
24010         * doc/posix-headers/termios.texi (termios.h): Mention problem.
24011         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
24012         just when building tcgetsid.
24014 2012-02-29  Bruno Haible  <bruno@clisp.org>
24016         Tests for module 'hypotl'.
24017         * modules/hypotl-tests: New file.
24018         * tests/test-hypotl.c: New file.
24020         New module 'hypotl'.
24021         * lib/math.in.h (hypotl): New declaration.
24022         * lib/hypotl.c: New file.
24023         * m4/hypotl.m4: New file.
24024         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
24025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
24026         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
24027         * modules/hypotl: New file.
24028         * tests/test-math-c++.cc: Check the hypotl declaration.
24029         * doc/posix-functions/hypotl.texi: Mention the new module.
24031 2012-02-29  Eric Blake  <eblake@redhat.com>
24033         tcgetsid: fix cygwin header bug
24034         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
24036         docs: update cygwin progress
24037         * doc/posix-functions/llround.texi (llround): Added in cygwin
24038         1.7.8.
24039         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
24040         * doc/glibc-functions/program_invocation_name.texi
24041         (program_invocation_name): Likewise.
24042         * doc/glibc-functions/program_invocation_short_name.texi
24043         (program_invocation_short_name): Likewise.
24044         * doc/glibc-functions/madvise.texi (madvise): Likewise.
24045         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
24046         Likewise.
24047         * doc/posix-functions/pthread_spin_destroy.texi
24048         (pthread_spin_destroy): Added in cygwin 1.7.10.
24049         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
24050         Likewise.
24051         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
24052         Likewise.
24053         * doc/posix-functions/pthread_spin_trylock.texi
24054         (pthread_spin_trylock): Likewise.
24055         * doc/posix-functions/pthread_spin_unlock.texi
24056         (pthread_spin_unlock): Likewise.
24057         * doc/posix-functions/pthread_setschedprio.texi
24058         (pthread_setschedprio): Likewise.
24059         * doc/posix-functions/pthread_attr_getstack.texi
24060         (pthread_attr_getstack): Likewise.
24061         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
24062         (pthread_attr_getstackaddr): Likewise.
24063         * doc/glibc-functions/pthread_getattr_np.texi
24064         (pthread_getattr_np): Likewise.
24065         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
24066         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
24067         * doc/posix-functions/clock_settime.texi (clock_settime):
24068         Likewise.
24069         * doc/posix-functions/pthread_attr_getguardsize.texi
24070         (pthread_attr_getguardsize): Likewise.
24071         * doc/posix-functions/pthread_attr_setguardsize.texi
24072         (pthread_attr_setguardsize): Likewise.
24073         * doc/posix-functions/pthread_attr_setstack.texi
24074         (pthread_attr_setstack): Likewise.
24075         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
24076         (pthread_attr_setstackaddr): Likewise.
24077         * doc/posix-functions/clock_getcpuclockid.texi
24078         (clock_getcpuclockid): Likewise.
24079         * doc/posix-functions/pthread_getcpuclockid.texi
24080         (pthread_getcpuclockid): Likewise.
24081         * doc/glibc-functions/error.texi (error): Likewise.
24082         * doc/glibc-functions/error_at_line.texi (error_at_line):
24083         Likewise.
24084         * doc/glibc-functions/error_message_count.texi
24085         (error_message_count): Likewise.
24086         * doc/glibc-functions/error_one_per_line.texi
24087         (error_one_per_line): Likewise.
24088         * doc/glibc-functions/error_print_progname.texi
24089         (error_print_progname): Likewise.
24090         * doc/posix-functions/pthread_condattr_getclock.texi
24091         (pthread_condattr_getclock): Likewise.
24092         * doc/posix-functions/pthread_condattr_setclock.texi
24093         (pthread_condattr_setclock): Likewise.
24094         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
24095         Likewise.
24096         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
24097         * doc/glibc-functions/getpt.texi (getpt): Likewise.
24098         * doc/glibc-functions/get_current_dir_name.texi
24099         (get_current_dir_name): Likewise.
24100         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
24101         Likewise.
24102         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
24103         wrong return type.
24104         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
24105         1.7.11.
24107 2012-02-29  Bruno Haible  <bruno@clisp.org>
24109         Tests for module 'hypotf'.
24110         * modules/hypotf-tests: New file.
24111         * tests/test-hypotf.c: New file.
24113         New module 'hypotf'.
24114         * lib/math.in.h (hypotf): New declaration.
24115         * lib/hypotf.c: New file.
24116         * m4/hypotf.m4: New file.
24117         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
24118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
24119         REPLACE_HYPOTF.
24120         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
24121         REPLACE_HYPOTF.
24122         * modules/hypotf: New file.
24123         * tests/test-math-c++.cc: Check the hypotf declaration.
24124         * doc/posix-functions/hypotf.texi: Mention the new module.
24126         hypot: Prepare for hypotf module.
24127         * m4/hypot.m4: New file.
24128         * modules/hypot (Files): Add m4/hypot.m4.
24129         (configure.ac): Invoke gl_FUNC_HYPOT.
24131 2012-02-29  Bruno Haible  <bruno@clisp.org>
24133         hypot tests: More tests.
24134         * tests/test-hypot.c: Include <float.h>.
24135         (main): Add tests about overflow and underflow.
24137 2012-02-29  Bruno Haible  <bruno@clisp.org>
24139         math code: Add comments.
24140         * lib/acosl.c: Add comment about related glibc source files.
24141         * lib/asinl.c: Likewise.
24142         * lib/atanl.c: Likewise.
24143         * lib/expl.c: Likewise.
24144         * lib/logl.c: Likewise.
24145         * lib/sincosl.c: Likewise.
24146         * lib/sinl.c: Likewise.
24147         * lib/tanl.c: Likewise.
24148         * lib/trigl.c: Likewise.
24149         * lib/cosl.c: Likewise. Fix comments.
24151 2012-02-28  Bruno Haible  <bruno@clisp.org>
24153         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
24154         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
24155         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
24156         HUGE_VALL are defined.
24157         (numeric_equald): Renamed from numeric_equal.
24158         (numeric_equalf, numeric_equall): New functions.
24159         (main): Check also HUGE_VALF, HUGE_VALL.
24160         * modules/math-tests (Files): Add tests/macros.h.
24161         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
24162         HUGE_VALL.
24164 2012-02-28  Bruno Haible  <bruno@clisp.org>
24166         doc: Move ISO C11 feature notes into POSIX chapters.
24167         * doc/posix-functions/aligned_alloc.texi: Renamed from
24168         doc/glibc-functions/aligned_alloc.texi.
24169         * doc/posix-functions/quick_exit.texi: Renamed from
24170         doc/glibc-functions/quick_exit.texi.
24171         * doc/posix-headers/uchar.texi: Renamed from
24172         doc/glibc-headers/uchar.texi.
24173         * doc/posix-functions/c16rtomb.texi: Renamed from
24174         doc/glibc-functions/c16rtomb.texi.
24175         * doc/posix-functions/c32rtomb.texi: Renamed from
24176         doc/glibc-functions/c32rtomb.texi.
24177         * doc/posix-functions/mbrtoc16.texi: Renamed from
24178         doc/glibc-functions/mbrtoc16.texi.
24179         * doc/posix-functions/mbrtoc32.texi: Renamed from
24180         doc/glibc-functions/mbrtoc32.texi.
24181         * doc/gnulib.texi: Update.
24182         (Glibc uchar.h): Remove section.
24183         Suggested by Eric Blake.
24185 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
24187         stdnoreturn: port to MSVC better
24188         MSVC standard headers use __declspec(noreturn), so #define noreturn
24189         to empty on that platform.  Reported by Bruno Haible in
24190         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
24191         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
24192         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
24194 2012-02-28  Bruno Haible  <bruno@clisp.org>
24196         doc: Mention new glibc headers and functions.
24197         * doc/glibc-headers/uchar.texi: New file.
24198         * doc/glibc-functions/aligned_alloc.texi: New file.
24199         * doc/glibc-functions/c16rtomb.texi: New file.
24200         * doc/glibc-functions/c32rtomb.texi: New file.
24201         * doc/glibc-functions/clock_adjtime.texi: New file.
24202         * doc/glibc-functions/fanotify_init.texi: New file.
24203         * doc/glibc-functions/fanotify_mark.texi: New file.
24204         * doc/glibc-functions/inet6_opt_append.texi: New file.
24205         * doc/glibc-functions/inet6_opt_find.texi: New file.
24206         * doc/glibc-functions/inet6_opt_finish.texi: New file.
24207         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
24208         * doc/glibc-functions/inet6_opt_init.texi: New file.
24209         * doc/glibc-functions/inet6_opt_next.texi: New file.
24210         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
24211         * doc/glibc-functions/inet6_rth_add.texi: New file.
24212         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
24213         * doc/glibc-functions/inet6_rth_init.texi: New file.
24214         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
24215         * doc/glibc-functions/inet6_rth_segments.texi: New file.
24216         * doc/glibc-functions/inet6_rth_space.texi: New file.
24217         * doc/glibc-functions/login.texi: New file.
24218         * doc/glibc-functions/mbrtoc16.texi: New file.
24219         * doc/glibc-functions/mbrtoc32.texi: New file.
24220         * doc/glibc-functions/name_to_handle_at.texi: New file.
24221         * doc/glibc-functions/ntp_gettimex.texi: New file.
24222         * doc/glibc-functions/open_by_handle_at.texi: New file.
24223         * doc/glibc-functions/prlimit.texi: New file.
24224         * doc/glibc-functions/process_vm_readv.texi: New file.
24225         * doc/glibc-functions/process_vm_writev.texi: New file.
24226         * doc/glibc-functions/recvmmsg.texi: New file.
24227         * doc/glibc-functions/scandirat.texi: New file.
24228         * doc/glibc-functions/sendmmsg.texi: New file.
24229         * doc/glibc-functions/setns.texi: New file.
24230         * doc/glibc-functions/timespec_get.texi: New file.
24231         * doc/gnulib.texi: Include them.
24232         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
24233         sections.
24234         Reported by Eric Blake.
24236 2012-02-28  Bruno Haible  <bruno@clisp.org>
24238         Avoid compilation errors with MSVC option -fp:strict.
24239         * lib/floor.c: Use MSVC specific pragma fenv_access.
24240         * lib/ceil.c: Likewise.
24241         * lib/trunc.c: Likewise.
24242         * lib/round.c: Likewise.
24243         * lib/rint.c: Likewise.
24244         * lib/fma.c: Likewise.
24245         * lib/integer_length.c: Likewise.
24246         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24248         * tests/test-floor2.c: Likewise.
24249         * tests/test-floorf2.c: Likewise.
24250         * tests/test-ceil2.c: Likewise.
24251         * tests/test-ceilf2.c: Likewise.
24252         * tests/test-trunc2.c: Likewise.
24253         * tests/test-truncf2.c: Likewise.
24254         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24256 2012-02-27  Bruno Haible  <bruno@clisp.org>
24258         Tests for module 'sqrtl-ieee'.
24259         * modules/sqrtl-ieee-tests: New file.
24260         * tests/test-sqrtl-ieee.c: New file.
24262         New module 'sqrtl-ieee'.
24263         * modules/sqrtl-ieee: New file.
24265         Tests for module 'sqrt-ieee'.
24266         * modules/sqrt-ieee-tests: New file.
24267         * tests/test-sqrt-ieee.c: New file.
24269         New module 'sqrt-ieee'.
24270         * modules/sqrt-ieee: New file.
24272         Tests for module 'sqrtf-ieee'.
24273         * modules/sqrtf-ieee-tests: New file.
24274         * tests/test-sqrtf-ieee.c: New file.
24275         * tests/test-sqrt-ieee.h: New file.
24277         New module 'sqrtf-ieee'.
24278         * modules/sqrtf-ieee: New file.
24280 2012-02-27  Bruno Haible  <bruno@clisp.org>
24282         remainderl-ieee: Work around test failure on OSF/1.
24283         * m4/remainderl-ieee.m4: New file.
24284         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
24285         present, test whether remainderl works with a zero second argument.
24286         Replace it if not.
24287         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
24288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
24289         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
24290         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
24291         (Depends-on): Update conditions.
24292         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
24293         (Depends-on): Add remainder-ieee.
24294         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
24295         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
24296         module.
24298         remainderf-ieee: Work around test failure on OSF/1.
24299         * m4/remainderf-ieee.m4: New file.
24300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
24301         present, test whether remainderf works with a zero second argument.
24302         Replace it if not.
24303         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
24304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
24305         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
24306         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
24307         (Depends-on): Update conditions.
24308         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
24309         (Depends-on): Add remainder-ieee.
24310         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
24311         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
24312         module.
24314         remainder-ieee: Work around test failure on OSF/1.
24315         * m4/remainder-ieee.m4: New file.
24316         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
24317         present, test whether remainder works with a zero second argument.
24318         Replace it if not.
24319         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
24320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
24321         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
24322         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
24323         (Depends-on): Update dependencies.
24324         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
24325         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
24326         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
24328         Tests for module 'remainderl-ieee'.
24329         * modules/remainderl-ieee-tests: New file.
24330         * tests/test-remainderl-ieee.c: New file.
24332         New module 'remainderl-ieee'.
24333         * modules/remainderl-ieee: New file.
24335         Tests for module 'remainder-ieee'.
24336         * modules/remainder-ieee-tests: New file.
24337         * tests/test-remainder-ieee.c: New file.
24339         New module 'remainder-ieee'.
24340         * modules/remainder-ieee: New file.
24342         Tests for module 'remainderf-ieee'.
24343         * modules/remainderf-ieee-tests: New file.
24344         * tests/test-remainderf-ieee.c: New file.
24345         * tests/test-remainder-ieee.h: New file.
24347         New module 'remainderf-ieee'.
24348         * modules/remainderf-ieee: New file.
24350 2012-02-27  Bruno Haible  <bruno@clisp.org>
24352         modff, modfl: Fix configure syntax error.
24353         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
24354         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
24356 2012-02-27  Bruno Haible  <bruno@clisp.org>
24358         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
24359         * m4/fmodl-ieee.m4: New file.
24360         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
24361         whether fmodl works with zero arguments. Replace it if not.
24362         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
24363         (Depends-on): Add fmod-ieee.
24364         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
24365         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
24367         fmodf-ieee: Work around test failure on OSF/1.
24368         * m4/fmodf-ieee.m4: New file.
24369         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
24370         whether fmodf works with zero arguments. Replace it if not.
24371         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
24372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
24373         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
24374         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
24375         (Depends-on): Update dependencies.
24376         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
24377         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
24378         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
24380         fmodf-ieee: Work around test failure on MSVC 9.
24381         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
24382         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
24384         fmod-ieee: Work around test failures on OSF/1, mingw.
24385         * m4/fmod-ieee.m4: New file.
24386         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
24387         whether fmod works with zero arguments. Replace it if not.
24388         * lib/math.in.h (fmod): New declaration.
24389         * lib/fmod.c: New file.
24390         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
24391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
24392         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
24393         * modules/fmod (Files): Add lib/fmod.c.
24394         (Depends-on): Add math, isinf, trunc, fma.
24395         (configure.ac): Arrange to compile lib/fmod.c if needed.
24396         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
24397         m4/signbit.m4.
24398         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
24399         * tests/test-math-c++.cc: Check the declaration of fmod.
24400         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
24402         fmodl-ieee: Fix test failures.
24403         * lib/fmodl.c (fmodl): Treat Inf specially.
24404         * modules/fmodl (Depends-on): Add isinf.
24406         Tests for module 'fmodl-ieee'.
24407         * modules/fmodl-ieee-tests: New file.
24408         * tests/test-fmodl-ieee.c: New file.
24410         New module 'fmodl-ieee'.
24411         * modules/fmodl-ieee: New file.
24413         Tests for module 'fmod-ieee'.
24414         * modules/fmod-ieee-tests: New file.
24415         * tests/test-fmod-ieee.c: New file.
24417         New module 'fmod-ieee'.
24418         * modules/fmod-ieee: New file.
24420         Tests for module 'fmodf-ieee'.
24421         * modules/fmodf-ieee-tests: New file.
24422         * tests/test-fmodf-ieee.c: New file.
24423         * tests/test-fmod-ieee.h: New file.
24425         New module 'fmodf-ieee'.
24426         * modules/fmodf-ieee: New file.
24428 2012-02-27  Bruno Haible  <bruno@clisp.org>
24430         Tests for module 'rintl-ieee'.
24431         * modules/rintl-ieee-tests: New file.
24432         * tests/test-rintl-ieee.c: New file.
24434         New module 'rintl-ieee'.
24435         * modules/rintl-ieee: New file.
24437         Tests for module 'rint-ieee'.
24438         * modules/rint-ieee-tests: New file.
24439         * tests/test-rint-ieee.c: New file.
24441         New module 'rint-ieee'.
24442         * modules/rint-ieee: New file.
24444         Tests for module 'rintf-ieee'.
24445         * modules/rintf-ieee-tests: New file.
24446         * tests/test-rintf-ieee.c: New file.
24447         * tests/test-rint-ieee.h: New file.
24449         New module 'rintf-ieee'.
24450         * modules/rintf-ieee: New file.
24452 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24454         regex: re_search etc. should return -2 when memory exhausted
24455         This bug was uncovered when testing 'grep'.  Without the fix,
24456         re_search and friends return -1 when memory is exhausted, but -1
24457         means no match, and this causes grep to falsely report no-match
24458         instead of memory-exhaustion.  See
24459         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
24460         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
24461         trouble; this can occur if re_search_internal ran out of memory.
24463 2012-02-26  Bruno Haible  <bruno@clisp.org>
24465         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
24466         * m4/modfl-ieee.m4: New file.
24467         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
24468         whether modfl works with Inf. Replace it if not.
24469         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
24470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
24471         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
24472         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
24473         (Depends-on): Update dependencies.
24474         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
24475         m4/signbit.m4.
24476         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
24477         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
24479         modfl-ieee: Fix dependencies.
24480         * modules/modfl-ieee (Depends-on): Add modf-ieee.
24482         modfl-ieee: Fix test failures.
24483         * lib/modfl.c (modfl): Treat NaN and Inf specially.
24484         * modules/modfl (Depends-on): Add isfinite, isinf.
24486         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
24487         * m4/modff-ieee.m4: New file.
24488         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
24489         whether modff works with NaN and Inf. Replace it if not.
24490         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
24491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
24492         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
24493         * modules/modff (configure.ac): Consider REPLACE_MODFF.
24494         (Depends-on): Update dependencies.
24495         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
24496         m4/signbit.m4.
24497         (Depends-on): Add modf-ieee.
24498         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
24499         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
24501         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
24502         * m4/modf-ieee.m4: New file.
24503         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
24504         whether modf works with NaN and Inf. Replace it if not.
24505         * lib/math.in.h (modf): New declaration.
24506         * lib/modf.c: New file.
24507         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
24508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
24509         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
24510         * modules/modf (Files): Add lib/modf.c.
24511         (Depends-on): Add math, isfinite, trunc, isinf.
24512         (configure.ac): Addrange to compile lib/modf.c if needed.
24513         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
24514         m4/signbit.m4.
24515         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
24516         * tests/test-math-c++.cc: Check the declaration of modf.
24517         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
24519         Tests for module 'modfl-ieee'.
24520         * modules/modfl-ieee-tests: New file.
24521         * tests/test-modfl-ieee.c: New file.
24523         New module 'modfl-ieee'.
24524         * modules/modfl-ieee: New file.
24526         Tests for module 'modf-ieee'.
24527         * modules/modf-ieee-tests: New file.
24528         * tests/test-modf-ieee.c: New file.
24530         New module 'modf-ieee'.
24531         * modules/modf-ieee: New file.
24533         Tests for module 'modff-ieee'.
24534         * modules/modff-ieee-tests: New file.
24535         * tests/test-modff-ieee.c: New file.
24536         * tests/test-modf-ieee.h: New file.
24538         New module 'modff-ieee'.
24539         * modules/modff-ieee: New file.
24541 2012-02-26  Bruno Haible  <bruno@clisp.org>
24543         Tests for module 'fabsl-ieee'.
24544         * modules/fabsl-ieee-tests: New file.
24545         * tests/test-fabsl-ieee.c: New file.
24547         New module 'fabsl-ieee'.
24548         * modules/fabsl-ieee: New file.
24550         Tests for module 'fabs-ieee'.
24551         * modules/fabs-ieee-tests: New file.
24552         * tests/test-fabs-ieee.c: New file.
24554         New module 'fabs-ieee'.
24555         * modules/fabs-ieee: New file.
24557         Tests for module 'fabsf-ieee'.
24558         * modules/fabsf-ieee-tests: New file.
24559         * tests/test-fabsf-ieee.c: New file.
24560         * tests/test-fabs-ieee.h: New file.
24562         New module 'fabsf-ieee'.
24563         * modules/fabsf-ieee: New file.
24565 2012-02-26  Bruno Haible  <bruno@clisp.org>
24567         Tests for module 'fmal-ieee'.
24568         * modules/fmal-ieee-tests: New file.
24569         * tests/test-fmal-ieee.c: New file.
24571         New module 'fmal-ieee'.
24572         * modules/fmal-ieee: New file.
24574         Tests for module 'fma-ieee'.
24575         * modules/fma-ieee-tests: New file.
24576         * tests/test-fma-ieee.c: New file.
24578         New module 'fma-ieee'.
24579         * modules/fma-ieee: New file.
24581         Tests for module 'fmaf-ieee'.
24582         * modules/fmaf-ieee-tests: New file.
24583         * tests/test-fmaf-ieee.c: New file.
24584         * tests/test-fma-ieee.h: New file.
24586         New module 'fmaf-ieee'.
24587         * modules/fmaf-ieee: New file.
24589 2012-02-26  Bruno Haible  <bruno@clisp.org>
24591         Tests for module 'ldexpl-ieee'.
24592         * modules/ldexpl-ieee-tests: New file.
24593         * tests/test-ldexpl-ieee.c: New file.
24595         New module 'ldexpl-ieee'.
24596         * modules/ldexpl-ieee: New file.
24598         Tests for module 'ldexp-ieee'.
24599         * modules/ldexp-ieee-tests: New file.
24600         * tests/test-ldexp-ieee.c: New file.
24602         New module 'ldexp-ieee'.
24603         * modules/ldexp-ieee: New file.
24605         Tests for module 'ldexpf-ieee'.
24606         * modules/ldexpf-ieee-tests: New file.
24607         * tests/test-ldexpf-ieee.c: New file.
24608         * tests/test-ldexp-ieee.h: New file.
24610         New module 'ldexpf-ieee'.
24611         * modules/ldexpf-ieee: New file.
24613 2012-02-26  Bruno Haible  <bruno@clisp.org>
24615         Refactor frexp*-ieee tests.
24616         * tests/test-frexp-ieee.h: New file.
24617         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
24618         (main): Just call test_function.
24619         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
24620         (main): Just call test_function.
24621         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
24622         (main): Just call test_function.
24623         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
24624         * modules/frexp-ieee-tests (Files): Likewise.
24625         * modules/frexpl-ieee-tests (Files): Likewise.
24627         Tests for module 'frexpl-ieee'.
24628         * modules/frexpl-ieee-tests: New file.
24629         * tests/test-frexpl-ieee.c: New file.
24631         New module 'frexpl-ieee'.
24632         * modules/frexpl-ieee: New file.
24634         Tests for module 'frexp-ieee'.
24635         * modules/frexp-ieee-tests: New file.
24636         * tests/test-frexp-ieee.c: New file.
24638         New module 'frexp-ieee'.
24639         * modules/frexp-ieee: New file.
24641         Tests for module 'frexpf-ieee'.
24642         * modules/frexpf-ieee-tests: New file.
24643         * tests/test-frexpf-ieee.c: New file.
24645         New module 'frexpf-ieee'.
24646         * modules/frexpf-ieee: New file.
24648 2012-02-26  Bruno Haible  <bruno@clisp.org>
24650         roundl-ieee tests: More tests.
24651         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24652         (main): Add tests for [MX] shaded specification in POSIX.
24653         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24654         (Depends-on): Add isnanl-nolibm.
24656         round-ieee tests: More tests.
24657         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24658         (main): Add tests for [MX] shaded specification in POSIX.
24659         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24660         (Depends-on): Add isnand-nolibm.
24662         roundf-ieee tests: More tests.
24663         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24664         (main): Add tests for [MX] shaded specification in POSIX.
24665         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24666         (Depends-on): Add isnanf-nolibm.
24668         truncl-ieee tests: More tests.
24669         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24670         (main): Add tests for [MX] shaded specification in POSIX.
24671         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24672         (Depends-on): Add isnanl-nolibm.
24674         trunc-ieee tests: More tests.
24675         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24676         (main): Add tests for [MX] shaded specification in POSIX.
24677         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24678         (Depends-on): Add isnand-nolibm.
24680         truncf-ieee tests: More tests.
24681         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24682         (main): Add tests for [MX] shaded specification in POSIX.
24683         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24684         (Depends-on): Add isnanf-nolibm.
24686         ceill-ieee tests: More tests.
24687         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24688         (main): Add tests for [MX] shaded specification in POSIX.
24689         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24690         (Depends-on): Add isnanl-nolibm.
24692         ceil-ieee tests: More tests.
24693         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24694         (main): Add tests for [MX] shaded specification in POSIX.
24695         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24696         (Depends-on): Add isnand-nolibm.
24698         ceilf-ieee tests: More tests.
24699         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24700         (main): Add tests for [MX] shaded specification in POSIX.
24701         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24702         (Depends-on): Add isnanf-nolibm.
24704         floorl-ieee tests: More tests.
24705         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24706         (main): Add tests for [MX] shaded specification in POSIX.
24707         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24708         (Depends-on): Add isnanl-nolibm.
24710         floor-ieee tests: More tests.
24711         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24712         (main): Add tests for [MX] shaded specification in POSIX.
24713         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24714         (Depends-on): Add isnand-nolibm.
24716         floorf-ieee tests: More tests.
24717         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24718         (main): Add tests for [MX] shaded specification in POSIX.
24719         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24720         (Depends-on): Add isnanf-nolibm.
24722 2012-02-26  Bruno Haible  <bruno@clisp.org>
24724         fpieee: More comments.
24725         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
24727 2012-02-25  Bruno Haible  <bruno@clisp.org>
24729         Tests for module 'log10l'.
24730         * modules/log10l-tests: New file.
24731         * tests/test-log10l.c: New file.
24732         * tests/test-math-c++.cc: Check the declaration of log10l.
24734         New module 'log10l'.
24735         * lib/math.in.h (log10l): New declaration.
24736         * lib/log10l.c: New file.
24737         * m4/log10l.m4: New file.
24738         * modules/log10l: New file.
24739         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
24740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
24741         HAVE_DECL_LOG10L.
24742         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
24743         HAVE_DECL_LOG10L.
24744         * doc/posix-functions/log10l.texi: Mention the new module.
24746 2012-02-25  Bruno Haible  <bruno@clisp.org>
24748         fmodl, remainder*: Avoid wrong results due to rounding errors.
24749         * lib/fmodl.c (fmodl): Correct the result if it is not within the
24750         expected bounds.
24751         * lib/remainderf.c (remainderf): Likewise.
24752         * lib/remainder.c (remainder): Likewise.
24753         * lib/remainderl.c (remainderl): Likewise.
24755 2012-02-25  Bruno Haible  <bruno@clisp.org>
24757         Tests for module 'remainderl'.
24758         * modules/remainderl-tests: New file.
24759         * tests/test-remainderl.c: New file.
24760         * tests/test-math-c++.cc: Check the declaration of remainderl.
24762         New module 'remainderl'.
24763         * lib/math.in.h (remainderl): New declaration.
24764         * lib/remainderl.c: New file.
24765         * m4/remainderl.m4: New file.
24766         * modules/remainderl: New file.
24767         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
24768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
24769         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
24770         HAVE_REMAINDERL.
24771         * doc/posix-functions/remainderl.texi: Mention the new module.
24773 2012-02-25  Bruno Haible  <bruno@clisp.org>
24775         Tests for module 'remainderf'.
24776         * modules/remainderf-tests: New file.
24777         * tests/test-remainderf.c: New file.
24778         * tests/test-math-c++.cc: Check the declaration of remainderf.
24780         New module 'remainderf'.
24781         * lib/math.in.h (remainderf): New declaration.
24782         * lib/remainderf.c: New file.
24783         * m4/remainderf.m4: New file.
24784         * modules/remainderf: New file.
24785         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
24786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
24787         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
24788         HAVE_REMAINDERF.
24789         * doc/posix-functions/remainderf.texi: Mention the new module.
24791 2012-02-25  Bruno Haible  <bruno@clisp.org>
24793         remainder: Support for MSVC.
24794         * lib/math.in.h (remainder): New declaration.
24795         * lib/remainder.c: New file.
24796         * m4/remainder.m4: New file.
24797         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
24798         (Depends-on): Add math, round, fma.
24799         (configure.ac): Use results of gl_FUNC_REMAINDER.
24800         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
24801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
24802         HAVE_DECL_REMAINDER.
24803         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
24804         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
24805         * tests/test-math-c++.cc: Check the declaration of remainder.
24806         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
24807         problems are fixed.
24809 2012-02-25  Bruno Haible  <bruno@clisp.org>
24811         Tests for module 'fmodl'.
24812         * modules/fmodl-tests: New file.
24813         * tests/test-fmodl.c: New file.
24814         * tests/test-math-c++.cc: Check the declaration of fmodl.
24816         New module 'fmodl'.
24817         * lib/math.in.h (fmodl): New declaration.
24818         * lib/fmodl.c: New file.
24819         * m4/fmodl.m4: New file.
24820         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
24821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
24822         REPLACE_FMODL.
24823         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
24824         REPLACE_FMODL.
24825         * modules/fmodl: New file.
24826         * doc/posix-functions/fmodl.texi: Mention the new module.
24828 2012-02-25  Bruno Haible  <bruno@clisp.org>
24830         Tests for module 'modfl'.
24831         * modules/modfl-tests: New file.
24832         * tests/test-modfl.c: New file.
24833         * tests/test-math-c++.cc: Check the declaration of modfl.
24835         New module 'modfl'.
24836         * lib/math.in.h (modfl): New declaration.
24837         * lib/modfl.c: New file.
24838         * m4/modfl.m4: New file.
24839         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
24840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
24841         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
24842         * modules/modfl: New file.
24843         * doc/posix-functions/modfl.texi: Mention the new module.
24845 2012-02-25  Bruno Haible  <bruno@clisp.org>
24847         Tests for module 'fabsl'.
24848         * modules/fabsl-tests: New file.
24849         * tests/test-fabsl.c: New file.
24850         * tests/test-math-c++.cc: Check the declaration of fabsl.
24852         New module 'fabsl'.
24853         * lib/math.in.h (fabsl): New declaration.
24854         * lib/fabsl.c: New file.
24855         * m4/fabsl.m4: New file.
24856         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24858         REPLACE_FABSL.
24859         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24860         REPLACE_FABSL.
24861         * modules/fabsl: New file.
24862         * doc/posix-functions/fabsl.texi: Mention the new module.
24864 2012-02-25  Bruno Haible  <bruno@clisp.org>
24866         fabs tests: More tests.
24867         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24868         (zero): New variable.
24869         (main): Add tests for signed zero.
24870         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24872         fabsf tests: More tests.
24873         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24874         (zero): New variable.
24875         (main): Add tests for signed zero.
24876         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24878 2012-02-24  Bruno Haible  <bruno@clisp.org>
24880         atanl: Provide function definition on MSVC.
24881         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24882         function pointer.
24883         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24885 2012-02-24  Bruno Haible  <bruno@clisp.org>
24887         acosl: Provide function definition on MSVC.
24888         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24889         function pointer.
24890         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24892 2012-02-24  Bruno Haible  <bruno@clisp.org>
24894         asinl: Provide function definition on MSVC.
24895         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24896         function pointer.
24897         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24899 2012-02-24  Bruno Haible  <bruno@clisp.org>
24901         tanl: Provide function definition on MSVC.
24902         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24903         function pointer.
24904         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24906 2012-02-24  Bruno Haible  <bruno@clisp.org>
24908         cosl: Provide function definition on MSVC.
24909         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24910         function pointer.
24911         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24913 2012-02-24  Bruno Haible  <bruno@clisp.org>
24915         sinl: Provide function definition on MSVC.
24916         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24917         function pointer.
24918         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24920 2012-02-24  Bruno Haible  <bruno@clisp.org>
24922         logl: Provide function definition on MSVC.
24923         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24924         function pointer.
24925         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24927 2012-02-24  Bruno Haible  <bruno@clisp.org>
24929         expl: Provide function definition on MSVC.
24930         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24931         function pointer.
24932         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24934 2012-02-24  Bruno Haible  <bruno@clisp.org>
24936         sqrtl: Provide function definition on MSVC.
24937         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24938         a function pointer.
24939         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24941 2012-02-24  Bruno Haible  <bruno@clisp.org>
24943         ceill: Provide function definition on MSVC.
24944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24945         used as a function pointer.
24946         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24948 2012-02-24  Bruno Haible  <bruno@clisp.org>
24950         floorl: Provide function definition on MSVC.
24951         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24952         used as a function pointer.
24953         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24955 2012-02-24  Bruno Haible  <bruno@clisp.org>
24957         ceilf: Provide function definition on MSVC.
24958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24959         used as a function pointer.
24960         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24962 2012-02-24  Bruno Haible  <bruno@clisp.org>
24964         floorf: Provide function definition on MSVC.
24965         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24966         used as a function pointer.
24967         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24969 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24971         stdnoreturn: new module
24972         This implements a replacement for C11's <stdnoreturn.h>.
24973         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24974         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24975         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24976         * tests/test-stdnoreturn.c: New files.
24978 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24980         regex: fix false multibyte matches in some regular expressions
24981         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24982         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24983         * lib/regex_internal.c (re_string_skip_chars):
24984         Fix miscomputation of remain_len that may cause incomplete
24985         multi-byte character and false match.
24987 2012-02-24  Jim Meyering  <meyering@redhat.com>
24989         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24990         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24991         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24992         Remove now-unnecessary str''cmp obfuscation.
24993         Suggested by Akim Demaille.
24995 2012-02-24  Bruno Haible  <bruno@clisp.org>
24997         streq: Rename macro.
24998         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24999         * NEWS: Mention the change.
25000         * lib/mbrtowc.c (mbrtowc): Update.
25001         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
25002         * lib/wcwidth.c (wcwidth): Update.
25003         Suggested by Akim Demaille and Jim Meyering.
25005 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25007         regex: fix typo in definition of MIN
25008         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
25009         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
25011 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25012             Bruno Haible  <bruno@clisp.org>
25014         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
25015         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
25016         entries into a stack-allocated buffer directly.
25017         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
25019 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25020             Bruno Haible  <bruno@clisp.org>
25022         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
25024          - There were several instances of this pattern:
25026              for (;;) {
25027                n = acl (f, GETACLCNT, 0, NULL);
25028                [ allocate an array A of size N ]
25029                if (acl (f, GETACL, n, a) == n)
25030                  break;
25031              }
25033            This loop might never terminate if some other process is constantly
25034            manipulating the file's ACL.  The loop should be rewritten to
25035            terminate.
25037          - The acl (... GETACLNT ...) call is merely an optimization; its value
25038            is merely a hint as to how big to make the array.  A better
25039            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
25040            and just guess a reasonably-big size, growing the size and trying
25041            again if it's not large enough.  This guarantees termination, and
25042            saves a system call.
25044         * lib/acl-internal.h: Include <limits.h>.
25045         (MIN, SIZE_MAX): New macros.
25046         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
25047         a stack-allocated buffer, and use malloc if it does not fit. Don't
25048         use GETACLCNT.
25049         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
25051 2012-02-19  Bruno Haible  <bruno@clisp.org>
25053         acl: Fix endless loop on Solaris with vxfs.
25054         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
25055         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
25056         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
25057         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
25058         * tests/test-sameacls.c (main)[Solaris]: Likewise.
25059         Reported by Bill Jones in
25060         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
25062 2012-02-19  Bruno Haible  <bruno@clisp.org>
25064         acl: Fix copy-acl test failure on Solaris 11.0.
25065         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
25066         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
25067         that this function returns 0 in some more cases.
25069 2012-02-19  Bruno Haible  <bruno@clisp.org>
25071         acl: Update doc references.
25072         * doc/acl-resources.txt: Update links to Solaris documentation.
25074 2012-02-19  Bruno Haible  <bruno@clisp.org>
25076         Fix test failure in many locales on Solaris 11.
25077         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
25078         'tr' arguments.
25079         * tests/test-pipe-filter-ii1.c (main): Likewise.
25080         * build-aux/bootstrap (check_versions): Run 'tr' command with range
25081         expressions in the C locale.
25082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25083         * m4/host-os.m4 (gl_HOST_OS): Likewise.
25085 2012-02-19  Bruno Haible  <bruno@clisp.org>
25087         gnulib-tool: Improve usage message.
25088         * gnulib-tool (func_usage): Move doc of --help and --version to the
25089         section "Operation modes".
25091 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
25093         README-release: make it easier to execute commands
25094         * top/README-release: break commands out on to separate lines.
25096 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
25098         GNUmakefile: simplify detection of unconfigured trees
25099         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
25100         whether the tree make is being run from is already configured or
25101         not.  Related simplifications.
25103 2012-02-13  Simon Josefsson  <simon@josefsson.org>
25105         * gnulib-tool (func_usage): Document --help and --version.
25107 2012-02-11  Jim Meyering  <meyering@redhat.com>
25109         bootstrap: don't exit 0 upon gnulib-tool failure
25110         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
25111         its exit status, not 0.
25113 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
25115         README-release: various improvements
25116         * top/README-release: Give a command to push changes for the
25117         release.  Add "distcheck" to list of other pre-release checks.
25118         Fix instance of "make stable" which should be "make TYPE".
25120 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25122         maint: replace FSF snail-mail addresses with URLs
25123         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
25124         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
25125         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
25126         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
25127         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
25128         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
25129         * lib/check-version.c, lib/check-version.h, lib/config.charset:
25130         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
25131         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
25132         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
25133         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
25134         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
25135         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
25136         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
25137         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
25138         * lib/glthread/thread.c, lib/glthread/thread.h:
25139         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
25140         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
25141         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
25142         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
25143         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
25144         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
25145         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
25146         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
25147         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
25148         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
25149         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
25150         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
25151         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
25152         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
25153         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
25154         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
25155         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
25156         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
25157         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
25158         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
25159         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
25160         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
25161         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
25162         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
25163         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
25164         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
25165         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
25166         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
25167         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
25168         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
25169         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
25170         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
25171         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
25172         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
25173         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
25174         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
25175         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
25176         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
25177         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
25178         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
25179         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
25180         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
25181         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
25182         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
25183         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
25184         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
25185         * tests/test-poll.c, tests/test-quotearg-simple.c:
25186         * tests/test-quotearg.c, tests/test-quotearg.h:
25187         * tests/test-round-ieee.c, tests/test-round1.c:
25188         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
25189         * tests/test-roundl-ieee.c, tests/test-roundl.c:
25190         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
25191         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
25192         * tests/test-strerror.c, tests/test-strerror_r.c:
25193         * tests/test-strsignal.c, tests/test-strverscmp.c:
25194         * tests/test-xmemdup0.c:
25195         Replace FSF snail mail addresses with URLs, as per GNU coding
25196         standards.  See glibc bug
25197         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
25199 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25201         README-release: capitalize a word and split a line
25202         * top/README-release: Fix punctuation and spacing.
25204 2012-02-08  Akim Demaille  <demaille@gostai.com>
25206         fatal-signal: use C prototypes (with explicit void).
25207         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
25208         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
25210 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25212         regex: spelling fix
25213         * lib/regexec.c: spelling fix
25215         regex: rely on stdint.h for SIZE_MAX
25216         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
25218 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25220         regex: merge glibc changes
25222         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
25223         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
25224         (init_word_char): Work even if bitset words are not exactly 32 or
25225         64 bits wide.  Don't assume there are no padding bits.
25226         * lib/regex.c [_LIBC]: Do not include <config.h>.
25227         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
25228         and -Wtype-limits.
25229         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
25230         needless disagreement with glibc.  All uses changed.  Define it to
25231         1 only if _GNU_SOURCE, to match glibc.
25232         (_REG_RM_NAME): Remove; no longer needed, since the names in
25233         question are now all protected by __USE_GNU.
25234         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
25235         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
25236         * lib/regex_internal.h (MIN): New macro.
25238         2012-01-03 Ulrich Drepper <drepper@gmail.com>
25239         * lib/regcomp.c (init_word_char): Optimize regex a bit.
25241         2011-12-30 Jakub Jelinek <jakub@redhat.com>
25242         * lib/regex_internal.c (re_string_fetch_byte_case):
25243         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
25244         is miscompiled, and it turns out it is because of an incorrect
25245         attribute on re_string_fetch_byte_case.  Unlike
25246         re_string_peek_byte_case, this one is really not pure, it modifies
25247         memory (increments pstr->cur_idx), and with the pure attribute GCC
25248         assumed it doesn't and it cached the presumed value of
25249         regexp->cur_idx in a variable across the
25250          for (;; ++i)
25251            {
25252              if (i >= BRACKET_NAME_BUF_SIZE)
25253                return REG_EBRACK;
25254              if (token->type == OP_OPEN_CHAR_CLASS)
25255                ch = re_string_fetch_byte_case (regexp);
25256              else
25257                ch = re_string_fetch_byte (regexp);
25258              if (re_string_eoi(regexp))
25259                return REG_EBRACK;
25260              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
25261                break;
25262              elem->opr.name[i] = ch;
25263            }
25265         2011-11-29 Andreas Schwab <schwab@redhat.com>
25266         * lib/regcomp.c (build_equiv_class):
25267         Fix access after end of search string in regex matcher.
25269         2011-11-12 Ulrich Drepper <drepper@redhat.com>
25270         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
25272         2011-10-12 Ulrich Drepper <drepper@redhat.com>
25273         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
25275         2011-10-11 Ulrich Drepper <drepper@redhat.com>
25276         * lib/regcomp.c (parse_branch, parse_sub_exp):
25277         More regex memory leak fixes and tests.
25278         (parse_sub_exp, parse_bracket_exp):
25279         Fix memory leak for some invalid regular expressions.
25281         2011-05-28 Ulrich Drepper <drepper@gmail.com>
25282         * lib/regex_internal.c, lib/regexec.c:
25283         Fix unnecessary overallocation due to incomplete character.  When
25284         incomplete characters are found at the end of a string the code
25285         ran amok and allocated lots of memory.  Stricter limits are now in
25286         place.
25288         2011-05-20 Reuben Thomas <rrt@sc3d.org>
25289         * lib/regex.h: Update documentation.
25291         2011-05-16 Aharon Robbins <arnold@skeeve.com>
25292         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
25294         2010-05-05 Andreas Schwab <schwab@redhat.com>
25295         * lib/regexec.c (find_collation_sequence_value):
25296         Fix lookup of collation sequence value during regexp matching.
25298         2010-01-22 Ulrich Drepper <drepper@redhat.com>
25299         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
25301         2008-01-16 Ulrich Drepper <drepper@redhat.com>
25302         * lib/regex.h: Cleanup namespace.
25304         2007-11-26 Ulrich Drepper <drepper@redhat.com>
25305         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
25307         2007-08-26 Ulrich Drepper <drepper@redhat.com>
25308         * lib/regex_internal.h: Prevent some declarations and definitions
25309         to be seen when used in tests.
25311         2005-05-06 Ulrich Drepper <drepper@redhat.com>
25312         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
25313         __libc_lock_* macros if not _LIBC.
25314         (struct re_dfa_t): Add lock.
25316 2012-02-07  Eric Blake  <eblake@redhat.com>
25318         maint.mk: also prohibit lower-case @var@
25319         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
25320         lower case, like @top_srcdir@.
25322 2012-02-04  Eric Blake  <eblake@redhat.com>
25324         canonicalize: avoid uninitialized memory use
25325         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
25326         random '/' left in dest.
25327         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
25329 2012-02-04  Bruno Haible  <bruno@clisp.org>
25331         isatty: Fix test failure of ptsname_r on native Windows.
25332         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
25333         and don't set errno.
25334         (isatty): Test first whether fd is valid. Set errno when returning 0.
25336 2012-02-04  Bruno Haible  <bruno@clisp.org>
25338         spawn-pipe tests: Fix a NULL program name in a diagnostic.
25339         * tests/test-spawn-pipe-main.c: Include progname.h.
25340         (main): Invoke set_program_name.
25341         * modules/spawn-pipe-tests (Depends-on): Add progname.
25343         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
25344         * tests/test-nonblocking-socket-main.c: Include progname.h.
25345         (main): Invoke set_program_name.
25346         * modules/nonblocking-socket-tests (Depends-on): Add progname.
25348         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
25349         * tests/test-nonblocking-pipe-main.c: Include progname.h.
25350         (main): Invoke set_program_name.
25351         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
25353 2012-02-04  Eric Blake  <eblake@redhat.com>
25355         canonicalize-lgpl: fix // handling
25356         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
25358         canonicalize: fix // handling
25359         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
25360         /// to //, since only // is special.
25362 2012-02-04  Bruno Haible  <bruno@clisp.org>
25364         ioctl: Fix test failure on native Windows.
25365         * lib/ioctl.c: Include msvc-nothrow.h.
25366         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
25368 2012-02-04  Bruno Haible  <bruno@clisp.org>
25370         fsync: Avoid test failure on native Windows.
25371         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
25372         read-only.
25374 2012-02-04  Bruno Haible  <bruno@clisp.org>
25376         sys_select: Avoid syntax error on OpenBSD 5.0.
25377         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
25378         currently being included, just include the system's <sys/select.h>.
25380 2012-02-04  Bruno Haible  <bruno@clisp.org>
25382         sys_select: Avoid syntax error on OpenBSD 5.0.
25383         * lib/sys_select.in.h: Include <signal.h> only after the include_next
25384         <sys/select.h>, not before.
25385         Reported by Jiri B <jirib@devio.us>.
25387 2012-02-04  Bruno Haible  <bruno@clisp.org>
25389         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
25390         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
25391         global variables.
25392         * tests/test-get-rusage-data.c (main): Likewise.
25393         Reported by Jim Meyering.
25395 2012-02-04  Bruno Haible  <bruno@clisp.org>
25397         stdioext: Fix last commit.
25398         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
25400 2012-02-03  Bruno Haible  <bruno@clisp.org>
25402         stdioext: Add tentative support for Plan9.
25403         * lib/stdio-impl.h: Include <errno.h>.
25404         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
25405         * lib/freadable.c (freadable): Likewise.
25406         * lib/fwritable.c (fwritable): Likewise.
25407         * lib/fbufmode.c (fbufmode): Likewise.
25408         * lib/freading.c (freading): Likewise.
25409         * lib/fwriting.c (fwriting): Likewise.
25410         * lib/freadptr.c (freadptr): Likewise.
25411         * lib/freadseek.c (freadptrinc): Likewise.
25412         * lib/freadahead.c (freadahead): Likewise.
25413         * lib/fpurge.c (fpurge): Likewise.
25414         * lib/fseeko.c (rpl_fseeko): Likewise.
25415         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
25416         Reported by Jens Staal <staal1978@gmail.com>.
25418 2012-02-02  Jim Meyering  <meyering@redhat.com>
25420         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
25421         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
25422         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
25423         not even to try to add the attribute.  Instead, add a pragma to suppress
25424         the suggestion/warning.
25426 2012-01-31  Karl Berry  <karl@gnu.org>
25428         setstate doc: typo.
25429         * doc/posix-functions/setstate.texi (setstate): { not (.
25431 2012-01-31  Bruno Haible  <bruno@clisp.org>
25433         popen: Make more robust on Windows.
25434         * lib/popen.c: On native Windows, use the _popen based code even if
25435         HAVE_POPEN is set.
25436         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
25437         environment variable on native Windows.
25439 2012-01-30  Bruno Haible  <bruno@clisp.org>
25441         pclose: Fix typo.
25442         * lib/stdio.in.h (pclose): Fix typo in warning message.
25444 2012-01-30  Bruno Haible  <bruno@clisp.org>
25446         doc about getlogin_r, setstate.
25447         * doc/posix-functions/getlogin_r.texi: List the incompatible
25448         declaration problem under "not fixed by gnulib".
25449         * doc/posix-functions/setstate.texi: Mention incompatible declaration
25450         problem on Solaris 11 and other platforms.
25452 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
25453             Bruno Haible  <bruno@clisp.org>
25455         poll tests: Make test more robust.
25456         * tests/test-poll.c: Include macros.h.
25457         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
25458         return value of various I/O operations.
25459         * modules/poll-tests (Files): Add tests/macros.h.
25461 2012-01-30  Bruno Haible  <bruno@clisp.org>
25463         sys_stat: Fix support for mingw64 and MSVC.
25464         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
25465         header files already do it.
25466         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
25467         stat itself.
25468         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25470 2012-01-30  Bruno Haible  <bruno@clisp.org>
25472         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
25473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
25474         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
25476 2012-01-29  Bruno Haible  <bruno@clisp.org>
25478         quotearg: Fix test failure on MacOS X 10.5.
25479         * tests/test-quotearg-simple.c: Include localcharset.h.
25480         (main): If the locale encoding is not ASCII, bypass the tests of
25481         locale_quoting_style and clocale_quoting_style.
25482         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
25484 2012-01-29  Jim Meyering  <meyering@redhat.com>
25486         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
25487         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
25488         detect uses of canonicalize_file_name.
25490 2012-01-28  Bruno Haible  <bruno@clisp.org>
25492         test-framework-sh: Fix test failure with AIX 7.1 diff.
25493         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
25494         in column 1, like 'diff -c' does.
25495         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
25496         whether 'diff -u' is used. Instead, test whether the output contains
25497         some '@' character.
25499 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25501         strtoimax: eliminate need for stdint.h, inttypes.h checks
25502         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
25503         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
25504         the prerequisites for a recently-introduced strtoimax test.
25505         I guess this might cause strtoimax to be replaced when not
25506         strictly necessary on older hosts, but this shouldn't introduce
25507         any bugs and it should make Emacs 'configure' faster on typical
25508         modern hosts.  Problem discovered when importing the latest gnulib
25509         to an Emacs test version.
25510         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
25512 2012-01-28  Bruno Haible  <bruno@clisp.org>
25514         sys_time: Override 'struct timeval' on some native Windows platforms.
25515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
25516         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
25517         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
25518         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
25519         needs to be overridden.
25520         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
25521         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
25522         * tests/test-sys_select.c: Check that the tv_sec member has the same
25523         size as a 'time_t'.
25524         * tests/test-sys_time.c: Likewise.
25525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
25526         is set, set also REPLACE_GETTIMEOFDAY.
25527         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
25528         convert the resulting 'struct timeval' before returning.
25529         * lib/select.c: Include <sys/time.h>.
25530         (select, timeval): Undefine at the right place.
25531         * modules/select (Depends-on): Add sys_time.
25532         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
25533         some Windows platforms.
25534         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25536 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25538         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
25539         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
25540         an integer.
25541         * lib/fcntl.c (dupfd): Likewise.
25542         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
25544 2012-01-28  Bruno Haible  <bruno@clisp.org>
25546         fcntl: Avoid compilation error on native Windows.
25547         * modules/fcntl (Depends-on): Add 'close'.
25549 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25551         select, poll, isatty: Avoid warnings on x86_64 mingw64.
25552         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
25553         pointer to an integer.
25554         * lib/poll.c (IsConsoleHandle): Likewise.
25555         * lib/isatty.c (IsConsoleHandle): Likewise.
25557 2012-01-28  Jim Meyering  <meyering@redhat.com>
25559         doc: clarify README-release
25560         * top/README-release: Clarify: you should make a point to have
25561         the latest stable versions of build tools in your PATH, and the
25562         reference to buildreq is solely for its list of tool names, not
25563         for its minimal-functional version numbers.
25564         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
25566         maint.mk: use more readable (yet functionally equivalent) quoting
25567         It is common to quote a single quote in a single quoted string like
25568         this:  '...'\''...'.  Unless you know the idiom, that looks like
25569         gibberish, so prefer to double-quote the string when possible.
25570         Then you can use a more readable, lone single quote: "...'..."
25571         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
25572         "don't" is more readable than the equivalent 'don'\''t'.
25573         (sc_cast_of_x_alloc_return_value): Likewise.
25574         (sc_cast_of_alloca_return_value): Likewise.
25575         (sc_makefile_path_separator_check): Similar: use ":" in '...',
25576         rather than '\'':'\''.
25578 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25580         stdalign: relax _Alignof and tighten _Alignas test
25581         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
25582         as it was too strict: alignof must divide offsetof, but it need
25583         not equal offsetof.  Inspired by Joseph S. Myers's comment
25584         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
25585         Conversely, tighten the _Alignas test a bit, as the resulting
25586         alignment must be exactly 8.
25588 2012-01-27  Bruno Haible  <bruno@clisp.org>
25590         stdalign: Document the last change.
25591         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
25593 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25595         stdalign: check that alignof and offsetof are consistent
25596         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
25597         Problem reported for gnulib by Richard W.M. Jones in
25598         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
25600 2012-01-27  Jim Meyering  <meyering@redhat.com>
25602         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
25603         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
25604         convert a sequence with gaps to the minimal containing range.
25605         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
25606         * tests/test-update-copyright.sh: Test for this.
25607         The FSF confirmed it is ok to do this, assuming there is at
25608         least one significant change per year in the affected range:
25609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
25611 2012-01-26  Bruno Haible  <bruno@clisp.org>
25613         pipe2: refine doc about thread-safety
25614         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
25615         multithread-safety problem.
25616         * doc/glibc-functions/accept4.texi: Likewise.
25618 2012-01-26  Bruno Haible  <bruno@clisp.org>
25620         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
25621         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
25622         In the test program, include <fcntl.h>, for O_RDONLY.
25624 2012-01-26  Eric Blake  <eblake@redhat.com>
25626         pipe2: document lack of thread-safety in replacement
25627         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
25628         issue in replacement.
25629         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25630         Based on a report by Eric Wong.
25632 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25633             Bruno Haible  <bruno@clisp.org>
25635         malloca: Avoid warnings on x86_64 mingw64.
25636         * lib/malloca.c: Include <stdint.h>.
25637         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
25638         * modules/malloca (Depends-on): Add stdint.
25639         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
25641 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25643         obstack: remove __STDC__ conditionals
25644         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
25645         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
25646         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
25647         m4/include_next.m4 as the only gnulib-maintained places that still
25648         refer to __STDC__.
25650 2012-01-24  Bruno Haible  <bruno@clisp.org>
25652         havelib: Modern quoting.
25653         * build-aux/config.rpath: Quote 'like this', not `like this', as per
25654         the recent change to the GNU coding standards.
25656 2012-01-24  Bruno Haible  <bruno@clisp.org>
25658         stdint: Improve support for Android.
25659         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
25660         Reported by Simon Josefsson <simon@josefsson.org>.
25662 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25664         doc: omit trailing empty lines from INSTALL etc.
25665         * doc/Makefile (INSTALL): Omit trailing empty lines.
25666         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
25667         omit trailing empty lines.  This simplifies the build procedure.
25669 2012-01-23  Jim Meyering  <meyering@redhat.com>
25671         tests: avoid spurious warnings about gl_sockets_startup
25672         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
25673         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
25674         reporting a "statement with no effect".
25675         * tests/test-accept.c (main): Mark as "(void)".
25676         * tests/test-accept4.c (main): Likewise.
25677         * tests/test-bind.c (main): Likewise.
25678         * tests/test-connect.c (main): Likewise.
25679         * tests/test-getpeername.c (main): Likewise.
25680         * tests/test-getsockname.c (main): Likewise.
25681         * tests/test-getsockopt.c (main): Likewise.
25682         * tests/test-listen.c (main): Likewise.
25683         * tests/test-recv.c (main): Likewise.
25684         * tests/test-recvfrom.c (main): Likewise.
25685         * tests/test-send.c (main): Likewise.
25686         * tests/test-sendto.c (main): Likewise.
25687         * tests/test-setsockopt.c (main): Likewise.
25688         * tests/test-shutdown.c (main): Likewise.
25690 2012-01-21  Bruno Haible  <bruno@clisp.org>
25692         locale-fr.m4: Fix for Android.
25693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
25694         failure of the test program on Bionic libc.
25696 2012-01-21  Jim Meyering  <meyering@redhat.com>
25698         bootstrap: fail when bootstrap_post_import_hook fails
25699         Otherwise, it's far too easy to miss diagnostics emitted
25700         between gnulib-tool's output and that of running configure.
25701         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
25703 2012-01-17  Jim Meyering  <meyering@redhat.com>
25705         maint: enable sc_trailing_blank
25706         * build-aux/pmccabe.css: Remove trailing blanks.
25707         * doc/acl-cygwin.txt: Likewise.
25708         * doc/gnu-oids.texi: Likewise
25709         * cfg.mk: Enable sc_trailing_blank.
25710         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
25712 2012-01-17  Jim Meyering  <meyering@redhat.com>
25714         maint: enable sc_prohibit_openat_without_use
25715         * cfg.mk: Enable sc_prohibit_openat_without_use.
25716         Exempt lib/selinux-at.c.
25718 2012-01-17  Jim Meyering  <meyering@redhat.com>
25720         maint: enable sc_prohibit_cloexec_without_use
25721         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
25722         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
25724 2012-01-17  Jim Meyering  <meyering@redhat.com>
25726         maint: enable sc_prohibit_intprops_without_use
25727         * cfg.mk: Enable sc_prohibit_intprops_without_use
25728         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
25730 2012-01-17  Jim Meyering  <meyering@redhat.com>
25732         maint: enable sc_prohibit_hash_pjw_without_use
25733         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
25734         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
25735         to match any use of \<hash_pjw\>, i.e., not necessarily with a
25736         following " (".
25738 2012-01-17  Jim Meyering  <meyering@redhat.com>
25740         maint: enable double-word-prohibiting rule
25741         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
25742         Exempt three files.
25744 2012-01-17  Jim Meyering  <meyering@redhat.com>
25746         maint: remove empty lines at EOF, but excluding modules/*
25747         Apply syntax rules at home as well as abroad.  Most changes
25748         were induced by running this:
25749           make srcdir=. _build-aux=build-aux -f top/maint.mk \
25750             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
25751             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
25752         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
25753         Exempt modules/* and two binary files.
25754         Also exempt doc/INSTALL*, per request from Bruno Haible.
25755         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
25756         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
25757         * doc/Copyright/request-assign.future: Likewise.
25758         * doc/Copyright/request-disclaim.changes: Likewise.
25759         * doc/INSTALL: Likewise.
25760         * doc/INSTALL.ISO: Likewise.
25761         * doc/INSTALL.UTF-8: Likewise.
25762         * doc/acl-cygwin.txt: Likewise.
25763         * doc/acl-resources.txt: Likewise.
25764         * doc/fdl-1.2.texi: Likewise.
25765         * doc/fdl-1.3.texi: Likewise.
25766         * doc/fdl.texi: Likewise.
25767         * lib/argp-pin.c: Likewise.
25768         * lib/round.c: Likewise.
25769         * lib/unicase/u16-totitle.c: Likewise.
25770         * lib/unictype/block_test.c: Likewise.
25771         * lib/uninorm/canonical-decomposition.c: Likewise.
25772         * m4/README: Likewise.
25773         * m4/relocatable-lib.m4: Likewise.
25774         * tests/test-isnand-nolibm.c: Likewise.
25775         * tests/test-isnand.c: Likewise.
25776         * tests/uninorm/NormalizationTest.txt: Likewise.
25778 2012-01-17  Jim Meyering  <meyering@redhat.com>
25780         maint: add framework to run syntax-check rules against gnulib sources
25781         * cfg.mk: New file, to disable all currently-failing tests.
25782         We'll enable them one by one, as they are made to pass.
25783         * Makefile (sc_maint): New rule.
25785 2012-01-21  Bruno Haible  <bruno@clisp.org>
25787         stdint: Add support for Android.
25788         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
25789         include the system's <stdint.h>.
25790         Reported by Simon Josefsson <simon@josefsson.org>.
25792 2012-01-19  Jim Meyering  <meyering@redhat.com>
25794         bootstrap: add bootstrap_post_import_hook
25795         Bison does still need something like the gnulib_mk_hook whose
25796         invocation I had to remove along with slurp in commit 767ccd40.
25797         Technically, we could get along without it, but doing so would
25798         have required living with a warning and a mandatory post-bootstrap
25799         automake rerun.
25800         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
25801         (bootstrap_post_import_hook): New function.
25802         Invoke it after gnulib-tool --import and before autoreconf.
25804 2012-01-18  Jim Meyering  <meyering@redhat.com>
25806         gitlog-to-changelog: don't use "no_"-prefixed variable name
25807         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
25808         to enable both --cluster and --no-cluster.  Change variable name,
25809         s/\$no_cluster/$cluster/, and reverse usage to match.
25811         gitlog-to-changelog: use "||", not "or" in expressions
25812         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
25813         expressions.
25815 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25817         gitlog-to-changelog: new option --no-cluster
25818         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
25819         clustering of adjacent commit messages.
25821 2012-01-17  Jim Meyering  <meyering@redhat.com>
25823         maint: spell file systems with two words, not one
25824         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
25825         two words, not one.
25827 2012-01-16  Jim Meyering  <meyering@redhat.com>
25829         bootstrap: add a FIXME comment to ensure we eventually remove the hack
25830         * build-aux/bootstrap (gnulib_tool_options): Add comment.
25832 2012-01-16  Eric Blake  <eblake@redhat.com>
25834         bootstrap: cater to autoconf 2.59
25835         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
25836         is not available.
25838         bootstrap: properly check for libtool
25839         * build-aux/bootstrap (libtoolize): Also run libtool when older
25840         usage is detected.
25842 2012-01-15  Bruno Haible  <bruno@clisp.org>
25844         Improve support for MSVC 9.
25845         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
25846         clashes on MSVC.
25847         * lib/fcntl.in.h: Likewise.
25848         * lib/stdlib.in.h: Likewise.
25849         * lib/sys_stat.in.h: Likewise.
25851 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25853         gnupload: we hold the master copy of this script now
25854         For motivation and more information, see:
25855         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25856         * build-aux/gnupload: Make it clear in the heading comments that the
25857         master copy of this file is maintained by gnulib.  Since we are at
25858         it, bump its copyright year and ...
25859         ($scriptversion): ... the date in its version.
25860         ($usage): Patches and bug reports should be sent to the gnulib list,
25861         not the automake one.
25862         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25863         anymore.
25865 2012-01-15  Bruno Haible  <bruno@clisp.org>
25867         Fix module 'random'.
25868         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25869         initstate, setstate are declared.
25871 2012-01-14  Bruno Haible  <bruno@clisp.org>
25873         Tests for module 'random'.
25874         * modules/random-tests: New file.
25875         * tests/test-random.c: New file, based on tests/test-random_r.c.
25877         New module 'random'.
25878         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25879         declarations.
25880         * lib/random.c: New file, based on glibc/stdlib/random.c.
25881         * m4/random.m4: New file.
25882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25883         HAVE_RANDOM.
25884         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25885         * modules/random: New file.
25886         * config/srclist.txt: Add an entry for random.c.
25887         * doc/posix-functions/random.texi: Mention the 'random' module.
25888         * doc/posix-functions/initstate.texi: Likewise.
25889         * doc/posix-functions/setstate.texi: Likewise.
25890         * doc/posix-functions/srandom.texi: Likewise.
25892 2012-01-12  Bruno Haible  <bruno@clisp.org>
25894         random_r: Use common idioms.
25895         * lib/random_r.c: Include <stdlib.h> first.
25897         random_r: Override incompatible API on AIX, OSF/1.
25898         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25899         Override the system function if REPLACE_RANDOM_R is 1.
25900         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25901         and OSF/1, set REPLACE_RANDOM_R.
25902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25903         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25904         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25905         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25906         * doc/glibc-functions/random_r.texi: Likewise.
25907         * doc/glibc-functions/setstate_r.texi: Likewise.
25909         random_r: Support for MSVC 9.
25910         * lib/random_r.c: Include stdint.h, not inttypes.h.
25912 2012-01-12  Eric Blake  <eblake@redhat.com>
25914         inet_ntop: guard extra work by IF_LINT
25915         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25916         better code generation when not checking for warnings.
25917         Suggested by Paul Eggert and Jim Meyering.
25919         strptime: fix regression on mingw
25920         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25921         Fix regression.  Reported by Bruno Haible.
25923 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25924             Bruno Haible  <bruno@clisp.org>
25926         copy-file: add error-code-returning variant.
25927         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25928         (qcopy_file_preserving): New declaration.
25929         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25930         copy_file_preserving. Change return type to 'int'. Don't emit an error
25931         message here.
25932         (copy_file_preserving): New function.
25933         * tests/test-copy-file.c: Include <stdlib.h>.
25934         (main): Test qcopy_file_preserving if the environment variable
25935         NO_STDERR_OUTPUT is set.
25936         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25937         with NO_STDERR_OUTPUT
25938         * tests/test-copy-file-2.sh: Likewise.
25940 2012-01-10  Bruno Haible  <bruno@clisp.org>
25942         copy-file: Use 'quote' module consistently.
25943         * lib/copy-file.c (copy_file_preserving): Use quote().
25945         copy-file: Refactor.
25946         * lib/copy-file.c: Include quote.h.
25947         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25948         message here.
25949         * modules/copy-file (Depends-on): Add quote.
25951         acl: Export qcopy_acl.
25952         * lib/acl.h (qcopy_acl): New declaration.
25953         * lib/copy-acl.c (qcopy_acl): Make non-static.
25955         acl: Rename a local variable.
25956         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25958         acl: Align return values of copy_acl and qcopy_acl.
25959         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25960         maybe < -1.
25962 2012-01-11  Eric Blake  <eblake@redhat.com>
25964         strptime: silence gcc warnings
25965         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25966         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25967         Reported by Daniel P. Berrange.
25969         inet_ntop: silence gcc warning
25970         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25971         Reported by Daniel P. Berrange.
25973 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25975         getloadavg test: skip the test on GNU/Linux without /proc mounted
25976         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25977         file.  When /proc is not mounted, it always fails with ENOENT.
25978         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25979         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25981 2012-01-10  Bruno Haible  <bruno@clisp.org>
25983         regex: Avoid link error on MSVC 9.
25984         * modules/regex (Depends-on): Add wctype.
25986 2012-01-10  Bruno Haible  <bruno@clisp.org>
25988         doc: Mention --with-tests option.
25989         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25990         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25991         --with-tests.
25992         Reported by Reuben Thomas.
25994 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25996         users.txt: order package names lexicographically.
25997         * users.txt: Order package names lexicographically.
25999 2012-01-10  Jim Meyering  <meyering@redhat.com>
26001         maint.mk: fix description in comment
26002         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
26004         ignore-value: remove deprecated ignore_ptr function
26005         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
26006         * NEWS: Note this.
26008 2012-01-09  Jim Meyering  <meyering@redhat.com>
26010         test-init.sh: avoid a subshell
26011         * tests/test-init.sh: Remove protective subshell.
26012         Suggested by Bernhard Voelker.  While a subshell is normally
26013         required to protect against older shells (Solaris, FreeBSD) that
26014         warn about a missing program before performing redirection, the
26015         shell-selection tests performed by init.sh probably exclude any
26016         offending shell.
26018 2012-01-08  Bruno Haible  <bruno@clisp.org>
26020         setlocale tests: Avoid test failure on Solaris 11.0.
26021         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
26022         variable.
26024 2012-01-08  Bruno Haible  <bruno@clisp.org>
26026         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
26027         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26028         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
26029         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
26030         macro.
26031         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
26032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
26033         * lib/spawn_faction_addopen.c: Add workaround implementation if
26034         HAVE_WORKING_POSIX_SPAWN.
26035         * modules/spawn (Makefile): Substitute
26036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
26037         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
26038         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
26039         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
26040         (Depends-on): Update conditions.
26041         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26042         the Solaris 11 bug.
26044 2012-01-08  Bruno Haible  <bruno@clisp.org>
26046         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
26047         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26048         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
26049         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
26050         macro.
26051         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
26052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
26053         * lib/spawn_faction_adddup2.c: Add workaround implementation if
26054         HAVE_WORKING_POSIX_SPAWN.
26055         * modules/spawn (Makefile): Substitute
26056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
26057         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
26058         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
26059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
26060         (Depends-on): Update conditions.
26061         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26062         the Solaris 11 bug.
26064 2012-01-08  Bruno Haible  <bruno@clisp.org>
26066         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
26067         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26068         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
26069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
26070         HAVE_WORKING_POSIX_SPAWN.
26071         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
26072         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
26073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
26074         * lib/spawn_faction_addclose.c: Add workaround implementation if
26075         HAVE_WORKING_POSIX_SPAWN.
26076         * modules/spawn (Makefile): Substitute
26077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
26078         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
26079         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
26080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
26081         (Depends-on): Update conditions.
26082         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26083         the Solaris 11 bug.
26085 2012-01-08  Bruno Haible  <bruno@clisp.org>
26087         doc: Update for Solaris 11.0.
26088         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
26089         * m4/printf.m4: Update comments.
26091 2012-01-08  Bruno Haible  <bruno@clisp.org>
26093         mktime: Avoid compilation error on Solaris 11.
26094         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
26096 2012-01-08  Bruno Haible  <bruno@clisp.org>
26098         doc: Small fix.
26099         * doc/posix-headers/nl_types.texi: Correct platforms list.
26101 2012-01-08  Simon Josefsson  <simon@josefsson.org>
26103         Add lgpl-3.0 module.
26104         * MODULES.html.sh (Support for building documentation): Add
26105         lgpl-3.0.
26106         * modules/lgpl-3.0: New file.
26108 2012-01-08  Jim Meyering  <meyering@redhat.com>
26110         select.c: indent with spaces, not TABs
26111         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
26113 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26115         quotearg: do not use grave accent for left quote
26116         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
26117         locale_quoting_style.
26118         (quotearg_buffer_restyled): Fix example.
26119         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
26121 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26123         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
26124         Most programs do not have translation catalogs for English and much
26125         less separate catalogs for British and American English.  Drop the
26126         suggestion to translators about these two, and provide it
26127         automatically for Unicode locales.  Like most programs, even those
26128         using American English, we use single quotation marks.  This conflicts
26129         with the American typographic convention, but works better when you
26130         cite the entire error message within double quotes.  It also tries not
26131         to clash with established practice and with what non-gnulib programs
26132         will usually do.
26133         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
26134         using an UTF-8 or GB-18030 locale.  The list of other locales with
26135         quotes was provided by Bruno Haible.
26136         (quotearg_buffer_restyled): Adjust instructions to translators.
26137         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
26138         text, since this would be wrong when using Unicode.
26139         * modules/quotearg: Depend on c-strcaseeq.
26141 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26143         quotearg: fix Wikipedia link
26144         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
26146 2012-01-07  Simon Josefsson  <simon@josefsson.org>
26148         Fix for mingw with MSVC9.
26149         * m4/ld-version-script.m4: Check that compiler rejects version
26150         scripts with syntax errors.  Reported by Bruno Haible
26151         <bruno@clisp.org>.
26153 2012-01-06  Bruno Haible  <bruno@clisp.org>
26155         Talk about "native Windows API", not "Woe32".
26156         * lib/accept4.c: Update comments to mention native Windows.
26157         * lib/execute.c: Likewise.
26158         * lib/fatal-signal.c: Likewise.
26159         * lib/localcharset.c: Likewise.
26160         * lib/nanosleep.c: Likewise.
26161         * lib/nl_langinfo.c: Likewise.
26162         * lib/pclose.c: Likewise.
26163         * lib/pipe-filter-gi.c: Likewise.
26164         * lib/pipe-filter-ii.c: Likewise.
26165         * lib/pipe.c: Likewise.
26166         * lib/pipe2.c: Likewise.
26167         * lib/popen.c: Likewise.
26168         * lib/progreloc.c: Likewise.
26169         * lib/relocatable.c: Likewise.
26170         * lib/sigaction.c: Likewise.
26171         * lib/sigprocmask.c: Likewise.
26172         * lib/spawn-pipe.h: Likewise.
26173         * lib/spawn-pipe.c: Likewise.
26174         * lib/spawni.c: Likewise.
26175         * lib/stat-time.h: Likewise.
26176         * lib/w32spawn.h: Likewise.
26177         * tests/test-isatty.c: Likewise.
26178         * lib/config.charset: More comments.
26179         * doc/gnulib-intro.texi: Mention native Windows.
26180         * doc/posix-functions/_Exit_C99.texi: Likewise.
26181         * doc/posix-headers/fcntl.texi: Likewise.
26183 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
26185         argp: Avoid crash if translator uses % characters in a translation.
26186         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
26187         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26189 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26191         doc: C11 and C++11 are now official
26192         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
26193         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
26194         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
26195         * modules/stdalign:
26196         Replace references to draft C1X to C11, and to draft C++0X to C++11.
26198 2012-01-06  Bruno Haible  <bruno@clisp.org>
26200         uc-is-grapheme-break tests: Tweak.
26201         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
26202         message.
26204 2012-01-06  Bruno Haible  <bruno@clisp.org>
26206         test-init.sh: correct the test for diff -u
26207         * tests/test-init.sh: Also redirect stdout to /dev/null.
26209 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26211         Use ', not `, for quoting output.
26212         * build-aux/announce-gen (usage, sizes, print_news_deltas)
26213         (print_changelog_deltas, get_tool_versions, main program):
26214         * build-aux/git-version-gen:
26215         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
26216         * build-aux/move-if-change (help):
26217         * build-aux/useless-if-before-free (usage, main program):
26218         * check-module (parse_module_file, usage)
26219         (find_included_lib_files, check_module):
26220         * lib/argmatch.c (main) [TEST]:
26221         * lib/argp-help.c (_help):
26222         * lib/getopt1.c (main) [TEST]:
26223         * lib/git-merge-changelog.c (usage):
26224         * lib/xstrtol-error.c (xstrtol_error):
26225         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
26226         * m4/argz.m4 (gl_FUNC_ARGZ):
26227         * m4/bison.m4 (gl_BISON):
26228         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
26229         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26230         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26231         * m4/fpending.m4 (gl_PREREQ_FPENDING):
26232         * m4/gc-random.m4 (gl_GC_RANDOM):
26233         * m4/intl.m4 (gt_CHECK_DECL):
26234         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
26235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
26236         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
26237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
26238         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26239         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
26240         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
26241         * tests/test-dirname.c (main):
26242         * tests/test-getpass.c (main):
26243         * tests/test-iconvme.c (main):
26244         * tests/test-parse-datetime.c (LOG):
26245         * tests/test-xstrtoimax.sh:
26246         * tests/test-xstrtol.sh:
26247         * tests/test-xstrtoll.sh:
26248         * tests/test-xstrtoumax.sh:
26249         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
26250         * top/GNUmakefile (abort-due-to-no-makefile):
26251         Quote 'like this', not `like this', as per the recent change to
26252         the GNU coding standards.
26254 2012-01-05  Bruno Haible  <bruno@clisp.org>
26256         strtoimax: Don't force a replacement on systems where intmax_t is int.
26257         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
26258         'intmax_t' is not larger than 'int'.
26259         Reported by Pádraig Brady <P@draigBrady.com>.
26261 2012-01-05  Bruno Haible  <bruno@clisp.org>
26263         doc: Mention NetBSD bugs.
26264         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
26265         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
26267 2012-01-05  Bruno Haible  <bruno@clisp.org>
26269         strtoumax tests: Enhance tests.
26270         * tests/test-strtoumax.c (main): Add tests for large values.
26272 2012-01-05  Bruno Haible  <bruno@clisp.org>
26274         strtoimax: Work around AIX 5.1 bug.
26275         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
26276         definition.
26277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
26278         Set HAVE_STRTOIMAX.
26279         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
26280         REPLACE_STRTOIMAX.
26281         * modules/inttypes-incomplete (Makefile.am): Substitute
26282         REPLACE_STRTOIMAX.
26283         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
26284         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
26285         (Depends-on): Update conditions.
26286         * tests/test-strtoimax.c (main): Add tests for large values.
26287         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
26289 2012-01-05  Bruno Haible  <bruno@clisp.org>
26291         inttypes: Modernize.
26292         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
26293         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
26294         (Makefile.am): Update inttypes.h rule.
26296 2012-01-05  Jim Meyering  <meyering@redhat.com>
26298         init.sh: don't waste a subshell just to redirect stderr
26299         * tests/init.sh: In testing for diff -u and diff -c, use a
26300         stderr-redirecting exec inside `...` rather than a subshell.
26302         test-init.sh: avoid failure on HP-UX 11.00
26303         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
26304         resolves to diff -c or cmp.  Reported by Bruno Haible.
26306 2012-01-05  Bruno Haible  <bruno@clisp.org>
26308         Tests for module 'strtoull'.
26309         * modules/strtoull-tests: New file.
26310         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
26312 2012-01-05  Bruno Haible  <bruno@clisp.org>
26314         Tests for module 'strtoll'.
26315         * modules/strtoll-tests: New file.
26316         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
26318 2012-01-05  Bruno Haible  <bruno@clisp.org>
26320         Tests for module 'strtoul'.
26321         * modules/strtoul-tests: New file.
26322         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
26324 2012-01-05  Bruno Haible  <bruno@clisp.org>
26326         Tests for module 'strtol'.
26327         * modules/strtol-tests: New file.
26328         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
26330 2012-01-04  Jim Meyering  <meyering@redhat.com>
26332         test-init.sh: accommodate Solaris 5.10's different diff -u output
26333         * tests/test-init.sh: Also exempt @@ lines from the comparison
26334         of diff output, since Solaris 5.10 and GNU diff formats differ.
26335         Reported by Stefano Lattarini.
26337 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26339         test-posixtm: don't assume signed integer wraparound
26340         * tests/test-posixtm.c (main): Don't assume wraparound semantics
26341         after signed integer overflow.  Inspired by (though it may not
26342         fix) Bruno Haible's bug report in
26343         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
26345         Spell out "Windows 9x" and "Windows XP".
26346         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
26347         "Windows 9x" and "WinXP" with "Windows XP".
26349 2012-01-04  Jim Meyering  <meyering@redhat.com>
26351         test-vc-list-files-cvs.sh: remove obsolete comment
26352         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
26353         double exit.  Now that's all encapsulated via skip_ and Exit.
26355 2012-01-04  Bruno Haible  <bruno@clisp.org>
26357         Talk about "native Windows API", not "Win32".
26358         * lib/classpath.c: Update comments to mention native Windows.
26359         * lib/csharpexec.c: Likewise.
26360         * lib/dup2.c: Likewise.
26361         * lib/error.c: Likewise.
26362         * lib/fcntl.c: Likewise.
26363         * lib/filename.h: Likewise.
26364         * lib/findprog.c: Likewise.
26365         * lib/get-rusage-as.c: Likewise.
26366         * lib/get-rusage-data.c: Likewise.
26367         * lib/getpagesize.c: Likewise.
26368         * lib/javaexec.c: Likewise.
26369         * lib/msvc-inval.c: Likewise.
26370         * lib/msvc-nothrow.c: Likewise.
26371         * lib/nanosleep.c: Likewise.
26372         * lib/nonblocking.c: Likewise.
26373         * lib/printf-parse.c: Likewise.
26374         * lib/setlocale.c: Likewise.
26375         * lib/sigaction.c: Likewise.
26376         * lib/strerror_r.c: Likewise.
26377         * lib/tmpdir.c: Likewise.
26378         * lib/vasnprintf.c: Likewise.
26379         * lib/w32spawn.h: Likewise.
26380         * lib/waitpid.c: Likewise.
26381         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
26382         * m4/locale-ar.m4: Likewise.
26383         * m4/locale-fr.m4: Likewise.
26384         * m4/locale-ja.m4: Likewise.
26385         * m4/locale-tr.m4: Likewise.
26386         * m4/locale-zh.m4: Likewise.
26387         * m4/printf.m4: Likewise.
26388         * tests/test-cloexec.c: Likewise.
26389         * tests/test-copy-acl.sh: Likewise.
26390         * tests/test-copy-file.sh: Likewise.
26391         * tests/test-file-has-acl.sh: Likewise.
26392         * tests/test-set-mode-acl.sh: Likewise.
26393         * tests/test-dup-safer.c: Likewise.
26394         * tests/test-dup2.c: Likewise.
26395         * tests/test-dup3.c: Likewise.
26396         * tests/test-fcntl.c: Likewise.
26397         * tests/test-nonblocking-pipe.h: Likewise.
26398         * tests/test-nonblocking-socket.h: Likewise.
26399         * tests/test-pipe.c: Likewise.
26400         * tests/test-pipe2.c: Likewise.
26401         * tests/test-spawn-pipe-child.c: Likewise.
26402         * doc/acl-resources.txt: Likewise.
26403         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26404         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
26405         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
26406         * lib/localcharset.c: Update comments to mention native Windows.
26407         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26408         * lib/localename.c: Likewise.
26409         * lib/progreloc.c: Likewise.
26410         * lib/relocatable.c: Likewise.
26411         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26412         (windows_compute_revents): Renamed from win32_compute_revents.
26413         (windows_compute_revents_socket): Renamed from
26414         win32_compute_revents_socket.
26415         * lib/select.c: Update comments to mention native Windows.
26416         (windows_poll_handle): Renamed from win32_poll_handle.
26417         * m4/threadlib.m4: Update comments to mention native Windows.
26418         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
26419         --enable-threads=windows instead of --enable-threads=win32. Set
26420         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
26421         * lib/glthread/lock.h: Update comments to mention native Windows.
26422         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
26423         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
26424         USE_WIN32_THREADS.
26425         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
26426         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
26427         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
26428         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
26429         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
26430         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
26431         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
26432         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
26433         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
26434         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
26435         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
26436         * tests/test-tls.c: Likewise.
26437         Rationale:
26438         Microsoft renamed the "Win32 API" to "Windows API", as it is available
26439         on both 32-bit and 64-bit Windows systems.
26440         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
26441         line of distinction is between "native Windows" on one side and Unix/
26442         POSIX systems on the other side. More details in
26443         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
26444         Suggested by Paul Eggert.
26446 2012-01-03  Bruno Haible  <bruno@clisp.org>
26448         isatty: Support for MSVC 9.
26449         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
26450         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
26451         (_isatty_nothrow): New function.
26452         (isatty): Use it instead of _isatty.
26453         (IsConsoleHandle): Add comment, from Paolo Bonzini.
26454         * lib/poll.c (IsConsoleHandle): Likewise.
26455         * lib/select.c (IsConsoleHandle): Likewise.
26456         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
26457         (gl_PREREQ_ISATTY): New macro.
26458         * modules/isatty (Depends-on): Add msvc-inval.
26459         (configure.ac): Invoke gl_PREREQ_ISATTY.
26461 2012-01-03  Jim Meyering  <meyering@redhat.com>
26463         maint.mk: remove temporary transition aid from over 1.5 years ago
26464         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
26465         purpose was to aid in the transition (avoiding silent malfunction)
26466         from that old name to the new _sc_search_regexp.  This shim was
26467         added by commit 219c504b.
26469         init.sh: do not try to accommodate compare arguments starting with "-"
26470         * tests/init.sh (compare_dev_null_): Do not try to accommodate
26471         compare arguments that start with "-".  Besides, we do not worry
26472         about this when invoking diff or cmp; why start now with sed?
26473         Using "--" to separate options from argument would trigger sed
26474         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
26475         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
26477 2012-01-02  Bruno Haible  <bruno@clisp.org>
26479         Enhance tests for module 'isatty'.
26480         * modules/isatty-tests (Depends-on): Add pipe-posix.
26481         * tests/test-isatty.c: Include <fcntl.h>.
26482         (DEV_NULL): New macro.
26483         (main): Test the resut of isatty() also on regular files, pipes, and
26484         /dev/null.
26486         New module 'isatty'.
26487         * lib/unistd.in.h (isatty): New declaration.
26488         * lib/isatty.c: New file, based on an idea of
26489         Bastien Roucariès <roucaries.bastien@gmail.com>.
26490         * m4/isatty.m4: New file.
26491         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
26492         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
26493         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
26494         REPLACE_ISATTY.
26495         * modules/isatty: New file.
26496         * doc/posix-functions/isatty.texi: Mention the new module.
26497         Suggested by Paolo Bonzini.
26499 2012-01-02  Bruno Haible  <bruno@clisp.org>
26501         canonicalize: Tweak 2011-12-29 commit.
26502         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
26503         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
26505 2012-01-02  Jim Meyering  <meyering@redhat.com>
26507         gitlog-to-changelog: describe input syntax in --help output
26508         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
26510         gitlog-to-changelog: fix typo in --help: show backslash before email @
26511         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
26512         in sources, but not in actual output.
26514 2011-12-30  Jim Meyering  <meyering@redhat.com>
26516         gitlog-to-changelog: don't malfunction when name contains %-directive
26517         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
26518         in a name string cause trouble.  E.g., with a user name of "%s",
26519         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
26521 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
26523         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
26524         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
26525         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
26526         the "  (tiny change)" notation that is appended to the standard
26527         ChangeLog "date  name  email" header line.
26529 2012-01-01  Jim Meyering  <meyering@redhat.com>
26531         test-framework-sh: init.sh: fix "make dist" failure
26532         When using gnulib-tool's --with-tests option and any module that
26533         depends on test-framework-sh, "make dist" would fail due to the
26534         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
26535         in the gltests directory, and not in the gllib/ directory.
26536         One way to work around that is to move the EXTRA_DIST += init.sh
26537         from the primary module to the -tests one:
26538         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
26539         * modules/test-framework-sh (Makefile.am): ...not here.
26540         Reported by Tom G. Christensen in
26541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
26543         version-etc: update copyright year reported by --version
26544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
26546 2011-12-31  Pádraig Brady  <P@draigBrady.com>
26548         canonicalize: only stat() if required
26549         * lib/canonicalize.c (canonicalize_filename_mode):
26550         Avoid calling l?stat() when both CAN_MISSING,
26551         and CAN_NOLINKS are set, as we neither need
26552         to resolve symlinks or test component existence.
26554 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26556         doc: cover st_ino issues once; add OpenVMS etc.
26557         * doc/posix-functions/stat.texi (stat):
26558         * doc/posix-functions/lstat.texi (lstat):
26559         * doc/posix-functions/fstatat.texi (fstatat):
26560         * doc/posix-functions/fstat.texi (fstat):
26561         Move general 'struct stat' stuff to sys_stat.texi,
26562         leaving behind a pointer.
26563         * doc/posix-headers/sys_stat.texi (sys/stat.h):
26564         Merge duplicate info about 'struct stat' problems into here.
26565         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
26566         and suggest partial workarounds.
26568         same-inode: port to OpenVMS
26569         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
26570         three st_ino values.
26572 2011-12-30  Pádraig Brady  <P@draigBrady.com>
26574         canonicalize: fix references to stat() and lstat()
26575         * lib/canonicalize.c (canonicalize_filename_mode):
26576         Ensure references always resolve to a replacement
26577         function if required (even via a macro).
26579 2011-12-30  Jim Meyering  <meyering@redhat.com>
26581         gitlog-to-changelog: remove a little duplication
26582         * build-aux/gitlog-to-changelog (main): Grep @lines once,
26583         rather than twice.
26585 2011-12-29  Pádraig Brady  <P@draigBrady.com>
26587         canonicalize: add support for not resolving symlinks
26588         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
26589         indicate we don't want to follow symlinks.  Also
26590         provide CAN_MODE_MASK to aid setting these existing
26591         mutually exclusive values.
26592         * lib/canonicalize.c (canonicalize_filename_mode):
26593         Extract the flags from can_mode parameter, which
26594         are currently just used to select between stat()
26595         and lstat().  Also ensure that mutually exclusive
26596         values are flagged immediately as invalid.
26597         * tests/test-canonicalize.c: Verify symlinks are
26598         not followed, and that invalid flag combinations
26599         are diagnosed.
26601 2011-12-25  Jim Meyering  <meyering@redhat.com>
26603         gitlog-to-changelog: do not clump multi-paragraph entries
26604         Identical header lines (date,name,email+coauthors) are suppressed,
26605         thus putting all entries with those same characteristics under
26606         a single header.  However, when a log entry consists of two or
26607         more paragraphs, it may not be clear where it starts and ends.
26608         This change makes it so that such an entry is always separated
26609         from others by a header line, even when that header would
26610         otherwise be suppressed.
26611         * build-aux/gitlog-to-changelog: Implement the above.
26612         Inspired by a related request from Stefano Lattarini in
26613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
26615 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26617         announce-gen: fix `cmd' typo in diagnostic
26618         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
26619         diagnostic: a missing '$' meant that the command was not output.
26621 2011-12-23  Jim Meyering  <meyering@redhat.com>
26623         test-framework-sh: distribute init.sh
26624         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
26625         Otherwise, "make -C gnulib-tests check" (at least in grep) would
26626         fail due to the lack of init.sh.
26628         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
26629         * modules/atexit-tests: Rather than listing tests/init.sh,
26630         now that there's a module for it, simply depend on that new module.
26631         * modules/closein-tests: Likewise.
26632         * modules/exclude-tests: Likewise.
26633         * modules/getcwd-tests: Likewise.
26634         * modules/perror-tests: Likewise.
26635         * modules/pread-tests: Likewise.
26636         * modules/pwrite-tests: Likewise.
26637         * modules/vc-list-files-tests: Likewise.
26638         * modules/verify-tests: Likewise.
26639         * modules/xalloc-die-tests: Likewise.
26640         * modules/xstrtoimax-tests: Likewise.
26641         * modules/xstrtol-tests: Likewise.
26642         * modules/xstrtoll-tests: Likewise.
26643         * modules/xstrtoumax-tests: Likewise.
26644         * modules/yesno-tests: Likewise.
26646 2011-12-22  Jim Meyering  <meyering@redhat.com>
26648         test-framework-sh: add minimal tests of init.sh's compare function
26649         * modules/test-framework-sh-tests: New file.
26650         * tests/test-init.sh: New file.
26652         test-framework-sh: new module
26653         * modules/test-framework-sh: New file.
26654         * MODULES.html.sh (Support for maintaining and releasing projects):
26655         List it.
26657         init.sh: do not emit simulated diff output to stderr
26658         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
26660 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26662         .gitignore: ignore gnulib.dvi and regex.info
26663         * doc/.gitignore:add gnulib.dvi and regex.info
26665 2011-12-22  Jim Meyering  <meyering@redhat.com>
26667         init.sh: correct previous change
26668         * tests/init.sh (compare): My previous change was wrong.
26669         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
26671         init.sh: avoid unwarranted test failure when using "set -e"
26672         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
26673         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
26674         a use like "compare exp out" would get evoke an unconditional failure.
26676 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
26678         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
26679         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
26680         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
26681         autoreconf that did not.
26682         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
26683         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26685 2011-12-17  Jim Meyering  <meyering@redhat.com>
26687         bootstrap: remove some now-unneeded code
26688         This script arose back when gnulib-tool was young.
26689         Since then, it has seen improvements that render much of this
26690         script unnecessary.  In particular, it can now make symlinks
26691         to the files it uses.  Also, I no longer see as much value in
26692         marking files as read-only via comments.
26693         If you relied on the symlink-creation feature of the preceding
26694         version of this script, you can get most of that functionality
26695         by adding the --symlink option to the definition of
26696         gnulib_tool_option_extras in your bootstrap.conf file.
26697         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
26698         Run autopoint and libtoolize *before* gnulib-tool.
26699         After it, run an abbreviated autoreconf, rather than a loop around
26700         all tools.
26701         (slirp, bt_mark_as_generated): Remove functions.
26703 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26705         ftoastr: fix typo
26706         * lib/ftoastr.h: Fix misspelling in comment.
26708 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
26710         * top/README-release: fix punctuation.
26712 2011-12-17  Jim Meyering  <meyering@redhat.com>
26714         bootstrap: correct the recent buildreq change
26715         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
26716         had no effect.
26717         * build-aux/bootstrap (buildreq): Bracket each search term with
26718         "*...*", so that the shell "case" statement works as intended.
26719         Add comments.
26721 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
26723         build: let bootstrap resort to wget when downloading .po files
26724         * build-aux/bootstrap (download_po_files): Fallback to wget when
26725         downloading the .po files via rsync fails.  This is necessary to
26726         bootstrap from behind a strict firewall.
26728 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26730         stdint: don't assume C++11 when compiling with g++
26731         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
26732         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
26733         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
26734         work also in C++ before C++11, as that improperly inhibits
26735         generating a substitute stdint.h for that case.
26737 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26739         alloca: protect comment from gnulib-tool
26740         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
26741         that gnulib-tool doesn't think it's a license, and munge it to
26742         say "GCC version 3".
26744 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
26746         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
26747         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
26748         $(abs_top_builddir) instead of $(top_builddir).
26750 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
26752         strftime-tests: also test nanoseconds
26753         * tests/test-strftime.c (T): Add a test of %N.
26755 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
26757         inttypes, stdint: add C++11 support
26758         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
26759         when including inttypes.h and stdint.h.  Support this change to
26760         the standard.
26761         * doc/posix-headers/inttypes.texi (inttypes.h):
26762         * doc/posix-headers/stdint.texi (stdint.h): Document this.
26763         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
26764         Define if not defined already, for the benefit of pre-C++11 hosts.
26765         Define the standard format macros (e.g., PRId8) always.
26766         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
26767         Likewise, if __cpluspus.  Define the standard constant and limit
26768         macros (e.g., INT8_C, INT8_MAX) always.
26769         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
26770         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
26771         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
26772         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
26773         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
26774         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
26775         Likewise.
26777 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26779         nonblocking tests: Fix test failure on Linux/PPC.
26780         Suggested by Prerna Saxena in
26781         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
26782         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
26783         Set to 1100000.
26785 2011-12-12  Jim Meyering  <meyering@redhat.com>
26787         argmatch: don't hard-code `' when listing valid option arguments
26788         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
26789         use the quote function to add quotes.  Use fputs rather than
26790         fprintf for the format string with no format directive.
26792 2011-12-07  Eric Blake  <eblake@redhat.com>
26794         bootstrap: detect tools required by gnulib-tool
26795         * build-aux/bootstrap (buildreq): Provide minimum implicit
26796         dependencies.
26797         * DEPENDENCIES: Mention patch as a prereq.
26799 2011-12-04  Bruno Haible  <bruno@clisp.org>
26801         sethostname: Port to Windows platforms.
26802         * lib/sethostname.c: Provide an alternate implementation for Windows
26803         platforms.
26804         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
26805         (main): Skip the test if sethostname() fails with EPERM. On Windows
26806         platforms, don't check the result of gethostname().
26808 2011-12-04  Bruno Haible  <bruno@clisp.org>
26809             Jim Meyering  <meyering@redhat.com>
26811         tests: Avoid spurious error message on platforms without mktemp program.
26812         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
26814 2011-12-04  Bruno Haible  <bruno@clisp.org>
26816         sethostname: Fix documentation.
26817         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
26818         "not fixed" section.
26820 2011-12-03  Bruno Haible  <bruno@clisp.org>
26822         gnulib-tool: Verify that the License field is present and non-empty.
26823         * gnulib-tool (func_get_license_raw): New function, extracted from
26824         func_get_license.
26825         (func_get_license): Use it. Warn if the module is not a test module and
26826         has no license.
26827         Suggested by Jim Meyering.
26829 2011-12-03  Bruno Haible  <bruno@clisp.org>
26831         sethostname tests: Fix link error on mingw.
26832         * tests/test-sethostname1.c: New file, extracted from
26833         tests/test-sethostname.c.
26834         * tests/test-sethostname2.c: New file, extracted from
26835         tests/test-sethostname.c.
26836         * tests/test-sethostname.c: Remove file.
26837         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
26838         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
26839         (Depends-on): Add gethostname.
26840         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
26841         Link the latter with $(GETHOSTNAME_LIB).
26843         sethostname tests: Fix compilation error on mingw.
26844         * tests/test-sethostname.c: Don't include <sys/types.h>.
26845         (geteuid): Use a dummy value without uid_t.
26846         * modules/sethostname-tests (Depends-on): Remove sys_types.
26848         sethostname tests: Avoid a gcc warning.
26849         * tests/test-sethostname.c (main): Remove an unused variable.
26851         Tweak last commit.
26852         * modules/sethostname-tests (Files): Sort by decreasing importance.
26853         (configure.ac): Check for geteuid.
26854         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26855         the test when there's nothing to test. Drop an unnecessary cast.
26856         Improve an error message. Verify that the final sethostname() call
26857         succeeds.
26859 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26861         Add a test suite for the sethostname module.
26862         * modules/sethostname-tests: New file.  A test program
26863         for the sethostname module.
26864         * tests/test-sethostname.c: Likewise.
26866 2011-12-03  Bruno Haible  <bruno@clisp.org>
26868         Tweak last commit.
26869         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26870         Fix preprocessor directives indentation. Fix typos.
26871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26872         * modules/unistd (Makefile): Likewise.
26874 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26876         Integrate the sethostname module into unistd.
26877         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26878         into the unistd.h header.
26879         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26880         preprocessor directives.
26881         * modules/unistd: Setup the Makefile substitutions of the
26882         SETHOSTNAME preprocessor directives.
26884 2011-12-03  Bruno Haible  <bruno@clisp.org>
26886         Tweak last commit.
26887         * lib/sethostname.c: Don't include <string.h>.
26888         (sethostname): No need to copy the argument string to the stack. Don't
26889         call clearerr. Preserve errno when fprintf failed.
26890         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26891         Don't invoke AC_REPLACE_FUNCS.
26892         * modules/sethostname (Link): Remove empty section.
26893         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26894         failure problem.
26896 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26898         New module 'sethostname'.
26899         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26900         for systems that lack it.
26901         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26902         sethostname declaration and function.
26903         * modules/sethostname: New file.  Define the sethostname module.
26905 2011-12-03  Bruno Haible  <bruno@clisp.org>
26907         Tweak last commit.
26908         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26910 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26912         Split the HOST_NAME_MAX detection into a separate m4 macro.
26913         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26914         macro so it can be used by the pending sethostname module.
26916 2011-12-03  Bruno Haible  <bruno@clisp.org>
26918         Fix module descriptions syntax.
26919         * modules/argv-iter (License): Fix syntax.
26920         * modules/di-set (License): Likewise.
26921         * modules/ino-map (License): Likewise.
26922         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26924 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26926         stdalign: port to Clang 3.0
26927         Problem reported by Simon Josefsson in
26928         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26929         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26930         which has <stdalign.h> but which does not define alignof.
26931         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26933 2011-12-01  Eric Blake  <eblake@redhat.com>
26935         mktempd: silence dd usage
26936         * build-aux/mktempd (rand_bytes): Silence dd.
26938 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26940         manywarnings: Don't mention gcc version in docstring.
26941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26942         Jim Meyering <meyering@redhat.com>.
26944 2011-11-30  Jim Meyering  <meyering@redhat.com>
26946         hash: mark a few floating point constants with "f" suffix
26947         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26948         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26949         floating point constants with "f", since they're destined to be
26950         saved/used as "float"s.
26952 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26954         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26955         * tests/test-float.c (test_long_double): Correct and re-enable the
26956         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26958 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26960         Avoid subtracting two pointers that don't point into the same block.
26961         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26962         only pointers into the same memory block are subtracted. We cannot
26963         assume that sizeof (ptrdiff_t) == sizeof (void *).
26965 2011-11-29  Eric Blake  <eblake@redhat.com>
26967         maint.mk: add syntax check for use of compare from init.sh
26968         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26969         moved here from coreutils.
26971         manywarnings: drop -Wunsuffixed-float-constants
26972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26973         '1.0D', which is the only way to silence this warning for 'double'.
26975 2011-11-29  Jim Meyering  <meyering@redhat.com>
26977         hash: mark compute_bucket_size with the pure attribute
26978         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26980         quotearg, propername: correct pragma guard expression
26981         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26982         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26984 2011-11-28  Jim Meyering  <meyering@redhat.com>
26986         propername: do not mark proper_name with the const attribute
26987         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26988         since it examines data pointed to by its parameter.
26989         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26990         the suggestion from -Wsuggest-attribute=const.
26992         propername: mark one more function as const
26993         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26995 2011-11-27  Jim Meyering  <meyering@redhat.com>
26997         mark functions with const and pure attributes
26999         Mark functions per suggestions from gcc-4.6 when using these options:
27000         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
27001         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
27002         Follow these guidelines: when possible, apply the attribute to
27003         an extern declaration, not to its definition.  Apply it to the
27004         definition only when the definition is static.
27005         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
27006         * lib/argv-iter.h (argv_iter_n_args): Likewise.
27007         * lib/base64.h (isbase64): Likewise.
27008         * lib/basename-lgpl.c (last_component, base_len): Likewise.
27009         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
27010         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
27011         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
27012         (c_tolower, c_toupper): Likewise.
27013         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
27014         * lib/chdir-long.c (find_non_slash): Likewise.
27015         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
27016         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
27017         * lib/file-type.h (file_type): Likewise.
27018         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
27019         * lib/filevercmp.c (verrevcmp): Likewise.
27020         * lib/freadahead.h (freadahead): Likewise.
27021         * lib/fts.c (fts_maxarglen): Likewise.
27022         * lib/hash-pjw.h (hash_pjw): Likewise.
27023         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
27024         * lib/hash.c (is_prime, next_prime): Likewise.
27025         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
27026         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
27027         (hash_table_ok, hash_get_first, hash_string): Likewise.
27028         (compute_bucket_size): Likewise.
27029         * lib/i-ring.h (i_ring_empty): Likewise.
27030         * lib/isnan.c (isnanl): Likewise.
27031         * lib/math.h (isnanl, rpl_isnanl): Likewise.
27032         * lib/memcasecmp.h (memcasecmp): Likewise.
27033         * lib/memchr2.h (memchr2): Likewise.
27034         * lib/memcmp2.h (memcmp2): Likewise.
27035         * lib/parse-datetime.y (lookup_zone): Likewise.
27036         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
27037         [!WINDOWS_SOCKETS]: Likewise.
27038         * lib/strnlen1.h (strnlen1): Likewise.
27039         * lib/uniwidth.in.h (uc_width): Likewise.
27040         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
27041         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
27042         (quoting_options_from_style): Add a comment.
27043         * lib/propername.h (proper_name): Add a comment.
27045 2011-11-27  Bruno Haible  <bruno@clisp.org>
27047         Remove unused macros from !_LIBC code in glibc-borrowed files.
27048         * lib/fnmatch.c (STRCOLL): Remove macro.
27049         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
27050         * lib/glob.c (__stat, __readdir64): Remove macros.
27051         * lib/tempname.c (__open64, __xstat64): Remove macros.
27052         Suggested by Paul Eggert.
27054 2011-11-27  Bruno Haible  <bruno@clisp.org>
27056         getcwd: Fix link error on MSVC 9.
27057         * modules/getcwd (Depends-on): Add readdir, rewinddir.
27059 2011-11-27  Bruno Haible  <bruno@clisp.org>
27061         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
27062         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
27063         HAVE_OPENDIR is 0.
27064         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
27065         HAVE_CLOSEDIR is 0.
27066         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
27067         is 0.
27068         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
27070 2011-11-27  Bruno Haible  <bruno@clisp.org>
27072         getcwd: Fix bug from 2011-08-17.
27073         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
27074         platforms that need it.
27075         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
27076         code of 4 to be a failure, not a success. This ensures that
27077         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
27079 2011-11-27  Bruno Haible  <bruno@clisp.org>
27081         binary-io tests: Avoid test failure on mingw when libtool is used.
27082         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
27083         Don't verify the size of t-bin-out1.tmp here.
27084         * tests/test-binary-io.sh: Verify it here.
27085         Reported by Simon Josefsson.
27087 2011-11-26  Bruno Haible  <bruno@clisp.org>
27089         Fix conflict between two instantiations of module 'unistd'.
27090         * gnulib-tool (func_emit_autoconf_snippet): Substitute
27091         ${include_guard_prefix} also in the autoconf snippet.
27092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
27093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
27094         GNULIB_UNISTD_H_GETOPT.
27095         * modules/getopt-posix (configure.ac): Set the
27096         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
27097         * modules/getopt-gnu (configure.ac): Likewise.
27098         * modules/unistd (Makefile.am): Change the substitution value of
27099         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
27100         Reported by Simon Josefsson.
27102 2011-11-25  Bruno Haible  <bruno@clisp.org>
27104         pagealign_alloc: Doc and comments.
27105         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
27106         module.
27107         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
27109 2011-11-25  Jim Meyering  <meyering@redhat.com>
27111         test-update-copyright.sh: avoid false-positive failure
27112         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
27113         around false positive failure on Cygwin/Windows.  The latter was
27114         matching erroneously-created files with names like
27115         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
27117 2011-11-25  Simon Josefsson  <simon@josefsson.org>
27119         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
27120         * m4/valgrind-tests.m4: Check that the parameters that will be
27121         used works, not just a subset of them.  Reported by Bruno Haible
27122         <bruno@clisp.org>.
27124 2011-11-24  Jim Meyering  <meyering@redhat.com>
27126         test-stdalign.c: comment out long double tests
27127         * tests/test-stdalign.c: Don't try to reduce alignment of long double
27128         variables.  That provokes errors like this from gcc-4.7.0 20111124:
27129         error: '_Alignas' specifiers cannot reduce alignment of \
27130         'static_longdouble_alignas'.
27132 2011-11-22  Jim Meyering  <meyering@redhat.com>
27134         init.sh: make "compare /dev/null FILE" output more readable
27135         * tests/init.sh (compare_): Document the preferred order of arguments.
27136         (emit_diff_u_header_): New function.
27137         (compare_dev_null_): Emit a simulated diff, rather than just the
27138         contents of the unexpected file.  Suggestion from Bruno Haible.
27140 2011-11-21  Jim Meyering  <meyering@redhat.com>
27141             Eric Blake  <eblake@redhat.com>
27143         init.sh: work around OSF/1 5.1's mishandling of /dev/null
27144         * tests/init.sh: Make our compare function slightly more portable.
27145         Reported by Bruno Haible in
27146         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
27148 2011-11-21  Simon Josefsson  <simon@josefsson.org>
27150         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
27151         before using it, in code that ends up in config.h.
27153 2011-11-20  Bruno Haible  <bruno@clisp.org>
27155         getcwd: Work around getcwd bug on AIX 5..7.
27156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
27157         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
27158         Use a different value for gl_cv_func_getcwd_path_max. Move the
27159         definition of HAVE_PARTLY_WORKING_GETCWD from here...
27160         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
27161         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
27162         Define HAVE_MINIMALLY_WORKING_GETCWD.
27163         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
27164         where it is not even minimally working, that is, on AIX.
27165         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
27166         m4/getcwd-path-max.m4.
27167         (main): Update exit code computation.
27168         * doc/posix-functions/getcwd.texi: Mention list of platforms where
27169         getcwd does not handle long file names.
27171 2011-11-20  Bruno Haible  <bruno@clisp.org>
27173         getcwd: Fix bug from 2009-09-10.
27174         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
27175         like "no".
27177 2011-11-20  Simon Josefsson  <simon@josefsson.org>
27179         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
27181 2011-11-20  Bruno Haible  <bruno@clisp.org>
27183         fma tests: Avoid shadowing local variables.
27184         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
27185         expected.
27187 2011-11-20  Bruno Haible  <bruno@clisp.org>
27189         copysignf tests: Fix.
27190         * tests/test-copysignf.c: Fix signature check.
27192 2011-11-20  Bruno Haible  <bruno@clisp.org>
27194         fma: Remove unused code.
27195         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
27196         unused macros.
27198 2011-11-20  Bruno Haible  <bruno@clisp.org>
27200         sethostname: Fix doc about AIX.
27201         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
27202         sethostname; it has it.
27204         sethostname: Mention more portability problems.
27205         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
27206         problem.
27207         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27209 2011-11-19  Bruno Haible  <bruno@clisp.org>
27211         Depend on module fcntl-h when AT_FDCWD is used.
27212         * modules/utimens (Depends-on): Add fcntl-h.
27213         * modules/areadlinkat (Depends-on): Likewise.
27214         * modules/areadlinkat-with-size (Depends-on): Likewise.
27215         * modules/faccessat (Depends-on): Likewise.
27216         * modules/fchmodat (Depends-on): Likewise.
27217         * modules/fchownat (Depends-on): Likewise.
27218         * modules/getcwd (Depends-on): Likewise.
27219         * modules/mkdirat (Depends-on): Likewise.
27220         * modules/mkfifoat (Depends-on): Likewise.
27221         * modules/readlinkat (Depends-on): Likewise.
27222         * modules/symlinkat (Depends-on): Likewise.
27223         * modules/dup2-tests (Depends-on): Likewise.
27224         * modules/fdutimensat-tests (Depends-on): Likewise.
27225         * modules/futimens-tests (Depends-on): Likewise.
27227 2011-11-19  Bruno Haible  <bruno@clisp.org>
27229         euidaccess: Update a comment.
27230         * lib/euidaccess.c: Update comment about platforms with faccessat.
27232 2011-11-19  Bruno Haible  <bruno@clisp.org>
27234         openat: Fix file list.
27235         * modules/openat (Files): Remove lib/at-func.c.
27237 2011-11-19  Bruno Haible  <bruno@clisp.org>
27239         fstatat: Simplify.
27240         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
27241         gnulib should define rpl_fstatat, there is a
27242         "#define fstatat rpl_fstatat" in <sys/stat.h>.
27244 2011-11-19  Bruno Haible  <bruno@clisp.org>
27246         Ensure 'inline' can be used in tests/test-utimens-common.h.
27247         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
27248         * modules/futimens-tests (configure.ac): Likewise.
27249         * modules/utimens-tests (configure.ac): Likewise.
27250         * modules/utimensat-tests (configure.ac): Likewise.
27252 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27254         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
27255         not hash_insert0.
27256         (hash_insert_if_absent): Doc fix.
27258 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27260         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
27262 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27264         test-getcwd: disambiguate exit status
27265         * tests/test-getcwd.c (test_long_name): Return 0..7.
27266         (main): Exit with an unambiguous exit status.  The old
27267         code yielded a mysterious mixture of two failure codes.
27269         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
27270         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
27271         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
27272         rpl_fstatat or fstatat.  This should fix the other problem
27273         reported by Kai Habel in
27274         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27275         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
27276         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
27277         and I reproduced it on a Solaris 8 host we still have in production.
27279 2011-11-18  Jim Meyering  <meyering@redhat.com>
27281         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
27282         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
27283         Add a sentence to the comment.
27284         (hash_insert0): New function that simply calls hash_insert_if_absent.
27285         * lib/hash.h (hash_insert_if_absent): Declare it.
27286         (hash_insert0): Add deprecation attribute.
27287         (_GL_ATTRIBUTE_DEPRECATED): Define.
27288         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
27289         not hash_insert0.
27290         * NEWS: Mention it, even though it's not really an incompatible change.
27292 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
27294         openat: avoid compilation failure due to lack of <errno.h> inclusion
27295         * lib/openat.c: Include <errno.h>.
27297 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27299         * modules/getcwd (Depends-on): Add fdopendir.
27300         This fixes one of the two problems reported by Kai Habel in
27301         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27303         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
27304         stdalign problem reported by Ian Beckwith in
27305         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
27306         * modules/crypto/gc-arcfour (Depends-on):
27307         Depend conditionally on crypto/arcfour.
27308         * modules/crypto/gc-arctwo (Depends-on):
27309         Depend conditionally on crypto/arctwo.
27310         * modules/crypto/gc-des (Depends-on):
27311         Depend conditionally on crypto/des.
27312         * modules/crypto/gc-hmac-md5 (Depends-on):
27313         Depend conditionally on crypto/hmac-md5.
27314         * modules/crypto/gc-hmac-sha1 (Depends-on):
27315         Depend conditionally on crypto/hmac-sha1.
27316         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
27317         * modules/crypto/gc-md4 (Depends-on):
27318         Depend conditionally on crypto/md4.
27319         * modules/crypto/gc-md5 (Depends-on):
27320         Depend conditionally on crypto/md5.
27321         * modules/crypto/gc-rijndael (Depends-on):
27322         Depend conditionally on crypto/rijndael.
27323         * modules/crypto/gc-sha1 (Depends-on):
27324         Depend conditionally on crypto/sha1.
27325         * modules/crypto/gc-arcfour:
27326         * modules/crypto/gc-arctwo:
27327         * modules/crypto/gc-des:
27328         * modules/crypto/gc-hmac-md5:
27329         * modules/crypto/gc-hmac-sha1:
27330         * modules/crypto/gc-md2:
27331         * modules/crypto/gc-md4:
27332         * modules/crypto/gc-md5:
27333         * modules/crypto/gc-rijndael:
27334         * modules/crypto/gc-sha1:
27335         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
27336         now that the conditional dependencies do the work for us.
27338 2011-11-17  Jim Meyering  <meyering@redhat.com>
27340         tests: factor st_ctime-comparison out of two headers
27341         * tests/test-utimens-common.h (ctime_compare): Define.
27342         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
27343         * tests/test-lutimens.h (test_lutimens): Likewise.
27344         * tests/test-utimens.h (test_utimens): Likewise.
27346         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
27347         Invoke the test program via an init.sh-using wrapper.
27348         * tests/test-getcwd.sh: New file.
27349         * modules/getcwd-tests (Files): Add it.
27350         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
27352 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
27354         gitlog-to-changelog: support multi-author commits.
27355         The FSF cares about keeping track of all authors of patches to its
27356         projects, but Git doesn't provide obvious support for multi-author
27357         changesets. Consensus seems to be forming around the use of extra
27358         Signed-off-by inspired lines in the log message formatted as
27359         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
27360         multi-author commits between version control systems.
27361         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
27362         log message and output in standard ChangeLog multi-author format.
27363         Reported by Peter Rosin <peda@lysator.liu.se>
27365 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27366             Bruno Haible  <bruno@clisp.org>
27368         Fix some modules' file list.
27369         * modules/fstatat (Files): Add m4/lstat.m4.
27370         * modules/openat (Files): Likewise.
27371         * modules/unlinkat (Files): Likewise.
27373 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
27375         maint.mk: fix tight-scope.mk generation in VPATH builds.
27376         * top/maint.mk (tight-scope.mk): Make sure to prefix file
27377         reference with $(srcdir) so that the file is found correctly even
27378         when running `make syntax-check' in a VPATH build.
27380 2011-11-13  Bruno Haible  <bruno@clisp.org>
27381             Jim Meyering  <meyering@redhat.com>
27383         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
27384         * tests/init.sh (compare): Remove "No differences encountered" or
27385         synonymous output from the 'diff' program.
27387 2011-11-13  Bruno Haible  <bruno@clisp.org>
27389         Makefile: Tweak indentation.
27390         * Makefile: Use tab as first character in every line that contains rule
27391         commands.
27393 2011-11-13  Bruno Haible  <bruno@clisp.org>
27395         Syntax check for copyright statements.
27396         * check-copyright: New file.
27397         * Makefile (sc_check_copyright): New rule.
27399 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27401         * build-aux/git-version-gen: Add --prefix to configure the tag
27402         match string.
27404 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27406         * build-aux/git-version-gen: Add --help and --version.
27408 2011-11-12  Jim Meyering  <meyering@redhat.com>
27410         revamp the other test-exclude?.sh scripts to use init.sh, too
27411         * tests/test-exclude1.sh: Use init.sh.
27412         * tests/test-exclude2.sh: Likewise.
27413         * tests/test-exclude3.sh: Likewise.
27414         * tests/test-exclude4.sh: Likewise.
27415         * tests/test-exclude5.sh: Likewise.
27416         * tests/test-exclude6.sh: Likewise.
27417         * tests/test-exclude7.sh: Likewise.
27418         * tests/test-exclude8.sh: Likewise.
27419         * modules/exclude-tests (Files): List init.sh.
27421         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
27422         These shell scripts ignored failure of the binary test-exclude,
27423         so making the latter return 77 didn't cause them to be skipped.
27424         * tests/test-exclude5.sh: Exit with test-exclude's error status
27425         when that program fails.  Revamp to use init.sh.
27426         * tests/test-exclude2.sh: Likewise.
27428         test-exclude: fix a typo
27429         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
27431 2011-11-11  Bruno Haible  <bruno@clisp.org>
27433         obstack: Fix compilation error on MSVC 9.
27434         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
27436 2011-11-11  Jim Meyering  <meyering@redhat.com>
27438         test-exclude: skip tests rather than failing on deficient systems
27439         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
27440         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
27441         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
27442         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
27444 2011-11-10  Bruno Haible  <bruno@clisp.org>
27446         ptsname_r test: Avoid gcc warning on glibc systems.
27447         * tests/test-ptsname_r.c (null_ptr): New function.
27448         (test_errors): Use it.
27450 2011-11-10  Bruno Haible  <bruno@clisp.org>
27452         ptsname_r: Avoid compilation error on OSF/1 5.1.
27453         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
27454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
27455         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
27456         function is not declared or incompatibly declared.
27457         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
27458         * modules/ptsname_r (Depends-on, configure.ac): Update.
27459         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
27461 2011-11-10  Bruno Haible  <bruno@clisp.org>
27463         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
27464         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
27465         When cross-compiling, guess yes on all platforms except AIX.
27466         Reported by Ludovic Courtès <ludo@gnu.org>.
27468 2011-11-09  Bruno Haible  <bruno@clisp.org>
27470         ptsname_r tests: Fix bugs.
27471         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
27472         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
27474 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27476         fstatat: work with cross-compilation
27477         Problem reported by Ludovic Courtès in
27478         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
27479         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
27480         "cross-compiling" and assume the bug is present.  Replace
27481         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
27482         an inverted sense, to be more conservative about our assumptions.
27483         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
27485 2011-11-09  Bruno Haible  <bruno@clisp.org>
27487         Improve MODULES.html output.
27488         * modules/mkfifoat (Description): Use the word "function".
27489         * modules/readlinkat (Description): Likewise.
27490         * modules/symlinkat (Description): Likewise.
27492 2011-11-09  Eric Blake  <eblake@redhat.com>
27494         ptsname_r-tests: new test module
27495         * modules/ptsname_r-tests: New module.
27496         * tests/test-ptsname_r.c: New file.
27498         ptsname_r: new module
27499         * modules/ptsname_r: New module.
27500         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
27501         * lib/ptsname.c (__ptsname_r): Split...
27502         * lib/ptsname_r.c: ...into new file.
27503         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27504         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
27505         * modules/stdlib (Makefile.am): Substitute witnesses.
27506         * lib/stdlib.in.h (ptsname_r): Declare it.
27507         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
27508         * MODULES.html.sh (Misc): Likewise.
27509         * modules/ptsname (Depends-on): Alter dependency.
27510         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
27512 2011-11-09  Jim Meyering  <meyering@redhat.com>
27514         announce-gen: be more concise when there's only one URL+tarball
27515         * build-aux/announce-gen (get_tool_versions): When you distribute
27516         only one type of tarball, combine the first two "Here are..."
27517         sections and make the key-checking grammar independent of
27518         how many tarballs there are.
27520 2011-11-09  Eric Blake  <eblake@redhat.com>
27522         openpty: provide a stub on mingw
27523         * lib/pty.in.h (includes): Provide forward declarations.
27524         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
27526         raise: fix mingw handling of SIGPIPE
27527         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
27529 2011-11-08  Bruno Haible  <bruno@clisp.org>
27531         More conditional dependencies.
27532         * modules/faccessat (Depends-on): Add conditions.
27533         * modules/fchmodat (Depends-on): Likewise.
27534         * modules/fchownat (Depends-on): Likewise.
27535         * modules/fstatat (Depends-on): Likewise.
27536         * modules/mkfifoat (Depends-on): Likewise.
27537         * modules/readlinkat (Depends-on): Likewise.
27538         * modules/symlinkat (Depends-on): Likewise.
27539         * modules/unlinkat (Depends-on): Likewise.
27540         * modules/utimensat (Depends-on): Likewise.
27541         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
27542         * modules/linkat (Depends-on): Refine the conditions.
27543         * modules/renameat (Depends-on): Likewise.
27545 2011-11-08  Bruno Haible  <bruno@clisp.org>
27547         faccessat: Move AC_LIBOBJ invocation to module description.
27548         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
27549         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
27550         invocation from here...
27551         * modules/faccessat (configure.ac): ... to here. Invoke
27552         gl_PREREQ_FACCESSAT.
27554 2011-11-08  Bruno Haible  <bruno@clisp.org>
27556         faccessat: Simplify autoconf macro.
27557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
27558         gl_FUNC_EUIDACCESS.
27560 2011-11-08  Bruno Haible  <bruno@clisp.org>
27562         renameat: Fix dependencies.
27563         * modules/renameat (Depends-on): Add stdbool.
27565 2011-11-08  Bruno Haible  <bruno@clisp.org>
27567         mkfifoat: Fix module description.
27568         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
27569         not gl_UNISTD_MODULE_INDICATOR.
27571 2011-11-08  Bruno Haible  <bruno@clisp.org>
27573         fstatat: Remove unused dependency.
27574         * modules/fstatat (Depends-on): Remove fstat.
27576 2011-11-08  Simon Josefsson  <simon@josefsson.org>
27578         GNUmakefile: behave when Makefile is missing.
27579         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
27581 2011-11-08  Bruno Haible  <bruno@clisp.org>
27583         openat: Conditionalize dependencies.
27584         * lib/openat.c: Reduce the scope of some #includes.
27585         * modules/openat (Depends-on): Add conditions.
27587 2011-11-07  Jim Meyering  <meyering@redhat.com>
27589         maint.mk: extract GPG key ID without using a temporary file
27590         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
27591         without using a temporary file.  Based on a suggestion from Werner Koch
27592         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
27594 2011-11-07  Eric Blake  <eblake@redhat.com>
27596         grantpt: fix typo
27597         * lib/stdlib.in.h (grantpt): Check correct function.
27599         maint.mk: silence new syntax check
27600         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
27602 2011-11-06  Bruno Haible  <bruno@clisp.org>
27604         Doc about floating-point and math API.
27605         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
27606         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
27608 2011-11-06  Bruno Haible  <bruno@clisp.org>
27610         stdalign tests: Skip the test when compiled by Sun C.
27611         * tests/test-stdalign.c (main): Skip the test on Sun C.
27613 2011-11-06  Bruno Haible  <bruno@clisp.org>
27615         ansi-c++-opt: Complete the 2011-06-05 change.
27616         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
27617         does not support namespaces, set the variable to "no", not to ":".
27619 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27621         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
27623 2011-11-06  Bruno Haible  <bruno@clisp.org>
27625         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
27626         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
27627         (minus_zerol) [HP-UX]: New macro.
27628         (unary_minus) [HP-UX]: New function.
27629         (copysignl) [HP-UX]: Use unary_minus function.
27631 2011-11-06  Bruno Haible  <bruno@clisp.org>
27633         ldexp, ldexpf, ldexpl: Enhance tests.
27634         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
27635         and tests/test-ldexpl.c.
27636         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
27637         LDEXP, MIN_EXP, MAX_EXP): New macros.
27638         Include test-ldexp.h.
27639         (main): Just call test_function.
27640         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
27641         infinity.h, nan.h.
27642         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27643         MAX_EXP): New macros.
27644         Include test-ldexp.h.
27645         (x, y): Remove variables.
27646         (main): Just call test_function.
27647         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
27648         infinity.h, nan.h.
27649         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27650         MAX_EXP): New macros.
27651         Include test-ldexp.h.
27652         (x, y): Remove variables.
27653         (main): Just call test_function.
27654         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
27655         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
27656         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27657         (Depends-on): Add isnand-nolibm, signbit, float.
27658         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
27659         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27660         (Depends-on): Add isnanf-nolibm, signbit, float.
27662 2011-11-06  Bruno Haible  <bruno@clisp.org>
27664         math tests: Cosmetics.
27665         * tests/test-math-c++.cc: Reorder declarations.
27667 2011-11-05  Bruno Haible  <bruno@clisp.org>
27669         fma*: Simplify test.
27670         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
27671         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
27673         Tests for module 'fmal'.
27674         * modules/fmal-tests: New file.
27675         * tests/test-fmal1.c: New file.
27676         * tests/test-fmal2.c: New file.
27678         New module 'fmal'.
27679         * lib/math.in.h (fmal): New declaration.
27680         * lib/fmal.c: New file.
27681         * m4/fmal.m4: New file.
27682         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
27683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
27684         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
27685         REPLACE_FMAL.
27686         * modules/fmal: New file.
27687         * doc/posix-functions/fmal.texi: Mention the new module and the various
27688         bugs.
27690         Tests for module 'fmaf'.
27691         * modules/fmaf-tests: New file.
27692         * tests/test-fmaf1.c: New file.
27693         * tests/test-fmaf2.c: New file.
27695         New module 'fmaf'.
27696         * lib/math.in.h (fmaf): New declaration.
27697         * lib/fmaf.c: New file.
27698         * m4/fmaf.m4: New file.
27699         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
27700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
27701         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
27702         REPLACE_FMAF.
27703         * modules/fmaf: New file.
27704         * doc/posix-functions/fmaf.texi: Mention the new module and the various
27705         bugs.
27707         Tests for module 'fma'.
27708         * modules/fma-tests: New file.
27709         * tests/test-fma1.c: New file.
27710         * tests/test-fma1.h: New file.
27711         * tests/test-fma2.c: New file.
27712         * tests/test-fma2.h: New file.
27714         New module 'fma'.
27715         * lib/math.in.h (fma): New declaration.
27716         * lib/fma.c: New file.
27717         * m4/fma.m4: New file.
27718         * m4/fegetround.m4: New file.
27719         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
27720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
27721         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
27722         REPLACE_FMA.
27723         * modules/fma: New file.
27724         * doc/posix-functions/fma.texi: Mention the new module and the various
27725         bugs.
27727         Extend gl_MATHFUNC.
27728         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
27729         Support 'void' as argument type.
27730         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
27732 2011-11-05  Jim Meyering  <meyering@redhat.com>
27734         maint.mk: also prohibit inclusion of dirent.h without use
27735         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
27737 2011-11-05  Bruno Haible  <bruno@clisp.org>
27739         ldexpl tests: Avoid test failure on MSVC 9.
27740         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
27741         value. Needed in order to enforce the conversion from a value greater
27742         than LDBL_MAX to Infinity.
27744 2011-11-05  Bruno Haible  <bruno@clisp.org>
27746         New modules 'at-internal', 'openat-h', split off from module 'openat'.
27747         * modules/at-internal: New file, extracted from modules/openat.
27748         * modules/openat-h: New file.
27749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
27750         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
27751         * modules/openat (Description): Add reference to POSIX function.
27752         (Files): Remove lib/openat.h, lib/openat-proc.c.
27753         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
27754         intprops, unistd.
27755         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
27756         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
27757         gl_FCNTL_MODULE_INDICATOR.
27758         (Include): Remove unistd.h, openat.h.
27759         * modules/areadlinkat (Files): Add lib/at-func.c.
27760         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27761         openat-die, openat-h, save-cwd.
27762         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
27763         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27764         openat-die, openat-h, save-cwd, unistd.
27765         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
27766         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27767         openat-h, save-cwd. Remove fcntl-h, openat.
27768         * modules/fchmodat (Files): Remove lib/openat.h.
27769         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27770         openat, stdbool, unistd.
27771         * modules/fchownat (Files): Remove lib/openat.h.
27772         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27773         openat, stdbool, sys_stat.
27774         * modules/fdopendir (Files): Remove lib/openat-priv.h,
27775         lib/openat-proc.c.
27776         (Depends-on): Add at-internal.
27777         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
27778         * modules/fstatat (Files): Remove lib/openat.h.
27779         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27780         stdbool, unistd.
27781         * modules/fts (Depends-on): Add openat-h.
27782         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
27783         openat.
27784         * modules/mkdirat (Files): Remove lib/openat.h.
27785         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27786         openat, stdbool, sys_stat.
27787         * modules/mkfifoat (Files): Add lib/at-func.c.
27788         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27789         openat-h, save-cwd. Remove fcntl-h, openat.
27790         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
27791         * modules/readlinkat (Files): Add lib/at-func.c.
27792         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27793         openat-h, save-cwd. Remove fcntl-h, openat.
27794         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
27795         openat.
27796         * modules/selinux-at (Files): Add lib/at-func.c.
27797         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27798         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
27799         * modules/symlinkat (Files): Add lib/at-func.c.
27800         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27801         openat-h, save-cwd. Remove fcntl-h, openat.
27802         * modules/unlinkat (Files): Remove lib/openat.h.
27803         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27804         stdbool.
27805         * modules/utimensat (Files): Add lib/at-func.c.
27806         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
27807         openat-die, openat-h, save-cwd.
27808         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
27809         * modules/fdutimensat-tests (Depends-on): Add openat.
27810         * modules/fstatat-tests (Depends-on): Add openat-h.
27811         * modules/readlinkat-tests (Depends-on): Add openat.
27812         * modules/symlinkat-tests (Depends-on): Add openat.
27814 2011-11-05  Bruno Haible  <bruno@clisp.org>
27816         openat: Include <stdbool.h>.
27817         * lib/openat.c: Include <stdbool.h>.
27819 2011-11-04  Bruno Haible  <bruno@clisp.org>
27821         fchownat, renameat, unlinkat: Fix dependencies.
27822         * modules/fchownat (Depends-on): Add fstatat.
27823         * modules/renameat (Depends-on): Likewise.
27824         * modules/unlinkat (Depends-on): Likewise.
27826 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27828         openat: remove direct dependency on dirent
27829         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
27830         and hasn't been needed ever since fdopendir was split into its own
27831         module on 2009-08-31.
27832         * modules/openat (Depends-on): Remove dirent.
27834 2011-11-04  Bruno Haible  <bruno@clisp.org>
27836         renameat: Optimize code size.
27837         * modules/renameat (configure.ac): Don't compile at-func2.c if
27838         REPLACE_RENAMEAT is 1.
27840 2011-11-04  Bruno Haible  <bruno@clisp.org>
27842         openat tests: Fix file list.
27843         * modules/openat-tests (Files): Add tests/test-open.h.
27845 2011-11-04  Bruno Haible  <bruno@clisp.org>
27847         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
27848         * modules/fchmodat (Depends-on): Add openat-die.
27849         * modules/fchownat (Depends-on): Likewise.
27850         * modules/linkat (Depends-on): Likewise.
27851         * modules/renameat (Depends-on): Likewise.
27852         * modules/openat (Depends-on): Add dirent.
27854 2011-11-04  Jim Meyering  <meyering@redhat.com>
27856         at-func*.c: fix comments
27857         * lib/at-func2.c: Correct/improve first-line comment.
27858         * lib/at-func.c: Correct grammar in first-line comment.
27860 2011-11-04  Bruno Haible  <bruno@clisp.org>
27862         New module 'mkdirat', split off from module 'openat'.
27863         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27865         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27866         * modules/mkdirat: New file, extracted from modules/openat.
27867         * modules/openat (Files): Remove lib/mkdirat.c.
27868         (Depends-on): Remove mkdir.
27869         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27870         (Include): Remove <sys/stat.h>.
27871         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27872         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27873         tests/test-mkdir.h.
27874         (Depends-on): Remove ignore-value.
27875         (Makefile.am): Remove rules for test-mkdirat.
27876         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27877         of module 'openat'.
27878         * NEWS: Mention the change.
27880 2011-11-04  Bruno Haible  <bruno@clisp.org>
27882         closedir: Avoid warning on mingw.
27883         * lib/closedir.c: Include <unistd.h>.
27885 2011-11-04  Bruno Haible  <bruno@clisp.org>
27887         New module 'fstatat', split off from module 'openat'.
27888         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27889         defined.
27890         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27892         gl_FUNC_FSTATAT.
27893         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27894         * modules/fstatat: New file, extracted from modules/openat.
27895         * modules/openat (Files): Remove lib/fstatat.c.
27896         (Depends-on): Remove lstat.
27897         (configure.ac): Remove AC_LIBOBJ of fstatat.
27898         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27899         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27900         tests/test-lstat.h, tests/test-stat.h.
27901         (Depends-on): Remove getcwd-lgpl.
27902         (Makefile.am): Remove rules for test-fstatat.
27903         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27904         of module 'openat'.
27905         * NEWS: Mention the change.
27906         * modules/getcwd (Depends-on): Add fstatat.
27907         * modules/linkat (Depends-on): Likewise.
27908         * modules/mkfifoat-tests (Depends-on): Likewise.
27909         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27911 2011-11-03  Bruno Haible  <bruno@clisp.org>
27913         New module 'unlinkat', split off from module 'openat'.
27914         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27916         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27917         * modules/unlinkat: New file, extracted from modules/openat. Correct
27918         the dependency conditions.
27919         * modules/openat (Files): Remove lib/unlinkat.c.
27920         (Depends-on): Remove rmdir, unlink.
27921         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27922         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27923         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27924         tests/test-rmdir.h, tests/test-unlink.h.
27925         (Depends-on): Remove unlinkdir.
27926         (Makefile.am): Remove rules for test-unlinkat.
27927         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27928         of module 'openat'.
27929         * NEWS: Mention the change.
27930         * modules/linkat-tests (Depends-on): Add unlinkat.
27931         * modules/mkfifoat-tests (Depends-on): Likewise.
27932         * modules/readlinkat-tests (Depends-on): Likewise.
27934 2011-11-02  Bruno Haible  <bruno@clisp.org>
27936         New module 'fchmodat', split off from module 'openat'.
27937         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27938         defined.
27939         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27941         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27942         * modules/fchmodat: New file, extracted from modules/openat.
27943         * modules/openat (Files): Remove lib/fchmodat.c.
27944         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27945         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27946         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27947         (Makefile.am): Remove rules for test-fchmodat.
27948         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27949         of module 'openat'.
27950         * NEWS: Mention the change.
27952 2011-11-02  Jim Meyering  <meyering@redhat.com>
27954         putenv: indent #definition of "environ" to placate cppi
27955         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27957         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27958         Git logs are often treated as immutable, because editing them
27959         changes the SHA1 checksums of all descendants.  Thus, errors in
27960         git logs tend to stay there forever.  However, when we generate
27961         a ChangeLog file -- typically for distribution -- from that git log,
27962         we can actually make corrections in the generated file.  The key
27963         lies in recording in machine-readable/applicable form the desired
27964         corrections.  See --help for description and an example.
27965         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27966         (usage): Describe it; alphabetize option descriptions.
27967         (main): Honor the new option, carefully.
27969 2011-11-01  Jim Meyering  <meyering@redhat.com>
27971         gitlog-to-changelog: avoid an infloop
27972         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27973         that ends up being empty.
27975 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27977         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27978         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27979         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27980         contains (possibly-quoted) backslashes.  This should avoid
27981         all-too-common shell bugs if COMPLICATED contains backslashes in
27982         the "wrong" places.  Reported by David Evans in
27983         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27984         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27985         because we want ASCII ranges.  Is there some reason we don't use
27986         the C locale everywhere in this script?
27987         (func_module, top level): Avoid unwanted pathname expansion when
27988         $repo_url_prefix or $repo_url_suffix_repl contain shell
27989         metacharacters like '?' and '*'.
27991 2011-11-01  Bruno Haible  <bruno@clisp.org>
27993         fchownat: Improve description.
27994         * modules/fchownat (Description): Add link to function.
27996 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27998         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27999         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
28000         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
28001         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
28003 2011-11-01  Bruno Haible  <bruno@clisp.org>
28005         alignof: Avoid collision with stdalign module.
28006         * lib/alignof.h (alignof): Remove macro.
28007         * NEWS: Mention the change.
28008         Reported by Paul Eggert.
28010 2011-11-01  Bruno Haible  <bruno@clisp.org>
28012         New module 'fchownat', split off from module 'openat'.
28013         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
28014         defined.
28015         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
28016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
28017         invoke gl_FUNC_FCHOWNAT.
28018         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
28019         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
28020         * modules/fchownat: New file, extracted from modules/openat.
28021         * modules/openat (Files): Remove lib/fchownat.c.
28022         (Depends-on): Remove lchown.
28023         (configure.ac): Remove AC_LIBOBJ of fchownat.
28024         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
28025         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
28026         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
28027         (Depends-on): Remove mgetgroups, usleep, stat-time.
28028         (configure.ac): Remove test for getegid.
28029         (Makefile.am): Remove rules for test-fchownat.
28030         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
28031         of module 'openat'.
28032         * NEWS: Mention the change.
28034 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28036         stdalign: port better to MSVC and to Sun C 5.11
28037         This fixes some of the problems reported by Bruno Haible in
28038         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
28039         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
28040         shortcomings of MSVC and of Sun C 5.11.
28041         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
28042         around __declspec arg.
28043         * modules/stdalign-tests (Files): Add tests/macros.h.
28044         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
28045         Include macros.h, for ASSERT.
28046         (DECLARE_ALIGNED): Remove.
28047         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
28048         to catch bug), and to 1 if not (simplifies the rest of the code).
28049         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
28050         (CHECK_AUTO): Remove.
28051         (CHECK_ALIGNED): Check only the alignment of the static vars,
28052         since auto var alignment isn't supported by Sun C 5.11.
28053         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
28054         ASSERT failures are easier to diagnose.
28056 2011-10-31  Bruno Haible  <bruno@clisp.org>
28058         doc about some IRIX 5.3 problems.
28059         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
28060         on IRIX 5.3.
28061         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
28062         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
28063         5.3.
28064         * doc/posix-functions/grantpt.texi: Likewise.
28065         * doc/posix-functions/unlockpt.texi: Likewise.
28066         * doc/posix-functions/lgamma.texi: Likewise.
28067         * doc/posix-functions/nextafter.texi: Likewise.
28068         * doc/posix-functions/remainder.texi: Likewise.
28069         * doc/posix-functions/select.texi: Mention misplaced declaration on
28070         IRIX 5.3.
28071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28073 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
28075         gitlog-to-changelog: fix git-log invocation.
28076         git-log mishandles date strings before 1970-01-01 UTC, and there is
28077         no use to specify --since=1970-01-01 by default anyway.
28078         * build-aux/gitlog-to-changelog: By default, when no --since option
28079         was given, do not specify explicit --since option to git-log.
28081 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
28083         gitlog-to-changelog: new option --append-dot.
28084         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
28085         first non-blank line of each commit message terminated with a dot.
28087 2011-10-30  Bruno Haible  <bruno@clisp.org>
28089         ffsl, ffsll: Avoid compilation error due to 'restrict'.
28090         * lib/ffsl.h: Include <config.h>.
28091         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
28093 2011-10-30  Jim Meyering  <meyering@redhat.com>
28095         GNUmakefile: reenable "make syntax-check" for most projects
28096         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
28097         build-aux variable", "syntax-check" would do nothing but succeed with
28098         the "No version control files detected..." diagnostic (unless you
28099         happened to override _build-aux via cfg.mk).
28100         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
28101         to precede inclusion of maint.mk.  Otherwise, these variables would
28102         be used undefined in any project that does not override the default.
28104 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
28106         gitlog-to-changelog: treat a message with only blank lines as empty.
28107         * build-aux/gitlog-to-changelog: Move the code that removes leading and
28108         trailing blank lines before the code that issues a warning about an
28109         empty commit message.
28111 2011-10-30  Jim Meyering  <meyering@redhat.com>
28113         test-parse-datetime.c: avoid new DST-related false positive test failure
28114         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
28115         based on the time/date we'll convert, not the current time.
28116         Otherwise, the moment we cross a DST boundary like today's in
28117         Europe, (CEST to CET), that offset ends up being one hour off.
28119 2011-10-27  Bruno Haible  <bruno@clisp.org>
28121         fstat: Tweak documentation.
28122         * modules/fstat (Description): More precise description.
28124 2011-10-27  Bruno Haible  <bruno@clisp.org>
28126         Update documentation regarding 'largefile' module.
28127         * doc/posix-functions/fstat.texi: Tweak wording.
28128         * doc/posix-functions/opendir.texi: Mention that the module fixes the
28129         problems with huge directories and/or small ino_t types.
28130         * doc/posix-functions/readdir.texi: Likewise.
28131         * doc/posix-functions/rewinddir.texi: Likewise.
28133 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
28135         maint.mk: don't maintain a second build-aux variable.
28136         * maint.mk (build_aux): Removed.  The maintainer-makefile module
28137         depends on GNUmakefile, which already maintains a cfg.mk
28138         overridable $(_build-aux) for projects with a non-standard
28139         build-aux directory location, although without the $(srcdir)
28140         prefix.  Use that variable consistently instead of introducing a
28141         second one.  Adjust all call sites.
28143 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
28145         Add stdalign module and use it in other modules.
28146         This is based on a previous proposal by Bruno Haible
28147         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
28149         stdalign: new module
28150         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
28151         * modules/stdalign: New files.
28152         * MODULES.html.sh (c1x_core_properties): Add stdalign.
28153         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
28155         stdalign-tests: new module
28156         * modules/stdalign-tests, tests/test-stdalign.c: New files.
28158         argp: use stdalign
28159         * lib/argp-parse.c: Include <stdalign.h>.
28160         (alignof): Remove.
28161         * modules/argp (Depends-on): Add stdalign.
28163         crypto libraries: use stdalign
28164         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
28165         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
28166         Do not include <stdlib.h> twice, in md4.c.
28167         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
28168         because we are accessing a pointer's bit-pattern, not a size.
28169         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
28170         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
28171         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
28172         * modules/crypto/sha512: Likewise.
28174         sys_socket: use stdalign, not alignof
28175         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
28176         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
28178 2011-10-27  Bruno Haible  <bruno@clisp.org>
28180         raise test: Avoid a test failure on Linux/MIPS.
28181         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
28182         because 99 is a valid signal on Linux/MIPS.
28184 2011-10-27  Bruno Haible  <bruno@clisp.org>
28186         nonblocking tests: Fix test failure on Linux/MIPS.
28187         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
28188         Set to 270000.
28190 2011-10-27  Bruno Haible  <bruno@clisp.org>
28192         utimensat: Work around problem on Linux/hppa.
28193         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
28194         values.
28195         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
28197 2011-10-25  Jim Meyering  <meyering@redhat.com>
28199         maint.mk: fix a bug in sc_prohibit_stddef_without_use
28200         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
28201         after symbols like NULL, size_t, etc.
28202         Reported by Alfred M. Szmidt.
28204         maint.mk: exempt ENODATA from a syntax-check rule
28205         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
28206         from the sc_prohibit_always-defined_macros syntax-check rule.
28207         Add a comment.  See this for more details:
28208         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
28210 2011-10-23  Jim Meyering  <meyering@redhat.com>
28212         fts: close parent dir FD before returning from post-traversal fts_read
28213         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
28214         unlink A, even though an FD open on A remained.  This is suboptimal
28215         (holding a file descriptor open longer than needed), but otherwise not
28216         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
28217         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
28218         that represents a real problem: it causes the removal of A to fail
28219         with e.g., "rm: cannot remove `A': Device or resource busy"
28221         fts visits each directory twice and keeps a cache (fts_fd_ring) of
28222         directory file descriptors.  After completing the final, FTS_DP,
28223         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
28224         cache, but then proceeded to add a new FD to it via the subsequent
28225         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
28226         final file descriptor would be closed only via fts_close's call to
28227         fd_ring_clear.  Now, it is usually closed earlier, via the final
28228         FTS_DP-returning fts_read call.
28229         * lib/fts.c (restore_initial_cwd): New function, converted from
28230         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
28231         Update callers.
28232         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
28233         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
28235 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
28236             Bruno Haible  <bruno@clisp.org>
28237             Jim Meyering  <jim@meyering.net>
28239         readme-release: improve safety of release prep instructions.
28240         * README-release: Don't git pull all branches when only master
28241         is needed for the release process.
28242         Run make maintainer-clean before changing trees and merging.
28243         Don't try to run ./configure right after git pull in case files
28244         that influence the bootstrap process have changed, move the
28245         ./configure step to after running ./bootstrap.
28246         Don't bootstrap "one last time"... it's the first time!
28248 2011-10-22  Bruno Haible  <bruno@clisp.org>
28250         errno, strerror-override: Support for MSVC 10.
28251         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
28252         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
28253         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
28254         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
28255         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
28256         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
28257         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
28258         Assign values compatible with MSVC 10.
28259         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
28260         New macros.
28261         (GNULIB_defined_EWINSOCK): New macro.
28262         * lib/strerror-override.c (strerror_override): Update accordingly.
28263         * lib/strerror-override.h: Likewise.
28264         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
28265         longer equal to the corresponding errno value.
28266         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28268 2011-10-22  Bruno Haible  <bruno@clisp.org>
28270         perror: Recognize when test program crashes.
28271         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
28272         strerror, set gl_cv_func_perror_works to no.
28273         Reported by Daniel Richard G. <skunk@iskunk.org>.
28275         perror: Fix indentation.
28276         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
28278 2011-10-22  Bruno Haible  <bruno@clisp.org>
28280         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
28281         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
28282         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
28283         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
28284         functions, not as a macro.
28285         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
28286         macros.
28287         (isfinite, isinf, isnan, signbit): Check overloaded functions and
28288         absence of macro.
28289         Suggested by Eric Blake.
28290         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28292 2011-10-21  Bruno Haible  <bruno@clisp.org>
28294         relocatable-prog-wrapper: Don't leave object files behind.
28295         * build-aux/install-reloc: Re-synchronize list of .o files to be
28296         removed with list of compilation units.
28298 2011-10-20  Bruno Haible  <bruno@clisp.org>
28300         openpty, posix_openpt: Remove code duplication.
28301         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
28302         * lib/openpty.c: Include <stdlib.h>.
28303         (openpty): Use posix_openpt on all platforms except IRIX.
28304         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
28306 2011-10-20  Bruno Haible  <bruno@clisp.org>
28308         unlockpt: Detect invalid argument.
28309         * lib/unlockpt.c: Include <fcntl.h>.
28310         (unlockpt): Check whether fd is valid, using fcntl().
28311         * modules/unlockpt (Depends-on): Add fcntl-h.
28313 2011-10-20  Bruno Haible  <bruno@clisp.org>
28315         openpty: Avoid compilation error on AIX 6.1.
28316         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
28318 2011-10-20  Bruno Haible  <bruno@clisp.org>
28320         posix_openpt: Support for OpenBSD.
28321         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
28322         (posix_openpt) [OpenBSD]: New code.
28323         * lib/grantpt.c: Include <fcntl.h>.
28324         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
28325         * modules/grantpt (Depends-on): Add fcntl-h.
28327 2011-10-20  Bruno Haible  <bruno@clisp.org>
28329         posix_openpt test: Coding style.
28330         * tests/test-posix_openpt.c: Use GNU coding style.
28332 2011-10-20  Bruno Haible  <bruno@clisp.org>
28334         grantpt: Support --avoid=pt_chown.
28335         * modules/grantpt (Files): Add lib/pty-private.h.
28337 2011-10-20  Bruno Haible  <bruno@clisp.org>
28339         posix_openpt: Fix autoconf macro.
28340         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
28341         unneeded check for _getpty.
28343 2011-10-20  Bruno Haible  <bruno@clisp.org>
28345         openpty: Update comments.
28346         * lib/openpty.c: Add comments about Minix.
28348 2011-10-19  Eric Blake  <eblake@redhat.com>
28350         openpty: relax license
28351         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
28353         pt_chown: use configmake to simplify build
28354         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
28356         ptsname and others: relax license
28357         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
28358         * modules/unlockpt (License): Likewise.
28359         * modules/pt_chown (License): Likewise.
28360         * modules/ptsname (License): Likewise.
28361         * modules/ttyname_r (License): Likewise.
28363 2011-10-19  Jim Meyering  <meyering@redhat.com>
28365         posix_openpt: remove spurious #endif
28366         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
28368 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
28370         maint.mk: Respect $(build_aux) in web-manual rule.
28371         * top/maint.mk (web-manual): Find gen-announce script in user's
28372         $(build_aux) directory instead of hard-coding 'build-aux'.
28374 2011-10-19  Bruno Haible  <bruno@clisp.org>
28376         posix_openpt: Fix compilation error.
28377         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
28378         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
28379         Mention the openpty module as an alternative.
28381 2011-10-19  Bruno Haible  <bruno@clisp.org>
28383         Support for old NeXTstep 3.3 frexp().
28384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
28385         execution time of the test to 5 seconds.
28386         Reported by Daniel Richard G. <skunk@iskunk.org>.
28388 2011-10-19  Bruno Haible  <bruno@clisp.org>
28390         Support for old NeXTstep 3.3 sed.
28391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
28392         part, use /.../, not \|...|. Escape periods in the header file name.
28393         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28394         Reported by Daniel Richard G. <skunk@iskunk.org>.
28396 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28398         Support for old NeXTstep 3.3 gcc.
28399         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
28400         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
28401         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
28402         * lib/spawn.in.h (_Restrict_arr_): Likewise.
28403         * lib/regex.h (_Restrict_arr_): Likewise.
28404         * lib/regex_internal.h (re_token_t): Likewise.
28405         * lib/regexec.c (check_node_accept_bytes): Likewise.
28406         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
28408 2011-10-18  Eric Blake  <eblake@redhat.com>
28410         posix_openpt: new module
28411         * modules/posix_openpt: New module.
28412         * m4/posix_openpt.m4: New file.
28413         * lib/posix_openpt.c: Likewise.
28414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
28415         (gl_STDLIB_H_DEFAULTS): Set defaults.
28416         * modules/stdlib (Makefile.am): Substitute macros.
28417         * lib/stdlib.in.h (posix_openpt): Declare.
28418         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
28419         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
28420         * modules/posix_openpt-tests: New test module.
28421         * tests/test-posix_openpt.c: New test.
28423 2011-10-15  Bruno Haible  <bruno@clisp.org>
28425         xstrtoll: Fix compilation failure.
28426         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
28427         from lib/strtol.c.
28428         * doc/posix-headers/limits.texi: Mention missing numerical limits on
28429         some platforms.
28430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28432 2011-10-15  Bruno Haible  <bruno@clisp.org>
28434         vasnprintf: Optimize bit search operation.
28435         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
28436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
28437         gl_DOUBLE_EXPONENT_LOCATION.
28438         * modules/vasnprintf (Files): Add m4/exponentd.m4.
28439         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28440         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28441         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28442         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28443         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28444         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28445         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28446         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
28448 2011-10-15  Bruno Haible  <bruno@clisp.org>
28450         vasnprintf: Fix comments.
28451         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
28453 2011-10-14  Bruno Haible  <bruno@clisp.org>
28455         Tests for module 'integer_length_ll'.
28456         * modules/integer_length_ll-tests: New file.
28457         * tests/test-integer_length_ll.c: New file.
28459         New module 'integer_length_ll'.
28460         * lib/integer_length_ll.c: New file.
28461         * modules/integer_length_ll: New file.
28463 2011-10-14  Bruno Haible  <bruno@clisp.org>
28465         Tests for module 'integer_length_l'.
28466         * modules/integer_length_l-tests: New file.
28467         * tests/test-integer_length_l.c: New file.
28469         New module 'integer_length_l'.
28470         * lib/integer_length_l.c: New file.
28471         * modules/integer_length_l: New file.
28473 2011-10-14  Bruno Haible  <bruno@clisp.org>
28475         Tests for module 'integer_length'.
28476         * modules/integer_length-tests: New file.
28477         * tests/test-integer_length.c: New file.
28479         New module 'integer_length'.
28480         * lib/integer_length.h: New file.
28481         * lib/integer_length.c: New file.
28482         * modules/integer_length: New file.
28484 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28486         popen: Fix dependency conditions.
28487         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
28489 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28491         perror: Fix autoconf test.
28492         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
28493         <stdlib.h> and <string.h>.
28495 2011-10-14  Bruno Haible  <bruno@clisp.org>
28497         ffsl: Optimize on 64-bit platforms.
28498         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
28499         unrolling.
28501 2011-10-13  Bruno Haible  <bruno@clisp.org>
28503         ffsl: Optimize on 32-bit platforms.
28504         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
28505         use ffs() without a loop.
28507         ffsl, ffsll: Optimize for GCC.
28508         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
28509         * lib/ffsl.c (GCC_BUILTIN): New macro.
28510         * lib/ffsll.c (GCC_BUILTIN): Likewise.
28512 2011-10-13  Bruno Haible  <bruno@clisp.org>
28514         ffs, bcopy, memset: Support symbol renaming via config.h.
28515         * lib/ffs.c: Include <config.h>.
28516         * lib/bcopy.c: Likewise.
28517         * lib/memset.c: Likewise.
28519 2011-10-10  Bruno Haible  <bruno@clisp.org>
28521         atanl: Simplify for platforms where 'long double' == 'double'.
28522         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28523         alternative implementation.
28524         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28525         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28526         * modules/atanl (Depends-on): Add atan. Update conditions.
28528 2011-10-10  Bruno Haible  <bruno@clisp.org>
28530         acosl: Simplify for platforms where 'long double' == 'double'.
28531         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28532         alternative implementation.
28533         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28534         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28535         * modules/acosl (Depends-on): Add acos. Update conditions.
28537 2011-10-10  Bruno Haible  <bruno@clisp.org>
28539         asinl: Simplify for platforms where 'long double' == 'double'.
28540         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28541         alternative implementation.
28542         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28543         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28544         * modules/asinl (Depends-on): Add asin. Update conditions.
28546 2011-10-10  Bruno Haible  <bruno@clisp.org>
28548         tanl: Simplify for platforms where 'long double' == 'double'.
28549         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28550         implementation.
28551         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28552         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28553         * modules/tanl (Depends-on): Add tan. Update conditions.
28554         (configure.ac): Don't compile trigl.c if
28555         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28557 2011-10-10  Bruno Haible  <bruno@clisp.org>
28559         cosl: Simplify for platforms where 'long double' == 'double'.
28560         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28561         implementation.
28562         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28563         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28564         * modules/cosl (Depends-on): Add cos. Update conditions.
28565         (configure.ac): Don't compile sincosl.c and trigl.c if
28566         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28568 2011-10-10  Bruno Haible  <bruno@clisp.org>
28570         sinl: Simplify for platforms where 'long double' == 'double'.
28571         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28572         implementation.
28573         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28574         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28575         * modules/sinl (Depends-on): Add sin. Update conditions.
28576         (configure.ac): Don't compile sincosl.c and trigl.c if
28577         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28579 2011-10-10  Bruno Haible  <bruno@clisp.org>
28581         logl: Simplify for platforms where 'long double' == 'double'.
28582         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28583         implementation.
28584         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28585         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28586         * modules/logl (Depends-on): Add log. Update conditions.
28588 2011-10-10  Bruno Haible  <bruno@clisp.org>
28590         expl: Simplify for platforms where 'long double' == 'double'.
28591         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28592         implementation.
28593         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28594         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28595         * modules/expl (Depends-on): Add exp. Update conditions.
28597 2011-10-10  Bruno Haible  <bruno@clisp.org>
28599         sqrtl: Simplify for platforms where 'long double' == 'double'.
28600         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28601         alternative implementation.
28602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28603         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28604         * modules/sqrtl (Depends-on): Update conditions.
28606 2011-10-10  Bruno Haible  <bruno@clisp.org>
28608         ldexpl: Simplify for platforms where 'long double' == 'double'.
28609         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28610         alternative implementation.
28611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28612         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28613         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
28615 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
28617         ffsll: set correct witness
28618         * modules/ffsll (configure.ac): Fix typo.
28620 2011-10-10  Bruno Haible  <bruno@clisp.org>
28622         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
28623         * lib/printf-frexpl.c: Include <config.h>.
28624         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28625         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
28626         second time.
28627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
28628         gl_LONG_DOUBLE_VS_DOUBLE.
28629         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
28630         conditions.
28632 2011-10-10  Bruno Haible  <bruno@clisp.org>
28634         frexpl: Simplify for platforms where 'long double' == 'double'.
28635         * lib/frexpl.c: Include <config.h>.
28636         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28637         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28638         time.
28639         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28640         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28641         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
28642         * modules/frexpl (Depends-on): Add frexp. Update conditions.
28643         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
28644         conditions.
28646 2011-10-10  Jim Meyering  <meyering@redhat.com>
28648         test-renameat: don't leave behind a temporary file
28649         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
28650           ERROR: files left in build directory after distclean:
28651           ./gltests/test-renameat.too
28652           make[1]: *** [distcleancheck] Error 1
28653         Reported by Tom G. Christensen.
28655 2011-10-09  Bruno Haible  <bruno@clisp.org>
28657         rint: Determine RINT_LIBM correctly on AIX 7.
28658         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
28659         directly, not only through a function pointer. Also accept an optional
28660         4th argument with extra code.
28661         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
28662         rintf() call by gcc when optimizing.
28664         mathfunc.m4: Refactor.
28665         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
28666         m4 variable.
28668 2011-10-09  Bruno Haible  <bruno@clisp.org>
28670         rintl: Simplify for platforms where 'long double' == 'double'.
28671         * lib/rintl.c: Include <config.h>.
28672         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28673         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28674         time.
28675         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28676         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28677         * modules/rintl (Depends-on): Add rint. Update conditions.
28679 2011-10-09  Bruno Haible  <bruno@clisp.org>
28681         roundl: Simplify for platforms where 'long double' == 'double'.
28682         * lib/roundl.c: Include <config.h>.
28683         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28684         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28685         time.
28686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28687         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28688         * modules/roundl (Depends-on): Add round. Update conditions.
28690 2011-10-09  Bruno Haible  <bruno@clisp.org>
28692         truncl: Simplify for platforms where 'long double' == 'double'.
28693         * lib/truncl.c: Include <config.h>.
28694         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28695         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28696         time.
28697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28698         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28699         * modules/truncl (Depends-on): Add trunc. Update conditions.
28701 2011-10-09  Bruno Haible  <bruno@clisp.org>
28703         ceill: Simplify for platforms where 'long double' == 'double'.
28704         * lib/ceill.c: Include <config.h>.
28705         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28706         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28707         time.
28708         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28709         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28710         * modules/ceill (Depends-on): Add ceil. Update conditions.
28712 2011-10-09  Bruno Haible  <bruno@clisp.org>
28714         floorl: Simplify for platforms where 'long double' == 'double'.
28715         * lib/floorl.c: Include <config.h>.
28716         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28717         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28718         time.
28719         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28720         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28721         * modules/floorl (Depends-on): Add floor. Update conditions.
28723 2011-10-09  Bruno Haible  <bruno@clisp.org>
28725         rint: Fix ordering constraints.
28726         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
28727         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
28728         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
28730 2011-10-09  Bruno Haible  <bruno@clisp.org>
28732         copysignl: Simplify for platforms where 'long double' == 'double'.
28733         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28734         alternative.
28735         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28736         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28737         * modules/copysignl (Depends-on): Add copysign. Update conditions.
28739 2011-10-09  Bruno Haible  <bruno@clisp.org>
28741         Tests for module 'rintl'.
28742         * modules/rintl-tests: New file.
28743         * tests/test-rintl.c: New file.
28745         New module 'rintl'.
28746         * lib/math.in.h (rintl): New declaration.
28747         * lib/rintl.c: New file.
28748         * m4/rintl.m4: New file.
28749         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
28750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
28751         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
28752         * modules/rintl: New file.
28753         * tests/test-math-c++.cc: Check the declaration of rintl.
28754         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28755         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
28756         * doc/posix-functions/rintl.texi: Mention the new module.
28758 2011-10-09  Bruno Haible  <bruno@clisp.org>
28760         Tests for module 'rintf'.
28761         * modules/rintf-tests: New file.
28762         * tests/test-rintf.c: New file.
28764         New module 'rintf'.
28765         * lib/math.in.h (rintf): New declaration.
28766         * lib/rintf.c: New file.
28767         * m4/rintf.m4: New file.
28768         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
28769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
28770         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
28771         * modules/rintf: New file.
28772         * tests/test-math-c++.cc: Check the declaration of rintf.
28773         * doc/posix-functions/rintf.texi: Mention the new module.
28775 2011-10-09  Bruno Haible  <bruno@clisp.org>
28777         rint: Support for MSVC.
28778         * lib/math.in.h (rint): New declaration.
28779         * lib/rint.c: New file.
28780         * m4/rint.m4: New file.
28781         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
28782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
28783         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
28784         * modules/rint (Description): Fix.
28785         (Files): Add lib/rint.c, m4/rint.m4.
28786         (Depends-on): Add math.
28787         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
28788         gl_MATH_MODULE_INDICATOR.
28789         * tests/test-math-c++.cc: Check the declaration of rint.
28790         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28791         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
28792         * doc/posix-functions/rint.texi: Mention the replacement provided by
28793         the module.
28795         rint tests: More tests.
28796         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
28797         minus-zero.h, infinity.h, nan.h.
28798         (main): Skip the test if the current rounding mode is not standard. Add
28799         tests for negative numbers, minus zero, infinity, NaN.
28800         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
28801         tests/nan.h.
28802         (Depends-on): Add isnand-nolibm.
28804 2011-10-09  Bruno Haible  <bruno@clisp.org>
28806         Tests for module 'copysignl'.
28807         * modules/copysignl-tests: New file.
28808         * tests/test-copysignl.c: New file.
28810         New module 'copysignl'.
28811         * lib/math.in.h (copysignl): New declaration.
28812         * lib/copysignl.c: New file.
28813         * m4/copysignl.m4: New file.
28814         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
28815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
28816         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
28817         HAVE_COPYSIGNL.
28818         * modules/copysignl: New file.
28819         * tests/test-math-c++.cc: Check the declaration of copysignl.
28820         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28821         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
28822         * doc/posix-functions/copysignl.texi: Mention the new module.
28824 2011-10-09  Bruno Haible  <bruno@clisp.org>
28826         Tests for module 'copysignf'.
28827         * modules/copysignf-tests: New file.
28828         * tests/test-copysignf.c: New file.
28830         New module 'copysignf'.
28831         * lib/math.in.h (copysignf): New declaration.
28832         * lib/copysignf.c: New file.
28833         * m4/copysignf.m4: New file.
28834         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
28835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
28836         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
28837         HAVE_COPYSIGNF.
28838         * modules/copysignf: New file.
28839         * tests/test-math-c++.cc: Check the declaration of copysignf.
28840         * doc/posix-functions/copysignf.texi: Mention the new module.
28842 2011-10-09  Bruno Haible  <bruno@clisp.org>
28844         Ensure that HAVE_* variables are set to 1 before they are set to 0.
28845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
28846         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
28847         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
28849         gl_SIGNAL_H_DEFAULTS.
28851 2011-10-09  Bruno Haible  <bruno@clisp.org>
28853         poll: Make macro safer.
28854         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28855         ac_cv_header_poll_h is not set.
28857 2011-10-09  Bruno Haible  <bruno@clisp.org>
28859         copysign: Provide replacement.
28860         * lib/math.in.h (copysign): New declaration.
28861         * lib/copysign.c: New file.
28862         * m4/copysign.m4: New file.
28863         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28865         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28866         HAVE_COPYSIGN.
28867         * modules/copysign (Description): Clarify.
28868         (Files): Add lib/copysign.c, m4/copysign.m4.
28869         (Depends-on): Add math, signbit.
28870         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28871         gl_MATH_MODULE_INDICATOR.
28872         * tests/test-math-c++.cc: Check the declaration of copysign.
28873         * doc/posix-functions/copysign.texi: Mention the effects of the module
28874         on Minix and MSVC.
28876 2011-10-09  Bruno Haible  <bruno@clisp.org>
28878         isinf: Ensure macro on AIX 5.1.
28879         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28880         macro.
28881         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28883 2011-10-09  Bruno Haible  <bruno@clisp.org>
28885         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28886         * modules/snprintf-posix-tests (configure.ac): Require
28887         gl_LONG_DOUBLE_VS_DOUBLE.
28888         * modules/sprintf-posix-tests (configure.ac): Likewise.
28889         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28890         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28891         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28892         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28893         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28894         tests on platforms where 'long double' is the same as 'double'.
28895         * tests/test-sprintf-posix.h (test_function): Likewise.
28896         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28897         * tests/test-vasprintf-posix.c (test_function): Likewise.
28899         *printf: Fix for platforms where 'long double' == 'double'.
28900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28901         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28902         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28903         * modules/fprintf-posix (Files): Likewise.
28904         * modules/obstack-printf-posix (Files): Likewise.
28905         * modules/snprintf-posix (Files): Likewise.
28906         * modules/sprintf-posix (Files): Likewise.
28907         * modules/vasnprintf (Files): Likewise.
28908         * modules/vasnprintf-posix (Files): Likewise.
28909         * modules/vasprintf-posix (Files): Likewise.
28910         * modules/vdprintf-posix (Files): Likewise.
28911         * modules/vfprintf-posix (Files): Likewise.
28912         * modules/vsnprintf-posix (Files): Likewise.
28913         * modules/vsprintf-posix (Files): Likewise.
28914         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28915         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28916         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28917         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28918         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28919         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28920         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28922         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28923         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28924         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28925         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28926         'long double'.
28927         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28929         isinf: Fix for platforms where 'long double' == 'double'.
28930         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28931         Don't blindly assume 80-bit 'long double'.
28933         isfinite: Fix for platforms where 'long double' == 'double'.
28934         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28935         Don't blindly assume 80-bit 'long double'.
28937         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28938         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28939         * modules/isfinite-tests (configure.ac): Require
28940         gl_LONG_DOUBLE_VS_DOUBLE.
28941         * modules/isinf-tests (configure.ac): Likewise.
28942         * modules/isnan-tests (configure.ac): Likewise.
28943         * modules/isnanl-tests (configure.ac): Likewise.
28944         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28945         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28946         tests on platforms where 'long double' is the same as 'double'.
28947         * tests/test-isinf.c (test_isinfl): Likewise.
28948         * tests/test-isnan.c (test_long_double): Likewise.
28949         * tests/test-isnanl.h (main): Likewise.
28951 2011-10-08  Bruno Haible  <bruno@clisp.org>
28953         Tests for module 'tanhf'.
28954         * modules/tanhf-tests: New file.
28955         * tests/test-tanhf.c: New file.
28957         New module 'tanhf'.
28958         * lib/math.in.h (tanhf): New declaration.
28959         * lib/tanhf.c: New file.
28960         * m4/tanhf.m4: New file.
28961         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28963         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28964         * modules/tanhf: New file.
28965         * tests/test-math-c++.cc: Check the declaration of tanhf.
28966         * doc/posix-functions/tanhf.texi: Mention the new module.
28968         tanh: Use a .m4 file.
28969         * m4/tanh.m4: New file.
28970         * modules/tanh (Files): Add it.
28971         (configure.ac): Just invoke gl_FUNC_TANH.
28973 2011-10-08  Bruno Haible  <bruno@clisp.org>
28975         Tests for module 'coshf'.
28976         * modules/coshf-tests: New file.
28977         * tests/test-coshf.c: New file.
28979         New module 'coshf'.
28980         * lib/math.in.h (coshf): New declaration.
28981         * lib/coshf.c: New file.
28982         * m4/coshf.m4: New file.
28983         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28985         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28986         * modules/coshf: New file.
28987         * tests/test-math-c++.cc: Check the declaration of coshf.
28988         * doc/posix-functions/coshf.texi: Mention the new module.
28990         cosh: Use a .m4 file.
28991         * m4/cosh.m4: New file.
28992         * modules/cosh (Files): Add it.
28993         (configure.ac): Just invoke gl_FUNC_COSH.
28995 2011-10-08  Bruno Haible  <bruno@clisp.org>
28997         Tests for module 'sinhf'.
28998         * modules/sinhf-tests: New file.
28999         * tests/test-sinhf.c: New file.
29001         New module 'sinhf'.
29002         * lib/math.in.h (sinhf): New declaration.
29003         * lib/sinhf.c: New file.
29004         * m4/sinhf.m4: New file.
29005         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
29006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
29007         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
29008         * modules/sinhf: New file.
29009         * tests/test-math-c++.cc: Check the declaration of sinhf.
29010         * doc/posix-functions/sinhf.texi: Mention the new module.
29012         sinh: Use a .m4 file.
29013         * m4/sinh.m4: New file.
29014         * modules/sinh (Files): Add it.
29015         (configure.ac): Just invoke gl_FUNC_SINH.
29017 2011-10-08  Bruno Haible  <bruno@clisp.org>
29019         Tests for module 'atan2f'.
29020         * modules/atan2f-tests: New file.
29021         * tests/test-atan2f.c: New file.
29023         New module 'atan2f'.
29024         * lib/math.in.h (atan2f): New declaration.
29025         * lib/atan2f.c: New file.
29026         * m4/atan2f.m4: New file.
29027         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
29028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
29029         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
29030         * modules/atan2f: New file.
29031         * tests/test-math-c++.cc: Check the declaration of atan2f.
29032         * doc/posix-functions/atan2f.texi: Mention the new module.
29034         atan2: Use a .m4 file.
29035         * m4/atan2.m4: New file.
29036         * modules/atan2 (Files): Add it.
29037         (configure.ac): Just invoke gl_FUNC_ATAN2.
29039 2011-10-08  Bruno Haible  <bruno@clisp.org>
29041         Tests for module 'atanf'.
29042         * modules/atanf-tests: New file.
29043         * tests/test-atanf.c: New file.
29045         New module 'atanf'.
29046         * lib/math.in.h (atanf): New declaration.
29047         * lib/atanf.c: New file.
29048         * m4/atanf.m4: New file.
29049         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
29050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
29051         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
29052         * modules/atanf: New file.
29053         * tests/test-math-c++.cc: Check the declaration of atanf.
29054         * doc/posix-functions/atanf.texi: Mention the new module.
29056         atan: Use a .m4 file.
29057         * m4/atan.m4: New file.
29058         * modules/atan (Files): Add it.
29059         (configure.ac): Just invoke gl_FUNC_ATAN.
29061 2011-10-08  Bruno Haible  <bruno@clisp.org>
29063         Tests for module 'acosf'.
29064         * modules/acosf-tests: New file.
29065         * tests/test-acosf.c: New file.
29067         New module 'acosf'.
29068         * lib/math.in.h (acosf): New declaration.
29069         * lib/acosf.c: New file.
29070         * m4/acosf.m4: New file.
29071         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
29072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
29073         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
29074         * modules/acosf: New file.
29075         * tests/test-math-c++.cc: Check the declaration of acosf.
29076         * doc/posix-functions/acosf.texi: Mention the new module.
29078         acos: Use a .m4 file.
29079         * m4/acos.m4: New file.
29080         * modules/acos (Files): Add it.
29081         (configure.ac): Just invoke gl_FUNC_ACOS.
29083 2011-10-08  Bruno Haible  <bruno@clisp.org>
29085         Tests for module 'asinf'.
29086         * modules/asinf-tests: New file.
29087         * tests/test-asinf.c: New file.
29089         New module 'asinf'.
29090         * lib/math.in.h (asinf): New declaration.
29091         * lib/asinf.c: New file.
29092         * m4/asinf.m4: New file.
29093         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
29094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
29095         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
29096         * modules/asinf: New file.
29097         * tests/test-math-c++.cc: Check the declaration of asinf.
29098         * doc/posix-functions/asinf.texi: Mention the new module.
29100         asin: Use a .m4 file.
29101         * m4/asin.m4: New file.
29102         * modules/asin (Files): Add it.
29103         (configure.ac): Just invoke gl_FUNC_ASIN.
29105 2011-10-08  Bruno Haible  <bruno@clisp.org>
29107         Tests for module 'tanf'.
29108         * modules/tanf-tests: New file.
29109         * tests/test-tanf.c: New file.
29111         New module 'tanf'.
29112         * lib/math.in.h (tanf): New declaration.
29113         * lib/tanf.c: New file.
29114         * m4/tanf.m4: New file.
29115         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
29116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
29117         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
29118         * modules/tanf: New file.
29119         * tests/test-math-c++.cc: Check the declaration of tanf.
29120         * doc/posix-functions/tanf.texi: Mention the new module.
29122         tan: Use a .m4 file.
29123         * m4/tan.m4: New file.
29124         * modules/tan (Files): Add it.
29125         (configure.ac): Just invoke gl_FUNC_TAN.
29127 2011-10-08  Bruno Haible  <bruno@clisp.org>
29129         Tests for module 'cosf'.
29130         * modules/cosf-tests: New file.
29131         * tests/test-cosf.c: New file.
29133         New module 'cosf'.
29134         * lib/math.in.h (cosf): New declaration.
29135         * lib/cosf.c: New file.
29136         * m4/cosf.m4: New file.
29137         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
29138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
29139         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
29140         * modules/cosf: New file.
29141         * tests/test-math-c++.cc: Check the declaration of cosf.
29142         * doc/posix-functions/cosf.texi: Mention the new module.
29144         cos: Use a .m4 file.
29145         * m4/cos.m4: New file.
29146         * modules/cos (Files): Add it.
29147         (configure.ac): Just invoke gl_FUNC_COS.
29149 2011-10-08  Bruno Haible  <bruno@clisp.org>
29151         Tests for module 'sinf'.
29152         * modules/sinf-tests: New file.
29153         * tests/test-sinf.c: New file.
29155         New module 'sinf'.
29156         * lib/math.in.h (sinf): New declaration.
29157         * lib/sinf.c: New file.
29158         * m4/sinf.m4: New file.
29159         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
29160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
29161         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
29162         * modules/sinf: New file.
29163         * tests/test-math-c++.cc: Check the declaration of sinf.
29164         * doc/posix-functions/sinf.texi: Mention the new module.
29166         sin: Use a .m4 file.
29167         * m4/sin.m4: New file.
29168         * modules/sin (Files): Add it.
29169         (configure.ac): Just invoke gl_FUNC_SIN.
29171 2011-10-08  Bruno Haible  <bruno@clisp.org>
29173         Tests for module 'powf'.
29174         * modules/powf-tests: New file.
29175         * tests/test-powf.c: New file.
29177         New module 'powf'.
29178         * lib/math.in.h (powf): New declaration.
29179         * lib/powf.c: New file.
29180         * m4/powf.m4: New file.
29181         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
29182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
29183         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
29184         * modules/powf: New file.
29185         * tests/test-math-c++.cc: Check the declaration of powf.
29186         * doc/posix-functions/powf.texi: Mention the new module.
29188         pow: Use a .m4 file.
29189         * m4/pow.m4: New file.
29190         * modules/pow (Files): Add it.
29191         (configure.ac): Just invoke gl_FUNC_POW.
29193 2011-10-08  Bruno Haible  <bruno@clisp.org>
29195         Tests for module 'log10f'.
29196         * modules/log10f-tests: New file.
29197         * tests/test-log10f.c: New file.
29199         New module 'log10f'.
29200         * lib/math.in.h (log10f): New declaration.
29201         * lib/log10f.c: New file.
29202         * m4/log10f.m4: New file.
29203         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
29204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
29205         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
29206         * modules/log10f: New file.
29207         * tests/test-math-c++.cc: Check the declaration of log10f.
29208         * doc/posix-functions/log10f.texi: Mention the new module.
29210         log10: Use a .m4 file.
29211         * m4/log10.m4: New file.
29212         * modules/log10 (Files): Add it.
29213         (configure.ac): Just invoke gl_FUNC_LOG10.
29215 2011-10-08  Bruno Haible  <bruno@clisp.org>
29217         Tests for module 'logf'.
29218         * modules/logf-tests: New file.
29219         * tests/test-logf.c: New file.
29221         New module 'logf'.
29222         * lib/math.in.h (logf): New declaration.
29223         * lib/logf.c: New file.
29224         * m4/logf.m4: New file.
29225         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
29226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
29227         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
29228         * modules/logf: New file.
29229         * tests/test-math-c++.cc: Check the declaration of logf.
29230         * doc/posix-functions/logf.texi: Mention the new module.
29232         log: Use a .m4 file.
29233         * m4/log.m4: New file.
29234         * modules/log (Files): Add it.
29235         (configure.ac): Just invoke gl_FUNC_LOG.
29237 2011-10-08  Bruno Haible  <bruno@clisp.org>
29239         Tests for module 'expf'.
29240         * modules/expf-tests: New file.
29241         * tests/test-expf.c: New file.
29243         New module 'expf'.
29244         * lib/math.in.h (expf): New declaration.
29245         * lib/expf.c: New file.
29246         * m4/expf.m4: New file.
29247         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
29248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
29249         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
29250         * modules/expf: New file.
29251         * tests/test-math-c++.cc: Check the declaration of expf.
29252         * doc/posix-functions/expf.texi: Mention the new module.
29254         exp: Use a .m4 file.
29255         * m4/exp.m4: New file.
29256         * modules/exp (Files): Add it.
29257         (configure.ac): Just invoke gl_FUNC_EXP.
29259 2011-10-08  Bruno Haible  <bruno@clisp.org>
29261         Tests for module 'sqrtf'.
29262         * modules/sqrtf-tests: New file.
29263         * tests/test-sqrtf.c: New file.
29265         New module 'sqrtf'.
29266         * lib/math.in.h (sqrtf): New declaration.
29267         * lib/sqrtf.c: New file.
29268         * m4/sqrtf.m4: New file.
29269         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
29270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
29271         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
29272         * modules/sqrtf: New file.
29273         * tests/test-math-c++.cc: Check the declaration of sqrtf.
29274         * doc/posix-functions/sqrtf.texi: Mention the new module.
29276 2011-10-08  Bruno Haible  <bruno@clisp.org>
29278         Tests: Avoid link failures w.r.t. libintl.
29279         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
29280         $(LIBINTL).
29281         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
29282         $(LIBINTL).
29283         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
29284         against $(LIBINTL).
29285         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
29286         $(LIBINTL).
29287         * modules/openat-tests (Makefile.am): Link test-fchmodat against
29288         $(LIBINTL).
29289         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
29291 2011-10-08  Bruno Haible  <bruno@clisp.org>
29293         pow tests: Defeat compiler optimizations.
29294         * tests/test-pow.c (main): Assign arguments to x and y before use.
29296 2011-10-08  Bruno Haible  <bruno@clisp.org>
29298         gnulib-tool: Improve last commit.
29299         * gnulib-tool (func_modules_transitive_closure): Simplify code.
29300         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
29301         ignore dependencies that are not among the modules list.
29303 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
29305         gnulib-tool: don't follow dependencies to avoided modules
29306         This fixes a bug that is related to the previous one.
29307         * gnulib-tool (func_modules_transitive_closure)
29308         (func_emit_autoconf_snippets):
29309         Check whether a dependency is acceptable before using it.
29310         (--extract-dependencies): Report an error if --avoid is also used,
29311         since this combination of options is not yet supported.
29313         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
29314         Problem reported by Peter Dyballa in
29315         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
29316         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
29317         when echoing "$condition".
29319 2011-10-07  Bruno Haible  <bruno@clisp.org>
29321         Fix documentation about math functions on MacOS X.
29322         * doc/posix-functions/exp2.texi: Don't say the function is missing on
29323         MacOS X 10.5.
29324         * doc/posix-functions/fdim.texi: Likewise.
29325         * doc/posix-functions/feclearexcept.texi: Likewise.
29326         * doc/posix-functions/fegetenv.texi: Likewise.
29327         * doc/posix-functions/fegetround.texi: Likewise.
29328         * doc/posix-functions/feholdexcept.texi: Likewise.
29329         * doc/posix-functions/feraiseexcept.texi: Likewise.
29330         * doc/posix-functions/fesetenv.texi: Likewise.
29331         * doc/posix-functions/fesetround.texi: Likewise.
29332         * doc/posix-functions/fetestexcept.texi: Likewise.
29333         * doc/posix-functions/feupdateenv.texi: Likewise.
29334         * doc/posix-functions/fmax.texi: Likewise.
29335         * doc/posix-functions/fmin.texi: Likewise.
29336         * doc/posix-functions/log2.texi: Likewise.
29337         * doc/posix-functions/modff.texi: Likewise.
29338         * doc/posix-functions/nan.texi: Likewise.
29339         * doc/posix-functions/nanf.texi: Likewise.
29340         * doc/posix-functions/nextafterf.texi: Likewise.
29341         * doc/posix-functions/remquo.texi: Likewise.
29343 2011-10-07  Bruno Haible  <bruno@clisp.org>
29345         modff: Drop assumption about library that defines modff.
29346         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
29347         AC_CHECK_FUNCS.
29348         * modules/modff (Files): Add m4/mathfunc.m4.
29350 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
29352         raise tests: Avoid a GCC warning.
29353         * tests/test-raise.c (handler): Use _Noreturn.
29355 2011-10-07  Bruno Haible  <bruno@clisp.org>
29357         Tests for module 'ldexpf'.
29358         * modules/ldexpf-tests: New file.
29359         * tests/test-ldexpf.c: New file.
29361         New module 'ldexpf'.
29362         * lib/math.in.h (ldexpf): New declaration.
29363         * lib/ldexpf.c: New file.
29364         * m4/ldexpf.m4: New file.
29365         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
29366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
29367         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
29368         * modules/ldexpf: New file.
29369         * tests/test-math-c++.cc: Check the declaration of ldexpf.
29370         * doc/posix-functions/ldexpf.texi: Mention the new module.
29372 2011-10-06  Bruno Haible  <bruno@clisp.org>
29374         frexpf: Work around problems on IRIX and mingw.
29375         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
29376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
29377         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
29378         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
29379         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
29380         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
29381         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
29383 2011-10-06  Bruno Haible  <bruno@clisp.org>
29385         fabsf: Drop assumption about library that defines fabsf.
29386         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
29387         AC_CHECK_FUNCS.
29388         * modules/fabsf (Files): Add m4/mathfunc.m4.
29390 2011-10-06  Bruno Haible  <bruno@clisp.org>
29392         frexpf: Drop assumption about library that defines frexpf.
29393         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
29394         'int *', 'float *', 'long double *', 'float', 'long double'.
29395         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
29396         AC_CHECK_FUNCS.
29397         * modules/frexpf (Files): Add m4/mathfunc.m4.
29399         Tests for module 'frexpf'.
29400         * modules/frexpf-tests: New file.
29401         * tests/test-frexpf.c: New file.
29403         New module 'frexpf'.
29404         * lib/math.in.h (frexpf): New declaration.
29405         * lib/frexpf.c: New file.
29406         * m4/frexpf.m4: New file.
29407         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
29408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
29409         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
29410         * modules/frexpf: New file.
29411         * tests/test-math-c++.cc: Check the declaration of frexpf.
29412         * doc/posix-functions/frexpf.texi: Mention the new module.
29414 2011-10-06  Bruno Haible  <bruno@clisp.org>
29416         math: Sort function declarations of math.in.h.
29417         * lib/math.in.h (frexp, logb): Move declarations.
29419 2011-10-05  Bruno Haible  <bruno@clisp.org>
29421         Tests for module 'modff'.
29422         * modules/modff-tests: New file.
29423         * tests/test-modff.c: New file.
29425         New module 'modff'.
29426         * lib/math.in.h (modff): New declaration.
29427         * lib/modff.c: New file.
29428         * m4/modff.m4: New file.
29429         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
29430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
29431         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
29432         * modules/modff: New file.
29433         * tests/test-math-c++.cc: Check the declaration of modff.
29434         * doc/posix-functions/modff.texi: Mention the new module.
29436         modf tests: Make test sharper.
29437         * tests/test-modf.c (main): Strengthen upper bound.
29439         modf: Use a .m4 file.
29440         * m4/modf.m4: New file.
29441         * modules/modf (Files): Add it.
29442         (configure.ac): Just invoke gl_FUNC_MODF.
29444 2011-10-05  Bruno Haible  <bruno@clisp.org>
29446         Tests for module 'fmodf'.
29447         * modules/fmodf-tests: New file.
29448         * tests/test-fmodf.c: New file.
29450         New module 'fmodf'.
29451         * lib/math.in.h (fmodf): New declaration.
29452         * lib/fmodf.c: New file.
29453         * m4/fmodf.m4: New file.
29454         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
29455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
29456         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
29457         * modules/fmodf: New file.
29458         * tests/test-math-c++.cc: Check the declaration of fmodf.
29459         * doc/posix-functions/fmodf.texi: Mention the new module.
29461         fmod: Use a .m4 file.
29462         * m4/fmod.m4: New file.
29463         * modules/fmod (Files): Add it.
29464         (configure.ac): Just invoke gl_FUNC_FMOD.
29466 2011-10-05  Bruno Haible  <bruno@clisp.org>
29468         Tests for module 'fabsf'.
29469         * modules/fabsf-tests: New file.
29470         * tests/test-fabsf.c: New file.
29472         New module 'fabsf'.
29473         * lib/math.in.h (fabsf): New declaration.
29474         * lib/fabsf.c: New file.
29475         * m4/fabsf.m4: New file.
29476         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
29477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
29478         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
29479         * modules/fabsf: New file.
29480         * tests/test-math-c++.cc: Check the declaration of fabsf.
29481         * doc/posix-functions/fabsf.texi: Mention the new module.
29483         fabs: Use a .m4 file.
29484         * m4/fabs.m4: New file.
29485         * modules/fabs (Files): Add it.
29486         (configure.ac): Just invoke gl_FUNC_FABS.
29488 2011-10-05  Jim Meyering  <meyering@redhat.com>
29490         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
29491         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
29492         ls -lL regression introduced in coreutils-8.12, it does so at the
29493         cost of an additional stat call in the common case.  Besides, now
29494         that the kernel change that prompted commit 95f7c57f has been reverted
29495         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
29496         we have no use for commit 95f7c57f, "file-has-acl: use
29497         acl_extended_file_nofollow if available".
29499 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
29501         file-has-acl: revert unintended change in behavior of ls -L
29502         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
29503         derived from...
29504         (file_has_acl): ...code here.  Call it.
29505         This problem was introduced with 2011-07-22 commit 95f7c57f,
29506         "file-has-acl: use acl_extended_file_nofollow if available".
29507         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
29509 2011-10-03  Bruno Haible  <bruno@clisp.org>
29511         poll: Avoid link errors on MSVC.
29512         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
29513         * modules/poll (Depends-on): Add sockets.
29514         (Link): New section.
29515         * NEWS: Mention the change.
29516         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
29517         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
29518         $(LIB_POLL) instead of $(LIBSOCKET).
29520 2011-10-03  Bruno Haible  <bruno@clisp.org>
29522         sys_select tests: Fix link error on MSVC 9.
29523         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
29524         with $(LIB_SELECT) instead of $(LIBSOCKET).
29526 2011-10-03  Bruno Haible  <bruno@clisp.org>
29528         sys_select: Fix compilation error on mingw.
29529         * lib/sys_select.in.h: On native Windows, include <io.h>.
29531 2011-10-03  Bruno Haible  <bruno@clisp.org>
29533         wmemset: Support for MSVC.
29534         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
29535         whether wmemset() exists.
29537 2011-10-03  Bruno Haible  <bruno@clisp.org>
29539         wmemmove: Support for MSVC.
29540         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
29541         whether wmemmove() exists.
29543 2011-10-03  Bruno Haible  <bruno@clisp.org>
29545         wmemcpy: Support for MSVC.
29546         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
29547         whether wmemcpy() exists.
29549 2011-10-03  Bruno Haible  <bruno@clisp.org>
29551         wmemcmp: Support for MSVC.
29552         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
29553         whether wmemcmp() exists.
29555 2011-10-03  Bruno Haible  <bruno@clisp.org>
29557         wmemchr: Support for MSVC.
29558         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
29559         whether wmemchr() exists.
29561 2011-10-03  Bruno Haible  <bruno@clisp.org>
29563         glthread/*, strsignal: Support for MSVC.
29564         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
29565         including <winsock.h> on MSVC 9.
29566         * lib/glthread/lock.h: Likewise.
29567         * lib/glthread/thread.h: Likewise.
29568         * lib/glthread/tls.h: Likewise.
29569         * lib/glthread/yield.h: Likewise.
29570         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
29571         if HAVE_UNISTD_H is false.
29572         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
29574 2011-10-03  Bruno Haible  <bruno@clisp.org>
29576         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
29577         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
29578         Set to 100000.
29580 2011-10-03  Bruno Haible  <bruno@clisp.org>
29582         acl: Fix specification.
29583         * lib/file-has-acl.c (file_has_acl): Fix specification.
29585 2011-10-03  Bruno Haible  <bruno@clisp.org>
29587         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
29588         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
29589         (compute_curr_prefix, shared_library_fullname,
29590         find_shared_library_fullname, get_shared_library_fullname, relocate):
29591         Use it together with PIC && INSTALLDIR.
29592         Reported by <jojelino@gmail.com>
29593         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
29595 2011-10-01  Jim Meyering  <meyering@redhat.com>
29597         maint.mk: adjust a release-related rule not to require use of gzip
29598         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
29599         Instead, check each file in $(DIST_ARCHIVES).  This is better for
29600         projects that build only .tar.xz files.  Also fix an erroneous test.
29602         test-linkat: don't leave behind a temporary file
29603         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
29604         Otherwise, coreutils' "make distcheck" would fail with this:
29605           Only in /c/cu/tests/torture/coreutils/test/\
29606             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
29607           make[2]: *** [my-distcheck] Error 1
29609         float, math: add omitted file
29610         * lib/itold.c: Add file, required for yesterday's float change.
29612 2011-10-01  Bruno Haible  <bruno@clisp.org>
29614         isinf: Fix for OpenBSD/x86.
29615         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
29616         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
29617         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
29619 2011-10-01  Bruno Haible  <bruno@clisp.org>
29621         isfinite: Fix syntax error in configure test.
29622         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
29624         isfinite: Fix typo.
29625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
29626         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
29628 2011-10-01  Bruno Haible  <bruno@clisp.org>
29630         nonblocking tests: Fix test failure on Linux/IA-64.
29631         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
29632         Set to 270000.
29634 2011-10-01  Bruno Haible  <bruno@clisp.org>
29636         mkfifoat tests: Fix a test failure on mingw.
29637         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
29638         with error ENOSYS.
29640 2011-09-30  Bruno Haible  <bruno@clisp.org>
29642         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
29643         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
29644         'long double'. Set REPLACE_ITOLD.
29645         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
29646         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
29647         * lib/itold.c: New file.
29648         * modules/float (Files): Add lib/itold.c.
29649         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
29650         (Makefile.am): Substitute REPLACE_ITOLD.
29651         * modules/math (Depends-on): Add float.
29652         (Makefile.am): Substitute REPLACE_ITOLD.
29653         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
29654         * doc/posix-headers/math.texi: Likewise.
29655         * doc/posix-functions/logl.texi: Likewise.
29657 2011-09-30  Bruno Haible  <bruno@clisp.org>
29659         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
29660         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
29661         Set to 140000.
29663 2011-09-30  Bruno Haible  <bruno@clisp.org>
29665         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
29666         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
29667         invocation, say "right after AC_PROG_CC_STDC", not "right after
29668         AC_PROG_CC".
29669         Reported by Gary V. Vaughan <gary@gnu.org>.
29671 2011-09-30  Bruno Haible  <bruno@clisp.org>
29673         Centralize C99 requirement.
29674         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
29675         * modules/stdarg (configure.ac-early): Invoke it instead of
29676         AC_PROG_CC_STDC.
29677         Reported by Gary V. Vaughan and Paul Eggert.
29679 2011-09-29  Bruno Haible  <bruno@clisp.org>
29681         float: Fix LDBL_MAX value on Linux/PowerPC.
29682         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
29683         on Linux/PowerPC.
29684         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
29685         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
29686         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
29687         platform.
29688         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
29690 2011-09-29  Bruno Haible  <bruno@clisp.org>
29692         doc: Improve doc about gl_EARLY.
29693         * doc/gnulib-tool.texi (Initial import): Mention where to place an
29694         AC_PROG_CC_STDC invocation.
29695         Reported by Gary V. Vaughan <gary@gnu.org>.
29697 2011-09-28  Bruno Haible  <bruno@clisp.org>
29699         fgetc, fputc, fread, fwrite tests: Fix link error.
29700         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
29701         on non-MSVC platforms.
29702         * tests/test-fputc.c (main): Likewise.
29703         * tests/test-fread.c (main): Likewise.
29704         * tests/test-fwrite.c (main): Likewise.
29705         Reported by Jim Meyering.
29707 2011-09-27  Bruno Haible  <bruno@clisp.org>
29709         fputc, fwrite tests: Avoid test failure on MSVC.
29710         * tests/test-fgetc.c: Include msvc-inval.h.
29711         (main): Invoke gl_msvc_inval_ensure_handler.
29712         * tests/test-fputc.c: Include msvc-inval.h.
29713         (main): Invoke gl_msvc_inval_ensure_handler.
29714         * tests/test-fread.c: Include msvc-inval.h.
29715         (main): Invoke gl_msvc_inval_ensure_handler.
29716         * tests/test-fwrite.c: Include msvc-inval.h.
29717         (main): Invoke gl_msvc_inval_ensure_handler.
29718         * modules/fgetc-tests (Depends-on): Add msvc-inval.
29719         * modules/fputc-tests (Depends-on): Likewise.
29720         * modules/fread-tests (Depends-on): Likewise.
29721         * modules/fwrite-tests (Depends-on): Likewise.
29723 2011-09-27  Bruno Haible  <bruno@clisp.org>
29725         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
29726         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
29727         (raise): Remove older, duplicated declaration.
29728         (_gl_raise_SIGPIPE): New declaration.
29729         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
29730         (rpl_raise): Remove function.
29731         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
29732         a gnulib-defined SIGPIPE here.
29733         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
29734         'sigprocmask' has detected missing signal-blocking and the module
29735         'sigpipe' is enabled.
29736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29738 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
29740         base64-tests: avoid memory leak
29741         * tests/test-base64.c (main): Plug memory leak.
29743         base32: new module
29744         * modules/base32: New module.
29745         * lib/base32.c: New file.
29746         * lib/base32.h: Likewise.
29747         * m4/base32.m4: Likewise.
29748         * modules/base32-tests: New test.
29749         * tests/test-base32.c: Likewise.
29750         * MODULES.html.sh (Misc): Mention it.
29752 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29754         gnulib: use more-standard license notice wording
29755         * gnulib-tool (func_emit_copyright_notice): When emitting a
29756         license notice into a file, use the standard wording as suggested
29757         by the current information for GNU maintainers, except say "file"
29758         rather than "program".  The new wording gives a license version
29759         number, which addresses an issue raised by Glenn Morris in
29760         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
29761         * m4/onceonly.m4: Use that same wording here, too.
29763         dup2: minor simplification
29764         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
29765         as lib/dup2.c no longer uses 'inline'.
29767 2011-09-25  Bruno Haible  <bruno@clisp.org>
29769         strings: Fix compilation error on MSVC.
29770         * lib/strings.in.h: Include <stddef.h> for size_t.
29772 2011-09-25  Bruno Haible  <bruno@clisp.org>
29774         fflush et al.: Document limitation on MSVC.
29775         * doc/posix-functions/fflush.texi: Document possible crash in handling
29776         mode other than DEFAULT_HANDLING.
29777         * doc/posix-functions/fgetc.texi: Likewise.
29778         * doc/posix-functions/fputc.texi: Likewise.
29779         * doc/posix-functions/fread.texi: Likewise.
29780         * doc/posix-functions/fwrite.texi: Likewise.
29782 2011-09-25  Bruno Haible  <bruno@clisp.org>
29784         msvc-inval: Allow three invalid parameter handling modes.
29785         * lib/msvc-inval.h: Don't include <stdlib.h> here.
29786         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
29787         macros.
29788         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
29789         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
29790         SANE_LIBRARY_HANDLING as a no-op.
29791         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
29792         <stdlib.h>.
29793         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
29795 2011-09-25  Bruno Haible  <bruno@clisp.org>
29797         msvc-inval: Make handler multithread-safe.
29798         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
29799         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29800         declarations.
29801         (gl_msvc_inval_current): New declaration.
29802         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29803         Operate on the structure returned by gl_msvc_inval_current().
29804         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
29805         Remove varaiables.
29806         (tls_index, tls_initialized): New variables.
29807         (not_per_thread): New variable.
29808         (gl_msvc_inval_current): New function.
29809         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
29810         returned by gl_msvc_inval_current().
29812 2011-09-25  Bruno Haible  <bruno@clisp.org>
29814         msvc-inval: Install handler globally.
29815         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
29816         !_MSC_VER.
29817         (gl_msvc_invalid_parameter_handler): Remove declaration.
29818         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
29819         declarations.
29820         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29821         Install the handler globally, don't uninstall it.
29822         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29823         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
29824         currently valid, call RaiseException instead.
29825         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
29826         for !_MSC_VER.
29828 2011-09-25  Bruno Haible  <bruno@clisp.org>
29830         strerror_r-posix: Fix for MSVC 9.
29831         * lib/strerror_r.c (local_snprintf): New function.
29832         (snprintf): Define to local_snprintf, not to _snprintf.
29834 2011-09-25  Bruno Haible  <bruno@clisp.org>
29836         ftruncate: Support for MSVC 9.
29837         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
29838         (chsize_nothrow): New function.
29839         (chsize): Redefine as a macro.
29840         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
29841         * modules/ftruncate (Depends-on): Add msvc-inval.
29843 2011-09-25  Bruno Haible  <bruno@clisp.org>
29845         New module 'fstat'.
29846         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
29847         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
29848         * lib/fchdir.c (rpl_fstat): Remove function.
29849         * m4/fstat.m4: New file.
29850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29852         declared.
29853         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29854         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29855         * modules/fstat: New file.
29856         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29857         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29858         is set.
29859         * doc/posix-functions/fstat.texi: Mention the new module and the
29860         problem on MSVC.
29861         * NEWS: Mention the change.
29862         * modules/acl (Depends-on): Add fstat.
29863         * modules/chdir-safer (Depends-on): Likewise.
29864         * modules/chown (Depends-on): Likewise.
29865         * modules/copy-file (Depends-on): Likewise.
29866         * modules/fchdir (Depends-on): Likewise.
29867         * modules/fdopendir (Depends-on): Likewise.
29868         * modules/fopen (Depends-on): Likewise.
29869         * modules/fts (Depends-on): Likewise.
29870         * modules/getcwd (Depends-on): Likewise.
29871         * modules/isapipe (Depends-on): Likewise.
29872         * modules/linkat (Depends-on): Likewise.
29873         * modules/lseek (Depends-on): Likewise.
29874         * modules/mkdir-p (Depends-on): Likewise.
29875         * modules/open (Depends-on): Likewise.
29876         * modules/openat (Depends-on): Likewise.
29877         * modules/read-file (Depends-on): Likewise.
29878         * modules/renameat (Depends-on): Likewise.
29879         * modules/utimens (Depends-on): Likewise.
29881 2011-09-25  Bruno Haible  <bruno@clisp.org>
29883         linkat: Fix compilation on MSVC 9.
29884         * lib/linkat.c: Don't include <stdint.h>.
29886 2011-09-25  Bruno Haible  <bruno@clisp.org>
29888         fclose: Support for MSVC 9.
29889         * lib/fclose.c: Include msvc-inval.h.
29890         (fclose_nothrow): New function.
29891         (rpl_fclose): Use it.
29892         * modules/fclose (Depends-on): Add msvc-inval.
29893         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29895 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29897         dup2: minor simplifications
29898         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29899         that it's a performance win.
29900         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29901         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29903 2011-09-24  Jim Meyering  <meyering@redhat.com>
29905         test-futimens: avoid a warning from gcc -Wshadow
29906         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29907         to avoid a shadowing warning.
29909 2011-09-24  Bruno Haible  <bruno@clisp.org>
29911         fdopen: Support for MSVC 9.
29912         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29913         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29914         * lib/fdopen.c: Include msvc-inval.h.
29915         (fdopen_nothrow): New function.
29916         (rpl_fdopen): Use it.
29917         * modules/fdopen (Depends-on): Add msvc-inval.
29918         * modules/fclose-tests (Depends-on): Add fdopen.
29919         * modules/fflush-tests (Depends-on): Likewise.
29920         * modules/fgetc-tests (Depends-on): Likewise.
29921         * modules/fputc-tests (Depends-on): Likewise.
29922         * modules/fread-tests (Depends-on): Likewise.
29923         * modules/freopen-tests (Depends-on): Likewise.
29924         * modules/fseeko-tests (Depends-on): Likewise.
29925         * modules/ftello-tests (Depends-on): Likewise.
29926         * modules/fwrite-tests  (Depends-on): Likewise.
29927         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29929 2011-09-24  Bruno Haible  <bruno@clisp.org>
29931         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29932         * modules/fgetc-tests (Depends-on): Add unistd.
29933         * modules/fputc-tests (Depends-on): Likewise.
29934         * modules/fread-tests (Depends-on): Likewise.
29935         * modules/fwrite-tests (Depends-on): Likewise.
29937 2011-09-24  Bruno Haible  <bruno@clisp.org>
29939         dup: Simplify autoconf test.
29940         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29941         on gl_MSVC_INVAL's result.
29943 2011-09-24  Bruno Haible  <bruno@clisp.org>
29945         Tests for function fwrite().
29946         * modules/fwrite-tests: New file.
29947         * tests/test-fwrite.c: New file.
29948         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29950         Tests for function fread().
29951         * modules/fread-tests: New file.
29952         * tests/test-fread.c: New file.
29953         * modules/stdio-tests (Depends-on): Add fread-tests.
29955         Activate fputc tests.
29956         * modules/stdio-tests (Depends-on): Add fputc-tests.
29958         Enhance fgetc, fputc tests.
29959         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29960         * tests/test-fputc.c (main): Likewise.
29962 2011-09-24  Bruno Haible  <bruno@clisp.org>
29964         write: Support for MSVC 9.
29965         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29966         is not 1.
29967         * lib/write.c (write_nothrow): New function.
29968         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29969         not 1. Use write_nothrow.
29970         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29971         invalid parameter handler.
29972         (gl_PREREQ_WRITE): New macro.
29973         * modules/write (Depends-on): Add msvc-inval.
29974         (configure.ac): Invoke gl_PREREQ_WRITE.
29975         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29977 2011-09-24  Bruno Haible  <bruno@clisp.org>
29979         read: Fix last commit.
29980         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29982 2011-09-24  Bruno Haible  <bruno@clisp.org>
29984         dup2: Fix last commit.
29985         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29986         (rpl_dup2): Disable fcntl workaround on native Windows.
29988         sigprocmask: Make code safer.
29989         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29990         section that changes macro definitions for this compilation unit.
29992 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29994         dup2: clarify by coalescing Windows-specific material
29995         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29996         "msvc-nothrow.h"' to the Windows-specific section, so that the
29997         Emacs source need not contain these include files.
29998         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29999         Windows-specific fixes into this function rather than just the
30000         nothrow fix, as this shortens and clarifies the code.  Always
30001         define as a function, as that's a bit cleaner than having it be
30002         sometimes a function and sometimes a macro.
30003         (rpl_dup2): Move the Windows-specific stuff out of here and into
30004         ms_windows_dup2.  Don't protect the Haiku-related fix with
30005         "#if !defined __linux__", as the same code also works around
30006         a Linux kernel bug, and it doesn't add any system calls on any
30007         platform.  Add comment about FreeBSD 6.1.
30009         sigprocmask: move #include directive
30010         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
30011         Windows-specific section, so that the Emacs source need not
30012         contain msvc-inval.h.
30014 2011-09-23  Bruno Haible  <bruno@clisp.org>
30016         read: Support for MSVC 9.
30017         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
30018         is not 1.
30019         * lib/read.c (read_nothrow): New function.
30020         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
30021         read_nothrow.
30022         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
30023         invalid parameter handler.
30024         (gl_PREREQ_READ): New macro.
30025         * modules/read (Depends-on): Add msvc-inval.
30026         (configure.ac): Invoke gl_PREREQ_READ.
30027         * doc/posix-functions/read.texi: Mention the problem on MSVC.
30029 2011-09-23  Bruno Haible  <bruno@clisp.org>
30031         close: Support for MSVC 9.
30032         * lib/close.c: Include <errno.h>, msvc-inval.h.
30033         (close_nothrow): New function.
30034         (rpl_close): Use it.
30035         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
30036         invalid parameter handler.
30037         * modules/close (Depends-on): Add msvc-inval.
30038         * modules/dup2-tests (Depends-on): Add close.
30039         * modules/dup3-tests (Depends-on): Likewise.
30040         * modules/fcntl-tests (Depends-on): Likewise.
30041         * modules/spawn-pipe-tests (Depends-on): Likewise.
30042         * modules/unistd-safer-tests (Depends-on): Likewise.
30043         * doc/posix-functions/close.texi: Mention the problem on MSVC.
30045 2011-09-23  Bruno Haible  <bruno@clisp.org>
30047         New module 'dup'.
30048         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
30049         Allow replacement.
30050         * lib/dup.c: New file.
30051         * lib/fchdir.c (rpl_dup): Remove function.
30052         * m4/dup.m4: New file.
30053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
30054         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
30055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
30056         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
30057         * modules/dup: New file.
30058         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
30059         'dup' module is in use.
30060         * modules/fdopendir (Depends-on): Add dup.
30061         * modules/fdutimensat-tests (Depends-on): Likewise.
30062         * modules/fts (Depends-on): Likewise.
30063         * modules/futimens-tests (Depends-on): Likewise.
30064         * modules/posix_spawnp-tests (Depends-on): Likewise.
30065         * modules/unistd-safer-tests (Depends-on): Likewise.
30066         * modules/utimens-tests (Depends-on): Likewise.
30067         * doc/posix-functions/dup.texi: Mention the new module and the problem
30068         on MSVC.
30070 2011-09-23  Bruno Haible  <bruno@clisp.org>
30072         getdtablesize: Support for MSVC 9.
30073         * lib/getdtablesize.c: Include msvc-inval.h.
30074         (_setmaxstdio_nothrow): New function.
30075         (_setmaxstdio): Redefine it.
30076         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
30077         * modules/getdtablesize (Depends-on): Add msvc-inval.
30078         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
30080 2011-09-23  Bruno Haible  <bruno@clisp.org>
30082         signal-h: Rename from signal.
30083         * modules/signal-h: Renamed from modules/signal.
30084         * modules/pthread_sigmask (Depends-on): Update.
30085         * modules/raise (Depends-on): Likewise.
30086         * modules/sigaction (Depends-on): Likewise.
30087         * modules/sigpipe (Depends-on): Likewise.
30088         * modules/sigprocmask (Depends-on): Likewise.
30089         * modules/sys_select (Depends-on): Likewise.
30090         * modules/signal-h-tests: Renamed from modules/signal-tests.
30091         (Files, Depends-on, Makefile.am): Update.
30092         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
30093         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
30094         (Files, Makefile.am): Update.
30095         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
30096         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
30097         * modules/signal: New placeholder file.
30098         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
30099         * doc/posix-headers/signal.texi: Update.
30100         * NEWS: Mention the change.
30102 2011-09-23  Bruno Haible  <bruno@clisp.org>
30104         sigprocmask: Avoid crashes through signal() on MSVC 9.
30105         * lib/sigprocmask.c: Include msvc-inval.h.
30106         (signal_nothrow): New function.
30107         (signal): Redefine it.
30108         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
30109         * modules/sigprocmask (Depends-on): Add msvc-inval.
30110         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
30112 2011-09-23  Bruno Haible  <bruno@clisp.org>
30114         Tests for module 'raise'.
30115         * modules/raise-tests: New file.
30116         * tests/test-raise.c: New file.
30118         raise: Support for MSVC.
30119         * lib/signal.in.h (raise): New declaration.
30120         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
30121         for native Windows platforms.
30122         * m4/raise.m4: New file.
30123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
30124         HAVE_RAISE, REPLACE_RAISE.
30125         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
30126         REPLACE_RAISE.
30127         * modules/raise (Status, Notice): Remove fields.
30128         (Files): Add m4/raise.m4.
30129         (Depends-on): Add signal, msvc-inval.
30130         (configure.ac): Use the common idioms.
30131         (Maintainer): Add me.
30132         * tests/test-signal-c++.cc: Check the signature of raise.
30133         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
30135 2011-09-23  Bruno Haible  <bruno@clisp.org>
30137         pipe2: Fix compilation on pre-C99 compilers.
30138         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
30140 2011-09-23  Bruno Haible  <bruno@clisp.org>
30142         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
30143         * lib/msvc-nothrow.h: New file.
30144         * lib/msvc-nothrow.c: New file.
30145         * m4/msvc-nothrow.m4: New file.
30146         * modules/msvc-nothrow: New file.
30147         * lib/dup2.c: Include msvc-nothrow.h.
30148         (rpl_dup2): No need to protect _get_osfhandle call here.
30149         * lib/accept4.c: Include msvc-nothrow.h.
30150         * lib/error.c: Likewise.
30151         * lib/fcntl.c: Likewise.
30152         * lib/lseek.c: Likewise.
30153         * lib/nonblocking.c: Likewise.
30154         * lib/poll.c: Likewise.
30155         * lib/read.c: Likewise.
30156         * lib/select.c: Likewise.
30157         * lib/sockets.h: Likewise.
30158         * lib/sockets.c: Likewise.
30159         * lib/stdio-read.c: Likewise.
30160         * lib/stdio-write.c: Likewise.
30161         * lib/write.c: Likewise.
30162         * lib/w32sock.h: Likewise.
30163         * lib/w32spawn.h: Likewise.
30164         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
30165         * lib/fsync.c: Likewise.
30166         * lib/isapipe.c: Likewise.
30167         * modules/dup2 (Depends-on): Add msvc-nothrow.
30168         * modules/accept4 (Depends-on): Likewise.
30169         * modules/error (Depends-on): Likewise.
30170         * modules/fcntl (Depends-on): Likewise.
30171         * modules/lseek (Depends-on): Likewise.
30172         * modules/nonblocking (Depends-on): Likewise.
30173         * modules/poll (Depends-on): Likewise.
30174         * modules/read (Depends-on): Likewise.
30175         * modules/select (Depends-on): Likewise.
30176         * modules/sockets (Depends-on): Likewise.
30177         * modules/sigpipe (Depends-on): Likewise.
30178         * modules/write (Depends-on): Likewise.
30179         * modules/accept (Depends-on): Likewise.
30180         * modules/bind (Depends-on): Likewise.
30181         * modules/connect (Depends-on): Likewise.
30182         * modules/gethostname (Depends-on): Likewise.
30183         * modules/getpeername (Depends-on): Likewise.
30184         * modules/getsockname (Depends-on): Likewise.
30185         * modules/getsockopt (Depends-on): Likewise.
30186         * modules/ioctl (Depends-on): Likewise.
30187         * modules/listen (Depends-on): Likewise.
30188         * modules/recv (Depends-on): Likewise.
30189         * modules/recvfrom (Depends-on): Likewise.
30190         * modules/send (Depends-on): Likewise.
30191         * modules/sendto (Depends-on): Likewise.
30192         * modules/setsockopt (Depends-on): Likewise.
30193         * modules/shutdown (Depends-on): Likewise.
30194         * modules/socket (Depends-on): Likewise.
30195         * modules/execute (Depends-on): Likewise.
30196         * modules/spawn-pipe (Depends-on): Likewise.
30197         * modules/flock (Depends-on): Likewise.
30198         * modules/fsync (Depends-on): Likewise.
30199         * modules/isapipe (Depends-on): Likewise.
30200         * tests/test-cloexec.c: Include msvc-nothrow.h.
30201         * tests/test-dup-safer.c: Likewise.
30202         * tests/test-dup2.c: Likewise.
30203         * tests/test-dup3.c: Likewise.
30204         * tests/test-fcntl.c: Likewise.
30205         * tests/test-pipe.c: Likewise.
30206         * tests/test-pipe2.c: Likewise.
30207         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
30208         * modules/unistd-safer-tests (Depends-on): Likewise.
30209         * modules/dup2-tests (Depends-on): Likewise.
30210         * modules/dup3-tests (Depends-on): Likewise.
30211         * modules/fcntl-tests (Depends-on): Likewise.
30212         * modules/pipe-posix-tests (Depends-on): Likewise.
30213         * modules/pipe2-tests (Depends-on): Likewise.
30215 2011-09-23  Bruno Haible  <bruno@clisp.org>
30217         dup2: Make code more maintainable.
30218         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
30219         (rpl_dup2): Use it.
30220         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
30221         * modules/dup2 (configure.ac): Invoke it.
30222         Reported by Paul Eggert.
30224 2011-09-23  Bruno Haible  <bruno@clisp.org>
30226         msvc-inval: Fix compilation error.
30227         * lib/msvc-inval.h: Include <excpt.h>.
30229 2011-09-23  Bruno Haible  <bruno@clisp.org>
30231         mkdir: Tweak for MSVC 9.
30232         * lib/sys_stat.in.h: Update comments.
30233         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
30235         Tests for module 'chdir'.
30236         * modules/chdir-tests: New file.
30237         * tests/test-chdir.c: New file.
30239         New module 'chdir'.
30240         * modules/chdir: New file.
30241         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
30242         (chdir): New declaration.
30243         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
30244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
30245         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
30246         * tests/test-unistd-c++.cc: Check signature of chdir.
30247         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
30248         * modules/chdir-long (Depends-on): Add chdir.
30249         * modules/fchdir (Depends-on): Likewise.
30250         * modules/rename (Depends-on): Likewise.
30251         * modules/savewd (Depends-on): Likewise.
30253         rmdir: Support for mingw, MSVC 9.
30254         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
30255         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
30257         getcwd: Tweak for MSVC 9.
30258         * lib/unistd.in.h: Update comments.
30259         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
30261 2011-09-22  Bruno Haible  <bruno@clisp.org>
30263         strerror_r-posix: Avoid a link error on MSVC.
30264         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
30265         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
30267 2011-09-22  Bruno Haible  <bruno@clisp.org>
30269         select: Avoid link errors on MSVC.
30270         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
30271         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
30272         * modules/pselect (Link): Likewise.
30273         * NEWS: Mention the change.
30274         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
30275         test-select-stdin against $(LIB_SELECT).
30276         * modules/pselect-tests (Makefile.am): Link test-pselect against
30277         $(LIB_SELECT).
30279 2011-09-22  Bruno Haible  <bruno@clisp.org>
30281         select: Avoid compilation error on MSVC.
30282         * lib/select.c: Don't include <stdbool.h>.
30284 2011-09-21  Bruno Haible  <bruno@clisp.org>
30286         Consolidate all uses of PATH_MAX in *.m4 files.
30287         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
30288         macros.
30289         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
30290         and gl_PATHMAX_SNIPPET.
30291         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30293         * modules/chdir-long (Files): Add m4/pathmax.m4.
30294         * modules/getcwd (Files): Likewise.
30296 2011-09-21  Bruno Haible  <bruno@clisp.org>
30298         ftruncate: Un-deprecate, concentrate on Win32 support.
30299         * modules/ftruncate (Status, Notice): Remove sections.
30300         (Depends-on): Add largefile.
30301         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
30302         non-mingw platforms.
30303         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
30304         include <io.h>.
30305         * modules/perror-tests (Depends-on): Add ftruncate.
30306         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
30307         'ftruncate' module.
30309 2011-09-21  Bruno Haible  <bruno@clisp.org>
30311         Add dependencies to new dirent related modules.
30312         * modules/opendir (Depends-on): Add closedir.
30313         * modules/getcwd (Depends-on): Add opendir, closedir.
30314         * modules/dirent-safer-tests (Depends-on): Likewise.
30315         * modules/fdopendir-tests (Depends-on): Likewise.
30316         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
30317         * modules/renameat-tests (Depends-on): Likewise.
30319 2011-09-21  Bruno Haible  <bruno@clisp.org>
30321         opendir: Avoid compilation error on mingw.
30322         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
30323         * modules/opendir (Depends-on): Add unistd.
30325 2011-09-21  Bruno Haible  <bruno@clisp.org>
30327         ftruncate tests: Avoid a test failure on mingw.
30328         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
30330 2011-09-21  Bruno Haible  <bruno@clisp.org>
30332         select tests: Avoid test failures on OSF/1 5.1 and mingw.
30333         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
30334         native Windows.
30336 2011-09-21  Bruno Haible  <bruno@clisp.org>
30338         New module 'fdopen'.
30339         * lib/stdio.in.h (fdopen): New declaration.
30340         * lib/fdopen.c: New file.
30341         * m4/fdopen.m4: New file.
30342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
30343         REPLACE_FDOPEN.
30344         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
30345         REPLACE_FDOPEN.
30346         * modules/fdopen: New file.
30347         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
30348         * tests/test-stdio-c++.cc: Check signature of fdopen.
30349         * doc/posix-functions/fdopen.texi: Mention the new module.
30351 2011-09-21  Bruno Haible  <bruno@clisp.org>
30353         unlockpt tests: Avoid test failure on NetBSD 5.1.
30354         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
30355         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
30357 2011-09-21  Bruno Haible  <bruno@clisp.org>
30359         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
30360         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
30361         * tests/test-getlogin_r.c (main): Likewise.
30363 2011-09-20  Bruno Haible  <bruno@clisp.org>
30365         time tests: Don't require pid_t.
30366         * doc/posix-headers/time.texi: Revert last change.
30367         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
30368         * tests/test-time.c: Comment out the check for pid_t.
30370 2011-09-20  Bruno Haible  <bruno@clisp.org>
30372         fsync tests: Avoid a test failure on mingw.
30373         * tests/test-fsync.c (main): Allow a failure with EIO.
30375 2011-09-20  Bruno Haible  <bruno@clisp.org>
30377         euidaccess: Update comments.
30378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
30380 2011-09-20  Bruno Haible  <bruno@clisp.org>
30382         Ensure EBADF returns for socket functions on mingw.
30383         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
30384         descriptor is invalid.
30385         * lib/bind.c (rpl_bind): Likewise.
30386         * lib/connect.c (rpl_connect): Likewise.
30387         * lib/getpeername.c (rpl_getpeername): Likewise.
30388         * lib/getsockname.c (rpl_getsockname): Likewise.
30389         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30390         * lib/listen.c (rpl_listen): Likewise.
30391         * lib/recv.c (rpl_recv): Likewise.
30392         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30393         * lib/send.c (rpl_send): Likewise.
30394         * lib/sendto.c (rpl_sendto): Likewise.
30395         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30396         * lib/shutdown.c (rpl_shutdown): Likewise.
30398 2011-09-20  Bruno Haible  <bruno@clisp.org>
30400         select tests: EBADF tests.
30401         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
30402         test_bad_fd): New functions.
30403         (test_function): Invoke also test_bad_fd.
30405 2011-09-20  Bruno Haible  <bruno@clisp.org>
30407         Tests for module 'posix_spawn_file_actions_addopen.
30408         * modules/posix_spawn_file_actions_addopen-tests: New file.
30409         * tests/test-posix_spawn_file_actions_addopen.c: New file.
30411         Tests for module 'posix_spawn_file_actions_adddup2'.
30412         * modules/posix_spawn_file_actions_adddup2-tests: New file.
30413         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
30415         Tests for module 'posix_spawn_file_actions_addclose'.
30416         * modules/posix_spawn_file_actions_addclose-tests: New file.
30417         * tests/test-posix_spawn_file_actions_addclose.c: New file.
30419 2011-09-20  Bruno Haible  <bruno@clisp.org>
30421         Tests for module 'unlockpt'.
30422         * modules/unlockpt-tests: New file.
30423         * tests/test-unlockpt.c: New file.
30424         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
30426         Tests for module 'grantpt'.
30427         * modules/grantpt-tests: New file.
30428         * tests/test-grantpt.c: New file.
30429         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
30431 2011-09-20  Bruno Haible  <bruno@clisp.org>
30433         freopen tests: EBADF tests.
30434         * tests/test-freopen.c: Include errno.h, unistd.h.
30435         (main): Add tests for EBADF, commented out for the moment.
30437         fclose tests: EBADF tests.
30438         * tests/test-fclose.c (main): Add tests for EBADF.
30440         fflush tests: EBADF tests.
30441         * tests/test-fflush.c: Include errno.h, macros.h.
30442         (main): Add tests for EBADF.
30444         ftello tests: EBADF tests.
30445         * tests/test-ftello4.sh: New file.
30446         * tests/test-ftello4.c: New file.
30447         * modules/ftello-tests (Files): Add them.
30448         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
30450         fseeko tests: EBADF tests.
30451         * tests/test-fseeko4.sh: New file.
30452         * tests/test-fseeko4.c: New file.
30453         * modules/fseeko-tests (Files): Add them.
30454         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
30456         Tests for function fputc().
30457         * modules/fputc-tests: New file.
30458         * tests/test-fputc.c: New file.
30459         * modules/stdio-tests (Depends-on): Add fputc-tests.
30461         Tests for function fgetc().
30462         * modules/fgetc-tests: New file.
30463         * tests/test-fgetc.c: New file.
30464         * modules/stdio-tests (Depends-on): Add fgetc-tests.
30466         Tests for function fdopen().
30467         * modules/fdopen-tests: New file.
30468         * tests/test-fdopen.c: New file.
30469         * modules/stdio-tests (Depends-on): Add fdopen-tests.
30471         Tests for module 'vdprintf'.
30472         * modules/vdprintf-tests: New file.
30473         * tests/test-vdprintf.c: New file.
30475         Tests for module 'dprintf'.
30476         * modules/dprintf-tests: New file.
30477         * tests/test-dprintf.c: New file.
30479 2011-09-20  Bruno Haible  <bruno@clisp.org>
30481         Tests for module 'ioctl'.
30482         * modules/ioctl-tests: New file.
30483         * tests/test-ioctl.c: New file.
30485 2011-09-20  Bruno Haible  <bruno@clisp.org>
30487         fcntl tests: EBADF tests.
30488         * tests/test-fcntl.c (main): Add more tests for EBADF.
30490 2011-09-20  Bruno Haible  <bruno@clisp.org>
30492         utimensat tests: EBADF tests.
30493         * tests/test-utimensat.c (main): Add tests for EBADF.
30495         renameat tests: EBADF tests.
30496         * tests/test-renameat.c (main): Add tests for EBADF.
30498         mkfifoat tests: EBADF tests.
30499         * tests/test-mkfifoat.c (main): Add tests for EBADF.
30501         readlinkat tests: EBADF tests.
30502         * tests/test-readlinkat.c (main): Add tests for EBADF.
30504         symlinkat tests: EBADF tests.
30505         * tests/test-symlinkat.c (main): Add tests for EBADF.
30507         linkat tests: EBADF tests.
30508         * tests/test-linkat.c (main): Add tests for EBADF.
30510         Tests for module 'faccessat'.
30511         * modules/faccessat-tests: New file.
30512         * tests/test-faccessat.c: New file.
30514         fdopendir tests: EBADF tests.
30515         * tests/test-fdopendir.c (main): Add more tests for EBADF.
30517         openat tests: EBADF tests.
30518         * tests/test-fchownat.c (main): Add tests for EBADF.
30519         * tests/test-fstatat.c (main): Likewise.
30520         * tests/test-mkdirat.c (main): Likewise.
30521         * tests/test-openat.c (main): Likewise.
30522         * tests/test-unlinkat.c (main): Likewise.
30523         * tests/test-fchmodat.c: New file.
30524         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
30525         (Makefile.am): Also run 'test-fchmodat'.
30527 2011-09-20  Bruno Haible  <bruno@clisp.org>
30529         utimens, futimens, fdutimensat tests: EBADF tests.
30530         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
30532         Tests for function fstat().
30533         * modules/fstat-tests: New file.
30534         * tests/test-fstat.c: New file.
30535         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
30537 2011-09-20  Bruno Haible  <bruno@clisp.org>
30539         test-ttyname_r tests: EBADF tests.
30540         * tests/test-ttyname_r.c (main): Add tests for EBADF.
30542         Tests for module 'isatty'.
30543         * modules/isatty-tests: New file.
30544         * tests/test-isatty.c: New file.
30546         Tests for module 'write'.
30547         * modules/write-tests: New file.
30548         * tests/test-write.c: New file.
30550         Tests for module 'read'.
30551         * modules/read-tests: New file.
30552         * tests/test-read.c: New file.
30554         pwrite tests: EBADF tests.
30555         * tests/test-pwrite.c (main): Add tests for EBADF.
30557         pread tests: EBADF tests.
30558         * tests/test-pread.c (main): Add tests for EBADF.
30560         lseek tests: EBADF tests.
30561         * tests/test-lseek.c (main): Add more tests for EBADF.
30563         Tests for module 'ftruncate'.
30564         * modules/ftruncate-tests: New file.
30565         * tests/test-ftruncate.sh: New file.
30566         * tests/test-ftruncate.c: New file.
30568         fsync tests: EBADF tests.
30569         * tests/test-fsync.c (main): Add more tests for EBADF.
30571         fdatasync tests: EBADF tests.
30572         * tests/test-fdatasync.c (main): Add more tests for EBADF.
30574         Tests for module 'fchown'.
30575         * modules/fchown-tests: New file.
30576         * tests/test-fchown.c: New file.
30578         Tests for module 'fchmod'.
30579         * modules/fchmod-tests: New file.
30580         * tests/test-fchmod.c: New file.
30582         fchdir tests: EBADF tests.
30583         * tests/test-fchdir.c (main): Add more tests for EBADF.
30585         dup2 tests: EBADF tests.
30586         * tests/test-dup2.c (main): Add more tests for EBADF.
30588         Tests for module 'dup'.
30589         * modules/dup-tests: New file.
30590         * tests/test-dup.c: New file.
30592         Tests for module 'close'.
30593         * modules/close-tests: New file.
30594         * tests/test-close.c: New file.
30596 2011-09-20  Bruno Haible  <bruno@clisp.org>
30598         Tests for module 'shutdown'.
30599         * modules/shutdown-tests: New file.
30600         * tests/test-shutdown.c: New file.
30602         Tests for module 'setsockopt'.
30603         * modules/setsockopt-tests: New file.
30604         * tests/test-setsockopt.c: New file.
30606         Tests for module 'sendto'.
30607         * modules/sendto-tests: New file.
30608         * tests/test-sendto.c: New file.
30610         Tests for module 'send'.
30611         * modules/send-tests: New file.
30612         * tests/test-send.c: New file.
30614         Tests for module 'recvfrom'.
30615         * modules/recvfrom-tests: New file.
30616         * tests/test-recvfrom.c: New file.
30618         Tests for module 'recv'.
30619         * modules/recv-tests: New file.
30620         * tests/test-recv.c: New file.
30622         Tests for module 'listen'.
30623         * modules/listen-tests: New file.
30624         * tests/test-listen.c: New file.
30626         Tests for module 'getsockopt'.
30627         * modules/getsockopt-tests: New file.
30628         * tests/test-getsockopt.c: New file.
30630         Tests for module 'getsockname'.
30631         * modules/getsockname-tests: New file.
30632         * tests/test-getsockname.c: New file.
30634         Tests for module 'getpeername'.
30635         * modules/getpeername-tests: New file.
30636         * tests/test-getpeername.c: New file.
30638         Tests for module 'connect'.
30639         * modules/connect-tests: New file.
30640         * tests/test-connect.c: New file.
30642         Tests for module 'bind'.
30643         * modules/bind-tests: New file.
30644         * tests/test-bind.c: New file.
30646         accept4 tests: Fix for native Windows.
30647         * tests/test-accept4.c: Include sockets.h.
30648         (main): Invoke gl_sockets_startup.
30649         * modules/accept4-tests (Depends-on): Add sockets.
30651         accept tests: Fix for native Windows.
30652         * tests/test-accept.c: Include sockets.h.
30653         (main): Invoke gl_sockets_startup.
30654         * modules/accept-tests (Depends-on): Add sockets.
30656 2011-09-19  Bruno Haible  <bruno@clisp.org>
30658         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
30659         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
30660         do...while(0).
30661         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
30662         Suggested by Paul Eggert.
30664 2011-09-19  Bruno Haible  <bruno@clisp.org>
30666         sched: Ensure pid_t is defined.
30667         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
30668         not define pid_t.
30669         * lib/sched.in.h: Include <sys/types.h>.
30670         * doc/posix-headers/sched.texi: Mention the pid_t problem.
30671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30673 2011-09-19  Bruno Haible  <bruno@clisp.org>
30675         msvc-inval: Ensure the entire expansion is a single statement.
30676         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
30677         of braces.
30679 2011-09-19  Jim Meyering  <meyering@redhat.com>
30681         tests: use printf, not echo in init.sh's warn_ function
30682         * tests/init.sh (warn_): Use printf, not echo.  The latter would
30683         misbehave when given strings containing a backslash or starting
30684         with e.g., -n.  James Youngman suggested setting IFS.
30686 2011-09-19  Eric Blake  <eblake@redhat.com>
30688         futimens: enhance test
30689         * tests/test-futimens.h (test_futimens): Also check for EBADF on
30690         closed non-negative fd.
30692         date: accept 'hence' as opposite of 'ago'
30693         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
30694         * tests/test-parse-datetime.c (main): Enhance test.
30695         Suggested by Jesse Wilson.
30697 2011-09-19  Jim Meyering  <meyering@redhat.com>
30699         getcwd: don't fail in a deep directory on a system without openat
30700         Before this change, getcwd would fail when called from a directory
30701         of depth PATH_MAX / 3 or greater.  That was due to the fact that
30702         the non-openat implementation used "..", "../..", "../../..", etc.
30703         to access ancestor directories.  With too many, that string would
30704         be longer than PATH_MAX.
30705         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
30706         using gnulib's openat replacement.
30707         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
30708         we're using the replacement function.
30710 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
30712         maint.mk: avoid warnings from perl about missing files
30713         * top/maint.mk (def_sym_regex): Ignore files listed in
30714         $(gl_other_headers_) that do not exist, say because a project
30715         does not use a corresponding module.
30717 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30719         stat: use pathmax.h only if needed
30720         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
30721         This is better for Emacs, which does not have a mingw port and
30722         therefore can avoid the pathmax module.
30724         utimens: remove dependency on dup2
30725         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
30726         to work around the Linux kernel bug.
30727         * modules/utimens (Depends-on): Remove dup2.
30729 2011-09-18  Bruno Haible  <bruno@clisp.org>
30731         inet_ntop, inet_pton: Look for it also in libresolv.
30732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
30733         libnsl, search for it in libresolv.
30734         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30735         Needed on Solaris 7.
30737 2011-09-18  Bruno Haible  <bruno@clisp.org>
30739         accept, accept4 tests: Avoid link error on Solaris.
30740         * modules/accept-tests (Makefile.am): Link test-accept against
30741         $(LIBSOCKET).
30742         * modules/accept4-tests (Makefile.am): Link test-accept4 against
30743         $(LIBSOCKET).
30745         accept4: Avoid link error on Solaris.
30746         * modules/accept4 (Link): New section.
30748         socket functions: Avoid link errors on Solaris.
30749         * modules/accept (Depends-on): Add socketlib.
30750         (Link): New section.
30751         * modules/bind (Depends-on): Add socketlib.
30752         (Link): New section.
30753         * modules/connect (Depends-on): Add socketlib.
30754         (Link): New section.
30755         * modules/getpeername (Depends-on): Add socketlib.
30756         (Link): New section.
30757         * modules/getsockname (Depends-on): Add socketlib.
30758         (Link): New section.
30759         * modules/getsockopt (Depends-on): Add socketlib.
30760         (Link): New section.
30761         * modules/listen (Depends-on): Add socketlib.
30762         (Link): New section.
30763         * modules/recv (Depends-on): Add socketlib.
30764         (Link): New section.
30765         * modules/recvfrom (Depends-on): Add socketlib.
30766         (Link): New section.
30767         * modules/send (Depends-on): Add socketlib.
30768         (Link): New section.
30769         * modules/sendto (Depends-on): Add socketlib.
30770         (Link): New section.
30771         * modules/setsockopt (Depends-on): Add socketlib.
30772         (Link): New section.
30773         * modules/shutdown (Depends-on): Add socketlib.
30774         (Link): New section.
30775         * modules/socket (Depends-on): Add socketlib.
30776         (Link): New section.
30778 2011-09-18  Bruno Haible  <bruno@clisp.org>
30780         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
30781         * tests/test-ptsname.c (main): Terminate the test if it takes longer
30782         than 5 seconds.
30783         * modules/ptsname-tests (configure.ac): Test for alarm.
30785 2011-09-18  Bruno Haible  <bruno@clisp.org>
30787         posix_spawn_file_actions_add*: Fix module dependencies.
30788         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
30789         posix_spawn_file_actions_init.
30790         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
30791         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
30793 2011-09-18  Bruno Haible  <bruno@clisp.org>
30795         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
30796         * tests/test-rename.h (test_rename): Allow error code EEXIST.
30797         * tests/test-renameat.c (main): Likewise.
30799 2011-09-18  Bruno Haible  <bruno@clisp.org>
30801         Tests for module 'accept4'.
30802         * modules/accept4-tests: New file.
30803         * tests/test-accept4.c: New file.
30805 2011-09-18  Bruno Haible  <bruno@clisp.org>
30807         Tests for module 'accept'.
30808         * modules/accept-tests: New file.
30809         * tests/test-accept.c: New file.
30811 2011-09-18  Bruno Haible  <bruno@clisp.org>
30813         dup2: Support for MSVC.
30814         * lib/dup2.c: Include msvc-inval.h.
30815         (rpl_dup2): Handle invalid parameter notifications during dup2 and
30816         _get_osfhandle calls.
30817         * modules/dup2 (Depends-on): Add msvc-inval.
30818         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
30820         New module 'msvc-inval'.
30821         * lib/msvc-inval.h: New file.
30822         * lib/msvc-inval.c: New file.
30823         * m4/msvc-inval.m4: New file.
30824         * modules/msvc-inval: New file.
30826 2011-09-17  Bruno Haible  <bruno@clisp.org>
30828         Tests for module 'pclose'.
30829         * modules/pclose-tests: New file.
30831         New module 'pclose'.
30832         * lib/stdio.in.h (pclose): New declaration.
30833         * lib/pclose.c: New file.
30834         * m4/pclose.m4: New file.
30835         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
30836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
30837         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
30838         * modules/pclose: New file.
30839         * modules/popen-tests (Depends-on): Add pclose.
30840         * modules/popen-safer-tests (Depends-on): Likewise.
30841         * doc/posix-functions/pclose.texi: Mention the new module.
30843 2011-09-17  Bruno Haible  <bruno@clisp.org>
30845         popen: Support for MSVC.
30846         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
30847         * lib/popen.c (popen): Provide alternate definition for native Windows.
30848         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
30849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30850         * modules/popen (Depends-on, configure.ac): Update condition.
30851         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30852         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30853         fixed.
30855 2011-09-17  Bruno Haible  <bruno@clisp.org>
30857         isnanl, isnand, isnanf: Work around MSVC bug.
30858         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30860 2011-09-17  Bruno Haible  <bruno@clisp.org>
30862         sys_socket tests: Fix recent mistake.
30863         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30865 2011-09-17  Bruno Haible  <bruno@clisp.org>
30867         putenv: Support for MSVC.
30868         * modules/putenv (Depends-on): Add environ.
30869         * lib/putenv.c (environ): Disable declaration.
30870         * lib/unistd.in.h: Update comment.
30872 2011-09-17  Bruno Haible  <bruno@clisp.org>
30874         math: Avoid macro redefinition warnings on MSVC.
30875         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30876         Undefine before redefining.
30878 2011-09-17  Bruno Haible  <bruno@clisp.org>
30880         doc: Mention functions which are declared as macros.
30881         * doc/posix-functions/*[fl].texi: Mention that some functions are
30882         defined as macros with arguments only.
30884 2011-09-17  Bruno Haible  <bruno@clisp.org>
30886         Add dependencies to new dirent related modules.
30887         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30888         * modules/fts (Depends-on): Likewise.
30889         * modules/glob (Depends-on): Likewise.
30890         * modules/savedir (Depends-on): Likewise.
30891         * modules/scandir (Depends-on): Likewise.
30892         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30893         * modules/fdopendir (Depends-on): Add opendir.
30895 2011-09-17  Bruno Haible  <bruno@clisp.org>
30897         inet_pton: Support for MSVC on Windows Vista or newer.
30898         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30899         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30900         HAVE_DECL_INET_PTON is defined.
30901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30902         On platforms with <winsock2.h>, test whether inet_pton is declared in
30903         <ws2tcpip.h>. If so, arrange to replace it.
30904         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30905         REPLACE_INET_PTON.
30906         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30907         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30908         (Depends-on, configure.ac): Update condition.
30909         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30911 2011-09-17  Bruno Haible  <bruno@clisp.org>
30913         inet_ntop: Support for MSVC on Windows Vista or newer.
30914         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30915         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30916         HAVE_DECL_INET_NTOP is defined.
30917         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30918         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30919         <ws2tcpip.h>. If so, arrange to replace it.
30920         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30921         REPLACE_INET_NTOP.
30922         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30923         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30924         (Depends-on, configure.ac): Update condition.
30925         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30927 2011-09-16  Eric Blake  <eblake@redhat.com>
30929         test-fsync: yet another enhancement
30930         * tests/test-fsync.c (main): Also test behavior on read-only text
30931         file.
30933 2011-09-16  Bruno Haible  <bruno@clisp.org>
30935         Enhance fsync, fdatasync tests.
30936         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30937         * tests/test-fdatasync.c (main): Likewise.
30939 2011-09-16  Bruno Haible  <bruno@clisp.org>
30941         Support for MSVC compiler: Ensure mode_t gets defined.
30942         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30943         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30945         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30946         * tests/test-fcntl-h.c: Check that mode_t is defined.
30947         * tests/test-sys_stat.c: Likewise.
30948         * tests/test-sys_types.c: Likewise.
30949         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30950         * doc/posix-headers/sys_stat.texi: Likewise.
30951         * doc/posix-headers/sys_types.texi: Likewise.
30953 2011-09-16  Bruno Haible  <bruno@clisp.org>
30955         sys_stat: Support for MSVC.
30956         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30957         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30958         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30959         MSVC.
30961 2011-09-16  Bruno Haible  <bruno@clisp.org>
30963         Support for MSVC compiler: Ensure off_t gets defined.
30964         * lib/unistd.in.h: Include <sys/types.h>.
30965         * tests/test-fcntl-h.c: Check that off_t is defined.
30966         * tests/test-sys_stat.c: Likewise.
30967         * tests/test-sys_types.c: Likewise.
30969 2011-09-16  Eric Blake  <eblake@redhat.com>
30971         fdatasync: port to Solaris
30972         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30973         * modules/fdatasync (Link): Document it.
30974         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30976         fdatasync: port to MacOS X 10.7
30977         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30978         declared.
30979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30980         * modules/unistd (Makefile.am): Substitute it.
30981         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30982         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30984         fdatasync: minor improvements
30985         * modules/fdatasync (Depends-on): Add condition for fsync.
30986         * lib/fdatasync.c (fdatasync): Add comment.
30987         * tests/test-unistd-c++.cc: Test fdatasync.
30989         unistd: update refs to newer POSIX
30990         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30991         Suggested by Bruno Haible.
30993         fdatasync: new module
30994         * modules/fsync (Description): Document difference to fdatasync.
30995         * modules/fdatasync: New module.
30996         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30997         * lib/fdatasync.c (fdatasync): Likewise.
30998         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30999         defaults.
31000         * modules/unistd (Makefile.am): Set witnesses.
31001         * lib/unistd.in.h (fdatasync): Declare.
31002         * MODULES.html.sh: Document it.
31003         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
31004         * modules/fdatasync-tests: New test.
31005         * tests/test-fdatasync.c: Likewise.
31007 2011-09-16  Eric Blake  <eblake@redhat.com>
31009         test-fsync: enhance tests
31010         * modules/fsync-tests (Depends-on): Add errno, for mingw.
31011         * tests/test-fsync.c (main): Enhance test.
31013 2011-09-15  Bruno Haible  <bruno@clisp.org>
31015         Support for MSVC compiler: Ensure ssize_t gets defined.
31016         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
31017         * doc/posix-headers/stdio.texi: Likewise.
31018         * modules/stdio (Depends-on): Add ssize_t.
31019         * modules/sys_socket (Depends-on): Likewise.
31020         * modules/sys_types (Depends-on): Likewise.
31021         * modules/sys_uio (Depends-on): Likewise.
31022         * modules/unistd (Depends-on): Likewise.
31023         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
31024         * tests/test-sys_types.c: Check that ssize_t is defined.
31026 2011-09-14  Bruno Haible  <bruno@clisp.org>
31028         Avoid using #, the m4 comment starter character, near brackets.
31029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
31030         delimiter character in sed expressions.
31031         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
31032         Suggested by Eric Blake.
31034         Properly quote AC_CHECK_DECLS' 4th argument.
31035         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
31036         argument.
31037         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31038         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31039         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31040         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31042         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
31043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
31044         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
31045         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
31046         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31047         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
31048         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
31049         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31050         * m4/isinf.m4 (gl_ISINF): Likewise.
31051         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31052         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
31057         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31058         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
31059         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
31060         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31061         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31062         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
31064         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31066         Reported by Eric Blake.
31068         Properly quote AC_CHECK_DECL's 4th argument.
31069         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
31070         argument.
31071         * m4/argp.m4 (gl_ARGP): Likewise.
31072         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31073         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31074         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31075         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31076         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
31077         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
31078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
31079         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31081         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31082         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31083         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31084         Reported by Eric Blake.
31086 2011-09-14  Eric Blake  <eblake@redhat.com>
31088         opendir: avoid compile warning
31089         * lib/opendir.c (includes): Always include errno.h.
31090         Reported by Tatsuro MATSUOKA.
31092 2011-09-14  Jim Meyering  <meyering@redhat.com>
31094         maint.mk: sc_tight_scope: propagate failure from sub-make
31095         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
31096         Reported by Martin von Gagern.
31098 2011-09-13  Bruno Haible  <bruno@clisp.org>
31100         tempname: Support for MSVC.
31101         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
31102         MSVC.
31103         * modules/tempname (Depends-on): Add fcntl-h.
31105 2011-09-13  Bruno Haible  <bruno@clisp.org>
31107         sys_time: Support for MSVC.
31108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
31109         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
31110         include <winsock2.h>.
31111         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
31112         function declarations that collide with POSIX.
31113         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
31114         (Makefile.am): Substitute HAVE_WINSOCK2_H.
31116 2011-09-13  Bruno Haible  <bruno@clisp.org>
31118         stat: Support for MSVC.
31119         * lib/stat.c: Include pathmax.h.
31120         * modules/stat (Depends-on): Add pathmax.
31122         pathmax: Support for native Windows.
31123         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
31125 2011-09-12  Bruno Haible  <bruno@clisp.org>
31127         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
31128         * lib/dirent.in.h (struct dirent): New type.
31129         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
31130         DT_WHT): New macros.
31131         (DIR): New type.
31132         (opendir, closedir): Declare only if the module 'opendir' is enabled.
31133         (readdir, rewinddir): New declarations.
31134         * lib/dirent-private.h: New file.
31135         * lib/opendir.c: New file.
31136         * lib/readdir.c: New file.
31137         * lib/rewinddir.c: New file.
31138         * lib/closedir.c: New file.
31139         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
31140         * m4/opendir.m4: New file.
31141         * m4/readdir.m4: New file.
31142         * m4/rewinddir.m4: New file.
31143         * m4/closedir.m4: New file.
31144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
31145         REPLACE_CLOSEDIR here.
31146         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
31147         readdir, rewinddir are declared.
31148         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
31149         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
31150         HAVE_REWINDDIR, HAVE_CLOSEDIR.
31151         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
31152         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
31153         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
31154         * modules/opendir: New file.
31155         * modules/readdir: New file.
31156         * modules/rewinddir: New file.
31157         * modules/closedir: New file.
31158         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
31159         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
31160         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
31161         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
31162         * NEWS: Mention the 'fchdir' change.
31164 2011-09-11  Bruno Haible  <bruno@clisp.org>
31166         asm-underscore.m4: Support for MSVC.
31167         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
31168         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
31170 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
31172         Doc about crypt functions.
31173         * doc/posix-functions/crypt.texi: Expand range of glibc versions
31174         needing for _GNU_SOURCE to get crypt.
31175         * doc/posix-functions/encrypt.texi: Likewise.
31176         * doc/posix-functions/setkey.texi: Likewise.
31178 2011-09-11  Bruno Haible  <bruno@clisp.org>
31180         doc: Update regarding MSVC 9.
31181         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
31182         tested".
31183         * doc/posix-functions/*.texi: Update with info about MSVC 9.
31184         * doc/posix-headers/*.texi: Likewise.
31185         * doc/pastposix-functions/*.texi: Likewise.
31186         * doc/glibc-functions/*.texi: Likewise.
31187         * doc/glibc-headers/*.texi: Likewise.
31189 2011-09-11  Bruno Haible  <bruno@clisp.org>
31191         unistd et al.: Don't assume <unistd.h> exists.
31192         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
31193         does not exist.
31194         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
31195         exist. But include <stdlib.h>.
31196         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
31197         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
31198         symlink() does not exist.
31199         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
31200         include <io.h> instead.
31201         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
31202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
31203         include <direct.h> instead.
31204         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31206         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
31207         <io.h> instead.
31208         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
31209         correctly if the system does not have hard links.
31210         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
31211         <direct.h> instead.
31212         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
31213         it when looking for function declarations.
31214         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
31215         <direct.h> and <io.h> instead.
31216         * doc/posix-headers/unistd.texi: More details about MSVC problem.
31218 2011-09-11  Bruno Haible  <bruno@clisp.org>
31220         strcase: Support for MSVC.
31221         * modules/strcase (Status, Notice): Remove obsoletion mark.
31222         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
31223         * doc/posix-functions/strncasecmp.texi: Likewise.
31225         strings: Don't assume <strings.h> exists.
31226         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
31227         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
31228         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
31229         * doc/posix-headers/strings.texi: Mention the MSVC problem.
31231 2011-09-11  Bruno Haible  <bruno@clisp.org>
31233         dirent: Don't assume <dirent.h> exists.
31234         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
31235         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
31236         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
31237         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
31239 2011-09-11  Bruno Haible  <bruno@clisp.org>
31241         Fix wint_t on MSVC.
31242         * lib/wchar.in.h (wint_t): On MSVC, override it.
31243         * lib/wctype.in.h (wint_t): Likewise.
31244         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
31245         MSVC.
31246         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
31247         * doc/posix-headers/wctype.texi: Likewise.
31249 2011-09-11  Bruno Haible  <bruno@clisp.org>
31251         sys_types: Fix typo.
31252         * lib/sys_types.in.h: Fix typo in comment.
31253         Reported by Paul Eggert.
31255         Support for MSVC compiler: Ensure size_t gets defined.
31256         * modules/strings (Depends-on): Add 'sys_types'.
31257         * modules/sys_uio (Depends-on): Likewise.
31258         * lib/sys_uio.in.h: Update comment.
31260         C++ tests for module 'sys_types'.
31261         * modules/sys_types-c++-tests: New file.
31262         * tests/test-sys_types-c++.cc: New file.
31264         Tests for module 'sys_types'.
31265         * modules/sys_types-tests: New file.
31266         * tests/test-sys_types.c: New file.
31268         New module 'sys_types'.
31269         * lib/sys_types.in.h: New file.
31270         * m4/sys_types_h.m4: New file.
31271         * modules/sys_types: New file.
31272         * doc/posix-headers/sys_types.texi: Mention the new module and the
31273         size_t problem on MSVC 9.
31275 2011-09-11  Bruno Haible  <bruno@clisp.org>
31277         Support for MSVC compiler: Avoid division by a literal 0.
31278         * lib/math.in.h (NAN): Define through a function call also on MSVC.
31279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
31280         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
31281         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
31282         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
31283         * tests/infinity.h: New file.
31284         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
31285         on MSVC.
31286         * tests/test-ceilf1.c: Include infinity.h.
31287         (main): Use Infinityf.
31288         * tests/test-ceil1.c: Include infinity.h.
31289         (main): Use Infinityd.
31290         * tests/test-ceill.c: Include infinity.h.
31291         (main): Use Infinityl.
31292         * tests/test-dprintf-posix.c: Include infinity.h.
31293         (test_function): Use Infinityd.
31294         * tests/test-floorf1.c: Include infinity.h.
31295         (main): Use Infinityf.
31296         * tests/test-floor1.c: Include infinity.h.
31297         (main): Use Infinityd.
31298         * tests/test-floorl.c: Include infinity.h.
31299         (main): Use Infinityl.
31300         * tests/test-fprintf-posix.c: Include infinity.h.
31301         (test_function): Use Infinityd.
31302         * tests/test-frexp.c: Include infinity.h.
31303         (main): Use Infinityd.
31304         * tests/test-frexpl.c: Include infinity.h.
31305         (main): Use Infinityl.
31306         * tests/test-isfinite.c: Include infinity.h.
31307         (test_isfinitef): Use Infinityf.
31308         (test_isfinited): Use Infinityd.
31309         (test_isfinitel): Use Infinityl.
31310         * tests/test-isinf.c: Include infinity.h.
31311         (test_isinff): Use Infinityf.
31312         (test_isinfd): Use Infinityd.
31313         (test_isinfl): Use Infinityl.
31314         * tests/test-isnan.c: Include infinity.h.
31315         (test_float): Use Infinityf.
31316         (test_double): Use Infinityd.
31317         (test_long_double): Use Infinityl.
31318         * tests/test-isnanf.h: Include infinity.h.
31319         (main): Use Infinityf.
31320         * tests/test-isnand.h: Include infinity.h.
31321         (main): Use Infinityd.
31322         * tests/test-isnanl.h: Include infinity.h.
31323         (main): Use Infinityl.
31324         * tests/test-ldexpl.c: Include infinity.h.
31325         (main): Use Infinityl.
31326         * tests/test-printf-posix.h: Include infinity.h.
31327         (test_function): Use Infinityd.
31328         * tests/test-roundf1.c: Include infinity.h.
31329         (main): Use Infinityf.
31330         * tests/test-round1.c: Include infinity.h.
31331         (main): Use Infinityd.
31332         * tests/test-roundl.c: Include infinity.h.
31333         (main): Use Infinityl.
31334         * tests/test-signbit.c: Include infinity.h.
31335         (test_signbitf): Use Infinityf.
31336         (test_signbitd): Use Infinityd.
31337         (test_signbitl): Use Infinityl.
31338         * tests/test-snprintf-posix.h: Include infinity.h.
31339         (test_function): Use Infinityd, Infinityl.
31340         * tests/test-sprintf-posix.h: Include infinity.h.
31341         (test_function): Use Infinityd, Infinityl.
31342         * tests/test-truncf1.c: Include infinity.h.
31343         (main): Use Infinityf.
31344         * tests/test-trunc1.c: Include infinity.h.
31345         (main): Use Infinityd.
31346         * tests/test-truncl.c: Include infinity.h.
31347         (main): Use Infinityl.
31348         * tests/test-vasnprintf-posix.c: Include infinity.h.
31349         (test_function): Use Infinityd, Infinityl.
31350         * tests/test-vasprintf-posix.c: Include infinity.h.
31351         (test_function): Use Infinityd, Infinityl.
31352         * modules/ceilf-tests (Files): Add tests/infinity.h.
31353         * modules/ceil-tests (Files): Likewise.
31354         * modules/ceill-tests (Files): Likewise.
31355         * modules/dprintf-posix-tests (Files): Likewise.
31356         * modules/floorf-tests (Files): Likewise.
31357         * modules/floor-tests (Files): Likewise.
31358         * modules/floorl-tests (Files): Likewise.
31359         * modules/fprintf-posix-tests (Files): Likewise.
31360         * modules/frexp-tests (Files): Likewise.
31361         * modules/frexp-nolibm-tests (Files): Likewise.
31362         * modules/frexpl-tests (Files): Likewise.
31363         * modules/frexpl-nolibm-tests (Files): Likewise.
31364         * modules/isfinite-tests (Files): Likewise.
31365         * modules/isinf-tests (Files): Likewise.
31366         * modules/isnan-tests (Files): Likewise.
31367         * modules/isnanf-tests (Files): Likewise.
31368         * modules/isnanf-nolibm-tests (Files): Likewise.
31369         * modules/isnand-tests (Files): Likewise.
31370         * modules/isnand-nolibm-tests (Files): Likewise.
31371         * modules/isnanl-tests (Files): Likewise.
31372         * modules/isnanl-nolibm-tests (Files): Likewise.
31373         * modules/ldexpl-tests (Files): Likewise.
31374         * modules/printf-posix-tests (Files): Likewise.
31375         * modules/roundf-tests (Files): Likewise.
31376         * modules/round-tests (Files): Likewise.
31377         * modules/roundl-tests (Files): Likewise.
31378         * modules/signbit-tests (Files): Likewise.
31379         * modules/snprintf-posix-tests (Files): Likewise.
31380         * modules/sprintf-posix-tests (Files): Likewise.
31381         * modules/truncf-tests (Files): Likewise.
31382         * modules/trunc-tests (Files): Likewise.
31383         * modules/truncl-tests (Files): Likewise.
31384         * modules/vasnprintf-posix-tests (Files): Likewise.
31385         * modules/vasprintf-posix-tests (Files): Likewise.
31386         * modules/vdprintf-posix-tests (Files): Likewise.
31387         * modules/vfprintf-posix-tests (Files): Likewise.
31388         * modules/vprintf-posix-tests (Files): Likewise.
31389         * modules/vsnprintf-posix-tests (Files): Likewise.
31390         * modules/vsprintf-posix-tests (Files): Likewise.
31391         * modules/xprintf-posix-tests (Files): Likewise.
31393 2011-09-11  Bruno Haible  <bruno@clisp.org>
31395         Ensure pid_t gets defined.
31396         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
31397         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
31398         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31400         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31401         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
31402         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31404         * tests/test-fcntl-h.c: Check that pid_t is defined.
31405         * tests/test-sched.c: Likewise.
31406         * tests/test-termios.c: Likewise.
31407         * tests/test-time.c: Likewise.
31408         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
31409         * doc/posix-headers/signal.texi: Likewise.
31410         * doc/posix-headers/sys_types.texi: Likewise.
31411         * doc/posix-headers/time.texi: Likewise.
31413 2011-09-11  Bruno Haible  <bruno@clisp.org>
31415         acl: Fix compilation on Solaris 10 (older version).
31416         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
31417         of ACE_EVERYONE.
31418         * lib/set-mode-acl.c (qset_acl): Likewise.
31419         Reported by Christian Jullien <eligis@orange.fr>.
31421 2011-09-10  Bruno Haible  <bruno@clisp.org>
31423         iconv, unsetenv: Add support for MSVC compiler.
31424         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
31425         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
31427 2011-09-10  Bruno Haible  <bruno@clisp.org>
31429         *printf: Add support for MSVC compiler.
31430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
31431         handles the exception caused by the %n directive. When cross-compiling,
31432         guess no on native Windows.
31433         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31434         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
31435         emulate it through vsnprintf.
31436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
31437         * doc/posix-functions/dprintf.texi: Update documentation regarding
31438         MSVC 9.
31439         * doc/posix-functions/fprintf.texi: Likewise.
31440         * doc/posix-functions/printf.texi: Likewise.
31441         * doc/posix-functions/snprintf.texi: Likewise.
31442         * doc/posix-functions/sprintf.texi: Likewise.
31443         * doc/posix-functions/swprintf.texi: Likewise.
31444         * doc/posix-functions/vdprintf.texi: Likewise.
31445         * doc/posix-functions/vfprintf.texi: Likewise.
31446         * doc/posix-functions/vprintf.texi: Likewise.
31447         * doc/posix-functions/vsnprintf.texi: Likewise.
31448         * doc/posix-functions/vsprintf.texi: Likewise.
31449         * doc/glibc-functions/asprintf.texi: Likewise.
31450         * doc/glibc-functions/obstack_printf.texi: Likewise.
31451         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31452         * doc/glibc-functions/vasprintf.texi: Likewise.
31454 2011-09-10  Bruno Haible  <bruno@clisp.org>
31456         nocrash: Add support for native Windows.
31457         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
31459 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
31460             Bruno Haible  <bruno@clisp.org>
31462         absolute-header, include-next: Add support for MSVC compiler.
31463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
31464         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
31465         directory separator in #line directives.
31466         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
31467         recognize also backslash as directory separator in #line directives.
31469 2011-09-08  Jim Meyering  <meyering@redhat.com>
31471         maint.mk: mark the post-release commit log with "maint: " prefix
31472         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
31473         one-line commit-log summary.
31475 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
31476             Bruno Haible  <bruno@clisp.org>
31478         Doc about crypt functions.
31479         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
31480         systems.
31481         * doc/posix-functions/encrypt.texi: Likewise.
31482         * doc/posix-functions/setkey.texi: Likewise.
31484 2011-09-08  Simon Josefsson  <simon@josefsson.org>
31486         * lib/gc.h: Fix copyright header.
31488 2011-09-07  Bruno Haible  <bruno@clisp.org>
31490         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
31491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
31492         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
31494 2011-09-07  Bruno Haible  <bruno@clisp.org>
31496         openat: Work around compilation error with OSF/1 5.1 DTK cc.
31497         * lib/fopen.c: Use different syntax for include of <stdio.h>.
31498         * lib/freopen.c: Likewise.
31499         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
31500         * lib/lstat.c: Likewise.
31501         * lib/stat.c: Likewise.
31502         * lib/open.c: Use different syntax for include of <fcntl.h>.
31503         * lib/openat.c: Include fcntl.h again, explicitly.
31505 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
31507         parse-datetime: document the newly accepted format
31508         * doc/parse-datetime.texi (Combined date and time of day items):
31509         New section.
31511 2011-09-06  Bruno Haible  <bruno@clisp.org>
31513         acl: Fix a test failure on newer Solaris 10 with ZFS.
31514         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
31515         ENOSYS as no ACL.
31516         Reported by Jim Meyering.
31518 2011-09-06  Bruno Haible  <bruno@clisp.org>
31520         acl: Update for AIX >= 5.3 with NFS.
31521         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
31522         ENOSYS as no ACL.
31524         acl: Fix a test failure on AIX >= 5.3 with NFS.
31525         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
31526         as no ACL.
31528 2011-09-06  Bruno Haible  <bruno@clisp.org>
31530         acl: Fix a test failure on IRIX 6.5 with NFS.
31531         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
31532         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
31533         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
31534         * lib/copy-acl.c (qcopy_acl): Likewise.
31536 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
31538         openat: port to AIX 7.1 with large files
31539         AIX 7.1 does a "#define openat open64at" if large files are in use,
31540         so we can't simply #undef openat.  Use the orig_openat trick (similar
31541         to orig_open in lib/open.c) to work around the problem.  Problem
31542         reported by Kevin Brott for GNU tar, in the thread containing
31543         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
31544         * lib/openat.c (__need_system_fcntl_h): Define first.
31545         Include <fcntl.h> and <sys/types.h> before undefining.
31546         (orig_openat) [HAVE_OPENAT]: New inline function.
31547         (openat) [HAVE_OPENAT]: Do not undef.
31548         (rpl_openat): Use orig_openat, not openat.
31550 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
31551             Bruno Haible  <bruno@clisp.org>
31553         acl: Avoid errors on NonStop Kernel.
31554         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
31555         ENOTSUP errors.
31557 2011-09-05  Bruno Haible  <bruno@clisp.org>
31559         acl: Clean up Solaris code.
31560         * lib/acl-internal.h: Remove no-op #if.
31561         * lib/file-has-acl.c: Likewise.
31562         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
31563         * lib/copy-acl.c (qcopy_acl): Likewise.
31565 2011-09-05  Bruno Haible  <bruno@clisp.org>
31567         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
31568         binaries built on the original Solaris 10.
31569         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
31570         trivial.
31572 2011-09-05  Bruno Haible  <bruno@clisp.org>
31574         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31575         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
31576         10.
31577         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
31578         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
31579         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
31580         instead of acl_get, facl_get, acl_set, facl_set.
31582 2011-09-05  Bruno Haible  <bruno@clisp.org>
31584         copy-file: Try unit tests on more file systems.
31585         * tests/test-copy-file-1.sh: New file.
31586         * tests/test-copy-file-2.sh: New file.
31587         * modules/copy-file-tests (Files): Add them.
31588         (Makefile.am): Add them to TESTS.
31590         acl: Try unit tests on more file systems.
31591         * tests/test-file-has-acl-1.sh: New file.
31592         * tests/test-file-has-acl-2.sh: New file.
31593         * tests/test-set-mode-acl-1.sh: New file.
31594         * tests/test-set-mode-acl-2.sh: New file.
31595         * tests/test-copy-acl-1.sh: New file.
31596         * tests/test-copy-acl-2.sh: New file.
31597         * modules/acl-tests (Files): Add them.
31598         (Makefile.am): Add them to TESTS.
31600 2011-09-04  Bruno Haible  <bruno@clisp.org>
31602         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31603         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
31604         10.
31605         (OLD_ALLOW, OLD_DENY): New macros.
31606         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
31607         ACE_ACCESS_ALLOWED_ACE_TYPE.
31608         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
31609         ACE_ACCESS_DENIED_ACE_TYPE.
31610         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
31611         (NEW_ACE_EXECUTE): Fix value.
31612         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
31613         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
31614         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
31615         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
31616         NEW_ACE_SYNCHRONIZE): New macros.
31617         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
31618         instead of acl_fromtext, acl_set, facl_set.
31619         Fixes a coreutils/tests/cp/perm failure.
31621 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
31623         openat: test for fstatat (..., 0) bug
31624         Further testing with tar suggests that fstatat (..., 0)
31625         does not work in general, on AIX 7.1; see
31626         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
31627         So, give up entirely on AIX 7.1's fstatat, and fall back on our
31628         replacement fstatat (which is what older AIX releases were using
31629         anyway).
31630         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
31631         use is now changed to orig_fstatat.  This was probably the right
31632         thing to do anyway.
31633         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
31634         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
31635         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
31636         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
31637         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
31638         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
31639         if the bug is found.
31641         openat: test for fstatat (AT_FDCWD, ..., 0) bug
31642         This tests for another fstatat bug on AIX 7.1:
31643         fstatat (AT_FDCWD, ..., 0) does not work.  See
31644         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
31645         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
31646         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
31647         (rpl_fstatat): Adjust so that it works around either (or both)
31648         bugs if present.
31649         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
31651 2011-09-03  Karl Berry  <karl@gnu.org>
31653         * doc/regex.texi (Character Class Operators): Avoid literal ":"
31654         in index entries.
31656 2011-09-02  Bruno Haible  <bruno@clisp.org>
31658         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
31659         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
31660         values of AR, ARFLAGS, RANLIB.
31661         Reported by John W. Eaton <jwe@gnu.org> for Octave.
31663 2011-09-02  Bruno Haible  <bruno@clisp.org>
31665         Find 'ar' program that fits with --host argument.
31666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
31668 2011-09-02  Bruno Haible  <bruno@clisp.org>
31670         tests: init.sh: Support any non-GNU diff.
31671         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
31672         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
31673         Solaris 8.
31675 2011-09-02  Bruno Haible  <bruno@clisp.org>
31677         tests: init.sh: work also with any non-GNU diff that supports -u
31678         * tests/init.sh: Relax check for diff -u support.
31679         Rather than checking for GNU diff via --version, simply check
31680         for support for -u itself.  Useful at least on OpenBSD 4.9,
31681         AIX 7.1, IRIX 6.5, and Solaris 10.
31683 2011-09-01  Bruno Haible  <bruno@clisp.org>
31685         strtoimax, strtoumax: Document problem on HP-UX 11.
31686         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
31687         * doc/posix-functions/strtoumax.texi: Likewise.
31689 2011-09-01  Bruno Haible  <bruno@clisp.org>
31691         strtoumax: Avoid link error on OSF/1 with DTK cc.
31692         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
31693         defined as a function.
31694         * modules/strtoumax (Depends-on, configure.ac): Test only whether
31695         strtoumax is defined, not whether it is declared.
31697 2011-09-01  Bruno Haible  <bruno@clisp.org>
31699         strtoimax: Avoid link error on OSF/1 with DTK cc.
31700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
31701         defined as a function.
31702         * modules/strtoimax (Depends-on, configure.ac): Test only whether
31703         strtoimax is defined, not whether it is declared.
31705 2011-09-01  Bruno Haible  <bruno@clisp.org>
31707         imaxdiv: Avoid link error on OSF/1 with DTK cc.
31708         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
31709         as a function.
31710         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
31711         whether it is declared.
31713 2011-09-01  Bruno Haible  <bruno@clisp.org>
31715         imaxabs: Avoid link error on OSF/1 with DTK cc.
31716         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
31717         as a function.
31718         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
31719         whether it is declared.
31721 2011-09-01  Bruno Haible  <bruno@clisp.org>
31723         Tests for module 'strtoumax'.
31724         * modules/strtoumax-tests: New file.
31725         * tests/test-strtoumax.c: New file.
31727         Tests for module 'strtoimax'.
31728         * modules/strtoimax-tests: New file.
31729         * tests/test-strtoimax.c: New file.
31731         Tests for module 'imaxdiv'.
31732         * modules/imaxdiv-tests: New file.
31733         * tests/test-imaxdiv.c: New file.
31735         Tests for module 'imaxabs'.
31736         * modules/imaxabs-tests: New file.
31737         * tests/test-imaxabs.c: New file.
31739 2011-09-01  Bruno Haible  <bruno@clisp.org>
31741         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
31742         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
31743         pthread_create.
31745 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31747         openat: work around AIX 7.1 fstatat issue
31748         This should fix the problem that was not properly fixed
31749         in the previous change, dated 2011-08-30.
31750         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
31751         __need_system_stat_h defined.
31752         (orig_fstatat) [HAVE_FSTATAT]: New function.
31753         (rpl_fstatat): Go back to the old way of doing things,
31754         except call orig_fstatat instead of fstatat.
31755         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
31756         Remove unnecessary check whether fstatat fills in st_size etc.
31758 2011-09-01  Bruno Haible  <bruno@clisp.org>
31760         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
31761         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
31762         just include the system's header.
31764 2011-08-31  Jim Meyering  <meyering@redhat.com>
31766         tests: avoid spurious assertion failure in test-float.c on ppc64
31767         * tests/test-float.c (test_long_double): Comment out an assertion,
31768         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
31769         with gcc-4.4.4.
31771         maint: indent with spaces, not TABs
31772         I need to get in the habit of running gnulib's "make check".
31773         Both of these would have been caught.
31774         * m4/largefile.m4: Indent with spaces, not TABs.
31775         * lib/parse-datetime.y (iso_8601_time): Likewise.
31776         Spotted by Pádraig Brady.
31778         test-parse-datetime.c: accommodate a relatively strict gcc warning
31779         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
31780         to avoid a warning from gcc's -Werror=missing-declarations.
31781         Insert a few spaces-before-funcall-parenthesis.
31783 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
31785         parse-datetime: accept ISO 8601 date and time rep with "T" separator
31786         The parser now accepts ISO 8601 date-time strings with "T" as the
31787         separator.  It has long parsed dates like "2004-02-29 16:21:42"
31788         with a space between the date and time strings.  Now it also parses
31789         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
31790         variants like "2004-02-29T16:21:42.333-07:00"
31791         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
31792         of day representation using the 'T' separator character.
31793         * doc/parse-datetime.texi (General date syntax): replace use of
31794         deprecated --iso-8601 option with --rfc-3339 in example of date
31795         command output formats that can be parsed.
31796         * tests/test-parse-datetime.c (tm_diff): New function, taken from
31797         lib/parse-datetime.y.
31798         (gmt_offset): New function.
31799         (main): Add additional test cases to validate ISO8601 extended
31800         date and time of day parsing.
31802 2011-08-31  Bruno Haible  <bruno@clisp.org>
31804         freopen: Documentation.
31805         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
31806         name.
31807         Reported by Claudio Bley <claudio.bley@gmail.com>.
31809 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
31811         freopen: Don't crash if the filename argument is NULL.
31812         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
31813         NULL.
31815 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31817         openat: work around AIX 7.1 fstatat bug
31818         Problem reported by Kevin Brott for GNU tar, in the thread containing
31819         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
31820         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
31821         FSTATAT_ST_SIZE_ETC_BROKEN.
31822         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
31823         rpl_fstatat.
31824         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
31825         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
31826         AC_CHECK_FUNCS_ONCE for fstatat.
31827         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
31828         fchmodat, mkdirat, openat and unlinkat.
31830 2011-08-30  Bruno Haible  <bruno@clisp.org>
31832         Avoid endless recursions if config.h includes some header files.
31833         * lib/fopen.c (__need_FILE): Define already before including config.h.
31834         * lib/freopen.c (__need_FILE): Likewise.
31835         * lib/open.c (__need_system_fcntl_h): Likewise.
31836         * lib/stat.c (__need_system_sys_stat_h): Likewise.
31837         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
31838         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31840 2011-08-25  Karl Berry  <karl@gnu.org>
31842         * config/srclist.txt (ylwrap): new try.
31843         * build-aux/ylwrap: new file.
31845 2011-08-23  Bruno Haible  <bruno@clisp.org>
31847         tmpdir: Use a good default directory on native Windows.
31848         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
31849         (P_tmpdir): Default to _P_tmpdir on native Windows.
31850         (path_search): On native Windows, try the value returned by GetTempPath
31851         before trying P_tmpdir.
31852         * modules/tmpdir (Depends-on): Add pathmax.
31853         Suggested by John Darrington <john@darrington.wattle.id.au>.
31855 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31857         doc: fix typo in README-release
31858         * top/README-release: Capitalize first word of a sentence.
31860 2011-08-19  Jim Meyering  <meyering@redhat.com>
31862         fts: do not exhaust memory when processing million-entry directories
31863         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31864         directory would require about 256*N bytes of memory.  Thus, it was
31865         easy to construct a directory too large to be processed by any of
31866         those tools.  With this change, fts' maximum memory utilization is
31867         now limited to around 30MB.
31868         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31869         (fts_read): When we've processed the final entry (i.e., when
31870         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31871         using the parent entry to read any remaining entries.  Dispatch
31872         depending on what fts_build returns:
31873         - NULL+stop, aka failure: stop
31874         - NULL otherwise: move up in the dir hierarchy
31875         - non-NULL: handle this new entry
31876         (fts_build): Declare and use new local, continue_readdir.
31877         Prepare to be called from fts_read, when the entries
31878         from a partially-read directory have just been exhausted.
31879         In that case, we'll skip the opendir and instead use the parent's
31880         fts_dirp and derive dir_fd from that.
31881         Finally, in the readdir loop, if we read max_entries entries,
31882         exit the loop ensuring *not* to call closedir.  This is required
31883         so that fts_dirp can be reused on a subsequent call.
31884         Prompted by Ben England's report of memory exhaustion in find
31885         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31887         maint: fts: move decl of `dp' down into while loop; split a long line
31888         * lib/fts.c (fts_build): No semantic change.
31890         fts: add/use new struct member, fts_dirp
31891         We are about to use this to manage any directory with
31892         too many entries to read all of them into memory at once.
31893         To do that, we'll need to save the DIR* pointer in each
31894         affected FTSENT struct.
31895         * lib/fts_.h: Include <dirent.h>.
31896         (struct FTSENT) [fts_dirp]: New member.
31897         * lib/fts.c (closedir_and_clear): Define.
31898         Use it in place of closedir so that we are sure to
31899         clear the new fts_dirp member when done with it.
31900         (fts_alloc): Initialize the new member.
31901         (fts_lfree): Free, if needed.
31903         maint: fts: give __opendir2 a new parameter and rename
31904         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31905         than surreptitiously using sole caller's "dir_fd".
31906         (fts_opendir): Rename from __opendir2.
31908         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31909         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31911         maint: fts.c: correct off-by-one indentation
31912         * lib/fts.c (fts_build): Correct indentation, change style
31913         of a couple of block comments, and bracing style.
31915         maint: fts.c: move __opendir2 #define "up" out of function body
31916         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31918         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31919         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31920         out for a long time and besides was useful only on BSD systems.
31922 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31924         regex: port to Stratus OpenVOS
31925         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31926         define to empty, rather than attempting nonportable optimizations.
31927         Problem reported by Paul Green in:
31928         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31929         and fix suggested by Eric Blake in:
31930         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31932 2011-08-17  Eric Blake  <eblake@redhat.com>
31934         getcwd: fix test failures on mingw
31935         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31936         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31937         test if long directory cannot be created, and allow mingw errno.
31939         getcwd-lgpl: fix m4 to match relaxed test for BSD
31940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31941         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31942         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31943         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31944         signature problem.
31946         getcwd: fix compilation on mingw64
31947         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31948         getcwd.
31949         Reported by Marc-André Lureau.
31951         pipe2: silence compiler warning
31952         * lib/pipe2.c (pipe2): Hide label if it is not used.
31954 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31956         relocatable-prog: fix link error
31957         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31958         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31959         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31960         into modules/relocatable-lib without noticing that
31961         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31962         also needs to build relocatable.c.
31964 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31966         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31968         shell code: it contained a 'break' that was not in a loop.
31969         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31970         via a shell-language loop; this may have been true in old Autoconf
31971         versions, but it's not true in Autoconf 2.68.  I found this bug
31972         when testing coreutils git on Solaris 8, whose shell complains
31973         about the syntax error.
31975 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31977         * lib/base64.c: Fix comment to reference RFC 4648.
31978         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31979         <gvtulder@gmail.com>.
31981 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31983         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31985         po/Makefile.in.in: fix make -q problem
31986         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31987         rule, since there's no file named 'check-macro-version' and its
31988         use as a file breaks make -q.
31989         (all): Don't depend on check-macro-version.
31990         (CHECK_MACRO_VERSION): New macro.
31991         (stamp-po): Use it.
31993         configmake: fix make -q problem
31994         * modules/configmake (configmake.h): Update configmake.h's time stamp
31995         even if the file does not change.  Otherwise, 'make -q' fails.
31996         Problem reported by Simon Josefsson in
31997         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31999 2011-08-11  Jim Meyering  <meyering@redhat.com>
32001         git-version-gen: correct the advice in a comment
32002         * build-aux/git-version-gen: Correct comment.
32003         Don't recommend to list .tarball-version in .gitignore.
32005 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32007         base64: fix off-by-one buffer size bug
32008         Problem and (trivial) fix reported by Gijs van Tulder in
32009         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
32010         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
32011         * tests/test-base64.c (main): Catch the bug.
32013 2011-08-10  Eric Blake  <eblake@redhat.com>
32015         closein: correct comments
32016         * lib/closein.c (close_stdin): Improve comments.
32018 2011-08-09  Bruno Haible  <bruno@clisp.org>
32020         More tests for 'fseeko'.
32021         * tests/test-fseeko3.c: New file, from Eric Blake.
32022         * tests/test-fseeko3.sh: New file.
32023         * modules/fseeko-tests (Files): Add them.
32024         (TESTS): Add test-fseeko3.sh.
32025         (check_PROGRAMS): Add test-fseeko3.
32027 2011-08-09  Eric Blake  <eblake@redhat.com>
32029         fseeko: remove unneeded hack
32030         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
32032         fseeko: fix bug on glibc
32033         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
32034         Reported by John W. Eaton.
32036 2011-08-08  Bruno Haible  <bruno@clisp.org>
32038         unictype/base: Fix interoperability with preinstalled libunistring.
32039         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
32040         Reported by Simon Josefsson.
32042 2011-08-08  Bruno Haible  <bruno@clisp.org>
32044         iswblank: Detect declaration correctly.
32045         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
32046         AC_CHECK_DECLS invocation.
32048 2011-08-08  Bruno Haible  <bruno@clisp.org>
32050         tcgetsid: Detect declaration correctly.
32051         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
32052         AC_CHECK_DECLS invocation.
32053         Reported by Simon Josefsson.
32055 2011-08-08  Eric Blake  <eblake@redhat.com>
32057         largefile: fix typo that regressed large file support
32058         * modules/largefile (configure.ac-early): Fix section name.
32060 2011-08-06  Karl Berry  <karl@gnu.org>
32062         * MODULES.html.sh (func_all_files): _Noreturn is no longer
32063         a separate module.
32065 2011-08-05  Simon Josefsson  <simon@josefsson.org>
32067         openat: Fix warnings and commens when building unlinkat.c on Hurd.
32068         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
32069         get prototype for free.
32071 2011-08-04  Bruno Haible  <bruno@clisp.org>
32073         Tests for module 'pathmax'.
32074         * modules/pathmax-tests: New file.
32075         * tests/test-pathmax.c: New file.
32077         canonicalize-lgpl: Support larger filenames on the Hurd.
32078         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
32079         Reported by Paul Eggert.
32081         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
32082         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
32083         * lib/chdir-long.h: Include pathmax.h.
32084         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
32085         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
32086         (PATH_MAX): Remove code that is done by pathmax.h.
32087         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
32088         * lib/tmpfile.c: Add a comment.
32089         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
32090         * modules/chdir-long (Depends-on): Add pathmax.
32091         * modules/getcwd (Depends-on): Add pathmax.
32092         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
32093         is not defined.
32094         * doc/posix-headers/limits.texi: Mention the pathmax module.
32095         * NEWS: Mention the change.
32097 2011-08-02  Bruno Haible  <bruno@clisp.org>
32099         pthread_sigmask: Actually use results of gl_THREADLIB.
32100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
32101         gl_THREADLIB, not gl_[]THREADLIB.
32102         Reported by Eric Blake.
32104 2011-08-02  Jim Meyering  <meyering@redhat.com>
32106         maint.mk: relax the default _gl_TS_function_match regexp
32107         * top/maint.mk (_gl_TS_function_match): Don't require at least one
32108         space between function name and "(" in an "extern" declaration.
32109         That would fail to match a decl with no space there: extern void foo();
32111 2011-07-31  Iain Nicol  <iain@thenicols.net>
32113         git-version-gen: document that EXTRA_DIST must include .version
32114         * build-aux/git-version-gen: In the how-to-use comment, document
32115         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
32116         will fail when run from an unpacked distribution tarball.
32118 2011-08-01  Bruno Haible  <bruno@clisp.org>
32120         wctype-h: Fix last change.
32121         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
32122         REPLACE_TOWLOWER to 0.
32123         Reported by Sam Steingold <sds@gnu.org>.
32125 2011-07-31  Bruno Haible  <bruno@clisp.org>
32127         frexpl: Update autoconf test.
32128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
32129         according to changes of 2011-06-20.
32131 2011-07-31  Bruno Haible  <bruno@clisp.org>
32133         sys_utsname: Add support for Minix.
32134         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
32135         <sys/utsname.h>.
32136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32137         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
32139 2011-07-31  Bruno Haible  <bruno@clisp.org>
32141         strings: Add support for Minix.
32142         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
32143         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32144         * doc/posix-headers/strings.texi: Document the Minix problem.
32146 2011-07-31  Bruno Haible  <bruno@clisp.org>
32148         wctype-h: Add support for Minix.
32149         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
32150         REPLACE_TOWLOWER.
32151         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
32152         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
32153         REPLACE_ISWCNTRL.
32155 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
32157         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
32158         This is a performance improvement for 64-bit hosts: it causes the
32159         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
32161 2011-07-31  Bruno Haible  <bruno@clisp.org>
32163         stdioext: Add support for Minix.
32164         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
32165         * lib/fpurge.c (fpurge): Likewise.
32166         * lib/freadahead.c (freadahead): Likewise.
32167         * lib/freadable.c (freadable): Likewise.
32168         * lib/freading.c (freading): Likewise.
32169         * lib/freadptr.c (freadptr): Likewise.
32170         * lib/freadseek.c (freadptrinc): Likewise.
32171         * lib/fseeko.c (rpl_fseeko): Likewise.
32172         * lib/fseterr.c (fseterr): Likewise.
32173         * lib/fwritable.c (fwritable): Likewise.
32174         * lib/fwriting.c (fwriting): Likewise.
32175         * lib/fflush.c (clear_ungetc_buffer): Update comment.
32176         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
32178 2011-07-31  Bruno Haible  <bruno@clisp.org>
32180         errno: Port to Minix.
32181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
32182         ECONNABORTED are defined.
32183         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
32184         GNULIB_defined_ECONNABORTED): New macros.
32185         * lib/strerror-override.h (strerror_override): Test also
32186         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
32187         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
32188         ECONNABORTED.
32189         * doc/posix-headers/errno.texi: Mention the Minix problem.
32191 2011-07-31  Bruno Haible  <bruno@clisp.org>
32193         Work around declaration collisions on Minix.
32194         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
32195         defined, set REPLACE_MBSINIT.
32196         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
32197         defined, set REPLACE_MBRTOWC.
32198         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
32199         set REPLACE_MBRLEN.
32200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
32201         defined, set REPLACE_MBSRTOWCS.
32202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
32203         defined, set REPLACE_WCRTOMB.
32204         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
32205         defined, set REPLACE_WCSRTOMBS.
32207 2011-07-31  Bruno Haible  <bruno@clisp.org>
32209         Add support for Minix with ACK compiler.
32210         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
32211         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
32212         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
32214 2011-07-31  Bruno Haible  <bruno@clisp.org>
32216         Documentation about Minix.
32217         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
32218         * doc/glibc-headers/*.texi: Likewise.
32219         * doc/posix-functions/*.texi: Likewise.
32220         * doc/glibc-functions/*.texi: Likewise.
32222 2011-07-31  Bruno Haible  <bruno@clisp.org>
32224         snippet/warn-on-use: Fix indentation.
32225         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
32227 2011-07-25  Jim Meyering  <meyering@redhat.com>
32229         tests: test-update-copyright.sh: remove unnecessary "rm" commands
32230         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
32231         commands.
32233 2011-07-27  Jim Meyering  <meyering@redhat.com>
32235         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
32236         * top/maint.mk (gl_extract_significant_defines_): Now that
32237         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
32238         gnulib/lib/signal.in.h, and now that we recommend to
32239         define-if-undefined those two symbols in application code,
32240         we must filter them out of the "significant" list.
32241         This avoids a "make syntax-check" failure in coreutils.
32243 2011-07-26  Eric Blake  <eblake@redhat.com>
32245         warnings: add comments about previous patch
32246         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
32247         * m4/include_next.m4: Likewise.
32248         * m4/warn-on-use.m4: Likewise.
32249         * m4/warnings.m4: Likewise, and simplify use.
32250         Suggested by Stefano Lattarini.
32252         include-next, warnings: support older autoconf
32253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
32254         AS_VAR_PUSHDEF in a way that works with older autoconf.
32255         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
32256         Reported by Daniel P. Berrange.
32258 2011-07-25  Bruno Haible  <bruno@clisp.org>
32260         fseek, ftell: Fix doc.
32261         * doc/posix-functions/fseek.texi: Reword statement about
32262         AC_SYS_LARGEFILE.
32263         * doc/posix-functions/ftell.texi: Likewise.
32265 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32266             Bruno Haible  <bruno@clisp.org>
32268         Add dependencies to the 'largefile' module.
32269         * modules/fopen (Depends-on): Add 'largefile'.
32270         * modules/freopen (Depends-on): Likewise.
32271         * modules/fseeko (Depends-on): Likewise.
32272         * modules/ftello (Depends-on): Likewise.
32273         * modules/glob (Depends-on): Likewise.
32274         * modules/lseek (Depends-on): Likewise.
32275         * modules/lstat (Depends-on): Likewise.
32276         * modules/mkostemp (Depends-on): Likewise.
32277         * modules/mkostemps (Depends-on): Likewise.
32278         * modules/mkstemp (Depends-on): Likewise.
32279         * modules/mkstemps (Depends-on): Likewise.
32280         * modules/open (Depends-on): Likewise.
32281         * modules/openat (Depends-on): Likewise.
32282         * modules/pread (Depends-on): Likewise.
32283         * modules/pwrite (Depends-on): Likewise.
32284         * modules/scandir (Depends-on): Likewise.
32285         * modules/stat (Depends-on): Likewise.
32286         * modules/tmpfile (Depends-on): Likewise.
32287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
32288         since the containing module now depends on the largefile module.
32289         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
32290         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
32291         off_t is fixed by gnulib.
32292         * doc/posix-functions/freopen.texi: Likewise.
32293         * doc/posix-functions/fseeko.texi: Likewise.
32294         * doc/posix-functions/fstatat.texi: Likewise.
32295         * doc/posix-functions/ftello.texi: Likewise.
32296         * doc/posix-functions/glob.texi: Likewise.
32297         * doc/posix-functions/lseek.texi: Likewise.
32298         * doc/posix-functions/lstat.texi: Likewise.
32299         * doc/posix-functions/mkstemp.texi: Likewise.
32300         * doc/posix-functions/open.texi: Likewise.
32301         * doc/posix-functions/openat.texi: Likewise.
32302         * doc/posix-functions/pread.texi: Likewise.
32303         * doc/posix-functions/pwrite.texi: Likewise.
32304         * doc/posix-functions/scandir.texi: Likewise.
32305         * doc/posix-functions/stat.texi: Likewise.
32306         * doc/posix-functions/tmpfile.texi: Likewise.
32307         * doc/glibc-functions/mkostemp.texi: Likewise.
32308         * doc/glibc-functions/mkostemps.texi: Likewise.
32309         * doc/glibc-functions/mkstemps.texi: Likewise.
32311 2011-07-25  Bruno Haible  <bruno@clisp.org>
32313         fcntl: Move AC_LIBOBJ invocation to module description.
32314         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
32315         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
32317         fcntl: Remove call-in from fchdir.m4.
32318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
32319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
32321         dup3: Remove potential call-in from fchdir.m4.
32322         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
32323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
32325         dup2: Move AC_LIBOBJ invocation to module description.
32326         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
32327         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
32328         Don't invoke AC_LIBOBJ.
32329         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
32331         dup2: Remove call-in from fchdir.m4.
32332         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
32333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
32335         fclose: Move AC_LIBOBJ invocation to module description.
32336         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
32337         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
32338         to 1.
32339         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
32341         fclose: Remove call-in from close.m4.
32342         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
32343         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
32345         close: Move AC_LIBOBJ invocation to module description.
32346         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
32347         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
32348         1.
32349         * modules/close (configure.ac): Invoke AC_LIBOBJ.
32351         close: Remove call-in from fchdir.m4.
32352         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
32353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
32355         open: Move AC_LIBOBJ invocation to module description.
32356         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
32357         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
32358         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
32360         open: Remove call-in from fchdir.m4.
32361         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
32362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
32364         fchdir: Start to remove gl_REPLACE_* idiom.
32365         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
32366         (gl_FUNC_FCHDIR): Invoke it.
32368 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32370         * lib/ftell.c (ftell): Comment out cast.
32372         close: use gl_REPLACE_FCLOSE only if defined
32373         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
32374         is defined.  The close module doesn't depend on the fclose module
32375         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
32376         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
32377         I reproduced the problem with "./gnulib-tool --test close sys_socket".
32379 2011-07-24  Jim Meyering  <meyering@redhat.com>
32381         test-select.h: avoid warning when using gcc's -Wmissing-declarations
32382         * tests/test-select.h (test_function): Declare as "static".
32384 2011-07-24  Bruno Haible  <bruno@clisp.org>
32386         doc: Mention the effects of AC_SYS_LARGEFILE.
32387         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
32388         on this function.
32389         * doc/posix-functions/aio_error.texi: Likewise.
32390         * doc/posix-functions/aio_fsync.texi: Likewise.
32391         * doc/posix-functions/aio_read.texi: Likewise.
32392         * doc/posix-functions/aio_return.texi: Likewise.
32393         * doc/posix-functions/aio_suspend.texi: Likewise.
32394         * doc/posix-functions/aio_write.texi: Likewise.
32395         * doc/posix-functions/fgetpos.texi: Likewise.
32396         * doc/posix-functions/fopen.texi: Likewise.
32397         * doc/posix-functions/freopen.texi: Likewise.
32398         * doc/posix-functions/fsetpos.texi: Likewise.
32399         * doc/posix-functions/fstatvfs.texi: Likewise.
32400         * doc/posix-functions/ftruncate.texi: Likewise.
32401         * doc/posix-functions/ftw.texi: Likewise.
32402         * doc/posix-functions/getrlimit.texi: Likewise.
32403         * doc/posix-functions/glob.texi: Likewise.
32404         * doc/posix-functions/lio_listio.texi: Likewise.
32405         * doc/posix-functions/lockf.texi: Likewise.
32406         * doc/posix-functions/mkstemp.texi: Likewise.
32407         * doc/posix-functions/mmap.texi: Likewise.
32408         * doc/posix-functions/nftw.texi: Likewise.
32409         * doc/posix-functions/openat.texi: Likewise.
32410         * doc/posix-functions/opendir.texi: Likewise.
32411         * doc/posix-functions/posix_fadvise.texi: Likewise.
32412         * doc/posix-functions/posix_fallocate.texi: Likewise.
32413         * doc/posix-functions/pread.texi: Likewise.
32414         * doc/posix-functions/pwrite.texi: Likewise.
32415         * doc/posix-functions/readdir.texi: Likewise.
32416         * doc/posix-functions/readdir_r.texi: Likewise.
32417         * doc/posix-functions/rewinddir.texi: Likewise.
32418         * doc/posix-functions/scandir.texi: Likewise.
32419         * doc/posix-functions/seekdir.texi: Likewise.
32420         * doc/posix-functions/setrlimit.texi: Likewise.
32421         * doc/posix-functions/statvfs.texi: Likewise.
32422         * doc/posix-functions/telldir.texi: Likewise.
32423         * doc/posix-functions/tmpfile.texi: Likewise.
32424         * doc/posix-functions/truncate.texi: Likewise.
32425         * doc/glibc-functions/fallocate.texi: Likewise.
32426         * doc/glibc-functions/fstatfs.texi: Likewise.
32427         * doc/glibc-functions/fts_children.texi: Likewise.
32428         * doc/glibc-functions/fts_read.texi: Likewise.
32429         * doc/glibc-functions/getdirentries.texi: Likewise.
32430         * doc/glibc-functions/mkostemp.texi: Likewise.
32431         * doc/glibc-functions/mkostemps.texi: Likewise.
32432         * doc/glibc-functions/mkstemps.texi: Likewise.
32433         * doc/glibc-functions/preadv.texi: Likewise.
32434         * doc/glibc-functions/pwritev.texi: Likewise.
32435         * doc/glibc-functions/sendfile.texi: Likewise.
32436         * doc/glibc-functions/statfs.texi: Likewise.
32438 2011-07-24  Bruno Haible  <bruno@clisp.org>
32440         doc: Fix typo.
32441         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
32443 2011-07-24  Bruno Haible  <bruno@clisp.org>
32445         doc: Mention fsusage.
32446         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
32448 2011-07-24  Bruno Haible  <bruno@clisp.org>
32450         doc: Mention new glibc headers and functions.
32451         * doc/glibc-headers/gshadow.texi: New file.
32452         * doc/glibc-functions/endsgent.texi: New file.
32453         * doc/glibc-functions/fgetsgent.texi: New file.
32454         * doc/glibc-functions/fgetsgent_r.texi: New file.
32455         * doc/glibc-functions/getsgent.texi: New file.
32456         * doc/glibc-functions/getsgent_r.texi: New file.
32457         * doc/glibc-functions/getsgnam.texi: New file.
32458         * doc/glibc-functions/getsgnam_r.texi: New file.
32459         * doc/glibc-functions/putsgent.texi: New file.
32460         * doc/glibc-functions/setsgent.texi: New file.
32461         * doc/glibc-functions/sgetsgent.texi: New file.
32462         * doc/glibc-functions/sgetsgent_r.texi: New file.
32463         * doc/glibc-functions/malloc_info.texi: New file.
32464         * doc/glibc-functions/preadv.texi: New file.
32465         * doc/glibc-functions/pwritev.texi: New file.
32466         * doc/glibc-functions/register_printf_modifier.texi: New file.
32467         * doc/glibc-functions/register_printf_specifier.texi: New file.
32468         * doc/glibc-functions/register_printf_type.texi: New file.
32469         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
32470         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
32471         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
32472         * doc/glibc-functions/pthread_getname_np.texi: New file.
32473         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
32474         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
32475         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
32476         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
32477         * doc/glibc-functions/pthread_setname_np.texi: New file.
32478         * doc/glibc-functions/pthread_sigqueue.texi: New file.
32479         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
32480         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
32481         * doc/glibc-functions/qsort_r.texi: New file.
32482         * doc/glibc-functions/quick_exit.texi: New file.
32483         * doc/glibc-functions/syncfs.texi: New file.
32484         * doc/gnulib.texi: Include them.
32485         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
32486         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
32487         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
32488         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
32489         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
32490         * doc/glibc-functions/execvpe.texi: Likewise.
32492 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32494         ftell: don't include <unistd.h>
32495         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
32496         guaranteed to define off_t, and the ftell module depends on the
32497         stdio module.
32499         ftell: do not assume wraparound signed arithmetic
32500         * lib/ftell.c: Include <limits.h>.
32501         (ftell): Don't assume wraparound signed arithmetic.
32503 2011-07-24  Bruno Haible  <bruno@clisp.org>
32505         close: No longer depend on module 'fclose'.
32506         * modules/close (Depends-on): Remove fclose.
32507         * NEWS: Mention the change.
32508         Suggested by Sam Steingold <sds@gnu.org>.
32510 2011-07-24  Bruno Haible  <bruno@clisp.org>
32512         fsusage: Enable large volume support on AIX >= 5.2.
32513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
32514         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
32515         instead of STAT_STATVFS.
32516         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
32518         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
32519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
32520         f_blocks field only on MacOS X.
32522         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
32523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
32524         * modules/fsusage (Depends-on): Add largefile.
32526 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32528         * README: Modernize discussion of signed integers.
32529         Assuming overflow wraparound is no longer safe.
32530         Mention ones' complement and signed magnitude.
32532 2011-07-22  Bruno Haible  <bruno@clisp.org>
32534         select tests, pselect tests: Refactor.
32535         * tests/test-select.h: New file, extracted from tests/test-select.c.
32536         (select_fn): New type.
32537         (test, do_select, do_select_nowait, do_select_wait, test_tty,
32538         test_connect_first, test_accept_first, test_pair, test_socket_pair,
32539         test_pipe): Add my_select argument.
32540         (test_function): Renamed from main. Add my_select argument.
32541         * tests/test-select.c: Move most code to tests/test-select.h. Include
32542         test-select.h.
32543         * modules/select-tests (Files): Add tests/test-select.h.
32544         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
32545         (my_select, main): New functions.
32546         * modules/pselect-tests (Files): Add tests/test-select.h,
32547         tests/macros.h, tests/signature.h.
32548         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
32549         (configure.ac): Check for <sys/wait.h>.
32551 2011-07-22  Bruno Haible  <bruno@clisp.org>
32553         sys_select tests: Check the signature of FD_*.
32554         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
32555         signature tests from here...
32556         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
32557         here.
32558         * modules/sys_select-tests (Files): Add tests/signature.h.
32560 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32562         largefile: new module, replacing large-inode
32563         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
32564         * MODULES.html.sh: Add largefile, remove large-inode.
32565         * modules/largefile, m4/largefile.m4: New files.
32566         * modules/large-inode, m4/large-inode.m4: Remove.
32568         fsusage: port to MacOS X 10.7 with 4 TiB file systems
32569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
32570         implementations that use only 32 bits to count blocks.
32571         On typical hosts with 1024-byte blocks, this fails with file
32572         systems as small as 4 TiB.  Problem reported by Herb Wartens
32573         <http://debbugs.gnu.org/9140> and this should also fix a similar
32574         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
32576         large-inode: New module
32577         * MODULES.html.sh: Add it.
32578         * modules/large-inode, m4/large-inode.m4: New files.
32580         extensions: Enable extensions on MacOS X 10.5 and later.
32581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
32583 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
32585         file-has-acl: use acl_extended_file_nofollow if available
32586         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
32587         (acl_extended_file): New macro.
32588         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
32589         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
32591 2011-07-21  Bruno Haible  <bruno@clisp.org>
32593         Declare system functions in a way that works with C++.
32594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
32595         declare fdopendir as extern "C".
32596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
32597         declare frexpl as extern "C".
32598         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
32599         declare gai_strerror as extern "C".
32600         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
32601         programs, declare gai_strerror as extern "C".
32602         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
32603         declare getlogin_r as extern "C".
32604         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
32605         as extern "C".
32606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
32607         declare ldexpl as extern "C".
32608         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
32609         as extern "C".
32610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
32611         program, declare getmntinfo as extern "C".
32612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
32613         stpncpy as extern "C".
32614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
32615         program, declare __xpg_strerror_r as extern "C".
32616         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
32617         strndup as extern "C".
32618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
32619         declare memset and bzero as extern "C".
32620         Reported by Sam Steingold <sds@gnu.org>.
32622 2011-07-12  Jim Meyering  <meyering@redhat.com>
32624         maint.mk: prohibit inclusion of "verify.h" without use
32625         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
32627 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32629         timer-time: A new module to check for timer_settime()
32630         * m4/timer_time.m4: Check for the posix function.
32631         * modules/timer-time: Add the new module.
32632         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
32633         Mention it.
32635 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
32636             Bruno Haible  <bruno@clisp.org>
32638         pthread_sigmask: assume POSIX threads if --avoid=threadlib
32639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
32640         not defined, assume POSIX threads and look for pthread_sigmask in
32641         $LIBS, without changing $CPPFLAGS.
32643 2011-07-19  Bruno Haible  <bruno@clisp.org>
32645         strstr: Update cross-compilation guess.
32646         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
32647         CPUs, guess no, in view of glibc
32648         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
32649         Suggested by Eric Blake. Reported by Reuben Thomas.
32651 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32653         getopt-gnu: suppress core dumps from detection code
32654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
32655         to suppress core dumps that may well occur on glibc systems.
32656         * modules/getopt-gnu: Depend on nocrash.
32658 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32660         pthread_sigmask: ensure usleep is declared
32661         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
32662         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
32664 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32666         doc: Document NonStop portability issues.
32667         * doc/posix-functions/sigaction.texi (sigaction):
32668         * doc/posix-headers/signal.texi (signal.h):
32669         Document NonStop.  See Joachim Schmitz in
32670         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
32672 2011-07-15  Bruno Haible  <bruno@clisp.org>
32674         ffsl, ffsll: Avoid unportable behaviour.
32675         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
32677 2011-07-15  Bruno Haible  <bruno@clisp.org>
32679         ffs: More tests.
32680         * tests/test-ffs.c (NBITS): New macro.
32681         (main): Add more tests.
32682         * tests/test-ffsl.c (NBITS): New macro.
32683         (main): Add more tests.
32684         * tests/test-ffsll.c (NBITS): New macro.
32685         (main): Add more tests.
32687 2011-07-15  Eric Blake  <eblake@redhat.com>
32689         ffsl, ffsll: new modules
32690         * modules/ffsl: New file.
32691         * modules/ffsll: Likewise.
32692         * m4/ffsl.m4: Likewise.
32693         * m4/ffsll.m4: Likewise.
32694         * lib/ffsl.c: Likewise.
32695         * lib/ffsl.h: Likewise.
32696         * lib/ffsll.c: Likewise.
32697         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
32698         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
32699         * modules/string (Makefile.am): Substitute witnesses.
32700         * lib/strings.in.h (ffsl, ffsll): Declare.
32701         * modules/ffsl-tests: New test file.
32702         * modules/ffsll-tests: Likewise.
32703         * tests/test-ffsl.c: Likewise.
32704         * tests/test-ffsll.c: Likewise.
32705         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32706         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
32707         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
32709         ffs: fix m4 prerequisite
32710         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
32712         ffs: avoid undefined behavior
32713         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
32714         * tests/test-ffs.c (naive, main): Avoid signed shifts.
32715         Reported by Bruno Haible.
32717 2011-07-12  Bruno Haible  <bruno@clisp.org>
32719         pthread_sigmask: Rely on module 'threadlib'.
32720         * modules/pthread_sigmask (Depends-on): Add threadlib.
32721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
32722         is defined.
32724 2011-07-12  Bruno Haible  <bruno@clisp.org>
32726         regex: Depend on module 'strcase'.
32727         * modules/regex (Depends-on): Add strcase, for strcasecmp().
32729 2011-07-12  Jim Meyering  <meyering@redhat.com>
32731         warn-on-use: fix typo in file name
32732         * modules/snippet/warn-on-use (Files): Correct file name:
32733         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
32735 2011-07-12  Bruno Haible  <bruno@clisp.org>
32737         strings: Document module.
32738         * doc/posix-headers/strings.texi: Mention module 'strings'.
32740 2011-07-12  Bruno Haible  <bruno@clisp.org>
32742         Rename module '_Noreturn' to 'snippet/_Noreturn'.
32743         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
32744         (Files, Makefile.am): Update.
32745         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
32746         * modules/stdlib (Depends-on): Update.
32748 2011-07-12  Bruno Haible  <bruno@clisp.org>
32750         * NEWS: Mention the changes.
32752         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
32753         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
32754         (Files, Makefile.am): Update.
32755         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
32756         * modules/arpa_inet (Depends-on): Update.
32757         * modules/ctype (Depends-on): Update.
32758         * modules/dirent (Depends-on): Update.
32759         * modules/fcntl-h (Depends-on): Update.
32760         * modules/glob (Depends-on): Update.
32761         * modules/iconv-h (Depends-on): Update.
32762         * modules/inttypes-incomplete (Depends-on): Update.
32763         * modules/langinfo (Depends-on): Update.
32764         * modules/locale (Depends-on): Update.
32765         * modules/math (Depends-on): Update.
32766         * modules/netdb (Depends-on): Update.
32767         * modules/poll-h (Depends-on): Update.
32768         * modules/pty (Depends-on): Update.
32769         * modules/search (Depends-on): Update.
32770         * modules/signal (Depends-on): Update.
32771         * modules/spawn (Depends-on): Update.
32772         * modules/stdio (Depends-on): Update.
32773         * modules/stdlib (Depends-on): Update.
32774         * modules/string (Depends-on): Update.
32775         * modules/strings (Depends-on): Update.
32776         * modules/sys_file (Depends-on): Update.
32777         * modules/sys_ioctl (Depends-on): Update.
32778         * modules/sys_select (Depends-on): Update.
32779         * modules/sys_socket (Depends-on): Update.
32780         * modules/sys_stat (Depends-on): Update.
32781         * modules/sys_time (Depends-on): Update.
32782         * modules/sys_times (Depends-on): Update.
32783         * modules/sys_utsname (Depends-on): Update.
32784         * modules/sys_wait (Depends-on): Update.
32785         * modules/termios (Depends-on): Update.
32786         * modules/time (Depends-on): Update.
32787         * modules/unistd (Depends-on): Update.
32788         * modules/wchar (Depends-on): Update.
32789         * modules/wctype-h (Depends-on): Update.
32790         * MODULES.html.sh (Support for building libraries and executables):
32791         Update.
32793         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
32794         * modules/snippet/unused-parameter: Renamed from
32795         modules/unused-parameter.
32796         (Files, Makefile.am): Update.
32797         * build-aux/snippet/unused-parameter.h: Renamed from
32798         build-aux/unused-parameter.h.
32799         * modules/selinux-h (Depends-on): Update.
32800         * modules/unistr/base (Depends-on): Update.
32801         * MODULES.html.sh (Core language properties): Update.
32803         Rename module 'link-warning' to 'snippet/link-warning'.
32804         * modules/snippet/link-warning: Renamed from modules/link-warning.
32805         (Files, Makefile.am): Update.
32806         * build-aux/snippet/link-warning.h: Renamed from
32807         build-aux/link-warning.h.
32808         * MODULES.html.sh (Support for building libraries and executables):
32809         Update.
32811         Rename module 'c++defs' to 'snippet/c++defs'.
32812         * modules/snippet/c++defs: Renamed from modules/c++defs.
32813         (Files, Makefile.am): Update.
32814         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
32815         * modules/arpa_inet (Depends-on): Update.
32816         * modules/ctype (Depends-on): Update.
32817         * modules/dirent (Depends-on): Update.
32818         * modules/fcntl-h (Depends-on): Update.
32819         * modules/glob (Depends-on): Update.
32820         * modules/iconv-h (Depends-on): Update.
32821         * modules/langinfo (Depends-on): Update.
32822         * modules/locale (Depends-on): Update.
32823         * modules/math (Depends-on): Update.
32824         * modules/netdb (Depends-on): Update.
32825         * modules/poll-h (Depends-on): Update.
32826         * modules/pty (Depends-on): Update.
32827         * modules/search (Depends-on): Update.
32828         * modules/signal (Depends-on): Update.
32829         * modules/spawn (Depends-on): Update.
32830         * modules/stdio (Depends-on): Update.
32831         * modules/stdlib (Depends-on): Update.
32832         * modules/string (Depends-on): Update.
32833         * modules/strings (Depends-on): Update.
32834         * modules/sys_ioctl (Depends-on): Update.
32835         * modules/sys_select (Depends-on): Update.
32836         * modules/sys_socket (Depends-on): Update.
32837         * modules/sys_stat (Depends-on): Update.
32838         * modules/sys_time (Depends-on): Update.
32839         * modules/sys_wait (Depends-on): Update.
32840         * modules/termios (Depends-on): Update.
32841         * modules/time (Depends-on): Update.
32842         * modules/unistd (Depends-on): Update.
32843         * modules/wchar (Depends-on): Update.
32844         * modules/wctype-h (Depends-on): Update.
32846         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
32847         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
32848         (Files, Makefile.am): Update.
32849         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32850         * modules/argv-iter (Depends-on): Update.
32851         * modules/arpa_inet (Depends-on): Update.
32852         * modules/dirent (Depends-on): Update.
32853         * modules/fcntl-h (Depends-on): Update.
32854         * modules/fnmatch (Depends-on): Update.
32855         * modules/getopt-posix (Depends-on): Update.
32856         * modules/glob (Depends-on): Update.
32857         * modules/iconv-h (Depends-on): Update.
32858         * modules/inttypes-incomplete (Depends-on): Update.
32859         * modules/locale (Depends-on): Update.
32860         * modules/math (Depends-on): Update.
32861         * modules/netdb (Depends-on): Update.
32862         * modules/search (Depends-on): Update.
32863         * modules/signal (Depends-on): Update.
32864         * modules/spawn (Depends-on): Update.
32865         * modules/stdio (Depends-on): Update.
32866         * modules/stdlib (Depends-on): Update.
32867         * modules/string (Depends-on): Update.
32868         * modules/strings (Depends-on): Update.
32869         * modules/sys_socket (Depends-on): Update.
32870         * modules/sys_stat (Depends-on): Update.
32871         * modules/sys_time (Depends-on): Update.
32872         * modules/sys_times (Depends-on): Update.
32873         * modules/sys_utsname (Depends-on): Update.
32874         * modules/time (Depends-on): Update.
32875         * modules/unistd (Depends-on): Update.
32876         * modules/wchar (Depends-on): Update.
32877         * MODULES.html.sh (Support for building libraries and executables):
32878         Update.
32880 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32882         Improvements on _Noreturn and related modules.
32884         modules/_Exit-tests: test _Noreturn too
32885         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32886         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32887         (main): Use them.
32889         stdnoreturn, stdnoreturn-tests: remove modules
32890         They're not needed here and a bit premature for use elsewhere.  See
32891         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32892         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32893         * tests/test-stdnoreturn.c: Remove files.
32894         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32895         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32896         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32897         and using noreturn.
32898         * modules/openat, modules/sigpipe-die, modules/xalloc:
32899         * modules/xmemdup0, modules/xstrtol:
32900         Remove dependency on stdnoreturn.
32902         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32903         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32904         Reparenthesize to avoid GCC warning.
32905         Support Microsoft's syntax.
32906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32908         _Noreturn-tests: remove module
32909         * modules/_Noreturn-tests: Remove.
32910         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32911         * tests/test-_Noreturn.c: Remove.
32912         * tests/test-stdnoreturn.c: Merge from the old
32913         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32915 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32917         _Noreturn, stdnoreturn, and related modules.
32919         * top/maint.mk: Adjust to new noreturn support.
32920         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32921         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32923         xalloc: use stdnoreturn.h
32924         * lib/xalloc.h: Include <stdnoreturn.h>.
32925         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32926         * modules/xalloc (Depends-on): Add stdnoreturn.
32928         xstrtol: use stdnoreturn.h
32929         * lib/xstrtol.h: Include <stdnoreturn.h>.
32930         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32931         * modules/xstrtol (Depends-on): Add stdnoreturn.
32933         xmemdup0: use stdnoreturn.h
32934         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32935         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32936         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32938         sigpipe-die: use stdnoreturn.h
32939         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32940         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32941         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32943         openat: use stdnoreturn.h
32944         * lib/openat.h: Include <stdnoreturn.h>.
32945         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32946         * modules/openat (Depends-on): Add stdnoreturn.
32948         * lib/openat-die.c (openat_save_fail): Modernize comment.
32950         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32952         * lib/glthread/thread.h: Modernize comment.
32954         obstack: use _Noreturn
32955         * lib/obstack.c (__attribute__): Remove macro.
32956         (print_and_abort): Use _Noreturn.
32958         c-stack: use _Noreturn
32959         * lib/c-stack.c (die, overflow_handler, segv_handler):
32960         Use _Noreturn rather than __attribute__((noreturn)).
32962         argmatch-tests, exclude_tests: use _Noreturn
32963         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32964         Remove.
32965         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32967         stdlib: use _Noreturn
32968         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32969         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32970         * modules/stdlib (Depends-on): Add _Noreturn.
32971         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32973         stdnoreturn-tests: new module
32974         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32976         stdnoreturn: new module
32977         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32978         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32980         _Noreturn-tests: new module
32981         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32983         _Noreturn: new module
32984         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32985         New section, mentioning it.
32986         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32990 2011-07-11  Eric Blake  <eblake@redhat.com>
32992         ffs: new module
32993         * modules/ffs: New file.
32994         * m4/ffs.m4: Likewise.
32995         * lib/ffs.c: Likewise.
32996         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32997         * modules/strings (Makefile.am): Substitute witness.
32998         (Depends-on): Add c++defs.
32999         * lib/strings.in.h (ffs): Declare.
33000         * modules/ffs-tests: New test file.
33001         * tests/test-ffs.c: Test new module.
33002         * MODULES.html.sh (Integer arithmetic functions): Mention it.
33003         * doc/posix-functions/ffs.texi (ffs): Likewise.
33005         regex: avoid compiler warning
33006         * lib/regex.c (includes): Include <strings.h>, for use of
33007         strcasecmp in regcomp.c.
33008         Reported by Joachim Schmitz.
33010 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33012         stdint: respect system's intmax_t if INTMAX_MAX
33013         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
33014         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
33015         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
33016         long but int64_t is long long, and where we will clash with the
33017         system intmax_t if we override it.  See
33018         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
33019         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
33020         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
33021         similarly for UINTMAX_C.
33023 2011-07-08  Bruno Haible  <bruno@clisp.org>
33025         pthread_sigmask tests: Avoid a compiler warning.
33026         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
33027         non-zero.
33029         sigprocmask tests: A better way to avoid a compiler warning.
33030         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
33031         (main): Complain if system() returns non-zero.
33032         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
33034 2011-07-08  Bruno Haible  <bruno@clisp.org>
33036         pthread_sigmask: Work around IRIX bug.
33037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
33038         bug.
33039         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
33040         there may be unblocked pending signals.
33041         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
33043 2011-07-08  Bruno Haible  <bruno@clisp.org>
33045         pthread_sigmask: Work around Cygwin bug.
33046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
33047         bug.
33048         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
33049         the system's pthread_sigmask function.
33050         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
33052 2011-07-08  Bruno Haible  <bruno@clisp.org>
33054         pthread_sigmask: Work around bug in single-threaded implementation.
33055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
33056         FreeBSD, HP-UX, Solaris bug.
33057         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
33058         * lib/pthread_sigmask.c: Include <stddef.h>.
33059         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
33060         the system's pthread_sigmask function.
33061         * modules/pthread_sigmask (configure.ac): Invoke
33062         gl_PREREQ_PTHREAD_SIGMASK.
33063         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
33064         HP-UX, Solaris.
33066 2011-07-08  Eric Blake  <eblake@redhat.com>
33068         test-sigprocmask: avoid compiler warning
33069         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
33070         * tests/test-sigprocmask.c (main): Use it to silence warning.
33071         Reported by Jim Meyering.
33073         test-snprintf: avoid compiler warning
33074         * tests/test-snprintf.c (main): Avoid shadowed declaration.
33075         * tests/test-vsnprintf.c (main): Likewise.
33076         Reported by Jim Meyering.
33078 2011-07-08  Bruno Haible  <bruno@clisp.org>
33080         Tests for module 'pthread_sigmask'.
33081         * modules/pthread_sigmask-tests: New file.
33082         * tests/test-pthread_sigmask1.c: New file, based on
33083         tests/test-sigprocmask.c.
33084         * tests/test-pthread_sigmask2.c: New file.
33086 2011-07-08  Jim Meyering  <meyering@redhat.com>
33088         test-getopt.h: avoid warning about an unused variable
33089         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
33091 2011-07-07  Jim Meyering  <meyering@redhat.com>
33093         maint: reduce list of files exempt from sc_prohibit_leading_TABs
33094         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
33095         now that it no longer contains leading TABs.
33096         Remove unused "url=FIXME" statement.
33098 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
33100         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
33101         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33102         When gl_THREADLIB is not in use, assume that the POSIX sematics
33103         are desired.  This is better for Emacs, which uses POSIX semantics
33104         on GNUish and/or POSIXish platforms, and does not use threads at
33105         all otherwise.
33107         pthread_sigmask: fix typo when testing for libraries
33108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33109         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
33111 2011-07-08  Eric Blake  <eblake@redhat.com>
33113         fts: introduce FTS_NOATIME
33114         * lib/fts_.h (FTS_NOATIME): New bit flag.
33115         (FTS_OPTIONMASK): Adjust.
33116         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
33117         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
33119 2011-07-08  Bruno Haible  <bruno@clisp.org>
33121         Tests for module 'thread'.
33122         * modules/thread-tests: New file.
33123         * tests/test-thread_self.c: New file.
33124         * tests/test-thread_create.cc: New file.
33126 2011-07-08  Bruno Haible  <bruno@clisp.org>
33128         thread: Avoid gcc warnings when using gl_thread_self().
33129         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
33130         'void *'.
33131         (gl_thread_self_pointer): Update.
33133 2011-07-07  Bruno Haible  <bruno@clisp.org>
33135         signal-c++-tests: Check declaration of pthread_sigmask.
33136         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
33137         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
33138         $(LIB_PTHREAD_SIGMASK).
33140 2011-07-07  Bruno Haible  <bruno@clisp.org>
33142         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
33143         * lib/signal.in.h (pthread_sigmask): Override if
33144         REPLACE_PTHREAD_SIGMASK is 1.
33145         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33146         REPLACE_PTHREAD_SIGMASK.
33147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
33148         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
33149         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
33150         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33151         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
33153 2011-07-07  Bruno Haible  <bruno@clisp.org>
33155         pthread_sigmask: Ensure declaration in <signal.h>.
33156         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
33157         include <pthread.h>.
33158         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
33159         problem.
33161 2011-07-07  Bruno Haible  <bruno@clisp.org>
33163         pthread_sigmask: Document the module.
33164         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
33166 2011-07-07  Bruno Haible  <bruno@clisp.org>
33168         pthread_sigmask: Follow gnulib conventions.
33169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
33170         gl_PTHREAD_SIGMASK.
33171         * modules/pthread_sigmask (configure.ac): Update.
33173 2011-07-07  Bruno Haible  <bruno@clisp.org>
33175         pthread_sigmask: Make declaration C++ safe.
33176         * lib/signal.in.h: In two special conditions, just do an #include_next.
33177         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33178         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
33179         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33180         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33181         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
33182         not REPLACE_PTHREAD_MASK.
33183         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
33184         not REPLACE_PTHREAD_MASK.
33185         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33187 2011-07-07  Bruno Haible  <bruno@clisp.org>
33189         pthread_sigmask: Fix return value.
33190         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
33191         * lib/pthread_sigmask.c: New file.
33192         * modules/pthread_sigmask (Files): Add it.
33193         (configure.ac): Invoke AC_LIBOBJ.
33195 2011-07-07  Eric Blake  <eblake@redhat.com>
33197         getopt: more portable argv creation
33198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
33199         const, use char arrays rather than strings.
33200         Suggested by Paul Eggert.
33202 2011-07-07  Bruno Haible  <bruno@clisp.org>
33204         Tests for module 'sigprocmask'.
33205         * modules/sigprocmask-tests: New file.
33206         * tests/test-sigprocmask.c: New file.
33208 2011-07-07  Bruno Haible  <bruno@clisp.org>
33210         float tests: Tweak.
33211         * tests/test-float.c (main): Tweak skip message.
33213 2011-07-07  Eric Blake  <eblake@redhat.com>
33215         getopt: avoid compiler warning during configure
33216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
33217         assigning string literals to non-const pointer.
33219         getopt-gnu: avoid crash in glibc getopt
33220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
33221         * tests/test-getopt.h (test_getopt): Enhance test.
33222         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33223         * doc/posix-functions/getopt.texi (getopt): Document it.
33224         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33226         Likewise.
33228 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
33230         getopt: handle W; without long options in getopt [BZ #12922]
33231         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
33232         but no long options are defined, just return 'W'.
33234 2011-07-07  Bruno Haible  <bruno@clisp.org>
33236         Avoid literal tabs.
33237         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
33238         variable containing a tab instead of a literal tab.
33239         Reported by Jim Meyering.
33241 2011-07-07  Bruno Haible  <bruno@clisp.org>
33243         Comments.
33244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
33246 2011-07-06  Bruno Haible  <bruno@clisp.org>
33248         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
33249         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
33250         <winsock2.h>.
33251         (rpl_fd_isset, FD_ISSET): New definitions, copied from
33252         lib/sys_socket.in.h.
33253         (close, gethostname): Hide declarations from <winsock2.h>.
33254         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33255         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
33256         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
33257         (select): Don't override if gnulib's <sys/select.h> was already
33258         included.
33259         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33260         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33261         setsockopt, shutdown, select): Tweak indentation.
33263 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33265         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
33266         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
33267         in an application that does not use the sys_select module.
33269 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
33271         poll: do not return 0 on timeout=-1
33272         * lib/poll.c: Loop with yield if no events occurred.
33274 2011-07-06  Eric Blake  <eblake@redhat.com>
33276         pthread_sigmask: always replace when not using pthread
33277         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
33278         replacement when using some threading other than pthread.  Fix
33279         logic bug.
33281 2011-07-06  Bruno Haible  <bruno@clisp.org>
33283         Comments.
33284         * m4/printf.m4: Update comments about mingw.
33286 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33288         sys_select: define sigset_t more portably
33289         * lib/sys_select.in.h: Always include <sys/types.h>, since
33290         we now need sigset_t and mingw defines it there.
33291         Include <signal.h> before split inclusion guard, to avoid
33292         mishaps on Solaris, whose <signal.h> eventually includes us.
33293         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
33294         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
33295         which come from ...
33296         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33297         gl_CHECK_TYPE_SIGSET_T.
33298         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
33299         does the real work.
33300         * modules/sys_select (Depends-on): Add 'signal'.
33302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
33303         Suggested by Bruno Haible.
33305         pselect: Use pthread_sigmask, not sigprocmask.
33306         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
33307         multithreaded apps better than sigprocmask does.
33308         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
33309         sigprocmask directly.
33311 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33313         * lib/pselect.c (pselect): Use plain name, without "rpl_".
33314         Don't #undef,  since we don't need any underlying pselect.
33315         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
33316         (Depends-on): Add select.
33317         (Link): Add $(LIBSOCKET).
33318         These changes suggested by Bruno Haible.
33320         pselect: document better
33321         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33322         * doc/posix-functions/pselect.texi (pselect): Document new module.
33324         pthread_sigmask: new module
33325         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33326         * doc/posix-functions/pthread_sigmask.texi: Document new module.
33327         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
33328         This is done only as a macro; I don't know how well that'll
33329         work for C++.  Move <sys/types.h> include before the include_next,
33330         to avoid mishap on Solaris.
33331         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
33332         * modules/signal (Makefile.am): Substitute the check's results.
33333         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
33335         test-pselect: new module
33336         * modules/pselect-tests, tests/test-pselect.c: New files.
33337         * tests/test-select.c, tests/test-sys_select-c++.cc:
33338         If TEST_PSELECT is defined, test pselect instead of testing select.
33340         * tests/test-sys_select.c (sigset_t): Test for it, too.
33341         Suggested by Bruno Haible.
33343 2011-07-05  Eric Blake  <eblake@redhat.com>
33345         snprintf: guarantee %1$d, for libintl
33346         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
33347         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33348         * doc/posix-functions/snprintf.texi (snprintf): Update.
33349         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33350         * tests/test-snprintf.c (main): Enhance test.
33351         * tests/test-vsnprintf.c (main): Likewise.
33353 2011-07-05  Jim Meyering  <meyering@redhat.com>
33355         maint: exempt stdio-read.c and stdio-write.c from the cppi check
33356         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
33357         per Bruno's request, to accommodate this idiom (no space after "#")
33358         even when the function is inside an #if block:
33359         char *
33360         gets (char *s)
33361         #undef gets
33362         {
33363           ...
33364         }
33366 2011-07-04  Jim Meyering  <meyering@redhat.com>
33368         maint: indent with spaces, not TABs, and add a rule to check this
33369         * tests/test-userspec.c: Indent with spaces, not TABs.
33370         * tests/test-argp.c: Likewise.
33371         * tests/test-c-stack2.sh: Likewise.
33372         * tests/test-parse-duration.sh: Likewise
33373         * m4/strtod.m4: Likewise.
33374         * m4/alloca.m4: Likewise.
33375         * m4/pselect.m4: Likewise.
33376         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
33378 2011-07-03  Jim Meyering  <meyering@redhat.com>
33380         maint.mk: correct omissions in prohibit_argmatch_without_use check
33381         This rule would mistakenly report that argmatch.h is included without
33382         use even when both the argmatch and invalid_arg macro were used.
33383         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
33384         of argmatch and invalid_arg.
33386 2011-07-03  Bruno Haible  <bruno@clisp.org>
33388         Comments about EINTR.
33389         * lib/safe-read.h: Explain the purpose of this module.
33390         * lib/safe-write.h: Likewise.
33391         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
33392         module.
33393         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
33394         module.
33395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33397 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33399         xnanosleep: Rewrite to use new dtotimespec module.
33400         It has the conversion code that used to be in xnanosleep.
33401         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
33402         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
33403         (TIME_T_MAX): Remove.
33404         (xnanosleep): Rewrite in terms of dtotimespec.
33405         * modules/xnanosleep (Depends-on): Add dtotimespec.
33406         Remove intprops, stdbool.
33408         timespec-add, timespec-sub: new modules
33409         * lib/timespec.h (timespec_add, timespec_sub): New decls.
33410         * lib/timespec-add.c, lib/timespec-sub.c:
33411         * modules/timespec-add, modules/timespec-sub: New files.
33413         dtotimespec: new module
33414         * lib/timespec.h (dtotimespec): New decl.
33415         * lib/dtotimespec.c, modules/dtotimespec: New files.
33417         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
33419         pselect: new module
33420         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
33421         (pselect): New decls.
33422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
33423         since the standard pselect decl uses 'restrict'.
33424         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
33425         HAVE_PSELECT, REPLACE_PSELECT.
33426         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
33427         HAVE_PSELECT, REPLACE_PSELECT.
33428         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
33430         sys_select: don't depend on sys_socket
33431         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
33432         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
33433         This fix works on GNU and GNU-like platforms, but has not been tested
33434         on native Windows.
33435         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
33436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
33437         gl_HEADER_SYS_SOCKET.
33438         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
33439         gl_PREREQ_SYS_H_WINSOCK2.
33441 2011-06-29  Eric Blake  <eblake@redhat.com>
33443         pipe2: fix C89 compile problem
33444         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
33445         Reported by Bruno Haible.
33447         pipe, pipe2: don't corrupt fd on error
33448         * lib/pipe.c (pipe): Leave fd unchanged on error.
33449         * lib/pipe2.c (pipe2): Likewise.
33450         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
33451         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33453 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
33455         mmap-anon: do not use regular expressions inadvertently
33456         * m4/mmap-anon.m4: Remove trailing period from strings sought
33457         in the output.
33459 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
33461         nanosleep: fix integer overflow problem
33462         * lib/nanosleep.c (my_usleep): Don't assume signed integer
33463         arithmetic wraps around on overflow.
33465         nanosleep: simplify carrying
33466         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
33467         first call to the underyling nanosleep, not for the last one.
33468         This doesn't fix any bugs, but it simplifies the computation of
33469         the remaining delay.  Found while auditing integer overflow issues.
33471         dup2: remove test for existence of fcntl
33472         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
33473         "#if HAVE_FCNTL", in the configure-time test program.
33474         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
33475         and therefore speeds up "configure" a bit.  Found while
33476         adding the dup2 module to Emacs.
33478 2011-06-24  Eric Blake  <eblake@redhat.com>
33480         maint.mk: enhance useless header checks
33481         * top/maint.mk (_sc_header_without_use): Check both include
33482         styles.
33483         (sc_prohibit_assert_without_use)
33484         (sc_prohibit_close_stream_without_use)
33485         (sc_prohibit_getopt_without_use)
33486         (sc_prohibit_quotearg_without_use)
33487         (sc_prohibit_quote_without_use)
33488         (sc_prohibit_long_options_without_use)
33489         (sc_prohibit_inttostr_without_use)
33490         (sc_prohibit_ignore_value_without_use)
33491         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
33492         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
33493         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
33494         (sc_prohibit_hash_pjw_without_use)
33495         (sc_prohibit_safe_read_without_use)
33496         (sc_prohibit_argmatch_without_use)
33497         (sc_prohibit_canonicalize_without_use)
33498         (sc_prohibit_root_dev_ino_without_use)
33499         (sc_prohibit_openat_without_use)
33500         (sc_prohibit_c_ctype_without_use)
33501         (sc_prohibit_signal_without_use)
33502         (sc_prohibit_stdio--_without_use)
33503         (sc_prohibit_stdio-safer_without_use)
33504         (sc_prohibit_strings_without_use)
33505         (sc_prohibit_intprops_without_use)
33506         (sc_prohibit_stddef_without_use)
33507         (sc_prohibit_xfreopen_without_use): Update clients.
33509 2011-06-24  Jim Meyering  <meyering@redhat.com>
33511         syntax-check: keep one maint.mk rule in sync with its header
33512         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
33513         of the bug Eric has just fixed, with today's commit 25e4c2ec.
33514         I prefer to avoid temporary files here, so use <(...), but that
33515         is not supported by /bin/sh, so...
33516         (SHELL): Define to /bin/bash.
33518 2011-06-24  Eric Blake  <eblake@redhat.com>
33520         maint.mk: update sc_prohibit_intprops_without_use
33521         * top/maint.mk (_intprops_names): Match recent changes.
33523 2011-06-24  Bruno Haible  <bruno@clisp.org>
33525         strerror-override: No-op tweak.
33526         * lib/strerror-override.h (strerror_override): Reorder conditions,
33527         for consistency with lib/strerror-override.c.
33529 2011-06-23  Eric Blake  <eblake@redhat.com>
33531         maint.mk: test further PATH_MAX issues
33532         * top/maint.mk (sc_prohibit_path_max_array): Rename...
33533         (sc_prohibit_path_max_allocation): ...and also test alloca.
33534         Suggested by Jim Meyering.
33536 2011-06-22  Eric Blake  <eblake@redhat.com>
33538         maint.mk: add syntax-check to avoid char[PATH_MAX]
33539         * top/maint.mk (sc_prohibit_path_max_array): New rule.
33541         stat: be robust to PATH_MAX definition
33542         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
33543         * modules/stat (Depends-on): Add verify.
33545         link: work around IRIX bug
33546         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
33547         * lib/link.c (rpl_link): Work around it.
33548         * tests/test-link.h (test_link): Enhance test.
33549         * doc/posix-functions/link.texi (link): Document the bug.
33551         getopt: silence clang warning
33552         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
33553         dereference.
33554         Reported by Gustavo Martin Domato.
33556 2011-06-22  Jim Meyering  <meyering@redhat.com>
33558         bootstrap: do not insert a blank line into each .gitignore file
33559         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
33561 2011-06-21  Eric Blake  <eblake@redhat.com>
33563         perror: test for output mismatch
33564         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
33565         perror on IRIX.
33567         strerror_r: fix OpenBSD behavior on out-of-range
33568         * lib/strerror_r.c (strerror_r): Always use maximal string.
33569         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33571         strerror_r: fix OpenBSD behavior on 0
33572         * lib/strerror-override.c (strerror_override): Also override 0
33573         when needed.
33574         * lib/strerror-override.h (strerror_override): Likewise.
33575         * lib/strerror.c (strerror): Simplify, now that 0 override is done
33576         earlier.
33577         * lib/strerror_r.c (strerror_r): Likewise.
33578         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
33579         behavior...
33580         (gl_FUNC_STRERROR_0): ...into new macro.
33581         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
33582         is overridden.
33583         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
33584         * modules/strerror-override (Files): Add strerror.m4.
33585         (configure.ac): Also provide override for 0 when needed.
33586         * doc/posix-functions/strerror.texi (strerror): Document this.
33587         * doc/posix-functions/perror.texi (perror): Likewise.
33589         perror: adjust array size
33590         * modules/perror (Depends-on): Add strerror-override.
33591         * lib/perror.c (perror): Use it to avoid magic number.
33593         strerror-override: reduce size
33594         * lib/strerror-override.c (strerror_override): Use fewer lines.
33596 2011-06-20  Bruno Haible  <bruno@clisp.org>
33598         pathmax: Ensure correct value for PATH_MAX on HP-UX.
33599         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
33601 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33603         alloca: port to compilers that can optimize like GCC 4.6.0
33604         * lib/alloca.c (find_stack_direction): New signature, taken from
33605         Autoconf git.  This works with GCC 4.6.0.  This code should never
33606         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
33607         be used with other compilers that optimize as well as GCC 4.6.0 does.
33608         (alloca): Adjust to new signature.
33609         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
33610         New macro, which patches Autoconf in a similar way.
33612         c-stack: stop worrying about stack direction
33613         * lib/c-stack.c (find_stack_direction): Remove.
33614         (segv_handler): Don't worry about stack direction growth, as it's
33615         too much of a pain to configure this correctly, given how compilers
33616         are optimizing-away our stack-growth detection code.  Instead, assume
33617         that any access to just before or just after the stack is OK.
33618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33619         Don't require AC_FUNC_ALLOCA; no longer needed.
33621 2011-06-20  Eric Blake  <eblake@redhat.com>
33623         test-stat: don't allocate PATH_MAX bytes
33624         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
33625         PATH_MAX-sized buffer.
33626         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
33627         * modules/stat-tests (Depends-on): Likewise.
33628         * tests/test-fstatat.c (includes): Drop pathmax.h.
33629         * tests/test-stat.c (includes): Likewise.
33630         Reported by Bruno Haible.
33632 2011-06-20  Bruno Haible  <bruno@clisp.org>
33634         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
33635         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
33636         * lib/float.c: New file.
33637         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
33638         REPLACE_FLOAT_LDBL.
33639         * modules/float (Files): Add lib/float.c.
33640         (configure.ac): Invoke AC_LIBOBJ.
33641         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
33643 2011-06-20  Bruno Haible  <bruno@clisp.org>
33645         Tests for module 'float'.
33646         * modules/float-tests: New file.
33647         * tests/test-float.c: New file.
33649 2011-06-19  Bruno Haible  <bruno@clisp.org>
33651         isinf: Coding style.
33652         * lib/isinf.c: Use GNU coding style.
33654 2011-06-19  Bruno Haible  <bruno@clisp.org>
33656         linkat test: Avoid test failure on AIX 7.1.
33657         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
33658         * tests/test-link.h (test_link): Likewise.
33660 2011-06-19  Bruno Haible  <bruno@clisp.org>
33662         pread test: Avoid test failure on OpenBSD 4.9.
33663         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
33665 2011-06-19  Bruno Haible  <bruno@clisp.org>
33667         sprintf-posix: Fix test failure on AIX 7.1.
33668         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
33669         * doc/posix-functions/dprintf.texi: Mention limited precision problem
33670         on AIX.
33671         * doc/posix-functions/fprintf.texi: Likewise.
33672         * doc/posix-functions/printf.texi: Likewise.
33673         * doc/posix-functions/snprintf.texi: Likewise.
33674         * doc/posix-functions/sprintf.texi: Likewise.
33675         * doc/posix-functions/vdprintf.texi: Likewise.
33676         * doc/posix-functions/vfprintf.texi: Likewise.
33677         * doc/posix-functions/vprintf.texi: Likewise.
33678         * doc/posix-functions/vsnprintf.texi: Likewise.
33679         * doc/posix-functions/vsprintf.texi: Likewise.
33681 2011-06-19  Bruno Haible  <bruno@clisp.org>
33683         roundl-ieee: Fix test failure on AIX 7.1.
33684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
33685         * doc/posix-functions/roundl.texi: Mention problem with negative
33686         arguments.
33688 2011-06-19  Bruno Haible  <bruno@clisp.org>
33690         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33691         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
33692         * doc/posix-functions/round.texi: Mention problem with negative
33693         arguments.
33694         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
33696 2011-06-19  Bruno Haible  <bruno@clisp.org>
33698         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
33700         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
33701         * doc/posix-functions/roundf.texi: Mention problem with negative
33702         arguments.
33703         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
33705 2011-06-19  Bruno Haible  <bruno@clisp.org>
33707         ceilf-ieee: Work around bug on MacOS X 10.5.
33708         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
33710         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
33711         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
33712         IEEE compliant, avoid compiler optimizations.
33713         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
33714         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33715         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
33716         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33718         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33721         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33724 2011-06-19  Bruno Haible  <bruno@clisp.org>
33726         ceilf-ieee: Work around bug on AIX 7.1.
33727         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
33728         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
33730 2011-06-19  Bruno Haible  <bruno@clisp.org>
33732         ceil-ieee: Work around bug on AIX 7.1.
33733         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
33734         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
33736 2011-06-18  Bruno Haible  <bruno@clisp.org>
33738         fsync test: Avoid test failure on MacOS X and AIX.
33739         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
33740         EINVAL.
33742 2011-06-18  Bruno Haible  <bruno@clisp.org>
33744         openat, fdopendir tests: Fix link errors.
33745         * modules/openat-tests (Depends-on): Add progname.
33746         * modules/fdopendir-tests (Depends-on): Likewise.
33747         * tests/test-fchownat.c: Include progname.h.
33748         (main): Call set_program_name.
33749         * tests/test-fstatat.c: Include progname.h.
33750         (main): Call set_program_name.
33751         * tests/test-mkdirat.c: Include progname.h.
33752         (main): Call set_program_name.
33753         * tests/test-openat.c: Include progname.h.
33754         (main): Call set_program_name.
33755         * tests/test-unlinkat.c: Include progname.h.
33756         (main): Call set_program_name.
33757         * tests/test-fdopendir.c: Include progname.h.
33758         (main): Call set_program_name.
33760 2011-06-18  Bruno Haible  <bruno@clisp.org>
33762         Doc update.
33763         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
33764         HP-UX.
33765         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
33767 2011-06-18  Bruno Haible  <bruno@clisp.org>
33769         getcwd tests: Avoid compilation error on HP-UX 11.31.
33770         * modules/getcwd-tests (Depends-on): Add pathmax.
33771         * tests/test-getcwd.c: Include pathmax.h.
33773 2011-06-18  Bruno Haible  <bruno@clisp.org>
33775         isfinite, isinf: Fix link error on AIX 6 and 7.
33776         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
33777         needed, also test the macro with a 'float' argument.
33778         * m4/isinf.m4 (gl_ISINF): Likewise.
33780 2011-06-18  Bruno Haible  <bruno@clisp.org>
33782         getloadavg: Don't clobber LIBS. Regression from previous commit.
33783         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
33784         AC_CHECK_LIB from here...
33785         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
33786         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
33787         gl_func_getloadavg_done.
33788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33790 2011-06-18  Bruno Haible  <bruno@clisp.org>
33792         clean-temp: Improve documentation.
33793         * lib/clean-temp.h: Explain better how to use this module.
33794         Reported by John Darrington <john@darrington.wattle.id.au>.
33796 2011-06-17  Bruno Haible  <bruno@clisp.org>
33798         pread, pwrite: Avoid cc warning on AIX.
33799         * lib/unistd.in.h (pread): Undefine before defining as a macro.
33800         (pwrite): Likewise.
33802 2011-06-17  Bruno Haible  <bruno@clisp.org>
33804         spawn-pipe tests: Fix link error.
33805         * tests/test-spawn-pipe-child.c: Undefine fprintf.
33806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33808 2011-06-17  Bruno Haible  <bruno@clisp.org>
33810         Tests: Remove unnecessary dependency.
33811         * modules/canonicalize-tests (Depends-on): Remove progname.
33812         * modules/chown-tests (Depends-on): Likewise.
33813         * modules/dirname-tests (Depends-on): Likewise.
33814         * modules/fdopendir-tests (Depends-on): Likewise.
33815         * modules/fdutimensat-tests (Depends-on): Likewise.
33816         * modules/hash-tests (Depends-on): Likewise.
33817         * modules/lchown-tests (Depends-on): Likewise.
33818         * modules/linkat-tests (Depends-on): Likewise.
33819         * modules/renameat-tests (Depends-on): Likewise.
33820         * modules/spawn-pipe-tests (Depends-on): Likewise.
33821         * modules/utimensat-tests (Depends-on): Likewise.
33823 2011-06-17  Bruno Haible  <bruno@clisp.org>
33825         spawn-pipe tests: Fix link error.
33826         * tests/test-spawn-pipe-child.c: Undefine fflush.
33828 2011-06-17  Bruno Haible  <bruno@clisp.org>
33830         Fix tests link errors.
33831         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
33832         * modules/chown-tests (Makefile.am): Don't link test-chown with
33833         LIBINTL.
33834         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
33835         LIBINTL.
33836         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
33837         LIBINTL.
33838         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
33839         LIBINTL.
33841 2011-06-16  Bruno Haible  <bruno@clisp.org>
33843         crypto/gc-sha1: Fix recent regression.
33844         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
33845         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
33847         crypto/gc-md5: Fix recent regression.
33848         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33850         crypto/gc-md4: Fix recent regression.
33851         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33852         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33854         crypto/gc-arctwo: Fix recent regression.
33855         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33856         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33858         crypto/gc-rijndael: Fix recent regression.
33859         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33860         (configure.ac): Invoke AC_LIBOBJ here.
33861         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33864         crypto/gc-hmac-sha1: Fix recent regression.
33865         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33866         (configure.ac): Invoke AC_LIBOBJ here.
33867         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33870         crypto/gc-hmac-md5: Fix recent regression.
33871         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33872         (configure.ac): Invoke AC_LIBOBJ here.
33873         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33876         crypto/gc-des: Fix recent regression.
33877         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33878         (configure.ac): Invoke AC_LIBOBJ here.
33879         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33882         crypto/gc-arcfour: Fix recent regression.
33883         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33884         (configure.ac): Invoke AC_LIBOBJ here.
33885         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33888 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33890         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33891         After the 2011-05-21 change, this macro requires
33892         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33893         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33895 2011-06-16  Bruno Haible  <bruno@clisp.org>
33897         fprintftime: Move AC_LIBOBJ invocations to module description.
33898         * m4/fprintftime.m4: Remove file.
33899         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33900         (configure.ac): Remove gl_FPRINTFTIME call.
33901         (Makefile.am): Augment lib_SOURCES.
33902         Reported by Jim Meyering.
33904 2011-06-16  Bruno Haible  <bruno@clisp.org>
33906         tmpfile-safer: Finish 2011-05-23 commit.
33907         * m4/stdio-safer.m4: Really remove file.
33908         Reported by Jim Meyering.
33910 2011-06-16  Bruno Haible  <bruno@clisp.org>
33912         syntax-check: Fix typo.
33913         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33914         printf-posix.m4.
33915         Reported by Jim Meyering.
33917 2011-06-13  Jim Meyering  <meyering@redhat.com>
33919         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33920         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33922 2011-05-23  Bruno Haible  <bruno@clisp.org>
33924         yesno: Move AC_LIBOBJ invocations to module description.
33925         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33926         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33928 2011-05-23  Bruno Haible  <bruno@clisp.org>
33930         xstrtol: Move AC_LIBOBJ invocations to module description.
33931         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33932         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33934 2011-05-23  Bruno Haible  <bruno@clisp.org>
33936         xstrtold: Move AC_LIBOBJ invocations to module description.
33937         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33938         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33940 2011-05-23  Bruno Haible  <bruno@clisp.org>
33942         xstrtod: Move AC_LIBOBJ invocations to module description.
33943         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33944         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33946 2011-05-23  Bruno Haible  <bruno@clisp.org>
33948         xnanosleep: Move AC_LIBOBJ invocations to module description.
33949         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33950         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33952 2011-05-23  Bruno Haible  <bruno@clisp.org>
33954         xgetcwd: Move AC_LIBOBJ invocations to module description.
33955         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33956         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33958 2011-05-23  Bruno Haible  <bruno@clisp.org>
33960         xalloc: Move AC_LIBOBJ invocations to module description.
33961         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33962         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33964 2011-05-23  Bruno Haible  <bruno@clisp.org>
33966         write-any-file: Move AC_LIBOBJ invocations to module description.
33967         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33968         invocation.
33969         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33971 2011-05-23  Bruno Haible  <bruno@clisp.org>
33973         utimens: Move AC_LIBOBJ invocations to module description.
33974         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33975         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33977 2011-05-23  Bruno Haible  <bruno@clisp.org>
33979         utimecmp: Move AC_LIBOBJ invocations to module description.
33980         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33981         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33983 2011-05-23  Bruno Haible  <bruno@clisp.org>
33985         userspec: Move AC_LIBOBJ invocations to module description.
33986         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33987         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33989 2011-05-23  Bruno Haible  <bruno@clisp.org>
33991         unlinkdir: Move AC_LIBOBJ invocations to module description.
33992         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33993         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33995 2011-05-23  Bruno Haible  <bruno@clisp.org>
33997         unistd-safer: Move AC_LIBOBJ invocations to module description.
33998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33999         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
34001 2011-05-23  Bruno Haible  <bruno@clisp.org>
34003         tempname: Move AC_LIBOBJ invocations to module description.
34004         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
34005         * modules/tempname (Makefile.am): Augment lib_SOURCES.
34007 2011-05-23  Bruno Haible  <bruno@clisp.org>
34009         strftime: Move AC_LIBOBJ invocations to module description.
34010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
34011         * modules/strftime (Makefile.am): Augment lib_SOURCES.
34013 2011-05-23  Bruno Haible  <bruno@clisp.org>
34015         stdlib-safer: Move AC_LIBOBJ invocations to module description.
34016         * m4/stdlib-safer.m4: Remove file.
34017         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
34018         (configure.ac): Remove gl_STDLIB_SAFER call.
34019         (Makefile.am): Augment lib_SOURCES.
34021 2011-05-23  Bruno Haible  <bruno@clisp.org>
34023         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
34024         * m4/stdio-safer.m4: Remove file.
34025         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
34026         (configure.ac): Remove gl_TMPFILE_SAFER call.
34027         (Makefile.am): Augment lib_SOURCES.
34029 2011-05-23  Bruno Haible  <bruno@clisp.org>
34031         popen-safer: Move AC_LIBOBJ invocations to module description.
34032         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
34033         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
34034         (configure.ac): Remove gl_POPEN_SAFER call.
34035         (Makefile.am): Augment lib_SOURCES.
34037 2011-05-23  Bruno Haible  <bruno@clisp.org>
34039         freopen-safer: Move AC_LIBOBJ invocations to module description.
34040         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
34041         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
34042         (configure.ac): Remove gl_FREOPEN_SAFER call.
34043         (Makefile.am): Augment lib_SOURCES.
34045 2011-05-23  Bruno Haible  <bruno@clisp.org>
34047         fopen-safer: Move AC_LIBOBJ invocations to module description.
34048         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
34049         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
34050         (configure.ac): Remove gl_FOPEN_SAFER call.
34051         (Makefile.am): Augment lib_SOURCES.
34053 2011-05-23  Bruno Haible  <bruno@clisp.org>
34055         crypto/sha512: Move AC_LIBOBJ invocations to module description.
34056         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
34057         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
34059 2011-05-23  Bruno Haible  <bruno@clisp.org>
34061         crypto/sha256: Move AC_LIBOBJ invocations to module description.
34062         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
34063         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
34065 2011-05-23  Bruno Haible  <bruno@clisp.org>
34067         crypto/sha1: Move AC_LIBOBJ invocations to module description.
34068         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
34069         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
34071 2011-05-23  Bruno Haible  <bruno@clisp.org>
34073         settime: Move AC_LIBOBJ invocations to module description.
34074         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
34075         * modules/settime (Makefile.am): Augment lib_SOURCES.
34077 2011-05-23  Bruno Haible  <bruno@clisp.org>
34079         savedir: Move AC_LIBOBJ invocations to module description.
34080         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
34081         * modules/savedir (Makefile.am): Augment lib_SOURCES.
34083 2011-05-23  Bruno Haible  <bruno@clisp.org>
34085         save-cwd: Move AC_LIBOBJ invocations to module description.
34086         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
34087         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
34089 2011-05-23  Bruno Haible  <bruno@clisp.org>
34091         same: Move AC_LIBOBJ invocations to module description.
34092         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
34093         * modules/same (Makefile.am): Augment lib_SOURCES.
34095 2011-05-23  Bruno Haible  <bruno@clisp.org>
34097         safe-write: Move AC_LIBOBJ invocations to module description.
34098         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
34099         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
34100         instead of gl_SAFE_WRITE.
34101         (Makefile.am): Augment lib_SOURCES.
34103 2011-05-23  Bruno Haible  <bruno@clisp.org>
34105         safe-read: Move AC_LIBOBJ invocations to module description.
34106         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
34107         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
34108         of gl_SAFE_READ.
34109         (Makefile.am): Augment lib_SOURCES.
34111 2011-05-23  Bruno Haible  <bruno@clisp.org>
34113         safe-alloc: Move AC_LIBOBJ invocations to module description.
34114         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
34115         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
34117 2011-05-23  Bruno Haible  <bruno@clisp.org>
34119         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
34120         * m4/rijndael.m4: Remove file.
34121         * modules/crypto/rijndael (Files): Remove it.
34122         (configure.ac): Remove gl_RIJNDAEL call.
34123         (Makefile.am): Augment lib_SOURCES.
34125 2011-05-23  Bruno Haible  <bruno@clisp.org>
34127         readtokens: Move AC_LIBOBJ invocations to module description.
34128         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
34129         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
34131 2011-05-23  Bruno Haible  <bruno@clisp.org>
34133         read-file: Move AC_LIBOBJ invocations to module description.
34134         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
34135         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
34136         of gl_FUNC_READ_FILE.
34137         (Makefile.am): Augment lib_SOURCES.
34139 2011-05-23  Bruno Haible  <bruno@clisp.org>
34141         quotearg: Move AC_LIBOBJ invocations to module description.
34142         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
34143         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
34145 2011-05-23  Bruno Haible  <bruno@clisp.org>
34147         quote: Move AC_LIBOBJ invocations to module description.
34148         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
34149         * modules/quote (Makefile.am): Augment lib_SOURCES.
34151 2011-05-23  Bruno Haible  <bruno@clisp.org>
34153         posixver: Move AC_LIBOBJ invocations to module description.
34154         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
34155         * modules/posixver (Makefile.am): Augment lib_SOURCES.
34157 2011-05-23  Bruno Haible  <bruno@clisp.org>
34159         posixtm: Move AC_LIBOBJ invocations to module description.
34160         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
34161         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
34163 2011-05-23  Bruno Haible  <bruno@clisp.org>
34165         physmem: Move AC_LIBOBJ invocations to module description.
34166         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
34167         * modules/physmem (Makefile.am): Augment lib_SOURCES.
34169 2011-05-23  Bruno Haible  <bruno@clisp.org>
34171         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
34172         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
34173         invocation.
34174         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
34176 2011-05-23  Bruno Haible  <bruno@clisp.org>
34178         mpsort: Move AC_LIBOBJ invocations to module description.
34179         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
34180         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
34182 2011-05-23  Bruno Haible  <bruno@clisp.org>
34184         modechange: Move AC_LIBOBJ invocations to module description.
34185         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
34186         * modules/modechange (Makefile.am): Augment lib_SOURCES.
34188 2011-05-23  Bruno Haible  <bruno@clisp.org>
34190         mkdir-p: Move AC_LIBOBJ invocations to module description.
34191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
34192         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
34194 2011-05-23  Bruno Haible  <bruno@clisp.org>
34196         mkancesdirs: Move AC_LIBOBJ invocations to module description.
34197         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
34198         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
34200 2011-05-23  Bruno Haible  <bruno@clisp.org>
34202         mgetgroups: Move AC_LIBOBJ invocations to module description.
34203         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
34204         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
34206 2011-05-23  Bruno Haible  <bruno@clisp.org>
34208         memxor: Move AC_LIBOBJ invocations to module description.
34209         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
34210         * modules/memxor (Makefile.am): Augment lib_SOURCES.
34212 2011-05-23  Bruno Haible  <bruno@clisp.org>
34214         memcoll: Move AC_LIBOBJ invocations to module description.
34215         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
34216         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
34218 2011-05-23  Bruno Haible  <bruno@clisp.org>
34220         memcasecmp: Move AC_LIBOBJ invocations to module description.
34221         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
34222         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
34224 2011-05-23  Bruno Haible  <bruno@clisp.org>
34226         crypto/md5: Move AC_LIBOBJ invocations to module description.
34227         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
34228         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
34230 2011-05-23  Bruno Haible  <bruno@clisp.org>
34232         crypto/md4: Move AC_LIBOBJ invocations to module description.
34233         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
34234         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
34236 2011-05-23  Bruno Haible  <bruno@clisp.org>
34238         crypto/md2: Move AC_LIBOBJ invocations to module description.
34239         * m4/md2.m4: Remove file.
34240         * modules/crypto/md2 (Files): Remove it.
34241         (configure.ac): Remove gl_MD2 call.
34242         (Makefile.am): Augment lib_SOURCES.
34244 2011-05-23  Bruno Haible  <bruno@clisp.org>
34246         long-options: Move AC_LIBOBJ invocations to module description.
34247         * m4/long-options.m4: Remove file.
34248         * modules/long-options (Files): Remove it.
34249         (configure.ac): Remove gl_LONG_OPTIONS call.
34250         (Makefile.am): Augment lib_SOURCES.
34252 2011-05-23  Bruno Haible  <bruno@clisp.org>
34254         i-ring: Move AC_LIBOBJ invocations to module description.
34255         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
34256         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
34258 2011-05-23  Bruno Haible  <bruno@clisp.org>
34260         idcache: Move AC_LIBOBJ invocations to module description.
34261         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
34262         * modules/idcache (Makefile.am): Augment lib_SOURCES.
34264 2011-05-23  Bruno Haible  <bruno@clisp.org>
34266         human: Move AC_LIBOBJ invocations to module description.
34267         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
34268         * modules/human (Makefile.am): Augment lib_SOURCES.
34270 2011-05-23  Bruno Haible  <bruno@clisp.org>
34272         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
34273         * m4/hmac-sha1.m4: Remove file.
34274         * modules/crypto/hmac-sha1 (Files): Remove it.
34275         (configure.ac): Remove gl_HMAC_SHA1 call.
34276         (Makefile.am): Augment lib_SOURCES.
34278 2011-05-23  Bruno Haible  <bruno@clisp.org>
34280         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
34281         * m4/hmac-md5.m4: Remove file.
34282         * modules/crypto/hmac-md5 (Files): Remove it.
34283         (configure.ac): Remove gl_HMAC_MD5 call.
34284         (Makefile.am): Augment lib_SOURCES.
34286 2011-05-23  Bruno Haible  <bruno@clisp.org>
34288         hash: Move AC_LIBOBJ invocations to module description.
34289         * m4/hash.m4: Remove file.
34290         * modules/hash (Files): Remove it.
34291         (configure.ac): Remove gl_HASH call.
34292         (Makefile.am): Augment lib_SOURCES.
34294 2011-05-23  Bruno Haible  <bruno@clisp.org>
34296         hard-locale: Move AC_LIBOBJ invocations to module description.
34297         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
34298         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
34300 2011-05-23  Bruno Haible  <bruno@clisp.org>
34302         getugroups: Move AC_LIBOBJ invocations to module description.
34303         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
34304         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
34306 2011-05-23  Bruno Haible  <bruno@clisp.org>
34308         gettime: Move AC_LIBOBJ invocations to module description.
34309         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
34310         * modules/gettime (Makefile.am): Augment lib_SOURCES.
34312 2011-05-23  Bruno Haible  <bruno@clisp.org>
34314         getndelim2: Move AC_LIBOBJ invocations to module description.
34315         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
34316         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
34318 2011-05-23  Bruno Haible  <bruno@clisp.org>
34320         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
34321         * m4/gc-pbkdf2-sha1.m4: Remove file.
34322         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
34323         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
34324         (Makefile.am): Augment lib_SOURCES.
34326 2011-05-23  Bruno Haible  <bruno@clisp.org>
34328         fts: Move AC_LIBOBJ invocations to module description.
34329         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
34330         * modules/fts (configure.ac): ... to here.
34332 2011-05-23  Bruno Haible  <bruno@clisp.org>
34334         file-type: Move AC_LIBOBJ invocations to module description.
34335         * m4/file-type.m4: Remove file.
34336         * modules/file-type (Files): Remove it.
34337         (configure.ac): Remove gl_FILE_TYPE call.
34338         (Makefile.am): Augment lib_SOURCES.
34340 2011-05-23  Bruno Haible  <bruno@clisp.org>
34342         filenamecat*: Respect rules for use of AC_LIBOBJ.
34343         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
34344         Remove AC_LIBOBJ invocation.
34345         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
34346         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
34348 2011-05-23  Bruno Haible  <bruno@clisp.org>
34350         filemode: Move AC_LIBOBJ invocations to module description.
34351         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
34352         * modules/filemode (Makefile.am): Augment lib_SOURCES.
34354 2011-05-23  Bruno Haible  <bruno@clisp.org>
34356         openat-safer: Move AC_LIBOBJ invocations to module description.
34357         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
34358         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
34360 2011-05-23  Bruno Haible  <bruno@clisp.org>
34362         fcntl-safer: Move AC_LIBOBJ invocations to module description.
34363         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
34364         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
34366 2011-05-23  Bruno Haible  <bruno@clisp.org>
34368         exclude: Move AC_LIBOBJ invocations to module description.
34369         * m4/exclude.m4: Remove file.
34370         * modules/exclude (Files): Remove it.
34371         (configure.ac): Remove gl_EXCLUDE call.
34372         (Makefile.am): Augment lib_SOURCES.
34374 2011-05-23  Bruno Haible  <bruno@clisp.org>
34376         dirname*: Respect rules for use of AC_LIBOBJ.
34377         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
34378         invocations.
34379         * modules/dirname (Makefile.am): Augment lib_SOURCES.
34380         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
34382 2011-05-23  Bruno Haible  <bruno@clisp.org>
34384         dirent-safer: Move AC_LIBOBJ invocations to module description.
34385         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
34386         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
34388 2011-05-23  Bruno Haible  <bruno@clisp.org>
34390         crypto/des: Move AC_LIBOBJ invocations to module description.
34391         * m4/des.m4: Remove file.
34392         * modules/crypto/des (Files): Remove it.
34393         (configure.ac): Remove gl_DES call.
34394         (Makefile.am): Augment lib_SOURCES.
34396 2011-05-23  Bruno Haible  <bruno@clisp.org>
34398         cycle-check: Move AC_LIBOBJ invocations to module description.
34399         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
34400         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
34402 2011-05-23  Bruno Haible  <bruno@clisp.org>
34404         c-strtold: Move AC_LIBOBJ invocations to module description.
34405         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
34406         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
34408 2011-05-23  Bruno Haible  <bruno@clisp.org>
34410         c-strtod: Move AC_LIBOBJ invocations to module description.
34411         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
34412         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
34414 2011-05-23  Bruno Haible  <bruno@clisp.org>
34416         crc: Move AC_LIBOBJ invocations to module description.
34417         * m4/crc.m4: Remove file.
34418         * modules/crc (Files): Remove it.
34419         (configure.ac): Remove gl_CRC call.
34420         (Makefile.am): Augment lib_SOURCES.
34422 2011-05-23  Bruno Haible  <bruno@clisp.org>
34424         close-stream: Move AC_LIBOBJ invocations to module description.
34425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
34426         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
34428 2011-05-23  Bruno Haible  <bruno@clisp.org>
34430         closeout: Move AC_LIBOBJ invocations to module description.
34431         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
34432         * modules/closeout (Makefile.am): Augment lib_SOURCES.
34434 2011-05-23  Bruno Haible  <bruno@clisp.org>
34436         closein: Move AC_LIBOBJ invocations to module description.
34437         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
34438         * modules/closein (Makefile.am): Augment lib_SOURCES.
34440 2011-05-23  Bruno Haible  <bruno@clisp.org>
34442         cloexec: Move AC_LIBOBJ invocations to module description.
34443         * m4/cloexec.m4: Remove file.
34444         * modules/cloexec (Files): Remove it.
34445         (configure.ac): Remove gl_CLOEXEC call.
34446         (Makefile.am): Augment lib_SOURCES.
34448 2011-05-23  Bruno Haible  <bruno@clisp.org>
34450         check-version: Move AC_LIBOBJ invocations to module description.
34451         * m4/check-version.m4: Remove file.
34452         * modules/check-version (Files): Remove it.
34453         (configure.ac): Remove gl_CHECK_VERSION call.
34454         (Makefile.am): Augment lib_SOURCES.
34456 2011-05-23  Bruno Haible  <bruno@clisp.org>
34458         chdir-safer: Move AC_LIBOBJ invocations to module description.
34459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
34460         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
34462 2011-05-23  Bruno Haible  <bruno@clisp.org>
34464         canonicalize: Move AC_LIBOBJ invocations to module description.
34465         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
34466         AC_LIBOBJ invocation.
34467         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
34469 2011-05-23  Bruno Haible  <bruno@clisp.org>
34471         canon-host: Move AC_LIBOBJ invocations to module description.
34472         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
34473         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
34474         instead of gl_CANON_HOST.
34475         (Makefile.am): Augment lib_SOURCES.
34477 2011-05-23  Bruno Haible  <bruno@clisp.org>
34479         backupfile: Move AC_LIBOBJ invocations to module description.
34480         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
34481         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
34483 2011-05-23  Bruno Haible  <bruno@clisp.org>
34485         argmatch: Move AC_LIBOBJ invocations to module description.
34486         * m4/argmatch.m4: Remove file.
34487         * modules/argmatch (Files): Remove it.
34488         (configure.ac): Remove gl_ARGMATCH call.
34489         (Makefile.am): Augment lib_SOURCES.
34491 2011-05-23  Bruno Haible  <bruno@clisp.org>
34493         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
34494         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
34495         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
34497 2011-05-23  Bruno Haible  <bruno@clisp.org>
34499         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
34500         * m4/arcfour.m4: Remove file.
34501         * modules/crypto/arcfour (Files): Remove it.
34502         (configure.ac): Remove gl_ARCFOUR call.
34503         (Makefile.am): Augment lib_SOURCES.
34505 2011-05-22  Bruno Haible  <bruno@clisp.org>
34507         write: Move AC_LIBOBJ invocations to module description.
34508         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
34509         * modules/write (configure.ac): ... to here.
34511 2011-05-22  Bruno Haible  <bruno@clisp.org>
34513         wmemset: Move AC_LIBOBJ invocations to module description.
34514         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
34515         here...
34516         * modules/wmemset (configure.ac): ... to here.
34518 2011-05-22  Bruno Haible  <bruno@clisp.org>
34520         wmemmove: Move AC_LIBOBJ invocations to module description.
34521         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
34522         here...
34523         * modules/wmemmove (configure.ac): ... to here.
34525 2011-05-22  Bruno Haible  <bruno@clisp.org>
34527         wmemcpy: Move AC_LIBOBJ invocations to module description.
34528         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
34529         here...
34530         * modules/wmemcpy (configure.ac): ... to here.
34532 2011-05-22  Bruno Haible  <bruno@clisp.org>
34534         wmemcmp: Move AC_LIBOBJ invocations to module description.
34535         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
34536         here...
34537         * modules/wmemcmp (configure.ac): ... to here.
34539 2011-05-22  Bruno Haible  <bruno@clisp.org>
34541         wmemchr: Move AC_LIBOBJ invocations to module description.
34542         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
34543         here...
34544         * modules/wmemchr (configure.ac): ... to here.
34546 2011-05-22  Bruno Haible  <bruno@clisp.org>
34548         wcswidth: Move AC_LIBOBJ invocations to module description.
34549         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
34550         here...
34551         * modules/wcswidth (configure.ac): ... to here.
34553 2011-05-22  Bruno Haible  <bruno@clisp.org>
34555         wcwidth: Respect rules for use of AC_LIBOBJ.
34556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
34557         invocation from here...
34558         * modules/wcwidth (configure.ac): ... to here.
34559         (Depends-on): Update conditions.
34561 2011-05-22  Bruno Haible  <bruno@clisp.org>
34563         wctype: Move AC_LIBOBJ invocations to module description.
34564         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
34565         invocation from here...
34566         * modules/wctype (configure.ac): ... to here.
34567         (Depends-on): Update conditions.
34569 2011-05-22  Bruno Haible  <bruno@clisp.org>
34571         wctrans: Move AC_LIBOBJ invocations to module description.
34572         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
34573         invocation from here...
34574         * modules/wctrans (configure.ac): ... to here.
34576 2011-05-22  Bruno Haible  <bruno@clisp.org>
34578         wctomb: Move AC_LIBOBJ invocations to module description.
34579         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
34580         invocations from here...
34581         * modules/wctomb (configure.ac): ... to here.
34583 2011-05-22  Bruno Haible  <bruno@clisp.org>
34585         wctob: Move AC_LIBOBJ invocations to module description.
34586         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
34587         gl_PREREQ_WCTOB invocations from here...
34588         * modules/wctob (configure.ac): ... to here.
34589         (Depends-on): Update conditions.
34591 2011-05-22  Bruno Haible  <bruno@clisp.org>
34593         wcsxfrm: Move AC_LIBOBJ invocations to module description.
34594         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
34595         here...
34596         * modules/wcsxfrm (configure.ac): ... to here.
34598 2011-05-22  Bruno Haible  <bruno@clisp.org>
34600         wcstok: Move AC_LIBOBJ invocations to module description.
34601         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
34602         * modules/wcstok (configure.ac): ... to here.
34604 2011-05-22  Bruno Haible  <bruno@clisp.org>
34606         wcsstr: Move AC_LIBOBJ invocations to module description.
34607         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
34608         * modules/wcsstr (configure.ac): ... to here.
34610 2011-05-22  Bruno Haible  <bruno@clisp.org>
34612         wcsspn: Move AC_LIBOBJ invocations to module description.
34613         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
34614         * modules/wcsspn (configure.ac): ... to here.
34616 2011-05-22  Bruno Haible  <bruno@clisp.org>
34618         wcsrtombs: Move AC_LIBOBJ invocations to module description.
34619         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
34620         gl_PREREQ_WCSRTOMBS invocations from here...
34621         * modules/wcsrtombs (configure.ac): ... to here.
34623 2011-05-22  Bruno Haible  <bruno@clisp.org>
34625         wcsrchr: Move AC_LIBOBJ invocations to module description.
34626         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
34627         here...
34628         * modules/wcsrchr (configure.ac): ... to here.
34630 2011-05-22  Bruno Haible  <bruno@clisp.org>
34632         wcspbrk: Move AC_LIBOBJ invocations to module description.
34633         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
34634         here...
34635         * modules/wcspbrk (configure.ac): ... to here.
34637 2011-05-22  Bruno Haible  <bruno@clisp.org>
34639         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
34640         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
34641         gl_PREREQ_WCSNRTOMBS invocations from here...
34642         * modules/wcsnrtombs (configure.ac): ... to here.
34644 2011-05-22  Bruno Haible  <bruno@clisp.org>
34646         wcsnlen: Move AC_LIBOBJ invocations to module description.
34647         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
34648         here...
34649         * modules/wcsnlen (configure.ac): ... to here.
34651 2011-05-22  Bruno Haible  <bruno@clisp.org>
34653         wcsncpy: Move AC_LIBOBJ invocations to module description.
34654         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
34655         here...
34656         * modules/wcsncpy (configure.ac): ... to here.
34658 2011-05-22  Bruno Haible  <bruno@clisp.org>
34660         wcsncmp: Move AC_LIBOBJ invocations to module description.
34661         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
34662         here...
34663         * modules/wcsncmp (configure.ac): ... to here.
34665 2011-05-22  Bruno Haible  <bruno@clisp.org>
34667         wcsncat: Move AC_LIBOBJ invocations to module description.
34668         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
34669         here...
34670         * modules/wcsncat (configure.ac): ... to here.
34672 2011-05-22  Bruno Haible  <bruno@clisp.org>
34674         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
34675         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
34676         from here...
34677         * modules/wcsncasecmp (configure.ac): ... to here.
34679 2011-05-22  Bruno Haible  <bruno@clisp.org>
34681         wcslen: Move AC_LIBOBJ invocations to module description.
34682         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
34683         * modules/wcslen (configure.ac): ... to here.
34685 2011-05-22  Bruno Haible  <bruno@clisp.org>
34687         wcsdup: Move AC_LIBOBJ invocations to module description.
34688         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
34689         * modules/wcsdup (configure.ac): ... to here.
34691 2011-05-22  Bruno Haible  <bruno@clisp.org>
34693         wcscspn: Move AC_LIBOBJ invocations to module description.
34694         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
34695         here...
34696         * modules/wcscspn (configure.ac): ... to here.
34698 2011-05-22  Bruno Haible  <bruno@clisp.org>
34700         wcscpy: Move AC_LIBOBJ invocations to module description.
34701         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
34702         * modules/wcscpy (configure.ac): ... to here.
34704 2011-05-22  Bruno Haible  <bruno@clisp.org>
34706         wcscoll: Move AC_LIBOBJ invocations to module description.
34707         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
34708         here...
34709         * modules/wcscoll (configure.ac): ... to here.
34711 2011-05-22  Bruno Haible  <bruno@clisp.org>
34713         wcscmp: Move AC_LIBOBJ invocations to module description.
34714         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
34715         * modules/wcscmp (configure.ac): ... to here.
34717 2011-05-22  Bruno Haible  <bruno@clisp.org>
34719         wcschr: Move AC_LIBOBJ invocations to module description.
34720         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
34721         * modules/wcschr (configure.ac): ... to here.
34723 2011-05-22  Bruno Haible  <bruno@clisp.org>
34725         wcscat: Move AC_LIBOBJ invocations to module description.
34726         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
34727         * modules/wcscat (configure.ac): ... to here.
34729 2011-05-22  Bruno Haible  <bruno@clisp.org>
34731         wcscasecmp: Move AC_LIBOBJ invocations to module description.
34732         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
34733         here...
34734         * modules/wcscasecmp (configure.ac): ... to here.
34736 2011-05-22  Bruno Haible  <bruno@clisp.org>
34738         wcrtomb: Move AC_LIBOBJ invocations to module description.
34739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
34740         invocations from here...
34741         * modules/wcrtomb (configure.ac): ... to here.
34743 2011-05-22  Bruno Haible  <bruno@clisp.org>
34745         wcpncpy: Move AC_LIBOBJ invocations to module description.
34746         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
34747         here...
34748         * modules/wcpncpy (configure.ac): ... to here.
34750 2011-05-22  Bruno Haible  <bruno@clisp.org>
34752         wcpcpy: Move AC_LIBOBJ invocations to module description.
34753         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
34754         * modules/wcpcpy (configure.ac): ... to here.
34756 2011-05-22  Bruno Haible  <bruno@clisp.org>
34758         waitpid: Move AC_LIBOBJ invocations to module description.
34759         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
34760         invocation from here...
34761         * modules/waitpid (configure.ac): ... to here.
34763 2011-05-22  Bruno Haible  <bruno@clisp.org>
34765         utimensat: Move AC_LIBOBJ invocations to module description.
34766         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
34767         here...
34768         * modules/utimensat (configure.ac): ... to here.
34770 2011-05-22  Bruno Haible  <bruno@clisp.org>
34772         usleep: Move AC_LIBOBJ invocations to module description.
34773         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
34774         here...
34775         * modules/usleep (configure.ac): ... to here.
34777 2011-05-22  Bruno Haible  <bruno@clisp.org>
34779         unlockpt: Move AC_LIBOBJ invocations to module description.
34780         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
34781         gl_PREREQ_UNLOCKPT invocations from here...
34782         * modules/unlockpt (configure.ac): ... to here.
34784 2011-05-22  Bruno Haible  <bruno@clisp.org>
34786         unlink: Respect rules for use of AC_LIBOBJ.
34787         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
34788         * modules/unlink (configure.ac): ... to here.
34790 2011-05-22  Bruno Haible  <bruno@clisp.org>
34792         uname: Move AC_LIBOBJ invocations to module description.
34793         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
34794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
34795         here...
34796         * modules/uname (configure.ac): ... to here.
34798 2011-05-22  Bruno Haible  <bruno@clisp.org>
34800         ttyname_r: Move AC_LIBOBJ invocations to module description.
34801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
34802         gl_PREREQ_TTYNAME_R invocations from here...
34803         * modules/ttyname_r (configure.ac): ... to here.
34805 2011-05-22  Bruno Haible  <bruno@clisp.org>
34807         tsearch: Move AC_LIBOBJ invocations to module description.
34808         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
34809         invocations from here...
34810         * modules/tsearch (configure.ac): ... to here.
34812 2011-05-22  Bruno Haible  <bruno@clisp.org>
34814         towctrans: Move AC_LIBOBJ invocations to module description.
34815         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
34816         AC_LIBOBJ invocation from here...
34817         * modules/towctrans (configure.ac): ... to here.
34819 2011-05-22  Bruno Haible  <bruno@clisp.org>
34821         tmpfile: Move AC_LIBOBJ invocations to module description.
34822         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
34823         invocations from here...
34824         * modules/tmpfile (configure.ac): ... to here.
34826 2011-05-22  Bruno Haible  <bruno@clisp.org>
34828         times: Move AC_LIBOBJ invocations to module description.
34829         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
34830         * modules/times (configure.ac): ... to here.
34832 2011-05-22  Bruno Haible  <bruno@clisp.org>
34834         time_r: Move AC_LIBOBJ invocations to module description.
34835         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
34836         invocations from here...
34837         * modules/time_r (configure.ac): ... to here.
34839 2011-05-22  Bruno Haible  <bruno@clisp.org>
34841         timegm: Move AC_LIBOBJ invocations to module description.
34842         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
34843         invocations from here...
34844         * modules/timegm (configure.ac): ... to here.
34846 2011-05-22  Bruno Haible  <bruno@clisp.org>
34848         tcgetsid: Move AC_LIBOBJ invocations to module description.
34849         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34850         and gl_PREREQ_TCGETSID invocations from here...
34851         * modules/tcgetsid (configure.ac): ... to here.
34852         (Depends-on): Update conditions.
34854 2011-05-22  Bruno Haible  <bruno@clisp.org>
34856         symlinkat: Move AC_LIBOBJ invocations to module description.
34857         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34858         here...
34859         * modules/symlinkat (configure.ac): ... to here.
34861 2011-05-22  Bruno Haible  <bruno@clisp.org>
34863         symlink: Move AC_LIBOBJ invocations to module description.
34864         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34865         here...
34866         * modules/symlink (configure.ac): ... to here.
34868 2011-05-22  Bruno Haible  <bruno@clisp.org>
34870         strverscmp: Move AC_LIBOBJ invocations to module description.
34871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34873         from here...
34874         * modules/strverscmp (configure.ac): ... to here.
34876 2011-05-22  Bruno Haible  <bruno@clisp.org>
34878         strtok_r: Move AC_LIBOBJ invocations to module description.
34879         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34880         and gl_PREREQ_STRTOK_R invocations from here...
34881         * modules/strtok_r (configure.ac): ... to here.
34882         (Depends-on): Update conditions.
34884 2011-05-22  Bruno Haible  <bruno@clisp.org>
34886         strtoumax: Move AC_LIBOBJ invocations to module description.
34887         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34889         from here...
34890         * modules/strtoumax (configure.ac): ... to here.
34892 2011-05-22  Bruno Haible  <bruno@clisp.org>
34894         strtoimax: Move AC_LIBOBJ invocations to module description.
34895         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34897         from here...
34898         * modules/strtoimax (configure.ac): ... to here.
34900 2011-05-22  Bruno Haible  <bruno@clisp.org>
34902         strtoull: Move AC_LIBOBJ invocations to module description.
34903         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34905         from here...
34906         * modules/strtoull (configure.ac): ... to here.
34908 2011-05-22  Bruno Haible  <bruno@clisp.org>
34910         strtoll: Move AC_LIBOBJ invocations to module description.
34911         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34913         here...
34914         * modules/strtoll (configure.ac): ... to here.
34916 2011-05-22  Bruno Haible  <bruno@clisp.org>
34918         strtoul: Move AC_LIBOBJ invocations to module description.
34919         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34920         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34921         * modules/strtoul (configure.ac): ... to here.
34923 2011-05-22  Bruno Haible  <bruno@clisp.org>
34925         strtol: Move AC_LIBOBJ invocations to module description.
34926         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34927         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34928         * modules/strtol (configure.ac): ... to here.
34930 2011-05-22  Bruno Haible  <bruno@clisp.org>
34932         strtod: Move AC_LIBOBJ invocations to module description.
34933         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34934         invocations from here...
34935         * modules/strtod (configure.ac): ... to here.
34937 2011-05-22  Bruno Haible  <bruno@clisp.org>
34939         strstr*: Move AC_LIBOBJ invocations to module description.
34940         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34941         invocations from here...
34942         * modules/strstr-simple (configure.ac): ... to here.
34943         * modules/strstr (configure.ac): ... and here.
34945 2011-05-22  Bruno Haible  <bruno@clisp.org>
34947         strsignal: Move AC_LIBOBJ invocations to module description.
34948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34949         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34950         * modules/strsignal (configure.ac): ... to here.
34951         (Depends-on): Update conditions.
34953 2011-05-22  Bruno Haible  <bruno@clisp.org>
34955         strsep: Move AC_LIBOBJ invocations to module description.
34956         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34958         here...
34959         * modules/strsep (configure.ac): ... to here.
34961 2011-05-22  Bruno Haible  <bruno@clisp.org>
34963         strptime: Move AC_LIBOBJ invocations to module description.
34964         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34965         gl_PREREQ_STRPTIME invocations from here...
34966         * modules/strptime (configure.ac): ... to here.
34968 2011-05-22  Bruno Haible  <bruno@clisp.org>
34970         strpbrk: Move AC_LIBOBJ invocations to module description.
34971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34973         here...
34974         * modules/strpbrk (configure.ac): ... to here.
34976 2011-05-22  Bruno Haible  <bruno@clisp.org>
34978         strnlen: Move AC_LIBOBJ invocations to module description.
34979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34980         invocations from here...
34981         * modules/strnlen (configure.ac): ... to here.
34983 2011-05-22  Bruno Haible  <bruno@clisp.org>
34985         strndup: Move AC_LIBOBJ invocations to module description.
34986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34987         invocations from here...
34988         * modules/strndup (configure.ac): ... to here.
34989         (Depends-on): Update conditions.
34991 2011-05-22  Bruno Haible  <bruno@clisp.org>
34993         strncat: Move AC_LIBOBJ invocations to module description.
34994         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34995         invocations from here...
34996         * modules/strncat (configure.ac): ... to here.
34998 2011-05-22  Bruno Haible  <bruno@clisp.org>
35000         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
35001         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
35002         invocations from here...
35003         * modules/strdup (configure.ac): ... to here.
35004         * modules/strdup-posix (configure.ac): ... and here.
35006 2011-05-22  Bruno Haible  <bruno@clisp.org>
35008         strcspn: Move AC_LIBOBJ invocations to module description.
35009         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
35010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
35011         here...
35012         * modules/strcspn (configure.ac): ... to here.
35014 2011-05-22  Bruno Haible  <bruno@clisp.org>
35016         strchrnul: Move AC_LIBOBJ invocations to module description.
35017         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
35018         gl_PREREQ_STRCHRNUL invocations from here...
35019         * modules/strchrnul (configure.ac): ... to here.
35021 2011-05-22  Bruno Haible  <bruno@clisp.org>
35023         strcasestr*: Move AC_LIBOBJ invocations to module description.
35024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
35025         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
35026         * modules/strcasestr-simple (configure.ac): ... to here.
35027         * modules/strcasestr (configure.ac): ... and here.
35029 2011-05-22  Bruno Haible  <bruno@clisp.org>
35031         strcase: Move AC_LIBOBJ invocations to module description.
35032         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
35033         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
35034         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
35035         gl_PREREQ_STRNCASECMP invocations from here...
35036         * modules/strcase (configure.ac): ... to here.
35038 2011-05-22  Bruno Haible  <bruno@clisp.org>
35040         stpncpy: Move AC_LIBOBJ invocations to module description.
35041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
35042         here...
35043         * modules/stpncpy (configure.ac): ... to here.
35045 2011-05-22  Bruno Haible  <bruno@clisp.org>
35047         stpcpy: Move AC_LIBOBJ invocations to module description.
35048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
35049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
35050         here...
35051         * modules/stpcpy (configure.ac): ... to here.
35053 2011-05-21  Bruno Haible  <bruno@clisp.org>
35055         stat: Move AC_LIBOBJ invocations to module description.
35056         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
35057         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
35058         here...
35059         * modules/stat (configure.ac): ... to here.
35061 2011-05-21  Bruno Haible  <bruno@clisp.org>
35063         sleep: Move AC_LIBOBJ invocations to module description.
35064         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
35065         * modules/sleep (configure.ac): ... to here.
35067 2011-05-21  Bruno Haible  <bruno@clisp.org>
35069         signbit: Move AC_LIBOBJ invocations to module description.
35070         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
35071         * modules/signbit (configure.ac): ... to here.
35073 2011-05-21  Bruno Haible  <bruno@clisp.org>
35075         sigprocmask: Move AC_LIBOBJ invocations to module description.
35076         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
35077         gl_PREREQ_SIGPROMASK invocations from here...
35078         * modules/sigprocmask (configure.ac): ... to here.
35080 2011-05-21  Bruno Haible  <bruno@clisp.org>
35082         sigaction: Move AC_LIBOBJ invocations to module description.
35083         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
35084         gl_PREREQ_SIGACTION invocations from here...
35085         * modules/sigaction (configure.ac): ... to here.
35087 2011-05-21  Bruno Haible  <bruno@clisp.org>
35089         sig2str: Move AC_LIBOBJ invocations to module description.
35090         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
35091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
35092         here...
35093         * modules/sig2str (configure.ac): ... to here.
35095 2011-05-21  Bruno Haible  <bruno@clisp.org>
35097         setlocale: Move AC_LIBOBJ invocations to module description.
35098         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
35099         gl_PREREQ_SETLOCALE invocations from here...
35100         * modules/setlocale (configure.ac): ... to here.
35102 2011-05-21  Bruno Haible  <bruno@clisp.org>
35104         unsetenv: Move AC_LIBOBJ invocations to module description.
35105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
35106         and gl_PREREQ_UNSETENV invocations from here...
35107         * modules/unsetenv (configure.ac): ... to here.
35108         (Depends-on): Update.
35110 2011-05-21  Bruno Haible  <bruno@clisp.org>
35112         setenv: Move AC_LIBOBJ invocations to module description.
35113         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
35114         here...
35115         * modules/setenv (configure.ac): ... to here.
35117 2011-05-21  Bruno Haible  <bruno@clisp.org>
35119         selinux-h: Move AC_LIBOBJ invocations to module description.
35120         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
35121         AC_LIBOBJ invocation from here...
35122         * modules/selinux-h (configure.ac): ... to here.
35124 2011-05-21  Bruno Haible  <bruno@clisp.org>
35126         select: Respect rules for use of AC_LIBOBJ.
35127         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
35128         here...
35129         * modules/select (configure.ac): ... to here.
35131 2011-05-21  Bruno Haible  <bruno@clisp.org>
35133         scandir: Move AC_LIBOBJ invocations to module description.
35134         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
35135         invocations from here...
35136         * modules/scandir (configure.ac): ... to here.
35138 2011-05-21  Bruno Haible  <bruno@clisp.org>
35140         rpmatch: Move AC_LIBOBJ invocations to module description.
35141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
35142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
35143         here...
35144         * modules/rpmatch (configure.ac): ... to here.
35146 2011-05-21  Bruno Haible  <bruno@clisp.org>
35148         rmdir: Respect rules for use of AC_LIBOBJ.
35149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
35150         * modules/rmdir (configure.ac): ... to here.
35152 2011-05-21  Bruno Haible  <bruno@clisp.org>
35154         renameat: Move AC_LIBOBJ invocations to module description.
35155         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
35156         here...
35157         * modules/renameat (configure.ac): ... to here.
35159 2011-05-21  Bruno Haible  <bruno@clisp.org>
35161         rename: Respect rules for use of AC_LIBOBJ.
35162         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
35163         here...
35164         * modules/rename (configure.ac): ... to here.
35166 2011-05-21  Bruno Haible  <bruno@clisp.org>
35168         remove: Move AC_LIBOBJ invocations to module description.
35169         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
35170         here...
35171         * modules/remove (configure.ac): ... to here.
35173 2011-05-21  Bruno Haible  <bruno@clisp.org>
35175         relocatable-lib: Move AC_LIBOBJ invocations to module description.
35176         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
35177         macro.
35178         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
35179         * modules/relocatable-lib (configure.ac): ... to here.
35180         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35181         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
35183 2011-05-21  Bruno Haible  <bruno@clisp.org>
35185         relocatable-prog: Move AC_LIBOBJ invocations to module description.
35186         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
35187         here...
35188         * modules/relocatable-prog (configure.ac): ... to here.
35190 2011-05-21  Bruno Haible  <bruno@clisp.org>
35192         regex: Move AC_LIBOBJ invocations to module description.
35193         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
35194         invocations from here...
35195         * modules/regex (configure.ac): ... to here.
35197 2011-05-21  Bruno Haible  <bruno@clisp.org>
35199         realloc-*: Move AC_LIBOBJ invocations to module description.
35200         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
35201         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
35202         AC_LIBOBJ invocations from here...
35203         * modules/realloc-gnu (configure.ac): ... to here.
35204         * modules/realloc-posix (configure.ac): ... and here.
35206 2011-05-21  Bruno Haible  <bruno@clisp.org>
35208         readutmp: Move AC_LIBOBJ invocations to module description.
35209         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
35210         * modules/readutmp (configure.ac): ... to here.
35212 2011-05-21  Bruno Haible  <bruno@clisp.org>
35214         readlinkat: Move AC_LIBOBJ invocations to module description.
35215         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
35216         here...
35217         * modules/readlinkat (configure.ac): ... to here.
35219 2011-05-21  Bruno Haible  <bruno@clisp.org>
35221         readlink: Move AC_LIBOBJ invocations to module description.
35222         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
35223         gl_PREREQ_READLINK invocations from here...
35224         * modules/readlink (configure.ac): ... to here.
35226 2011-05-21  Bruno Haible  <bruno@clisp.org>
35228         readline: Move AC_LIBOBJ invocations to module description.
35229         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
35230         gl_PREREQ_READLINE invocations from here...
35231         * modules/readline (configure.ac): ... to here.
35233 2011-05-21  Bruno Haible  <bruno@clisp.org>
35235         read: Move AC_LIBOBJ invocations to module description.
35236         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
35237         * modules/read (configure.ac): ... to here.
35239 2011-05-21  Bruno Haible  <bruno@clisp.org>
35241         rawmemchr: Move AC_LIBOBJ invocations to module description.
35242         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
35243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
35244         from here...
35245         * modules/rawmemchr (configure.ac): ... to here.
35247 2011-05-21  Bruno Haible  <bruno@clisp.org>
35249         random_r: Move AC_LIBOBJ invocations to module description.
35250         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
35251         gl_PREREQ_RANDOM_R invocations from here...
35252         * modules/random_r (configure.ac): ... to here.
35254 2011-05-21  Bruno Haible  <bruno@clisp.org>
35256         pwrite: Move AC_LIBOBJ invocations to module description.
35257         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
35258         * modules/pwrite (configure.ac): ... to here.
35260 2011-05-21  Bruno Haible  <bruno@clisp.org>
35262         putenv: Move AC_LIBOBJ invocations to module description.
35263         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
35264         * modules/putenv (configure.ac): ... to here.
35266 2011-05-21  Bruno Haible  <bruno@clisp.org>
35268         login_tty: Move AC_LIBOBJ invocations to module description.
35269         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
35270         * modules/login_tty (configure.ac): ... to here.
35272 2011-05-21  Bruno Haible  <bruno@clisp.org>
35274         openpty: Move AC_LIBOBJ invocations to module description.
35275         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
35276         * modules/openpty (configure.ac): ... to here.
35278 2011-05-21  Bruno Haible  <bruno@clisp.org>
35280         forkpty: Move AC_LIBOBJ invocations to module description.
35281         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
35282         * modules/forkpty (configure.ac): ... to here.
35284 2011-05-21  Bruno Haible  <bruno@clisp.org>
35286         ptsname: Move AC_LIBOBJ invocations to module description.
35287         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
35288         invocations from here...
35289         * modules/ptsname (configure.ac): ... to here.
35291 2011-05-21  Bruno Haible  <bruno@clisp.org>
35293         pread: Move AC_LIBOBJ invocations to module description.
35294         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
35295         * modules/pread (configure.ac): ... to here.
35297 2011-05-21  Bruno Haible  <bruno@clisp.org>
35299         posix_spawn*: Move AC_LIBOBJ invocations to module description.
35300         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
35301         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
35302         * modules/posix_spawn (configure.ac): ... to here.
35303         * modules/posix_spawnp (configure.ac): ... and here.
35305 2011-05-21  Bruno Haible  <bruno@clisp.org>
35307         popen: Move AC_LIBOBJ invocations to module description.
35308         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
35309         invocations from here...
35310         * modules/popen (configure.ac): ... to here.
35312 2011-05-21  Bruno Haible  <bruno@clisp.org>
35314         poll: Move AC_LIBOBJ invocations to module description.
35315         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
35316         invocations from here...
35317         * modules/poll (configure.ac): ... to here.
35319 2011-05-21  Bruno Haible  <bruno@clisp.org>
35321         pipe-posix: Move AC_LIBOBJ invocations to module description.
35322         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
35323         * modules/pipe-posix (configure.ac): ... to here.
35325 2011-05-21  Bruno Haible  <bruno@clisp.org>
35327         openat: Respect rules for use of AC_LIBOBJ.
35328         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
35329         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35330         * modules/openat (configure.ac): ... to here.
35332 2011-05-21  Bruno Haible  <bruno@clisp.org>
35334         obstack-printf*: Move AC_LIBOBJ invocations to module description.
35335         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
35336         invocation from here...
35337         * modules/obstack-printf (configure.ac): ... to here.
35338         * modules/obstack-printf-posix (configure.ac): ... and here.
35340 2011-05-21  Bruno Haible  <bruno@clisp.org>
35342         nl_langinfo: Move AC_LIBOBJ invocations to module description.
35343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
35344         from here...
35345         * modules/nl_langinfo (configure.ac): ... to here.
35347 2011-05-21  Bruno Haible  <bruno@clisp.org>
35349         nanosleep: Move AC_LIBOBJ invocations to module description.
35350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
35351         gl_PREREQ_NANOSLEEP invocations from here...
35352         * modules/nanosleep (configure.ac): ... to here.
35354 2011-05-21  Bruno Haible  <bruno@clisp.org>
35356         mountlist: Move AC_LIBOBJ invocations to module description.
35357         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
35358         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
35359         * modules/mountlist (configure.ac): ... to here.
35361 2011-05-21  Bruno Haible  <bruno@clisp.org>
35363         mktime: Respect rules for use of AC_LIBOBJ.
35364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
35365         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
35366         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
35367         (gl_FUNC_MKTIME_INTERNAL): ... and here...
35368         * modules/mktime (configure.ac): ... to here.
35369         * modules/mktime-internal (configure.ac): ... and here.
35370         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
35372 2011-05-21  Bruno Haible  <bruno@clisp.org>
35374         mkstemps: Move AC_LIBOBJ invocations to module description.
35375         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
35376         here...
35377         * modules/mkstemps (configure.ac): ... to here.
35379 2011-05-21  Bruno Haible  <bruno@clisp.org>
35381         mkstemp: Move AC_LIBOBJ invocations to module description.
35382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
35383         gl_PREREQ_MKSTEMP invocations from here...
35384         * modules/mkstemp (configure.ac): ... to here.
35386 2011-05-21  Bruno Haible  <bruno@clisp.org>
35388         mkostemps: Move AC_LIBOBJ invocations to module description.
35389         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
35390         here...
35391         * modules/mkostemps (configure.ac): ... to here.
35393 2011-05-21  Bruno Haible  <bruno@clisp.org>
35395         mkostemp: Move AC_LIBOBJ invocations to module description.
35396         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
35397         gl_PREREQ_MKOSTEMP invocations from here...
35398         * modules/mkostemp (configure.ac): ... to here.
35400 2011-05-21  Bruno Haible  <bruno@clisp.org>
35402         mknod: Move AC_LIBOBJ invocations to module description.
35403         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
35404         * modules/mknod (configure.ac): ... to here.
35406 2011-05-21  Bruno Haible  <bruno@clisp.org>
35408         mkfifoat: Move AC_LIBOBJ invocations to module description.
35409         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
35410         here...
35411         * modules/mkfifoat (configure.ac): ... to here.
35413 2011-05-21  Bruno Haible  <bruno@clisp.org>
35415         mkfifo: Respect rules for use of AC_LIBOBJ.
35416         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
35417         here...
35418         * modules/mkfifo (configure.ac): ... to here.
35420 2011-05-21  Bruno Haible  <bruno@clisp.org>
35422         mkdtemp: Move AC_LIBOBJ invocations to module description.
35423         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
35424         invocations from here...
35425         * modules/mkdtemp (configure.ac): ... to here.
35427 2011-05-21  Bruno Haible  <bruno@clisp.org>
35429         mkdir: Move AC_LIBOBJ invocations to module description.
35430         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
35431         * modules/mkdir (configure.ac): ... to here.
35433 2011-05-21  Bruno Haible  <bruno@clisp.org>
35435         memset: Move AC_LIBOBJ invocations to module description.
35436         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
35437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
35438         here...
35439         * modules/memset (configure.ac): ... to here.
35441 2011-05-21  Bruno Haible  <bruno@clisp.org>
35443         memrchr: Move AC_LIBOBJ invocations to module description.
35444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
35445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
35446         here...
35447         * modules/memrchr (configure.ac): ... to here.
35449 2011-05-21  Bruno Haible  <bruno@clisp.org>
35451         mempcpy: Move AC_LIBOBJ invocations to module description.
35452         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
35453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
35454         here...
35455         * modules/mempcpy (configure.ac): ... to here.
35457 2011-05-21  Bruno Haible  <bruno@clisp.org>
35459         memmove: Move AC_LIBOBJ invocations to module description.
35460         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
35461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
35462         here...
35463         * modules/memmove (configure.ac): ... to here.
35465 2011-05-21  Bruno Haible  <bruno@clisp.org>
35467         memmem*: Move AC_LIBOBJ invocations to module description.
35468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
35469         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
35470         here...
35471         (gl_FUNC_MEMMEM): ... and here...
35472         * modules/memmem-simple (configure.ac): ... to here.
35473         * modules/memmem (configure.ac): ... and here.
35475 2011-05-21  Bruno Haible  <bruno@clisp.org>
35477         memcpy: Move AC_LIBOBJ invocations to module description.
35478         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
35479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
35480         here...
35481         * modules/memcpy (configure.ac): ... to here.
35483 2011-05-21  Bruno Haible  <bruno@clisp.org>
35485         memcmp: Simplify autoconf macro.
35486         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
35487         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
35488         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
35490 2011-05-21  Bruno Haible  <bruno@clisp.org>
35492         memcmp: Move AC_LIBOBJ invocations to module description.
35493         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
35494         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
35495         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
35496         * modules/memcmp (configure.ac): ... to here.
35497         (Depends-on): Update conditions.
35499 2011-05-21  Bruno Haible  <bruno@clisp.org>
35501         memchr: Respect rules for use of AC_LIBOBJ.
35502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
35503         invocations from here...
35504         * modules/memchr (configure.ac): ... to here.
35506 2011-05-21  Bruno Haible  <bruno@clisp.org>
35508         mbtowc: Move AC_LIBOBJ invocations to module description.
35509         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
35510         invocations from here...
35511         * modules/mbtowc (configure.ac): ... to here.
35513 2011-05-21  Bruno Haible  <bruno@clisp.org>
35515         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
35516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
35517         gl_PREREQ_MBSRTOWCS invocations from here...
35518         * modules/mbsrtowcs (configure.ac): ... to here.
35520 2011-05-21  Bruno Haible  <bruno@clisp.org>
35522         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
35523         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
35524         gl_PREREQ_MBSNRTOWCS invocations from here...
35525         * modules/mbsnrtowcs (configure.ac): ... to here.
35527 2011-05-21  Bruno Haible  <bruno@clisp.org>
35529         mbsinit: Move AC_LIBOBJ invocations to module description.
35530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
35531         invocations from here...
35532         * modules/mbsinit (configure.ac): ... to here.
35534 2011-05-21  Bruno Haible  <bruno@clisp.org>
35536         mbrlen: Move AC_LIBOBJ invocations to module description.
35537         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
35538         invocations from here...
35539         * modules/mbrlen (configure.ac): ... to here.
35541 2011-05-21  Bruno Haible  <bruno@clisp.org>
35543         mbrtowc: Respect rules for use of AC_LIBOBJ.
35544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
35545         invocations from here...
35546         * modules/mbrtowc (configure.ac): ... to here.
35548 2011-05-21  Bruno Haible  <bruno@clisp.org>
35550         malloc-*: Move AC_LIBOBJ invocations to module description.
35551         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
35552         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
35553         AC_LIBOBJ invocations from here...
35554         * modules/malloc-gnu (configure.ac): ... to here.
35555         * modules/malloc-posix (configure.ac): ... and here.
35557 2011-05-21  Bruno Haible  <bruno@clisp.org>
35559         lstat, openat: Respect rules for use of AC_LIBOBJ.
35560         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
35561         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
35562         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
35563         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
35564         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
35565         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
35566         here.
35567         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35569 2011-05-21  Bruno Haible  <bruno@clisp.org>
35571         lseek: Move AC_LIBOBJ invocations to module description.
35572         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
35573         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35574         * modules/lseek (configure.ac): ... to here.
35576 2011-05-21  Bruno Haible  <bruno@clisp.org>
35578         linkat: Move AC_LIBOBJ invocations to module description.
35579         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
35580         here...
35581         * modules/linkat (configure.ac): ... to here.
35583 2011-05-21  Bruno Haible  <bruno@clisp.org>
35585         link: Respect rules for use of AC_LIBOBJ.
35586         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
35587         * modules/link (configure.ac): ... to here.
35589 2011-05-21  Bruno Haible  <bruno@clisp.org>
35591         lchown: Move AC_LIBOBJ invocations to module description.
35592         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35593         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35594         * modules/lchown (configure.ac): ... to here.
35596 2011-05-21  Bruno Haible  <bruno@clisp.org>
35598         iswctype: Move AC_LIBOBJ invocations to module description.
35599         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
35600         here...
35601         * modules/iswctype (configure.ac): ... to here.
35603 2011-05-21  Bruno Haible  <bruno@clisp.org>
35605         iswblank: Move AC_LIBOBJ invocations to module description.
35606         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
35607         here...
35608         * modules/iswblank (configure.ac): ... to here.
35610 2011-05-21  Bruno Haible  <bruno@clisp.org>
35612         atanl: Move AC_LIBOBJ invocations to module description.
35613         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
35614         * modules/atanl (configure.ac): ... to here.
35616 2011-05-21  Bruno Haible  <bruno@clisp.org>
35618         acosl: Move AC_LIBOBJ invocations to module description.
35619         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
35620         * modules/acosl (configure.ac): ... to here.
35622 2011-05-21  Bruno Haible  <bruno@clisp.org>
35624         asinl: Respect rules for use of AC_LIBOBJ.
35625         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
35626         * modules/asinl (configure.ac): ... to here.
35628 2011-05-21  Bruno Haible  <bruno@clisp.org>
35630         tanl: Move AC_LIBOBJ invocations to module description.
35631         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
35632         * modules/tanl (configure.ac): ... to here.
35634 2011-05-21  Bruno Haible  <bruno@clisp.org>
35636         cosl: Move AC_LIBOBJ invocations to module description.
35637         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
35638         * modules/cosl (configure.ac): ... to here.
35640 2011-05-21  Bruno Haible  <bruno@clisp.org>
35642         sinl: Move AC_LIBOBJ invocations to module description.
35643         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
35644         * modules/sinl (configure.ac): ... to here.
35646 2011-05-21  Bruno Haible  <bruno@clisp.org>
35648         logl: Move AC_LIBOBJ invocations to module description.
35649         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
35650         * modules/logl (configure.ac): ... to here.
35652 2011-05-21  Bruno Haible  <bruno@clisp.org>
35654         expl: Move AC_LIBOBJ invocations to module description.
35655         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
35656         * modules/expl (configure.ac): ... to here.
35658 2011-05-21  Bruno Haible  <bruno@clisp.org>
35660         roundl: Move AC_LIBOBJ invocations to module description.
35661         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
35662         * modules/roundl (configure.ac): ... to here.
35664 2011-05-21  Bruno Haible  <bruno@clisp.org>
35666         round: Move AC_LIBOBJ invocations to module description.
35667         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
35668         * modules/round (configure.ac): ... to here.
35670 2011-05-21  Bruno Haible  <bruno@clisp.org>
35672         roundf: Move AC_LIBOBJ invocations to module description.
35673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
35674         * modules/roundf (configure.ac): ... to here.
35676 2011-05-21  Bruno Haible  <bruno@clisp.org>
35678         truncl: Move AC_LIBOBJ invocations to module description.
35679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
35680         * modules/truncl (configure.ac): ... to here.
35682 2011-05-21  Bruno Haible  <bruno@clisp.org>
35684         trunc: Move AC_LIBOBJ invocations to module description.
35685         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
35686         * modules/trunc (configure.ac): ... to here.
35688 2011-05-21  Bruno Haible  <bruno@clisp.org>
35690         truncf: Move AC_LIBOBJ invocations to module description.
35691         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
35692         * modules/truncf (configure.ac): ... to here.
35694 2011-05-21  Bruno Haible  <bruno@clisp.org>
35696         ceill: Move AC_LIBOBJ invocations to module description.
35697         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
35698         * modules/ceill (configure.ac): ... to here.
35700 2011-05-21  Bruno Haible  <bruno@clisp.org>
35702         ceil: Move AC_LIBOBJ invocations to module description.
35703         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
35704         * modules/ceil (configure.ac): ... to here.
35706 2011-05-21  Bruno Haible  <bruno@clisp.org>
35708         ceilf: Move AC_LIBOBJ invocations to module description.
35709         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
35710         * modules/ceilf (configure.ac): ... to here.
35712 2011-05-21  Bruno Haible  <bruno@clisp.org>
35714         floorl: Respect rules for use of AC_LIBOBJ.
35715         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
35716         * modules/floorl (configure.ac): ... to here.
35718 2011-05-21  Bruno Haible  <bruno@clisp.org>
35720         floor: Respect rules for use of AC_LIBOBJ.
35721         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
35722         * modules/floor (configure.ac): ... to here.
35724 2011-05-21  Bruno Haible  <bruno@clisp.org>
35726         floorf: Move AC_LIBOBJ invocations to module description.
35727         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
35728         * modules/floorf (configure.ac): ... to here.
35730 2011-05-20  Bruno Haible  <bruno@clisp.org>
35732         sqrtl: Respect rules for use of AC_LIBOBJ.
35733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
35734         * modules/sqrtl (configure.ac): ... to here.
35736 2011-05-20  Bruno Haible  <bruno@clisp.org>
35738         ldexpl: Respect rules for use of AC_LIBOBJ.
35739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
35740         * modules/ldexpl (configure.ac): ... to here.
35742 2011-05-20  Bruno Haible  <bruno@clisp.org>
35744         frexpl*: Respect rules for use of AC_LIBOBJ.
35745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
35746         invocation from here...
35747         * modules/frexpl (configure.ac): ... to here.
35748         * modules/frexpl-nolibm (configure.ac): ... and here.
35750 2011-05-20  Bruno Haible  <bruno@clisp.org>
35752         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
35753         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
35754         invocation from here...
35755         * modules/frexp (configure.ac): ... to here.
35756         * modules/frexp-nolibm (configure.ac): ... and here.
35758 2011-05-20  Bruno Haible  <bruno@clisp.org>
35760         isnan: Respect rules for use of AC_LIBOBJ.
35761         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
35762         invocations here.
35763         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
35764         REPLACE_ISNAN.
35765         * modules/isnand (configure.ac): Likewise.
35766         * modules/isnanl (configure.ac): Likewise.
35768 2011-05-20  Bruno Haible  <bruno@clisp.org>
35770         isnanl*: Respect rules for use of AC_LIBOBJ.
35771         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
35772         invocation from here...
35773         * modules/isnanl (configure.ac): ... to here.
35774         * modules/isnanl-nolibm (configure.ac): ... and here.
35776 2011-05-20  Bruno Haible  <bruno@clisp.org>
35778         isnand*: Move AC_LIBOBJ invocations to module description.
35779         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
35780         invocation from here...
35781         * modules/isnand (configure.ac): ... to here.
35782         * modules/isnand-nolibm (configure.ac): ... and here.
35784 2011-05-20  Bruno Haible  <bruno@clisp.org>
35786         isnanf*: Move AC_LIBOBJ invocations to module description.
35787         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
35788         invocation from here...
35789         * modules/isnanf (configure.ac): ... to here.
35790         * modules/isnanf-nolibm (configure.ac): ... and here.
35792 2011-05-20  Bruno Haible  <bruno@clisp.org>
35794         isnan*: Separate the AC_LIBOBJ invocations.
35795         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
35796         AC_LIBOBJ invocation.
35797         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
35798         here.
35799         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
35800         AC_LIBOBJ invocation.
35801         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35802         here.
35803         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
35804         AC_LIBOBJ invocation.
35805         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
35806         here.
35807         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
35809 2011-05-08  Bruno Haible  <bruno@clisp.org>
35811         isinf: Move AC_LIBOBJ invocations to module description.
35812         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
35813         * modules/isinf (configure.ac): ... to here.
35815 2011-05-08  Bruno Haible  <bruno@clisp.org>
35817         isfinite: Move AC_LIBOBJ invocations to module description.
35818         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
35819         * modules/isfinite (configure.ac): ... to here.
35821 2011-05-08  Bruno Haible  <bruno@clisp.org>
35823         isblank: Move AC_LIBOBJ invocations to module description.
35824         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
35825         here...
35826         * modules/isblank (configure.ac): ... to here.
35828 2011-05-08  Bruno Haible  <bruno@clisp.org>
35830         isapipe: Move AC_LIBOBJ invocations to module description.
35831         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
35832         gl_PREREQ_ISAPIPE invocations from here...
35833         * modules/isapipe (configure.ac): ... to here.
35834         (Depends-on): Update condition.
35836 2011-05-08  Bruno Haible  <bruno@clisp.org>
35838         ioctl: Move AC_LIBOBJ invocations to module description.
35839         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
35840         invocations from here...
35841         * modules/ioctl (configure.ac): ... to here.
35842         (Depends-on): Update condition.
35844 2011-05-08  Bruno Haible  <bruno@clisp.org>
35846         imaxdiv: Move AC_LIBOBJ invocations to module description.
35847         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
35848         invocations from here...
35849         * modules/imaxdiv (configure.ac): ... to here.
35851 2011-05-08  Bruno Haible  <bruno@clisp.org>
35853         imaxabs: Move AC_LIBOBJ invocations to module description.
35854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35855         invocations from here...
35856         * modules/imaxabs (configure.ac): ... to here.
35858 2011-05-08  Bruno Haible  <bruno@clisp.org>
35860         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35862         AC_LIBOBJ invocations from here...
35863         * modules/getaddrinfo (configure.ac): ... to here.
35864         (Depends-on): Add conditions.
35866 2011-05-08  Bruno Haible  <bruno@clisp.org>
35868         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35869         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35870         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35871         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35872         (gl_PREREQ_INET_PTON): ... from here.
35873         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35874         gl_PREREQ_INET_PTON here.
35875         (Depends-on): Update condition.
35877 2011-05-08  Bruno Haible  <bruno@clisp.org>
35879         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35880         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35881         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35882         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35883         (gl_PREREQ_INET_NTOP): ... from here.
35884         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35885         gl_PREREQ_INET_NTOP here.
35886         (Depends-on): Update condition.
35888 2011-05-08  Bruno Haible  <bruno@clisp.org>
35890         iconv_open: Move AC_LIBOBJ invocations to module description.
35891         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35892         AC_LIBOBJ invocations from here...
35893         * modules/iconv_open (configure.ac): ... to here.
35895 2011-05-08  Bruno Haible  <bruno@clisp.org>
35897         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35898         If module 'iconv_open' is among the main modules and module
35899         'iconv_open-utf' is among the tests dependencies, then
35900         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35901         return the special iconv_t values. Therefore iconv() and iconv_close()
35902         must support these special iconv_t values, already in lib, not only in
35903         tests.
35904         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35906         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35907         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35908         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35909         (Depends-on): Add the dependencies of iconv_open-utf.
35910         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35911         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35912         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35914 2011-05-08  Bruno Haible  <bruno@clisp.org>
35916         group-member: Move AC_LIBOBJ invocations to module description.
35917         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35918         gl_PREREQ_GROUP_MEMBER invocations from here...
35919         * modules/group-member (configure.ac): ... to here.
35921 2011-05-08  Bruno Haible  <bruno@clisp.org>
35923         grantpt: Move AC_LIBOBJ invocations to module description.
35924         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35925         invocations from here...
35926         * modules/grantpt (configure.ac): ... to here.
35928 2011-05-08  Bruno Haible  <bruno@clisp.org>
35930         glob: Move AC_LIBOBJ invocations to module description.
35931         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35932         from here...
35933         * modules/glob (configure.ac): ... to here.
35935 2011-05-08  Bruno Haible  <bruno@clisp.org>
35937         getusershell: Move AC_LIBOBJ invocations to module description.
35938         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35939         Move AC_LIBOBJ invocation from here...
35940         * modules/getusershell (configure.ac): ... to here.
35941         (Depends-on): Update condition.
35943 2011-05-08  Bruno Haible  <bruno@clisp.org>
35945         gettimeofday: Move AC_LIBOBJ invocations to module description.
35946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35947         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35948         gl_PREREQ_GETTIMEOFDAY invocations from here...
35949         * modules/gettimeofday (configure.ac): ... to here.
35951 2011-05-08  Bruno Haible  <bruno@clisp.org>
35953         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35954         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35955         just gl_FUNC_TZSET.
35956         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35957         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35959         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35961 2011-05-08  Bruno Haible  <bruno@clisp.org>
35963         getsubopt: Move AC_LIBOBJ invocations to module description.
35964         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35965         gl_PREREQ_GETSUBOPT invocations from here...
35966         * modules/getsubopt (configure.ac): ... to here.
35968 2011-05-08  Bruno Haible  <bruno@clisp.org>
35970         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35971         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35972         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35973         * modules/getpass-gnu (configure.ac): ... to here.
35975 2011-05-08  Bruno Haible  <bruno@clisp.org>
35977         getpass: Move AC_LIBOBJ invocations to module description.
35978         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35979         gl_PREREQ_GETPASS invocations from here...
35980         * modules/getpass (configure.ac): ... to here.
35982 2011-05-08  Bruno Haible  <bruno@clisp.org>
35984         getpagesize: Move AC_LIBOBJ invocations to module description.
35985         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35986         from here...
35987         * modules/getpagesize (configure.ac): ... to here.
35989 2011-05-08  Bruno Haible  <bruno@clisp.org>
35991         getopt: Move AC_LIBOBJ invocations to module description.
35992         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35993         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35994         invocations from here...
35995         * modules/getopt-gnu (configure.ac): ... to here.
35996         * modules/getopt-posix (configure.ac): ... and here.
35997         (Depends-on): Update condition.
35999 2011-05-08  Bruno Haible  <bruno@clisp.org>
36001         getopt, argp: Respect rules for use of AC_LIBOBJ.
36002         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
36003         (gl_REPLACE_GETOPT_ALWAYS): New macro.
36004         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
36005         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
36007 2011-05-08  Bruno Haible  <bruno@clisp.org>
36009         getlogin_r: Move AC_LIBOBJ invocations to module description.
36010         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
36011         gl_PREREQ_GETLOGIN_R invocations from here...
36012         * modules/getlogin_r (configure.ac): ... to here.
36014 2011-05-08  Bruno Haible  <bruno@clisp.org>
36016         getlogin: Move AC_LIBOBJ invocations to module description.
36017         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
36018         here...
36019         * modules/getlogin (configure.ac): ... to here.
36021 2011-05-08  Bruno Haible  <bruno@clisp.org>
36023         getloadavg: Move AC_LIBOBJ invocations to module description.
36024         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
36025         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
36026         * modules/getloadavg (configure.ac): ... to here.
36028 2011-05-08  Bruno Haible  <bruno@clisp.org>
36030         gethrxtime: Move AC_LIBOBJ invocations to module description.
36031         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
36032         LIB_GETHRXTIME from here...
36033         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
36034         invocations from here...
36035         * modules/gethrxtime (configure.ac): ... to here.
36037 2011-05-08  Bruno Haible  <bruno@clisp.org>
36039         gethostname: Move AC_LIBOBJ invocations to module description.
36040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
36041         gl_PREREQ_GETHOSTNAME invocations from here...
36042         * modules/gethostname (configure.ac): ... to here.
36044 2011-05-08  Bruno Haible  <bruno@clisp.org>
36046         getgroups: Move AC_LIBOBJ invocations to module description.
36047         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
36048         here...
36049         * modules/getgroups (configure.ac): ... to here.
36051 2011-05-08  Bruno Haible  <bruno@clisp.org>
36053         getdtablesize: Move AC_LIBOBJ invocations to module description.
36054         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
36055         invocation from here...
36056         * modules/getdtablesize (configure.ac): ... to here.
36058 2011-05-08  Bruno Haible  <bruno@clisp.org>
36060         getdomainname: Move AC_LIBOBJ invocations to module description.
36061         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
36062         gl_PREREQ_GETDOMAINNAME invocations from here...
36063         * modules/getdomainname (configure.ac): ... to here.
36065 2011-05-08  Bruno Haible  <bruno@clisp.org>
36067         getline: Move AC_LIBOBJ invocations to module description.
36068         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
36069         invocations from here...
36070         * modules/getline (configure.ac): ... to here.
36072 2011-05-08  Bruno Haible  <bruno@clisp.org>
36074         getline: Simplify.
36075         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
36076         It's already handled through the module dependency.
36078 2011-05-08  Bruno Haible  <bruno@clisp.org>
36080         getdelim: Move AC_LIBOBJ invocations to module description.
36081         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
36082         and gl_PREREQ_GETDELIM invocations from here...
36083         * modules/getdelim (configure.ac): ... to here.
36084         (Depends-on): Fix condition.
36086 2011-05-08  Bruno Haible  <bruno@clisp.org>
36088         getcwd: Move AC_LIBOBJ invocations to module description.
36089         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
36090         invocations from here...
36091         * modules/getcwd (configure.ac): ... to here.
36093 2011-05-08  Bruno Haible  <bruno@clisp.org>
36095         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
36096         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
36097         here...
36098         * modules/getcwd-lgpl (configure.ac): ... to here.
36100 2011-05-07  Bruno Haible  <bruno@clisp.org>
36102         crypto/gc: Move AC_LIBOBJ invocations to module description.
36103         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
36104         * modules/crypto/gc (configure.ac): ... to here.
36106 2011-05-07  Bruno Haible  <bruno@clisp.org>
36108         fwriting: Move AC_LIBOBJ invocations to module description.
36109         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
36110         here...
36111         * modules/fwriting (configure.ac): ... to here.
36113 2011-05-07  Bruno Haible  <bruno@clisp.org>
36115         fwritable: Move AC_LIBOBJ invocations to module description.
36116         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
36117         here...
36118         * modules/fwritable (configure.ac): ... to here.
36120 2011-05-07  Bruno Haible  <bruno@clisp.org>
36122         futimens: Move AC_LIBOBJ invocations to module description.
36123         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
36124         here...
36125         * modules/futimens (configure.ac): ... to here.
36127 2011-05-07  Bruno Haible  <bruno@clisp.org>
36129         ftruncate: Move AC_LIBOBJ invocations to module description.
36130         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
36131         gl_PREREQ_FTRUNCATE invocations from here...
36132         * modules/ftruncate (configure.ac): ... to here.
36134 2011-05-07  Bruno Haible  <bruno@clisp.org>
36136         fsync: Move AC_LIBOBJ invocations to module description.
36137         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
36138         invocations from here...
36139         * modules/fsync (configure.ac): ... to here.
36141 2011-05-07  Bruno Haible  <bruno@clisp.org>
36143         fsusage: Move AC_LIBOBJ invocations to module description.
36144         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
36145         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
36146         * modules/fsusage (configure.ac): ... to here.
36148 2011-05-07  Bruno Haible  <bruno@clisp.org>
36150         freopen: Move AC_LIBOBJ invocations to module description.
36151         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
36152         invocations from here...
36153         * modules/freopen (configure.ac): ... to here.
36155 2011-05-07  Bruno Haible  <bruno@clisp.org>
36157         free: Move AC_LIBOBJ invocations to module description.
36158         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
36159         invocations from here...
36160         * modules/free (configure.ac): ... to here.
36162 2011-05-07  Bruno Haible  <bruno@clisp.org>
36164         freadable: Move AC_LIBOBJ invocations to module description.
36165         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
36166         here...
36167         * modules/freadable (configure.ac): ... to here.
36169 2011-05-07  Bruno Haible  <bruno@clisp.org>
36171         fpurge: Move AC_LIBOBJ invocations to module description.
36172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
36173         invocations from here...
36174         * modules/fpurge (configure.ac): ... to here.
36176 2011-05-07  Bruno Haible  <bruno@clisp.org>
36178         fpending: Move AC_LIBOBJ invocations to module description.
36179         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
36180         gl_FUNC_FPENDING.
36181         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
36182         invocations from here...
36183         * modules/fpending (configure.ac): ... to here.
36185 2011-05-07  Bruno Haible  <bruno@clisp.org>
36187         fopen: Move AC_LIBOBJ invocations to module description.
36188         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
36189         invocations from here...
36190         * modules/fopen (configure.ac): ... to here.
36192 2011-05-07  Bruno Haible  <bruno@clisp.org>
36194         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
36195         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
36196         gl_FUNC_FNMATCH_POSIX.
36197         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
36198         invocations from here...
36199         * modules/fnmatch (configure.ac): ... to here.
36200         * modules/fnmatch-gnu (configure.ac): ... and here.
36202 2011-05-07  Bruno Haible  <bruno@clisp.org>
36204         flock: Move AC_LIBOBJ invocations to module description.
36205         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
36206         invocations from here...
36207         * modules/flock (configure.ac): ... to here.
36209 2011-05-07  Bruno Haible  <bruno@clisp.org>
36211         fileblocks: Move AC_LIBOBJ invocations to module description.
36212         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
36213         gl_PREREQ_FILEBLOCKS invocations from here...
36214         * modules/fileblocks (configure.ac): ... to here.
36216 2011-05-06  Bruno Haible  <bruno@clisp.org>
36218         fflush: Move AC_LIBOBJ invocations to module description.
36219         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
36220         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
36221         invocations from here...
36222         * modules/fflush (configure.ac): ... to here.
36224 2011-05-06  Bruno Haible  <bruno@clisp.org>
36226         fdopendir: Move AC_LIBOBJ invocations to module description.
36227         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
36228         here...
36229         * modules/fdopendir (configure.ac): ... to here.
36230         (Depends-on): Improve conditions.
36232 2011-05-06  Bruno Haible  <bruno@clisp.org>
36234         _Exit: Move AC_LIBOBJ invocations to module description.
36235         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
36236         invocations from here...
36237         * modules/_Exit (configure.ac): ... to here.
36239 2011-05-21  Bruno Haible  <bruno@clisp.org>
36241         euidaccess: Respect rules for use of AC_LIBOBJ.
36242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
36243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
36244         from here...
36245         * modules/euidaccess (configure.ac): ... to here.
36247 2011-05-06  Bruno Haible  <bruno@clisp.org>
36249         error: Move AC_LIBOBJ invocations to module description.
36250         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
36251         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
36252         invocations from here...
36253         * modules/error (configure.ac): ... to here.
36255 2011-05-06  Bruno Haible  <bruno@clisp.org>
36257         duplocale: Move AC_LIBOBJ invocations to module description.
36258         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
36259         gl_PREREQ_DUPLOCALE invocations from here...
36260         * modules/duplocale (configure.ac): ... to here.
36262 2011-05-05  Bruno Haible  <bruno@clisp.org>
36264         dirfd: Move AC_LIBOBJ invocations to module description.
36265         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
36266         gl_FUNC_DIRFD.
36267         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
36268         here...
36269         * modules/dirfd (configure.ac): ... to here.
36270         (Depends-on): Fix condition.
36272 2011-05-05  Bruno Haible  <bruno@clisp.org>
36274         chown: Respect rules for use of AC_LIBOBJ.
36275         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
36276         * modules/chown (configure.ac): ... to here.
36278 2011-05-05  Bruno Haible  <bruno@clisp.org>
36280         chdir-long: Move AC_LIBOBJ invocations to module description.
36281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
36282         gl_PREREQ_CHDIR_LONG invocations from here...
36283         * modules/chdir-long (configure.ac): ... to here.
36285 2011-05-05  Bruno Haible  <bruno@clisp.org>
36287         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
36288         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
36289         from here...
36290         * modules/canonicalize-lgpl (configure.ac): ... to here.
36292 2011-05-05  Bruno Haible  <bruno@clisp.org>
36294         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
36295         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
36296         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
36297         REPLACE_CALLOC.
36298         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
36299         * modules/calloc-gnu (configure.ac): Likewise.
36301 2011-05-05  Bruno Haible  <bruno@clisp.org>
36303         btowc: Move AC_LIBOBJ invocations to module description.
36304         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
36305         invocations from here...
36306         * modules/btowc (configure.ac): ... to here.
36308 2011-05-21  Bruno Haible  <bruno@clisp.org>
36310         atexit: Move AC_LIBOBJ invocations to module description.
36311         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
36312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
36313         here...
36314         * modules/atexit (configure.ac): ... to here.
36316 2011-05-05  Bruno Haible  <bruno@clisp.org>
36318         atoll: Move AC_LIBOBJ invocations to module description.
36319         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
36320         invocations from here...
36321         * modules/atoll (configure.ac): ... to here.
36323 2011-05-05  Bruno Haible  <bruno@clisp.org>
36325         argz: Move AC_LIBOBJ invocations to module description.
36326         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
36327         * modules/argz (configure.ac): ... to here.
36329 2011-05-05  Bruno Haible  <bruno@clisp.org>
36331         alphasort: Move AC_LIBOBJ invocations to module description.
36332         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
36333         gl_PREREQ_ALPHASORT invocations from here...
36334         * modules/alphasort (configure.ac): ... to here.
36336 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36338         verify: new macro verify_expr; verify_true deprecated
36339         * NEWS: Mention this.
36340         * doc/verify.texi (Compile-time Assertions): Document this.
36341         * lib/verify.h (verify_true): Deprecate.
36342         (verify_expr): New macro.
36343         * tests/test-verify.c (function): Test verify_expr.
36345 2011-06-14  Jim Meyering  <meyering@redhat.com>
36347         init.sh: give more portable redirection-related advice in a comment
36348         * tests/init.sh (stderr_fileno_): Update the advice in comments.
36349         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
36350         for lots of discussion.  Stefano Lattarini suggested the solution
36351         of putting "9>&2" after the command.  Reported by Bruno Haible.
36353 2011-06-13  Bruno Haible  <bruno@clisp.org>
36355         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
36356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
36357         'none'.
36359 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
36361         ftoastr: use strtof only if HAVE_STRTOF
36362         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
36363         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
36364         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
36365         * modules/ftoastr (configure.ac): Check for strtof.
36367 2011-06-13  Bruno Haible  <bruno@clisp.org>
36369         gnulib-tool: Addendum to 2011-06-08 commit.
36370         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
36371         and --witness-c-macro have been given, augment AM_CPPFLAGS.
36373 2011-06-13  Bruno Haible  <bruno@clisp.org>
36375         fseeko: Provide a non-inline replacement of fseek().
36376         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
36377         * modules/fseeko (Depends-on): Add fseek.
36378         * modules/fseek (License): Change to LGPLv2+.
36380 2011-06-13  Bruno Haible  <bruno@clisp.org>
36382         ftello: Provide a non-inline replacement of ftell().
36383         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
36384         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
36385         not have ftello() (such as on mingw).
36386         * modules/ftello (Depends-on): Add ftell.
36387         * modules/ftell (License): Change to LGPLv2+.
36389 2011-05-07  Bruno Haible  <bruno@clisp.org>
36391         ftell: Move AC_LIBOBJ invocations to module description.
36392         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
36393         * modules/ftell (configure.ac): ... to here.
36395 2011-05-07  Bruno Haible  <bruno@clisp.org>
36397         ftello: Respect rules for use of AC_LIBOBJ.
36398         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
36399         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
36400         here...
36401         * modules/ftello (configure.ac): ... to here.
36403 2011-05-07  Bruno Haible  <bruno@clisp.org>
36405         fseeko: Simplify.
36406         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
36407         (gl_FUNC_FSEEKO): Inline it here.
36409 2011-05-07  Bruno Haible  <bruno@clisp.org>
36411         fseek: Move AC_LIBOBJ invocations to module description.
36412         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
36413         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
36414         * modules/fseek (configure.ac): ... to here.
36416 2011-05-07  Bruno Haible  <bruno@clisp.org>
36418         fseek: Respect rules for use of AC_LIBOBJ.
36419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
36420         here...
36421         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
36423 2011-05-07  Bruno Haible  <bruno@clisp.org>
36425         fseeko: Respect rules for use of AC_LIBOBJ.
36426         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
36427         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
36428         here...
36429         * modules/fseeko (configure.ac): ... to here.
36431 2011-06-13  Bruno Haible  <bruno@clisp.org>
36433         gnulib-tool: Allow comments in the 'Depends-on' section.
36434         * doc/gnulib.texi (Module description): Mention comment syntax in the
36435         Depends-on section.
36436         * gnulib-tool (func_get_dependencies): Filter out comment lines.
36438 2011-06-13  Bruno Haible  <bruno@clisp.org>
36440         file-set.h: guard __attibute__ use, now that it's not always defined
36441         * lib/file-set.h (record_file): Use __attribute__ only with compiler
36442         versions that support it.  This fixes a coreutils build failure with
36443         the vendor cc on HP-UX 11.31.
36445 2011-06-12  Bruno Haible  <bruno@clisp.org>
36447         acl: Add support for HP-UX >= 11.11 JFS ACLs.
36448         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
36449         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
36450         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
36451         (acl, aclsort): New declarations.
36452         (aclv_nontrivial): New declaration.
36453         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
36454         (file_has_acl): Read also the second kind of HP-UX ACLs.
36455         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
36456         kind of HP-UX ACLs if the first kind fails.
36457         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
36458         second kind of HP-UX ACLs.
36459         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
36460         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
36461         agree.
36462         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36463         hpuxjfs.
36464         Handle hpuxjfs.
36465         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36466         hpuxjfs.
36467         Handle hpuxjfs.
36468         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36469         (func_test_same_acls): Use both lsacl and getacl.
36470         Handle hpuxjfs.
36471         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36472         (func_test_same_acls): Use both lsacl and getacl.
36473         Handle hpuxjfs.
36475 2011-06-12  Bruno Haible  <bruno@clisp.org>
36477         acl: Complete the 2010-08-10 fix.
36478         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
36479         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
36480         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
36481         explicitly.
36482         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
36483         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
36485 2011-06-12  Bruno Haible  <bruno@clisp.org>
36487         spawn-pipe tests: Comments.
36488         * tests/test-spawn-pipe-child.c (main): Update comment.
36489         Reported by James Youngman <jay@gnu.org>.
36491 2011-06-11  James Youngman  <jay@gnu.org>
36493         New module 'stat-size'.
36494         * modules/stat-size: New module.  Provides macros for accessing
36495         file size information in instances of struct stat.  Depends on the
36496         fileblocks module because it calls st_blocks.
36497         * lib/stat-size.h: New file, adapted from coreutils' system.h.
36498         * doc/gnulib.texi: Include stat-size.texi.
36499         * doc/stat-size.texi: Documentation for this module.
36500         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
36501         * m4/fileblocks.m4: Mention that stat-size depends on the call to
36502         AC_STRUCT_ST_BLOCKS.
36504 2011-06-09  Bruno Haible  <bruno@clisp.org>
36506         thread: Support pthreads-win32.
36507         * lib/glthread/thread.h (gl_thread_self): Define differently on
36508         pthreads-win32.
36509         (gl_null_thread): New declaration.
36510         (gl_thread_self_pointer): New macro.
36511         * lib/glthread/thread.c (gl_null_thread): New constant.
36512         * tests/test-lock.c: Use gl_thread_self_pointer instead of
36513         gl_thread_self.
36514         * tests/test-tls.c: Likewise.
36515         Suggested by Paul Eggert. Reported by Eric Blake.
36517 2011-06-09  Bruno Haible  <bruno@clisp.org>
36519         thread: Fix confusion between NULL and 0.
36520         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
36521         Reported by Paul Eggert.
36523 2011-06-09  Bruno Haible  <bruno@clisp.org>
36525         spawn-pipe tests: Avoid test failure on HP-UX 11.
36526         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
36527         is closed.
36529 2011-06-09  Bruno Haible  <bruno@clisp.org>
36531         acl tests: Fix compilation error on HP-UX 11.
36532         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
36534 2011-06-09  Bruno Haible  <bruno@clisp.org>
36536         rmdir: Avoid test failure on HP-UX 10.20.
36537         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
36538         EEXIST.
36540 2011-06-08  Eric Blake  <eblake@redhat.com>
36542         perror: fix test on mingw
36543         * modules/perror-tests (Depends-on): Add dup2.
36545         strerror_r-posix: fix on MacOS
36546         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
36547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
36548         logic bug.
36549         * lib/strerror_r.c (strerror_r): Fix the bug.
36550         * lib/strerror.c (strerror): Likewise.
36551         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36552         problem.
36553         * doc/posix-functions/strerror.texi (strerror): Likewise.
36554         * doc/posix-functions/perror.texi (perror): Likewise.
36555         * tests/test-strerror.c (main): Enhance test.
36556         * tests/test-strerror_r.c (main): Likewise.
36558 2011-06-08  Bruno Haible  <bruno@clisp.org>
36560         gnulib-tool: Better isolation between different gnulib-tool invocations.
36561         * gnulib-tool: New option --witness-c-macro.
36562         (witness_c_macro): New variable.
36563         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
36564         AM_CPPFLAGS define it as a C macro.
36565         (func_emit_tests_Makefile_am): Likewise.
36566         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
36567         read it from there.
36568         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
36569         m4_define, not AC_DEFUN.
36570         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
36571         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
36572         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
36573         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
36574         s|...|...|, to substitute the values of the GNULIB_* module indicator
36575         variables.
36576         * modules/dirent (Makefile.am): Likewise.
36577         * modules/fcntl-h (Makefile.am): Likewise.
36578         * modules/iconv-h (Makefile.am): Likewise.
36579         * modules/langinfo (Makefile.am): Likewise.
36580         * modules/locale (Makefile.am): Likewise.
36581         * modules/math (Makefile.am): Likewise.
36582         * modules/netdb (Makefile.am): Likewise.
36583         * modules/poll-h (Makefile.am): Likewise.
36584         * modules/pty (Makefile.am): Likewise.
36585         * modules/search (Makefile.am): Likewise.
36586         * modules/signal (Makefile.am): Likewise.
36587         * modules/spawn (Makefile.am): Likewise.
36588         * modules/stdio (Makefile.am): Likewise.
36589         * modules/stdlib (Makefile.am): Likewise.
36590         * modules/string (Makefile.am): Likewise.
36591         * modules/sys_ioctl (Makefile.am): Likewise.
36592         * modules/sys_select (Makefile.am): Likewise.
36593         * modules/sys_socket (Makefile.am): Likewise.
36594         * modules/sys_stat (Makefile.am): Likewise.
36595         * modules/sys_times (Makefile.am): Likewise.
36596         * modules/sys_utsname (Makefile.am): Likewise.
36597         * modules/sys_wait (Makefile.am): Likewise.
36598         * modules/termios (Makefile.am): Likewise.
36599         * modules/time (Makefile.am): Likewise.
36600         * modules/unistd (Makefile.am): Likewise.
36601         * modules/wchar (Makefile.am): Likewise.
36603 2011-06-08  Eric Blake  <eblake@redhat.com>
36605         strerror: simplify replacement
36606         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
36607         * modules/strerror (configure.ac): No prereqs needed here...
36608         * modules/strerror-override (configure.ac): ...but this needs it.
36609         (Files): Add file for needed prereq macro.
36611 2011-06-08  Bruno Haible  <bruno@clisp.org>
36613         strerror_r-posix: Tweaks.
36614         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
36615         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
36616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
36617         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
36618         (gl_FUNC_STRERROR_R): ... to here.
36619         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
36621 2011-06-07  Eric Blake  <eblake@redhat.com>
36623         perror: document fixed bugs
36624         * doc/posix-functions/perror.texi (perror): Document recent
36625         patches.
36627 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
36629         stat-time: get_stat_birthtime failure is better-defined
36630         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
36631         return a timestamp whose tv_sec and tv_nsec values are both -1.
36632         Previously, the spec said only that the tv_nsec value was negative.
36633         This upward-compatible change simplifies GNU tar a bit.
36635 2011-06-07  Eric Blake  <eblake@redhat.com>
36637         strerror_r-posix: work around cygwin 1.7.9
36638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
36639         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
36640         bug without replacing strerror_r.
36641         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
36642         strerror_r is buggy, but without requiring strerror_r compilation.
36643         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
36645         test-perror: relax test to ignore cygwin bug
36646         * tests/test-perror2.c (main): Relax test on requiring detection
36647         of stream errors, and use unbuffered stream.
36648         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
36649         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
36650         * doc/posix-functions/fputc.texi (fputc): Likewise.
36651         * doc/posix-functions/fputs.texi (fputs): Likewise.
36652         * doc/posix-functions/fputws.texi (fputws): Likewise.
36653         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
36654         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
36655         * doc/posix-functions/getopt.texi (getopt): Likewise.
36656         * doc/posix-functions/perror.texi (perror): Likewise.
36657         * doc/posix-functions/printf.texi (printf): Likewise.
36658         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
36659         * doc/posix-functions/psignal.texi (psignal): Likewise.
36660         * doc/posix-functions/putc.texi (putc): Likewise.
36661         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
36662         Likewise.
36663         * doc/posix-functions/putchar.texi (putchar): Likewise.
36664         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
36665         Likewise.
36666         * doc/posix-functions/puts.texi (puts): Likewise.
36667         * doc/posix-functions/putwc.texi (putwc): Likewise.
36668         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36669         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36670         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36671         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
36672         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36673         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36674         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36675         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
36677 2011-05-22  Bruno Haible  <bruno@clisp.org>
36679         strerror: Move AC_LIBOBJ invocations to module description.
36680         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
36681         gl_PREREQ_STRERROR invocations from here...
36682         * modules/strerror (configure.ac): ... to here.
36684 2011-05-21  Bruno Haible  <bruno@clisp.org>
36686         perror: Use common idiom.
36687         * modules/perror (configure.ac): Reorder statements.
36689 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36691         tests: fix usage message in 'mktempd_'
36692         * tests/init.sh (mktempd_): In the usage message, use literal
36693         'mktempd_', not '$ME' (which is even undefined), as the name of
36694         the subroutine.
36696 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36698         tests init: new function 'fatal_', for hard errors
36699         Before this patch, the only way offered by tests/init.sh to
36700         properly signal a hard error was the `framework_failure_'
36701         function.  But the error message issued by that function,
36702         as its name would suggest, refers to a set-up failure in the
36703         testsuite, while hard errors can obviously also be due to
36704         other reasons.  The best way to fix this inconsistency is to
36705         introduce a new function with a more general error message.
36706         * tests/init.sh (fatal_): New function.
36708 2011-06-06  Eric Blake  <eblake@redhat.com>
36710         canonicalize-lgpl: use common idiom
36711         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
36712         over newer POSIX -Rf.
36713         Reported by Bruno Haible.
36715         canonicalize-lgpl: work around AIX realpath bug
36716         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
36717         * doc/posix-functions/realpath.texi (realpath): Document it.
36718         Reported by Bruno Haible.
36720         strerror: work around FreeBSD bug
36721         * lib/strerror.c (strerror): Special case 0.
36722         Reported by Bruno Haible.
36724         strerror-override: avoid bloating errno module
36725         * modules/errno (Files, configure.ac): Move replacement strings...
36726         * modules/strerror-override: ...to new module.
36727         * modules/strerror (Depends-on): Add strerror-override.
36728         * modules/strerror_r-posix (Depends-on): Likewise.
36729         * MODULES.html.sh: Document new module.
36730         Reported by Bruno Haible.
36732 2011-06-06  Bruno Haible  <bruno@clisp.org>
36734         spawn-pipe tests: Rename program.
36735         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
36736         * tests/test-spawn-pipe-child.c: Update comment.
36737         * tests/test-spawn-pipe.sh: Update.
36738         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
36740         spawn-pipe tests: Link the child program only against libc.
36741         * tests/test-spawn-pipe-child.c: New file, extracted from
36742         tests/test-spawn-pipe.c.
36743         (main): Expect only one argument.
36744         (is_open): New function, copied from tests/test-pipe.c.
36745         * tests/test-spawn-pipe.c: Don't include <errno.h>.
36746         (child_main): Remove function.
36747         (test_pipe): Pass only one argument to the child program.
36748         (main): Remove child process code. Expect the child program's name as
36749         first argument.
36750         * tests/test-spawn-pipe.sh: Pass the child program's name as first
36751         argument.
36752         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
36753         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
36754         test-spawn-pipe-child against no libraries.
36756 2011-06-06  Bruno Haible  <bruno@clisp.org>
36758         careadlinkat: Avoid mismatch between ssize_t and int.
36759         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
36760         * lib/careadlinkat.c (careadlinkatcwd): Define always.
36762 2011-06-06  Jim Meyering  <meyering@redhat.com>
36764         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
36765         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
36766         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
36768 2011-06-05  Bruno Haible  <bruno@clisp.org>
36770         ansi-c++-opt: Interoperability with libtool.
36771         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
36772         set the variable to "no", not to ":".
36773         * NEWS: Mention the change.
36775 2011-06-05  Bruno Haible  <bruno@clisp.org>
36777         acl: Fix test failure on AIX 7.
36778         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
36779         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
36781 2011-06-05  Bruno Haible  <bruno@clisp.org>
36783         pipe-filter-ii: Fix test failure on AIX and IRIX.
36784         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
36785         with EAGAIN, retry with a smaller buffer size.
36787 2011-06-05  Bruno Haible  <bruno@clisp.org>
36789         localename: Fix link dependencies.
36790         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
36791         * modules/localename-tests (Makefile.am): Link test-localename with
36792         $(LIBTHREAD).
36794 2011-06-05  Bruno Haible  <bruno@clisp.org>
36796         error: Avoid gcc warning.
36797         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
36799 2011-06-05  Bruno Haible  <bruno@clisp.org>
36801         unsetenv: Avoid gcc warning.
36802         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
36804 2011-06-05  Bruno Haible  <bruno@clisp.org>
36806         setenv: Avoid gcc warning.
36807         * lib/setenv.c (setenv): Provide declaration if system lacks it.
36809 2011-06-05  Bruno Haible  <bruno@clisp.org>
36811         sys_select: Ensure memset is declared also on AIX 7.
36812         * lib/sys_select.in.h: Include <string.h> also on AIX.
36813         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
36814         self-contained also on AIX 7.1.
36816 2011-06-04  Jim Meyering  <meyering@redhat.com>
36818         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
36819         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
36820         function name, "error".
36821         (_gl_translatable_diag_func_re): New configurable variable.
36823 2011-06-04  Bruno Haible  <bruno@clisp.org>
36825         getopt: Avoid gcc warning.
36826         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
36828 2011-06-04  Bruno Haible  <bruno@clisp.org>
36830         strerror_r: Fix comments.
36831         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
36832         commit.
36834 2011-06-04  Bruno Haible  <bruno@clisp.org>
36836         perror: Fix compilation error.
36837         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
36838         Undefine fprintf, not sprintf.
36839         * modules/perror (Depends-on): Remove intprops, verify.
36841 2011-06-04  Bruno Haible  <bruno@clisp.org>
36843         setlocale: Enable replacement on Cygwin 1.5.
36844         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
36845         Cygwin 1.5.x.
36846         * doc/posix-functions/setlocale.texi: Mention that the problem with the
36847         LC_CTYPE category also exists on Cygwin 1.5.x.
36849 2011-06-04  Bruno Haible  <bruno@clisp.org>
36851         strerror-override: Don't disable symbol renamings.
36852         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36853         * lib/strerror-override.c: Include config.h.
36854         (strerror_override): Don't undefine.
36856 2011-06-03  Bruno Haible  <bruno@clisp.org>
36858         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36859         * lib/localename.h: Update copyright header.
36860         * lib/localename.c: Likewise.
36861         * lib/relocatable.h: Likewise.
36862         * lib/relocatable.c: Likewise.
36864 2011-06-02  Bruno Haible  <bruno@clisp.org>
36866         doc: Fix a module name.
36867         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36869 2011-06-02  Bruno Haible  <bruno@clisp.org>
36871         pipe2: Remove dependency on 'nonblocking' module.
36872         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36873         O_NONBLOCK is defined by gnulib.
36874         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36875         is zero.
36876         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36877         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36878         defined by gnulib.
36879         (get_nonblocking_flag): New function.
36880         (main): Test O_NONBLOCK flag only if it is nonzero.
36881         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36883 2011-06-03  Jim Meyering  <meyering@redhat.com>
36885         maint: three new prohibit-header-without-use rules
36886         Prohibit use of cloexec.h, posixver.h, same.h without use.
36887         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36888         (sc_prohibit_posixver_without_use): Likewise.
36889         (sc_prohibit_same_without_use): Likewise.
36891 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36893         allocator: 'die' routine is now given requested size
36894         * lib/allocator.h (struct allocator.die): New size arg.
36895         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36896         If the actual problem is an ssize_t limitation, not a size_t or
36897         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36899 2011-06-01  Eric Blake  <eblake@redhat.com>
36901         strerror: drop strerror_r dependency
36902         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36903         * lib/strerror-override.c (strerror_override): ...to new file.
36904         * lib/strerror-override.h: Add prototype.
36905         * lib/strerror-impl.h: Delete.
36906         * lib/strerror.c (strerror): New implementation.
36907         * modules/errno (Files): Add new files.
36908         (configure.ac): Compile new file as appropriate.
36909         * modules/strerror (Files): Drop unused file.
36910         (Depends-on): Drop strerror_r-posix.
36911         * MODULES.html.sh: Document strerror_r-posix.
36912         Requested by Sam Steingold.
36914         perror: call strerror_r directly
36915         * modules/perror (Files): Drop strerror-impl.h.
36916         * lib/perror.c (perror): Use our own stack buffer, rather than
36917         calling a wrapper that uses static storage.
36918         * doc/posix-functions/perror.texi (perror): Document a limitation
36919         of our replacement.
36921         strerror_r: fix includes for FreeBSD
36922         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36923         since we use abort on some platforms.
36924         Reported by Matthias Bolte.
36926 2011-05-31  Bruno Haible  <bruno@clisp.org>
36928         Fix link errors in tests: openat-die uses gettext-h.
36929         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36930         against $(LIBINTL).
36931         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36932         against $(LIBINTL).
36933         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36934         $(LIBINTL).
36935         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36936         against $(LIBINTL).
36937         * modules/linkat-tests (Makefile.am): Link test-linkat against
36938         $(LIBINTL).
36939         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36940         $(LIBINTL).
36941         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36942         against $(LIBINTL).
36943         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36944         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36945         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36946         $(LIBINTL).
36947         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36948         $(LIBINTL).
36949         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36950         $(LIBINTL).
36951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36953 2011-05-31  Bruno Haible  <bruno@clisp.org>
36955         Fix link errors in tests: wait-process uses gettext-h.
36956         * modules/nonblocking-pipe-tests (Makefile.am): Set
36957         test_nonblocking_pipe_main_LDADD.
36958         * modules/nonblocking-socket-tests (Makefile.am): Link
36959         test-nonblocking-socket-main against $(LIBINTL).
36960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36962 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36964         assert-h: work around 'verify' incompatibility
36965         * lib/verify.h: Use @...@ directives, not ifdef.
36966         * modules/assert-h (assert.h): Implement the directives.
36967         (assert.h): Substitute the symbol-prefix more consistently.
36969 2011-05-29  Jim Meyering  <meyering@redhat.com>
36971         trim: remove three superfluous assignments
36972         * lib/trim.c (trim2): Remove three superfluous assignments
36973         and correct brace positioning.
36975 2011-05-29  Bruno Haible  <bruno@clisp.org>
36977         wctype-h: Avoid namespace pollution on Solaris 2.6.
36978         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36979         identifiers.
36980         * doc/posix-headers/wctype.texi: Mention the problem.
36981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36983 2011-05-28  Jim Meyering  <meyering@redhat.com>
36985         parse-datetime.y: accommodate -Wstrict-overflow
36986         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36987         placate -Wstrict-overflow.
36989         trim: avoid a warning from -O2 -Wstrict-overflow
36990         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36992 2011-05-29  Bruno Haible  <bruno@clisp.org>
36994         gnulib-tool: Fix bug in yesterday's commit.
36995         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36996         twice.
36998 2011-05-29  Bruno Haible  <bruno@clisp.org>
37000         Allow multiple gnulib generated include files to be combined.
37001         * gnulib-tool (func_compute_include_guard_prefix): New function.
37002         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
37003         ${gl_include_guard_prefix} references.
37004         (func_import, func_create_testdir): Invoke
37005         func_compute_include_guard_prefix.
37006         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
37007         * lib/ctype.in.h: Likewise.
37008         * lib/dirent.in.h: Likewise.
37009         * lib/errno.in.h: Likewise.
37010         * lib/fcntl.in.h: Likewise.
37011         * lib/float.in.h: Likewise.
37012         * lib/getopt.in.h: Likewise.
37013         * lib/iconv.in.h: Likewise.
37014         * lib/langinfo.in.h: Likewise.
37015         * lib/locale.in.h: Likewise.
37016         * lib/math.in.h: Likewise.
37017         * lib/netdb.in.h: Likewise.
37018         * lib/netinet_in.in.h: Likewise.
37019         * lib/poll.in.h: Likewise.
37020         * lib/pthread.in.h: Likewise.
37021         * lib/pty.in.h: Likewise.
37022         * lib/sched.in.h: Likewise.
37023         * lib/se-selinux.in.h: Likewise.
37024         * lib/search.in.h: Likewise.
37025         * lib/signal.in.h: Likewise.
37026         * lib/spawn.in.h: Likewise.
37027         * lib/stdarg.in.h: Likewise.
37028         * lib/stddef.in.h: Likewise.
37029         * lib/stdint.in.h: Likewise.
37030         * lib/stdio.in.h: Likewise.
37031         * lib/stdlib.in.h: Likewise.
37032         * lib/string.in.h: Likewise.
37033         * lib/strings.in.h: Likewise.
37034         * lib/sys_file.in.h: Likewise.
37035         * lib/sys_ioctl.in.h: Likewise.
37036         * lib/sys_select.in.h: Likewise.
37037         * lib/sys_socket.in.h: Likewise.
37038         * lib/sys_stat.in.h: Likewise.
37039         * lib/sys_time.in.h: Likewise.
37040         * lib/sys_times.in.h: Likewise.
37041         * lib/sys_uio.in.h: Likewise.
37042         * lib/sys_utsname.in.h: Likewise.
37043         * lib/sys_wait.in.h: Likewise.
37044         * lib/sysexits.in.h: Likewise.
37045         * lib/termios.in.h: Likewise.
37046         * lib/time.in.h: Likewise.
37047         * lib/unistd.in.h: Likewise.
37048         * lib/wchar.in.h: Likewise.
37049         * lib/wctype.in.h: Likewise.
37050         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
37051         * modules/ctype (Makefile.am): Likewise.
37052         * modules/dirent (Makefile.am): Likewise.
37053         * modules/errno (Makefile.am): Likewise.
37054         * modules/fcntl-h (Makefile.am): Likewise.
37055         * modules/float (Makefile.am): Likewise.
37056         * modules/getopt-posix (Makefile.am): Likewise.
37057         * modules/iconv-h (Makefile.am): Likewise.
37058         * modules/langinfo (Makefile.am): Likewise.
37059         * modules/locale (Makefile.am): Likewise.
37060         * modules/math (Makefile.am): Likewise.
37061         * modules/netdb (Makefile.am): Likewise.
37062         * modules/netinet_in (Makefile.am): Likewise.
37063         * modules/poll-h (Makefile.am): Likewise.
37064         * modules/pthread (Makefile.am): Likewise.
37065         * modules/pty (Makefile.am): Likewise.
37066         * modules/sched (Makefile.am): Likewise.
37067         * modules/search (Makefile.am): Likewise.
37068         * modules/selinux-h (Makefile.am): Likewise.
37069         * modules/signal (Makefile.am): Likewise.
37070         * modules/spawn (Makefile.am): Likewise.
37071         * modules/stdarg (Makefile.am): Likewise.
37072         * modules/stddef (Makefile.am): Likewise.
37073         * modules/stdint (Makefile.am): Likewise.
37074         * modules/stdio (Makefile.am): Likewise.
37075         * modules/stdlib (Makefile.am): Likewise.
37076         * modules/string (Makefile.am): Likewise.
37077         * modules/strings (Makefile.am): Likewise.
37078         * modules/sys_file (Makefile.am): Likewise.
37079         * modules/sys_ioctl (Makefile.am): Likewise.
37080         * modules/sys_select (Makefile.am): Likewise.
37081         * modules/sys_socket (Makefile.am): Likewise.
37082         * modules/sys_stat (Makefile.am): Likewise.
37083         * modules/sys_time (Makefile.am): Likewise.
37084         * modules/sys_times (Makefile.am): Likewise.
37085         * modules/sys_uio (Makefile.am): Likewise.
37086         * modules/sys_utsname (Makefile.am): Likewise.
37087         * modules/sys_wait (Makefile.am): Likewise.
37088         * modules/sysexits (Makefile.am): Likewise.
37089         * modules/termios (Makefile.am): Likewise.
37090         * modules/time (Makefile.am): Likewise.
37091         * modules/unistd (Makefile.am): Likewise.
37092         * modules/wchar (Makefile.am): Likewise.
37093         * modules/wctype-h (Makefile.am): Likewise.
37094         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
37096 2011-05-29  Bruno Haible  <bruno@clisp.org>
37098         assert-h: Allow multiple gnulib generated replacements to coexist.
37099         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
37101 2011-05-29  Bruno Haible  <bruno@clisp.org>
37103         argp: Allow coexistence with strerror_r-posix module.
37104         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
37105         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
37106         by gnulib's <string.h> replacement), assume it has the POSIX signature,
37107         not the glibc signature.
37109 2011-05-28  Bruno Haible  <bruno@clisp.org>
37111         gnulib-tool: Alternative structure of testdirs, similar to --import.
37112         * gnulib-tool: New option --single-configure.
37113         (func_usage): Document it.
37114         (single_configure): New variable.
37115         (func_modules_transitive_closure_separately,
37116         func_modules_transitive_closure_separately,
37117         func_determine_use_libtests, func_modules_add_dummy_separately,
37118         func_modules_to_filelist_separately): New functions, extracted from
37119         func_import.
37120         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
37121         (func_import): Use the new functions.
37122         (func_create_testdir): Set final_modules. Handle $single_configure =
37123         true case.
37125 2011-05-28  Bruno Haible  <bruno@clisp.org>
37127         getloadavg: Remove an unreliable safety check.
37128         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
37129         getloadavg.c is in place.
37130         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
37131         Reported by Sam Steingold <sds@gnu.org>.
37133 2011-05-28  Bruno Haible  <bruno@clisp.org>
37135         doc: Cleanup yet another file produced by texinfo.tex.
37136         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
37138 2011-05-28  Bruno Haible  <bruno@clisp.org>
37140         Finish the conditional dependencies mechanism.
37141         * gnulib-tool: New option --no-conditional-dependencies.
37142         (func_usage): Document it. Don't mark --conditional-dependencies as
37143         experimental.
37144         (cond_dependencies): The possible values can now be true, false, empty.
37145         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
37146         (func_import): Store setting in gnulib-cache.m4 and read it from there.
37147         * doc/gnulib-tool.texi (Conditional dependencies): New section.
37149 2011-05-28  Bruno Haible  <bruno@clisp.org>
37151         doc: Use a recent texinfo.tex.
37152         * doc/Makefile (tex_opts): New variable.
37153         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
37155 2011-05-28  Jim Meyering  <meyering@redhat.com>
37157         intprops.h: adjust comment to match code change
37158         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
37159         only once, it *may* have side effects.  Also fix an unrelated typo.
37160         (_GL_INT_SIGNED): Likewise.
37162 2011-05-26  Simon Josefsson  <simon@josefsson.org>
37164         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
37166 2011-05-26  Bruno Haible  <bruno@clisp.org>
37168         mbsrchr: Avoid collision with system function on Interix.
37169         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
37170         Reported by Markus Duft <mduft@gentoo.org>.
37172 2011-05-15  James Youngman  <jay@gnu.org>
37174         getopt: for ambiguous options, enumerate the possibilities.
37175         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
37176         the ambiguous options when an ambiguous prefix is given. This was
37177         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
37178         glibc change was
37179         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
37181 2011-05-25  Eric Blake  <eblake@redhat.com>
37183         getcwd: work around mingw bug
37184         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
37185         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37186         Reported by Matthias Bolte.
37188 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
37190         test-intprops: disable -Wtype-limits diagnostics
37191         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
37192         diagnostics.  Otherwise, the integer overflow macros generate many
37193         diagnostics.  Reported by Jim Meyering in
37194         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37196         intprops: shorten, to pacify gcc -Woverlength-strings
37197         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
37198         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
37199         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
37200         likely to run afoul of C compiler limits for string constant lengths.
37201         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37203 2011-05-24  Eric Blake  <eblake@redhat.com>
37205         docs: document recently fixed glibc printf bug
37206         * doc/posix-functions/fprintf.texi (fprintf): Document it.
37207         * doc/posix-functions/printf.texi (printf): Likewise.
37208         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37211         closein-tests: convert to init.sh
37212         * modules/closein-tests (Files): Add init.sh
37213         * tests/test-closein.sh Use it.
37215         yesno-tests: convert to init.sh
37216         * modules/yesno-tests (Files): Add init.sh.
37217         * tests/test-yesno.sh: Use it.
37219         atexit-tests: ensure reliable exit status
37220         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
37221         Reported by Bruno Haible.
37223 2011-05-24  Bruno Haible  <bruno@clisp.org>
37225         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
37226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
37227         gl_PREREQ_STRERROR_R invocations from here...
37228         * modules/strerror_r-posix (configure.ac): ... to here.
37230 2011-05-24  Eric Blake  <eblake@redhat.com>
37232         strerror_r: fix missing header
37233         * lib/strerror_r.c: Avoid compiler warning about snprintf.
37235         strerror_r: fix AIX test failures
37236         * lib/strerror_r.c (strerror_r): Convert silent truncation to
37237         ERANGE failure.
37239         strerror_r: fix Solaris test failures
37240         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
37241         failures.
37242         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37244         strerror_r: enforce POSIX recommendations
37245         * lib/strerror_r.c (safe_copy): New helper method.
37246         (strerror_r): Guarantee a non-empty string.
37247         * tests/test-strerror_r.c (main): Enhance tests to incorporate
37248         recent POSIX rulings and to match our strerror guarantees.
37249         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37251 2011-05-24  Jim Meyering  <meyering@redhat.com>
37253         test-perror2.c: avoid warning about unused variable
37254         * tests/test-perror2.c (main): Remove declaration of unused "fp".
37256 2011-05-24  Eric Blake  <eblake@redhat.com>
37258         perror: avoid spurious test failure on HP-UX
37259         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
37261         tests: fix logic bug in init.sh
37262         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
37263         shell.
37265 2011-05-24  Jim Meyering  <meyering@redhat.com>
37267         utimensat: do not reference an out-of-scope buffer
37268         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
37269         declared in an inner scope, yet "times" would be dereferenced outside
37270         the scope in which "ts" was valid.
37271         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
37272         of ts[2] "out/up", so that the use of aliased "times" (via
37273         "times = ts;") does not end up referencing an out-of-scope "ts"
37275         opendir-safer.c: don't clobber errno; don't close negative FD
37276         * lib/opendir-safer.c (opendir_safer):
37277         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
37278         file descriptor, and more importantly, don't clobber the
37279         offending errno value with EINVAL.  Before, upon failure
37280         of dup_safer, we would pass the negative file descriptor to
37281         fdopendir, which would clobber errno.
37283 2011-05-23  Bruno Haible  <bruno@clisp.org>
37285         idcache: Fix module description.
37286         * modules/idcache (Include): Set to "idcache.h".
37288 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37290         gnulib-tool: fix portability problem with MacOS sed
37291         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
37292         before the "}".  Problem reported by Leo in
37293         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
37294         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
37295         sed_extract_condition1, sed_extract_condition2.
37297 2011-05-23  Bruno Haible  <bruno@clisp.org>
37299         hash: Simplify autoconf macro.
37300         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
37302 2011-05-23  Bruno Haible  <bruno@clisp.org>
37304         getugroups: Fix module description.
37305         * modules/getugroups (Include): Set to "getugroups.h".
37307 2011-05-23  Bruno Haible  <bruno@clisp.org>
37309         linkat: Simplify autoconf macro.
37310         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
37312 2011-05-23  Bruno Haible  <bruno@clisp.org>
37313             Eric Blake  <eblake@redhat.com>
37315         linkat, renameat: Update dependencies.
37316         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
37317         * modules/linkat (Depends-on): Likewise. Remove also readlink,
37318         symlinkat.
37320 2011-05-23  Jim Meyering  <meyering@redhat.com>
37322         maint.mk: more tight_scope improvements
37323         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
37324         (_gl_TS_headers): Define only in if-0'd block.
37325         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
37326         sometimes we must *not* use it.  Adjust uses accordingly.
37327         (sc_tight_scope): Use much simpler grep-based test to determine
37328         whether we skip this rule.
37330         maint.mk: generalize/improve the tight-scope rule
37331         * top/maint.mk: Emit a warning when the test is skipped.
37332         (_gl_TS_dir): Add $(srcdir)/ prefix.
37333         (_gl_TS_function_match): Simplify, rather than trying
37334         to enumerate common types.  Otherwise, it would fail to match an
37335         "extern unsigned char const *" declaration in idutils.
37336         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
37337         a way to support use of that type of macro.
37338         (_gl_TS_var_match): Simplify regexp.
37339         (_gl_TS_obj_files): New configurable variable.
37340         (_gl_TS_headers): Likewise.
37342 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37344         verify: fix bug when gnulib <assert.h> is also included
37345         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
37346         is defined, not if _GL_STATIC_ASSERT_H is not defined.
37347         Perhaps there's a better way, but this fixes the immediate problem.
37348         Problem reported by Bruno Haible in
37349         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
37351 2011-05-22  Bruno Haible  <bruno@clisp.org>
37353         xgetcwd: Simplify autoconf macro.
37354         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
37356 2011-05-22  Bruno Haible  <bruno@clisp.org>
37358         New module 'mktime-internal'.
37359         * modules/mktime-internal: New file.
37360         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
37361         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
37362         mktime_internal as a C macro if libc has __mktime_internal.
37363         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
37364         conditions.
37365         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
37367 2011-05-22  Bruno Haible  <bruno@clisp.org>
37369         timegm: Correct mktime replacement statements.
37370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
37371         defining mktime as a C macro. This completes a 2009-07-28 commit.
37373 2011-05-22  Bruno Haible  <bruno@clisp.org>
37375         timegm: Simplify autoconf macro.
37376         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
37378 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
37380         clock-time: change to LGPLv2+.
37381         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
37382         BSD-like but we have no mark for that; this is good enough for now.
37384 2011-05-21  Bruno Haible  <bruno@clisp.org>
37386         strerror_r: Fix comments.
37387         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
37389 2011-05-21  Bruno Haible  <bruno@clisp.org>
37391         relocatable-prog-wrapper: Fix possible link error.
37392         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
37393         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
37394         (gl_FUNC_SETENV): ... to here.
37395         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
37396         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
37398 2011-05-21  Bruno Haible  <bruno@clisp.org>
37400         relocatable-prog-wrapper: Assume strerror() exists.
37401         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
37402         m4/strerror.m4.
37403         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
37404         * lib/relocwrapper.c: Remove mention of strerror module.
37405         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
37406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
37407         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
37408         C macro.
37410 2011-05-21  Bruno Haible  <bruno@clisp.org>
37412         select: Simplify replacement idiom.
37413         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
37414         Win32 platforms.
37415         * lib/sys_select.in.h (select): Simplify accordingly.
37416         * modules/select (Depends-on): Likewise.
37418 2011-05-21  Bruno Haible  <bruno@clisp.org>
37420         mkdir-p: Simplify autoconf macro.
37421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
37422         gl_FUNC_LCHOWN.
37424 2011-05-21  Eric Blake  <eblake@redhat.com>
37426         strerror_r: avoid clobbering strerror on cygwin
37427         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
37428         fall back instead to sys_errlist.
37429         * modules/strerror (configure.ac): Add witness.
37430         * tests/test-strerror_r.c (main): Enhance test.
37431         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37432         * tests/test-perror2.c (main): Free memory before exit.
37434 2011-05-21  Bruno Haible  <bruno@clisp.org>
37436         mkdtemp: Use gnulib naming conventions.
37437         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
37438         * modules/mkdtemp (configure.ac): Update.
37440 2011-05-20  Eric Blake  <eblake@redhat.com>
37442         strerror_r: avoid corrupting errno on Solaris
37443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
37444         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37446         strerror_r: avoid compiler warning
37447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
37449         strerror_r: simplify AIX code
37450         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
37452         test-perror: avoid spurious failure on FreeBSD
37453         * modules/perror-tests (Depends-on): Add strerror, now that
37454         strerror_r no longer pulls it in.
37456 2011-05-20  Bruno Haible  <bruno@clisp.org>
37458         strerror_r-posix: Remove unused dependencies.
37459         * modules/strerror_r-posix (Depends-on): Remove strerror.
37460         Reported by Eric Blake.
37462 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37464         intprops: remove assumption about A|B representation
37465         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
37466         is a valid integer if both A and B are.  Although this is true for
37467         all known practical hosts, the C standard doesn't guarantee it,
37468         and the code need not assume it.  Also, this change may work around
37469         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
37470         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
37472 2011-05-20  Eric Blake  <eblake@redhat.com>
37474         perror: work around FreeBSD bug
37475         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
37476         is broken.  Move AC_LIBOBJ...
37477         * modules/perror (configure.ac): Here.
37478         * doc/posix-functions/perror.texi (perror): Document this.
37479         * tests/test-perror2.c (main): Enhance test.
37481         test-perror: check for strerror interactions
37482         * tests/macros.h (STREQ): Add macro.
37483         * modules/perror-tests (Files): Add second test.
37484         * tests/test-perror2.c (main): New file.
37485         * doc/posix-functions/perror.texi (perror): Document glibc bug.
37487         test-perror: rewrite to use init script
37488         * modules/perror-tests (Files): Add init.sh.
37489         * tests/test-perror.sh: Use temporary directory.
37491 2011-05-20  Jim Meyering  <meyering@redhat.com>
37493         maint: replace misused "a" with "an"
37494         * doc/intprops.texi: "a integer"
37495         * doc/regex.texi: "a explanation"
37496         * lib/alignof.h: "a object"
37497         * lib/argmatch.h: "a explanation"
37498         * lib/argp-help.c: "a option" and "a OPTION_DOC"
37499         * lib/stdint.in.h: "a integer"
37500         * lib/userspec.c: "a owner"
37501         * doc/gnulib.texi: Fix "a idea", and reword.
37503 2011-05-19  Jim Meyering  <meyering@redhat.com>
37505         maint: correct misuse of "a" and "an"
37506         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
37507         * lib/argp-help.c: "an docum...": s/an/a/
37508         * lib/argp-parse.c: "An vector": s/An/A/
37509         * lib/execute.c: "an native": s/an/a/
37510         * lib/spawn-pipe.c: Likewise.
37511         * lib/gc.h: "an Gc_rc": s/an/a/
37512         * lib/unigbrk.in.h: "an grapheme": s/an/a/
37513         * lib/fts.c: "an stat.st_dev": s/an/a/
37515 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37517         intprops-tests: work around HP-UX 11.23 cc bug with constants
37518         * tests/test-intprops.c (VERIFY): New macro.
37519         (main): Use it, instead of verify, to work around the compiler bug; see
37520         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37522         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
37523         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
37524         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
37525         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
37526         (_GL_REMAINDER_OVERFLOW): Use it.
37528         intprops-tests: revert unsigned part of previous change
37529         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
37530         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
37531         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
37532         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
37534 2011-05-19  Bruno Haible  <bruno@clisp.org>
37536         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
37537         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
37538         strerror_r() returned without filling the buffer.
37539         Reported by Eric Blake.
37541 2011-05-19  Eric Blake  <eblake@redhat.com>
37543         strerror_r: guarantee unchanged errno
37544         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
37545         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
37546         failure.
37547         * tests/test-strerror_r.c (main): Enhance test.
37549 2011-05-19  Bruno Haible  <bruno@clisp.org>
37551         strerror_r: Reorder #if blocks.
37552         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
37553         for consistency with the previous commit.
37555 2011-05-19  Bruno Haible  <bruno@clisp.org>
37557         perror: Avoid clobbering the strerror buffer when possible.
37558         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
37559         * lib/strerror.c: Include it.
37560         * modules/strerror (Files): Add lib/strerror-impl.h.
37561         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
37562         (my_strerror): New function, defined through lib/strerror-impl.h.
37563         (perror): Use it instead of strerror.
37564         * modules/perror (Files): Add lib/strerror-impl.h.
37565         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
37567 2011-05-19  Eric Blake  <eblake@redhat.com>
37569         strerror_r: fix on newer cygwin
37570         * lib/strerror_r.c (strerror_r): Cygwin now has
37571         __xpg_strerror_r, use it.
37573 2011-05-19  Bruno Haible  <bruno@clisp.org>
37575         strerror_r: Avoid clobbering the strerror buffer when possible.
37576         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
37577         (sys_nerr, sys_errlist): New declarations.
37578         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
37579         HP-UX, native Win32, IRIX, and 32-bit Solaris.
37580         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
37582 2011-05-19  Bruno Haible  <bruno@clisp.org>
37584         strerror_r: Fix test failure on mingw.
37585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
37586         EXTEND_STRERROR_R.
37587         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
37588         macros from errno.in.h instead.
37590 2011-05-19  Eric Blake  <eblake@redhat.com>
37592         strerror: relax test for Solaris
37593         * tests/test-strerror.c (main): Permit Solaris behavior.
37594         * tests/test-strerror_r.c (main): Likewise.
37596         strerror: enforce POSIX ruling on strerror(0)
37597         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
37598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
37599         * lib/strerror_r.c (rpl_strerror_r): Work around it.
37600         * doc/posix-functions/strerror.texi (strerror): Document it.
37601         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
37602         * tests/test-strerror.c (main): Strengthen test.
37603         * tests/test-strerror_r.c (main): Likewise.
37605 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37607         intprop-tests: port to older and more-pedantic compilers
37608         * modules/intprops-tests (Files): Add tests/macros.h.
37609         * tests/test-intprops.c: Include macros.h.
37610         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
37611         it's no longer documented to expand to an integer constant expression.
37612         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
37613         argument is floating point, as it's no longer documented to expand
37614         to an integer constant expression in that case.
37615         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
37616         compiler bugs reported by Bruno Haible.  See
37617         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37618         (U0, U1): New constants, to work around the same bugs.  Also,
37619         in tests, use e.g., "(unsigned int) 39" rather than "39u".
37621         intprops: work around C compiler bugs
37622         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
37623         bug in Sun C 5.11 2010/08/13 and other compilers; see
37624         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37626         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
37627         * doc/intprops.texi (Integer Type Determination): Fix
37628         documentation for TYPE_IS_INTEGER: it returns an constant
37629         expression, not an integer constant expression.  Fix doc for
37630         TYPE_SIGNED: it returns an integer constant expression only if its
37631         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
37632         hardly worth documented that way....)
37634 2011-05-18  Bruno Haible  <bruno@clisp.org>
37636         strerror_r: Avoid clobbering the strerror buffer when possible.
37637         * lib/strerror_r.c (strerror_r): Merge the three implementations.
37638         Handle gnulib defined errno values here. When strerror() returns NULL
37639         or an empty string, return EINVAL.
37640         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
37641         gnulib defined errno values here.
37642         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
37644 2011-05-18  Eric Blake  <eblake@redhat.com>
37646         fnmatch: avoid compiler warning
37647         * lib/fnmatch_loop.c (FCT): Use correct type.
37648         Reported by Matthias Bolte.
37650 2011-05-13  Jim Meyering  <meyering@redhat.com>
37652         maint.mk: three new prohibit_<HDR>_without_use rules
37653         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
37654         (sc_prohibit_stdio-safer_without_use): Likewise.
37655         (sc_prohibit_xfreopen_without_use): Likewise.
37657 2011-05-17  Jim Meyering  <meyering@redhat.com>
37659         announce-gen: fail if the NEWS delta is empty
37660         If there's nothing noteworthy in NEWS, then either you forgot
37661         or you shouldn't be releasing.
37662         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
37664 2011-05-17  Pádraig Brady  <P@draigBrady.com>
37666         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
37667         reserved symbols starting with double underscore from the check.
37669 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37671         intprops: add doc
37672         * doc/intprops.texi: New file, documenting intprops.
37673         * doc/gnulib.texi (Particular Modules): Include it.
37675         verify: add doc to gnulib manual and fix example
37676         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
37677         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
37678         (Compile-time Assertions): Fix example so it can't overflow.
37680 2011-05-17  Jim Meyering  <meyering@redhat.com>
37682         warnings.m4: don't usurp save_CPPFLAGS variable name
37683         * m4/warnings.m4: Prefix local temporary variable name with gl_.
37685         doc: fix typo
37686         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
37688 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37689             Bruno Haible  <bruno@clisp.org>
37691         doc: Tweak recent change.
37692         * README (Portability guidelines): Tweak new text.
37693         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
37694         Interix 6.1.
37696 2011-05-16  Eric Blake  <eblake@redhat.com>
37698         inttypes: avoid autoconf warning
37699         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
37700         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37702 2011-05-16  Sam Steingold  <sds@gnu.org>
37703         and Eric Blake  <eblake@redhat.com>
37705         vc-list-files: accept multiple directory operands
37706         * build-aux/vc-list-files: Iterate over all remaining operands.
37708 2011-05-16  Bruno Haible  <bruno@clisp.org>
37710         Fix confusion regarding deprecated modules.
37711         * modules/calloc (Status, Notice): Mark module as deprecated, not
37712         obsolete.
37713         * modules/fnmatch-posix (Status, Notice): Likewise.
37714         * modules/getdate (Status, Notice): Likewise.
37715         * modules/getopt (Status, Notice): Likewise.
37716         * modules/malloc (Status, Notice): Likewise.
37717         * modules/pipe (Status, Notice): Likewise.
37718         * modules/realloc (Status, Notice): Likewise.
37719         * modules/rename-dest-slash (Status, Notice): Likewise.
37720         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
37721         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
37722         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
37723         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
37724         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
37726 2011-05-16  Bruno Haible  <bruno@clisp.org>
37728         doc: List the target platforms.
37729         * doc/gnulib-intro.texi (Target Platforms): New section.
37730         * doc/gnulib.texi (Introduction): Update menu.
37731         * README (Portability guidelines): Refer to the new section. Update
37732         statement about oldest supported environment. Remove rationale why
37733         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
37734         unportable C89 function.
37735         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
37736         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
37738 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37740         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
37742 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37744         intprops-tests: new module
37745         * modules/intprops-tests, tests/test-intprops.c: New files.
37747         intprops: add safe, portable integer overflow checking
37748         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
37749         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
37750         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
37751         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
37752         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
37753         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
37754         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
37755         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
37756         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
37757         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
37758         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
37760 2011-05-12  James Youngman  <jay@gnu.org>
37762         Add a test for glibc's Bugzilla bug #12378.
37763         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
37764         doesn't allow the literal matching of a lone "[" (which is
37765         required by POSIX).
37766         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
37768 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
37770         Sync glibc change fixing Bugzilla bug #12378.
37771         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
37772         beginning and fall back to matching as normal character if the
37773         string ends before the matching ']' is found.  This is what POSIX
37774         requires.
37776 2011-05-13  Eric Blake  <eblake@redhat.com>
37778         getcwd-lgpl: relax test for FreeBSD
37779         * doc/posix-functions/getcwd.texi (getcwd): Document portability
37780         issue.
37781         * tests/test-getcwd-lgpl.c (main): Relax test.
37782         Reported by Matthias Bolte.
37784 2011-05-11  Eric Blake  <eblake@redhat.com>
37786         test-fflush: silence compiler warning
37787         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
37789 2011-05-11  Bruno Haible  <bruno@clisp.org>
37791         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
37792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
37793         * modules/canonicalize (Depends-on): Add 'nocrash'.
37794         * modules/canonicalize-lgpl (Depends-on): Likewise.
37795         * doc/posix-functions/realpath.texi: Update platforms list.
37796         Reported by Ryan Schmidt <ryandesign@macports.org>.
37798 2011-05-11  Bruno Haible  <bruno@clisp.org>
37800         group-member: Declare function in <unistd.h>.
37801         * lib/unistd.in.h (group_member): New declaration.
37802         * lib/group-member.h: Remove file.
37803         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
37804         * tests/test-unistd-c++.cc: Check signature of group_member.
37805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
37806         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
37807         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
37808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
37809         HAVE_GROUP_MEMBER.
37810         * modules/group-member (Files): Remove lib/group-member.h.
37811         (Depends-on): Add unistd. Specify conditions.
37812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37813         (Include): Change to <unistd.h>.
37814         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
37815         HAVE_GROUP_MEMBER.
37816         * NEWS: Mention the change.
37817         * lib/euidaccess.c: Don't include group-member.h.
37819 2011-05-11  Bruno Haible  <bruno@clisp.org>
37821         group-member: Document module.
37822         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
37823         module.
37825 2011-05-11  Bruno Haible  <bruno@clisp.org>
37827         fclose: Fix mistake earlier today.
37828         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
37830 2011-05-11  Eric Blake  <eblake@redhat.com>
37832         fclose: preserve fflush errors
37833         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
37834         Reported by Jim Meyering.
37836         bootstrap: support a prereq of 'rpcgen -' on RHEL5
37837         * build-aux/bootstrap (check_versions): When no specific version
37838         is required, merely check that the app produces an exit status
37839         that indicates its existence.
37841         maint.mk: drop redundant check
37842         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
37843         the same but better.
37845 2011-05-11  Bruno Haible  <bruno@clisp.org>
37847         fclose: Fix possible link error.
37848         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
37849         unregister_shadow_fd. Improve comments.
37850         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37851         Eric Blake.
37853 2011-05-11  Jim Meyering  <meyering@redhat.com>
37855         maint.mk: improve "can not" detection and generalize rule name
37856         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37857         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37858         Use the same technique as in sc_prohibit_doubled_word, so that
37859         we recognize "can not" also when the words are separated by a newline.
37860         Suggested by Eric Blake.
37861         (perl_filename_lineno_text_): Define.  Factored out of...
37862         (prohibit_doubled_word_): ...here.  Use the new definition.
37863         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37864         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37865         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37867 2011-05-10  Eric Blake  <eblake@redhat.com>
37869         fclose: avoid double close race when possible
37870         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37871         all but WINDOWS_SOCKETS.
37873 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37875         openat: correct new comment
37876         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37878 2011-05-10  Jim Meyering  <meyering@redhat.com>
37880         openat: add comments
37881         * lib/openat-proc.c (openat_proc_name): Add comments,
37882         mostly from Eric Blake.
37884 2011-05-09  Eric Blake  <eblake@redhat.com>
37886         openat: reduce syscalls in first probe of /proc
37887         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37888         be a directory.  Simplify the probe for .. bugs.
37889         * modules/openat (Depends-on): Drop same-inode.
37890         Reported by Bastien ROUCARIES.
37892 2011-05-09  Jim Meyering  <meyering@redhat.com>
37894         maint.mk: change semantics/name of tight_scope variables
37895         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37896         Rename variables to align with semantics that make them more useful.
37898         maint.mk: tweak new rule's name not to impinge
37899         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37900         (sc_tight_scope): Use new rule name rather than $@-0.
37902         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37903         * top/maint.mk (sc_tight_scope): New rule.
37904         (sc_tight_scope-0): New rule, ifdef'd out.
37905         (_gl_TS_dir): Default.
37906         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37907         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37909 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37911         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37912         Haible <bruno@clisp.org>.
37914 2011-05-08  Bruno Haible  <bruno@clisp.org>
37916         Comments.
37917         * m4/isnanf.m4: Add comment.
37918         * m4/isnanl.m4: Likewise.
37920 2011-05-08  Bruno Haible  <bruno@clisp.org>
37922         glob: Remove obsolete macro.
37923         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37925 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37927         intprops: Sun C 5.11 supports __typeof__
37928         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37929         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37930         which is new.
37931         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37933         intprops: switch to usual gnulib indenting and naming
37934         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37935         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37937         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37939 2011-05-08  Jim Meyering  <meyering@redhat.com>
37941         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37942         * top/maint.mk (release-prep): Use make's --no-print-directory
37943         option when generating the announcement.  This eliminates the
37944         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37945         generated announcement template.
37947 2011-05-08  Bruno Haible  <bruno@clisp.org>
37949         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37950         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37951         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37953 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37955         ignore-value, verify: Omit include files from lib_SOURCES.
37956         * modules/ignore-value, modules/verify (Makefile.am):
37957         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37958         that leads Automake to duplicate use of am__objects_... variables
37959         in Makefile.in.  See
37960         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37962 2011-05-07  Bruno Haible  <bruno@clisp.org>
37964         fclose: Simplify autoconf macro.
37965         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37966         defined.
37968 2011-05-07  Bruno Haible  <bruno@clisp.org>
37970         canonicalize-lgpl: Fix autoconf macro ordering bug.
37971         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37972         gl_STDLIB_H_DEFAULTS.
37974 2011-05-06  Eric Blake  <eblake@redhat.com>
37976         maintainer-makefile: make sc_po_check easier to tune
37977         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37978         to probe for strings, such as an alternate location for gnulib.
37980         fclose: guarantee behavior on seekable stdin
37981         * modules/fclose (Depends-on): Add fflush.
37982         * doc/posix-functions/fclose.texi (fclose): Document this.
37983         * tests/test-fclose.c (main): Make test for this unconditional.
37985 2011-05-06  Bruno Haible  <bruno@clisp.org>
37987         fflush, fpurge: Relicense under LGPLv2+.
37988         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37989         * modules/fpurge (License): Likewise.
37990         With permission from Eric Blake and Jim Meyering.
37991         Suggested by Eric Blake.
37993 2011-05-06  Karl Berry  <karl@gnu.org>
37995         * MODULES.html.sh (func_all_modules): remove exit.
37997 2011-05-06  Jim Meyering  <meyering@redhat.com>
37999         maint.mk: use info-gnu@ as the default only for a stable release
38000         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
38001         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
38002         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
38003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
38005 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38007         assert-h: new module, which supports C1X-style static_assert
38008         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
38009         * lib/verify.h: Revamp so that this can be copied into assert.h,
38010         while retaining the ability to use it standalone as before.
38011         Rename private identifiers so as not to encroach on the
38012         standard C namespace, since this is now used by assert.h.
38013         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
38014         the old verify_true.
38015         (_GL_VERIFY_TRUE): New macro, with much of the contents of
38016         the old verify_true.  Use _GL_VERIFY_TYPE.
38017         (_GL_VERIFY): New macro, with much of the contents of the old verify.
38018         (static_assert): New macro, if _GL_STATIC_ASSERT_H
38019         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
38020         defined when this file is copied into the replacement assert.h.
38021         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
38022         and _Static_assert is not built in.
38023         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
38024         defined, and use the new macros mentioned above.
38025         * doc/posix-headers/assert.texi: Document this.
38027 2011-05-05  Bruno Haible  <bruno@clisp.org>
38029         fclose, fflush: Respect rules for use of AC_LIBOBJ.
38030         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
38031         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
38032         gl_REPLACE_FCLOSE here.
38033         * modules/fflush (Depends-on): Remove fclose.
38034         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
38035         combination with module 'fclose'.
38037 2011-05-05  Bruno Haible  <bruno@clisp.org>
38039         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
38040         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
38041         gl_FUNC_FFLUSH.
38042         (gl_FUNC_FFLUSH): Use it.
38043         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
38044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
38045         gl_REPLACE_FSEEKO here.
38047 2011-05-05  Bruno Haible  <bruno@clisp.org>
38049         tzset: Relicense under LGPL.
38050         * modules/tzset (License): Change to LGPL.
38051         No agreement needed; it's a no-op.
38053         strtoimax, strtoumax: Relicense under LGPL.
38054         * modules/strtoimax (License): Change to LGPL.
38055         * modules/strtoumax (License): Likewise.
38056         With permission from Jim Meyering, Paul Eggert:
38057         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
38058         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
38060         getgroups: Relicense under LGPL.
38061         * modules/getgroups (License): Change to LGPL.
38062         With permission from Jim Meyering, Paul Eggert, Eric Blake:
38063         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
38064         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
38065         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38067         nanosleep: Relicense under LGPL.
38068         * modules/nanosleep (License): Change to LGPL.
38069         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
38070         Haible:
38071         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
38072         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
38073         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38074         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
38076         futimens: Relicense under LGPL.
38077         * modules/futimens (License): Change to LGPL.
38078         With permission from Eric Blake:
38079         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38081         fflush: Relicense under LGPL.
38082         * modules/fflush (License): Change to LGPL.
38083         With permission from Eric Blake, Bruno Haible, Jim Meyering:
38084         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38085         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
38086         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
38088         tmpfile: Relicense under LGPL.
38089         * modules/tmpfile (License): Change to LGPL.
38090         With permission from Ben Pfaff:
38091         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
38093         isfinite: Relicense under LGPL.
38094         * modules/isfinite (License): Change to LGPL.
38095         With permission from Ben Pfaff, Bruno Haible:
38096         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
38097         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
38099         acosl..tanl: Relicense under LGPL.
38100         * modules/acosl (License): Change to LGPL.
38101         * modules/asinl (License): Likewise.
38102         * modules/atanl (License): Likewise.
38103         * modules/cosl (License): Likewise.
38104         * modules/expl (License): Likewise.
38105         * modules/logl (License): Likewise.
38106         * modules/sinl (License): Likewise.
38107         * modules/sqrtl (License): Likewise.
38108         * modules/tanl (License): Likewise.
38109         Source code originally from glibc and Paolo Bonzini. Agreements:
38110         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
38111         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
38113 2011-05-05  Bruno Haible  <bruno@clisp.org>
38115         signal: Define sighandler_t.
38116         * lib/signal.in.h (sighandler_t): New type.
38117         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
38118         whether sighandler_t is defined.
38119         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
38120         * modules/signal (Depends-on): Add extensions.
38121         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
38122         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
38123         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
38125 2011-05-05  Eric Blake  <eblake@redhat.com>
38127         maint: remove useless REPLACE_*_H macros
38128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
38129         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38130         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38131         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
38132         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38133         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38134         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
38135         * m4/btowc.m4: Update callers.
38136         * m4/dirfd.m4: Likewise.
38137         * m4/duplocale.m4: Likewise.
38138         * m4/fchdir.m4: Likewise.
38139         * m4/fdopendir.m4: Likewise.
38140         * m4/inet_ntop.m4: Likewise.
38141         * m4/inet_pton.m4: Likewise.
38142         * m4/ioctl.m4: Likewise.
38143         * m4/mbrlen.m4: Likewise.
38144         * m4/mbrtowc.m4: Likewise.
38145         * m4/mbsinit.m4: Likewise.
38146         * m4/mbsnrtowcs.m4: Likewise.
38147         * m4/mbsrtowcs.m4: Likewise.
38148         * m4/poll.m4: Likewise.
38149         * m4/setlocale.m4: Likewise.
38150         * m4/wcrtomb.m4: Likewise.
38151         * m4/wcsnrtombs.m4: Likewise.
38152         * m4/wcsrtombs.m4: Likewise.
38153         * m4/wctob.m4: Likewise.
38154         * m4/wcwidth.m4: Likewise.
38155         * modules/posix_spawn: Likewise.
38156         * modules/posix_spawn_file_actions_addclose: Likewise.
38157         * modules/posix_spawn_file_actions_adddup2: Likewise.
38158         * modules/posix_spawn_file_actions_addopen: Likewise.
38159         * modules/posix_spawn_file_actions_destroy: Likewise.
38160         * modules/posix_spawn_file_actions_init: Likewise.
38161         * modules/posix_spawnattr_destroy: Likewise.
38162         * modules/posix_spawnattr_getflags: Likewise.
38163         * modules/posix_spawnattr_getpgroup: Likewise.
38164         * modules/posix_spawnattr_getschedparam: Likewise.
38165         * modules/posix_spawnattr_getschedpolicy: Likewise.
38166         * modules/posix_spawnattr_getsigdefault: Likewise.
38167         * modules/posix_spawnattr_getsigmask: Likewise.
38168         * modules/posix_spawnattr_init: Likewise.
38169         * modules/posix_spawnattr_setflags: Likewise.
38170         * modules/posix_spawnattr_setpgroup: Likewise.
38171         * modules/posix_spawnattr_setschedparam: Likewise.
38172         * modules/posix_spawnattr_setschedpolicy: Likewise.
38173         * modules/posix_spawnattr_setsigdefault: Likewise.
38174         * modules/posix_spawnattr_setsigmask: Likewise.
38175         * modules/posix_spawnp: Likewise.
38177 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
38179         Add option to do-release-commit-and-tag to specify branch.
38180         * build-aux/do-release-commit-and-tag: Add --branch.
38182 2011-05-03  Bruno Haible  <bruno@clisp.org>
38184         Avoid unnecessary compilation units, through conditional dependencies.
38185         * modules/accept (Depends-on): Add conditions to the dependencies.
38186         * modules/acosl (Depends-on): Likewise.
38187         * modules/argz (Depends-on): Likewise.
38188         * modules/asinl (Depends-on): Likewise.
38189         * modules/atanl (Depends-on): Likewise.
38190         * modules/atoll (Depends-on): Likewise.
38191         * modules/bind (Depends-on): Likewise.
38192         * modules/btowc (Depends-on): Likewise.
38193         * modules/canonicalize-lgpl (Depends-on): Likewise.
38194         * modules/ceil (Depends-on): Likewise.
38195         * modules/ceilf (Depends-on): Likewise.
38196         * modules/ceill (Depends-on): Likewise.
38197         * modules/chdir-long (Depends-on): Likewise.
38198         * modules/chown (Depends-on): Likewise.
38199         * modules/close (Depends-on): Likewise.
38200         * modules/connect (Depends-on): Likewise.
38201         * modules/cosl (Depends-on): Likewise.
38202         * modules/dirfd (Depends-on): Likewise.
38203         * modules/dprintf (Depends-on): Likewise.
38204         * modules/dprintf-posix (Depends-on): Likewise.
38205         * modules/error (Depends-on): Likewise.
38206         * modules/euidaccess (Depends-on): Likewise.
38207         * modules/expl (Depends-on): Likewise.
38208         * modules/faccessat (Depends-on): Likewise.
38209         * modules/fchdir (Depends-on): Likewise.
38210         * modules/fclose (Depends-on): Likewise.
38211         * modules/fcntl (Depends-on): Likewise.
38212         * modules/fdopendir (Depends-on): Likewise.
38213         * modules/fflush (Depends-on): Likewise.
38214         * modules/floor (Depends-on): Likewise.
38215         * modules/floorf (Depends-on): Likewise.
38216         * modules/floorl (Depends-on): Likewise.
38217         * modules/fnmatch (Depends-on): Likewise.
38218         * modules/fopen (Depends-on): Likewise.
38219         * modules/fprintf-posix (Depends-on): Likewise.
38220         * modules/frexp (Depends-on): Likewise.
38221         * modules/frexp-nolibm (Depends-on): Likewise.
38222         * modules/frexpl (Depends-on): Likewise.
38223         * modules/frexpl-nolibm (Depends-on): Likewise.
38224         * modules/fseek (Depends-on): Likewise.
38225         * modules/fsusage (Depends-on): Likewise.
38226         * modules/ftell (Depends-on): Likewise.
38227         * modules/ftello (Depends-on): Likewise.
38228         * modules/futimens (Depends-on): Likewise.
38229         * modules/getcwd (Depends-on): Likewise.
38230         * modules/getcwd-lgpl (Depends-on): Likewise.
38231         * modules/getdelim (Depends-on): Likewise.
38232         * modules/getdomainname (Depends-on): Likewise.
38233         * modules/getgroups (Depends-on): Likewise.
38234         * modules/gethostname (Depends-on): Likewise.
38235         * modules/getline (Depends-on): Likewise.
38236         * modules/getlogin_r (Depends-on): Likewise.
38237         * modules/getopt-posix (Depends-on): Likewise.
38238         * modules/getpeername (Depends-on): Likewise.
38239         * modules/getsockname (Depends-on): Likewise.
38240         * modules/getsockopt (Depends-on): Likewise.
38241         * modules/getsubopt (Depends-on): Likewise.
38242         * modules/getusershell (Depends-on): Likewise.
38243         * modules/glob (Depends-on): Likewise.
38244         * modules/grantpt (Depends-on): Likewise.
38245         * modules/iconv_open (Depends-on): Likewise.
38246         * modules/iconv_open-utf (Depends-on): Likewise.
38247         * modules/inet_ntop (Depends-on): Likewise.
38248         * modules/inet_pton (Depends-on): Likewise.
38249         * modules/ioctl (Depends-on): Likewise.
38250         * modules/isapipe (Depends-on): Likewise.
38251         * modules/isfinite (Depends-on): Likewise.
38252         * modules/isinf (Depends-on): Likewise.
38253         * modules/lchown (Depends-on): Likewise.
38254         * modules/ldexpl (Depends-on): Likewise.
38255         * modules/link (Depends-on): Likewise.
38256         * modules/linkat (Depends-on): Likewise.
38257         * modules/listen (Depends-on): Likewise.
38258         * modules/logl (Depends-on): Likewise.
38259         * modules/lstat (Depends-on): Likewise.
38260         * modules/mbrlen (Depends-on): Likewise.
38261         * modules/mbrtowc (Depends-on): Likewise.
38262         * modules/mbsinit (Depends-on): Likewise.
38263         * modules/mbsnrtowcs (Depends-on): Likewise.
38264         * modules/mbsrtowcs (Depends-on): Likewise.
38265         * modules/mbtowc (Depends-on): Likewise.
38266         * modules/memcmp (Depends-on): Likewise.
38267         * modules/mkdir (Depends-on): Likewise.
38268         * modules/mkdtemp (Depends-on): Likewise.
38269         * modules/mkfifo (Depends-on): Likewise.
38270         * modules/mkfifoat (Depends-on): Likewise.
38271         * modules/mknod (Depends-on): Likewise.
38272         * modules/mkostemp (Depends-on): Likewise.
38273         * modules/mkostemps (Depends-on): Likewise.
38274         * modules/mkstemp (Depends-on): Likewise.
38275         * modules/mkstemps (Depends-on): Likewise.
38276         * modules/mktime (Depends-on): Likewise.
38277         * modules/nanosleep (Depends-on): Likewise.
38278         * modules/open (Depends-on): Likewise.
38279         * modules/openat (Depends-on): Likewise.
38280         * modules/perror (Depends-on): Likewise.
38281         * modules/poll (Depends-on): Likewise.
38282         * modules/popen (Depends-on): Likewise.
38283         * modules/posix_spawn (Depends-on): Likewise.
38284         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
38285         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38286         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38287         * modules/posix_spawnp (Depends-on): Likewise.
38288         * modules/pread (Depends-on): Likewise.
38289         * modules/printf-posix (Depends-on): Likewise.
38290         * modules/ptsname (Depends-on): Likewise.
38291         * modules/putenv (Depends-on): Likewise.
38292         * modules/pwrite (Depends-on): Likewise.
38293         * modules/readline (Depends-on): Likewise.
38294         * modules/readlink (Depends-on): Likewise.
38295         * modules/readlinkat (Depends-on): Likewise.
38296         * modules/recv (Depends-on): Likewise.
38297         * modules/recvfrom (Depends-on): Likewise.
38298         * modules/regex (Depends-on): Likewise.
38299         * modules/remove (Depends-on): Likewise.
38300         * modules/rename (Depends-on): Likewise.
38301         * modules/renameat (Depends-on): Likewise.
38302         * modules/rmdir (Depends-on): Likewise.
38303         * modules/round (Depends-on): Likewise.
38304         * modules/roundf (Depends-on): Likewise.
38305         * modules/roundl (Depends-on): Likewise.
38306         * modules/rpmatch (Depends-on): Likewise.
38307         * modules/select (Depends-on): Likewise.
38308         * modules/send (Depends-on): Likewise.
38309         * modules/sendto (Depends-on): Likewise.
38310         * modules/setenv (Depends-on): Likewise.
38311         * modules/setlocale (Depends-on): Likewise.
38312         * modules/setsockopt (Depends-on): Likewise.
38313         * modules/shutdown (Depends-on): Likewise.
38314         * modules/sigaction (Depends-on): Likewise.
38315         * modules/signbit (Depends-on): Likewise.
38316         * modules/sigprocmask (Depends-on): Likewise.
38317         * modules/sinl (Depends-on): Likewise.
38318         * modules/sleep (Depends-on): Likewise.
38319         * modules/snprintf (Depends-on): Likewise.
38320         * modules/snprintf-posix (Depends-on): Likewise.
38321         * modules/socket (Depends-on): Likewise.
38322         * modules/sprintf-posix (Depends-on): Likewise.
38323         * modules/sqrtl (Depends-on): Likewise.
38324         * modules/stat (Depends-on): Likewise.
38325         * modules/strchrnul (Depends-on): Likewise.
38326         * modules/strdup-posix (Depends-on): Likewise.
38327         * modules/strerror (Depends-on): Likewise.
38328         * modules/strerror_r-posix (Depends-on): Likewise.
38329         * modules/strndup (Depends-on): Likewise.
38330         * modules/strnlen (Depends-on): Likewise.
38331         * modules/strptime (Depends-on): Likewise.
38332         * modules/strsep (Depends-on): Likewise.
38333         * modules/strsignal (Depends-on): Likewise.
38334         * modules/strstr-simple (Depends-on): Likewise.
38335         * modules/strtod (Depends-on): Likewise.
38336         * modules/strtoimax (Depends-on): Likewise.
38337         * modules/strtok_r (Depends-on): Likewise.
38338         * modules/strtoumax (Depends-on): Likewise.
38339         * modules/symlink (Depends-on): Likewise.
38340         * modules/symlinkat (Depends-on): Likewise.
38341         * modules/tanl (Depends-on): Likewise.
38342         * modules/tcgetsid (Depends-on): Likewise.
38343         * modules/tmpfile (Depends-on): Likewise.
38344         * modules/trunc (Depends-on): Likewise.
38345         * modules/truncf (Depends-on): Likewise.
38346         * modules/truncl (Depends-on): Likewise.
38347         * modules/uname (Depends-on): Likewise.
38348         * modules/unlink (Depends-on): Likewise.
38349         * modules/unlockpt (Depends-on): Likewise.
38350         * modules/unsetenv (Depends-on): Likewise.
38351         * modules/usleep (Depends-on): Likewise.
38352         * modules/utimensat (Depends-on): Likewise.
38353         * modules/vasprintf (Depends-on): Likewise.
38354         * modules/vdprintf (Depends-on): Likewise.
38355         * modules/vdprintf-posix (Depends-on): Likewise.
38356         * modules/vfprintf-posix (Depends-on): Likewise.
38357         * modules/vprintf-posix (Depends-on): Likewise.
38358         * modules/vsnprintf (Depends-on): Likewise.
38359         * modules/vsnprintf-posix (Depends-on): Likewise.
38360         * modules/vsprintf-posix (Depends-on): Likewise.
38361         * modules/wcrtomb (Depends-on): Likewise.
38362         * modules/wcscasecmp (Depends-on): Likewise.
38363         * modules/wcscspn (Depends-on): Likewise.
38364         * modules/wcsdup (Depends-on): Likewise.
38365         * modules/wcsncasecmp (Depends-on): Likewise.
38366         * modules/wcsnrtombs (Depends-on): Likewise.
38367         * modules/wcspbrk (Depends-on): Likewise.
38368         * modules/wcsrtombs (Depends-on): Likewise.
38369         * modules/wcsspn (Depends-on): Likewise.
38370         * modules/wcsstr (Depends-on): Likewise.
38371         * modules/wcstok (Depends-on): Likewise.
38372         * modules/wcswidth (Depends-on): Likewise.
38373         * modules/wctob (Depends-on): Likewise.
38374         * modules/wctomb (Depends-on): Likewise.
38375         * modules/wctype (Depends-on): Likewise.
38376         * modules/wcwidth (Depends-on): Likewise.
38377         * modules/write (Depends-on): Likewise.
38379 2011-05-03  Bruno Haible  <bruno@clisp.org>
38381         Support for conditional dependencies.
38382         * doc/gnulib.texi (Module description): Document the syntax of
38383         conditional dependencies.
38384         * gnulib-tool: New option --conditional-dependencies.
38385         (func_usage): Document it.
38386         (cond_dependencies): New variable.
38387         (func_get_automake_snippet_conditional,
38388         func_get_automake_snippet_unconditional): New functions, extracted from
38389         func_get_automake_snippet.
38390         (func_get_automake_snippet): Use them.
38391         (sed_first_32_chars): New variable.
38392         (func_module_shellfunc_name): New function.
38393         (func_module_shellvar_name): New function.
38394         (func_module_conditional_name): New function.
38395         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
38396         func_cond_module_condition): New functions.
38397         (func_modules_transitive_closure): Add support for conditional
38398         dependencies.
38399         (func_emit_lib_Makefile_am): For a conditional module, enclose the
38400         conditional automake snippet in an automake conditional.
38401         (func_emit_autoconf_snippets): Emit shell functions that contain the
38402         code for conditional modules.
38403         (func_import, func_create_testdir): Update specification.
38405 2011-05-03  Eric Blake  <eblake@redhat.com>
38407         test-getaddrinfo: report error information
38408         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
38410 2011-05-03  Jim Meyering  <meyering@redhat.com>
38412         bootstrap: avoid build failure when $GZIP is set
38413         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
38414         program name.  If defined at all, it is supposed to list gzip options.
38415         Reported by Alan Curry in http://debbugs.gnu.org/8609
38417 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
38419         readme-release: new module with release instructions
38420         * modules/readme-release: New module.
38421         * top/README-release: New file, from coreutils, grep, diffutils.
38422         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38424 2011-05-02  Eric Blake  <eblake@redhat.com>
38426         fflush: also replace fclose when fixing fflush
38427         * modules/fflush (Depends-on): Add fclose.
38428         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
38429         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
38430         memstreams with no backing fd.
38431         * doc/posix-functions/fclose.texi (fclose): Document the use of
38432         fflush module to fix the bug.
38433         * tests/test-fclose.c (main): Relax test when fclose is used in
38434         isolation.
38436         fclose: add some tests
38437         * modules/fclose-tests: New test module.
38438         * tests/test-fclose.c: New file.
38439         * doc/posix-functions/fclose.texi (fclose): Document the bug.
38441         fclose: reduced dependencies
38442         * modules/fclose (Depends-on): Switch from fflush/fseeko to
38443         simpler lseek.
38444         * lib/fclose.c (rpl_fclose): Likewise.
38445         Reported by Simon Josefsson.
38447         exit: drop remaining clients
38448         * modules/argmatch (Depends-on): Replace exit with stdlib.
38449         * modules/copy-file (Depends-on): Likewise.
38450         * modules/execute (Depends-on): Likewise.
38451         * modules/exitfail (Depends-on): Likewise.
38452         * modules/obstack (Depends-on): Likewise.
38453         * modules/pagealign_alloc (Depends-on): Likewise.
38454         * modules/pipe-filter-gi (Depends-on): Likewise.
38455         * modules/pipe-filter-ii (Depends-on): Likewise.
38456         * modules/savewd (Depends-on): Likewise.
38457         * modules/spawn-pipe (Depends-on): Likewise.
38458         * modules/wait-process (Depends-on): Likewise.
38459         * modules/xsetenv (Depends-on): Likewise.
38460         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
38461         * modules/git-merge-changelog (Depends-on): Likewise.
38462         * modules/long-options (Depends-on): Likewise.
38463         * modules/pt_chown (Depends-on): Likewise.
38464         * modules/sysexits (Depends-on): Likewise.
38466         freading: relax license from LGPLv3+ to LGPLv2+
38467         * modules/freading (License): Relax LGPL version.
38469 2011-05-02  Bruno Haible  <bruno@clisp.org>
38471         fchdir: Remove unused dependencies.
38472         * modules/fchdir (Depends-on): Remove include_next.
38474 2011-05-02  Bruno Haible  <bruno@clisp.org>
38476         gnulib-tool: Refactor.
38477         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
38478         from func_emit_autoconf_snippets.
38479         (func_emit_autoconf_snippets): Use it.
38481 2011-05-02  Simon Josefsson  <simon@josefsson.org>
38483         * NEWS: Document removal of 'exit'.
38484         * modules/exit: Remove file.
38486 2011-05-01  Bruno Haible  <bruno@clisp.org>
38488         Update DEPENDENCIES.
38489         * DEPENDENCIES (gettext): Recommend the newest release.
38490         Reported by Simon Josefsson.
38492 2011-05-01  Bruno Haible  <bruno@clisp.org>
38494         gnulib-tool: Reduce code duplication.
38495         * gnulib-tool (func_emit_autoconf_snippets): New function.
38496         (func_import, func_create_testdir): Use it.
38498 2011-04-30  Eric Blake  <eblake@redhat.com>
38500         fclose: don't fail on non-seekable input stream
38501         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
38502         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
38503         since fflush is allowed to fail in that case.
38505 2011-04-30  Bruno Haible  <bruno@clisp.org>
38507         dup3: cleanup
38508         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
38510 2011-04-30  Bruno Haible  <bruno@clisp.org>
38512         netdb: Make it work in C++ mode.
38513         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
38514         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
38515         module.
38516         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
38517         gl_MODULE_INDICATOR_FOR_TESTS.
38518         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
38519         * modules/netdb-c++-tests: New file.
38520         * tests/test-netdb-c++.cc: New file.
38522 2011-04-30  Bruno Haible  <bruno@clisp.org>
38524         New modules 'vfscanf', 'vscanf'.
38525         * modules/vfscanf: New file.
38526         * modules/vscanf: New file.
38527         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
38528         here.
38529         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
38530         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
38532 2011-04-30  Bruno Haible  <bruno@clisp.org>
38534         passfd: Add comments.
38535         * lib/passfd.c: Add comments about platforms.
38537 2011-04-30  Bruno Haible  <bruno@clisp.org>
38539         sys_uio: Make <sys/uio.h> self-contained.
38540         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
38541         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
38543 2011-04-30  Bruno Haible  <bruno@clisp.org>
38545         sys_socket: Ensure 'struct iovec' definition.
38546         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
38547         <sys/socket.h>.
38548         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
38550 2011-04-30  Bruno Haible  <bruno@clisp.org>
38552         sys_uio: Protect definition of 'struct iovec'.
38553         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
38554         it as a C struct.
38556 2011-04-30  Bruno Haible  <bruno@clisp.org>
38558         manywarnings: fix indentation
38559         * m4/manywarnings.m4: Indent by 2 spaces consistently.
38561 2011-04-30  Pádraig Brady  <P@draigBrady.com>
38563         manywarnings: add -Wno-missing-field-initializers if needed.
38564         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
38565         option if it's needed to allow initialization with { 0, }
38567 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
38569         announce-gen: cosmetic improvement
38570         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
38572 2011-04-29  Jim Meyering  <meyering@redhat.com>
38574         vc-list-files: indent with spaces, not TABs
38575         * build-aux/vc-list-files: Convert leading TABs to spaces,
38576         to match the style of most other files in gnulib.
38578         announce-gen: indent with spaces, not TABs
38579         * build-aux/announce-gen: Convert all TABs to spaces, to match
38580         the style of most other files in gnulib.
38582 2011-04-29  Eric Blake  <eblake@redhat.com>
38584         quotearg: avoid uninitialized variable use
38585         * lib/quotearg.c (quoting_options_from_style): Initialize
38586         remaining fields, and ensure that custom styles are only used via
38587         quoting_options rather than quoting_style.
38589 2011-04-29  Jim Meyering  <meyering@redhat.com>
38591         maint.mk: remove unused VC-tag variable
38592         * top/maint.mk (VC-tag): Remove unused variable.
38594 2011-04-29  Bruno Haible  <bruno@clisp.org>
38596         netdb: fix gai_strerror replacements
38597         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
38598         * modules/netdb: Substitute it.
38600 2011-04-29  Jim Meyering  <meyering@redhat.com>
38602         test-getcwd.c: avoid new set-but-not-used warning
38603         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
38604         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
38605         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
38606         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
38608         test-hash.c: avoid a new shadowing warning
38609         * tests/test-hash.c (main): Don't shadow "dup".
38611 2011-04-28  Eric Blake  <eblake@redhat.com>
38613         getaddrinfo: fix gai_strerror signature
38614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
38615         and work around mingw with UNICODE defined.
38616         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
38617         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
38618         * modules/netdb (Makefile.am): Substitute it.
38619         * lib/netdb.in.h (gai_strerror): Declare replacement.
38620         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
38621         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
38622         the fix.
38624         getsockopt: avoid compiler warning
38625         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
38626         Reported by Matthias Bolte.
38628         tests: drop unused link dependency
38629         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
38630         * modules/dirent-safer-tests (Makefile.am): Likewise.
38631         * modules/fdopendir-tests (Makefile.am): Likewise.
38632         * modules/mkfifoat-tests (Makefile.am): Likewise.
38633         * modules/openat-safer-tests (Makefile.am): Likewise.
38634         * modules/openat-tests (Makefile.am): Likewise.
38635         * modules/readlinkat-tests (Makefile.am): Likewise.
38636         * modules/symlinkat-tests (Makefile.am): Likewise.
38637         * modules/linkat-tests (Makefile.am): Likewise.
38638         (Depends-on): Switch to filenamecat-lgpl.
38639         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
38640         LIBINTL.
38641         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
38642         * tests/test-linkat.c (main): Don't require xalloc.
38644         hash, mgetgroups: drop xalloc dependency
38645         * lib/hash.c (includes): Adjust includes.
38646         * lib/mgetgroups.c (includes): Likewise.
38647         (xgetgroups): Move...
38648         * lib/xgetgroups.c: ...to new file.
38649         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
38650         * modules/xgetgroups: New file, split from...
38651         * modules/mgetgroups: ...here.
38652         (Depends-on): Add xalloc-oversized.
38653         * modules/hash (Depends-on): Likewise.
38654         * modules/hash-tests (Depends-on): Drop xalloc.
38655         (test_hash_LDADD): Drop unused library.
38656         * tests/test-hash.c (main): Break xalloc dependency.
38657         (includes): Drop unused include.
38659         xalloc-oversized: new module
38660         * modules/xalloc-oversized: New module.
38661         * modules/xalloc (Depends-on): Add it.
38662         * lib/xalloc.h (xalloc_oversized): Move...
38663         * lib/xalloc-oversized.h: ...into new file.
38665         utimecmp: drop dependency on xmalloc
38666         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
38667         due to memory pressure.
38668         * modules/utimecmp (Depends-on): Drop xalloc.
38670 2011-04-27  Eric Blake  <eblake@redhat.com>
38672         getcwd: fix mingw bugs
38673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
38674         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
38675         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
38677 2011-04-27  Bruno Haible  <bruno@clisp.org>
38679         mkstemps: Ensure declaration on MacOS X 10.5.
38680         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
38681         * doc/glibc-functions/mkstemps.texi: Document header file problem on
38682         MacOS X.
38684 2011-04-27  Bruno Haible  <bruno@clisp.org>
38686         mkstemp: More documentation.
38687         * doc/posix-functions/mkstemp.texi: Document header file problem on
38688         MacOS X.
38690 2011-04-27  Bruno Haible  <bruno@clisp.org>
38692         mkstemp: Tweak configure message when cross-compiling.
38693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
38694         result as a guess.
38696 2011-04-27  Bruno Haible  <bruno@clisp.org>
38698         clean-temp: Clarify what it does.
38699         * lib/clean-temp.h: Add more comments.
38700         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
38701         module.
38702         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
38703         * doc/glibc-functions/mkstemps.texi: Likewise.
38704         * doc/glibc-functions/mkostemps.texi: Likewise.
38706 2011-04-27  Eric Blake  <eblake@redhat.com>
38708         fchdir: avoid extra chdir and fix test
38709         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
38710         getcwd-lgpl.
38711         * lib/fchdir.c (get_name): Any absolute name will do; it does not
38712         have to be canonical.
38713         (canonicalize_file_name): Drop unused macro.
38714         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
38716         filenamecat-lgpl: fix licence
38717         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
38718         when it was first created.
38720         linkat, renameat: add missing dependency
38721         * modules/linkat (Depends-on): Require getcwd-lgpl.
38722         * modules/renameat (Depends-on): Likewise.
38724         tests: reduce dependencies
38725         * tests/test-linkat.c (main): Use lighter-weight getcwd.
38726         * tests/test-renameat.c (main): Likewise.
38727         * modules/linkat-tests (Depends-on): Relax dependency.
38728         * modules/renameat-tests (Depends-on): Likewise.
38729         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
38730         dependency explicit.
38732         save-cwd: reduce default dependency
38733         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
38734         * lib/save-cwd.c: Update comments.
38735         * NEWS: Document the semantic change.
38737         getcwd: enhance tests
38738         * tests/test-getcwd-lgpl.c: New file, taken from...
38739         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
38740         repeat long path stress tests from m4 probe.
38741         * modules/getcwd-lgpl-tests: New module.
38742         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
38743         * m4/getcwd-abort-bug.m4: Update comment.
38744         * m4/getcwd-path-max.m4: Likewise.
38746         getcwd-lgpl: new module
38747         * modules/getcwd-lgpl: New module.
38748         * lib/getcwd-lgpl.c: New file.
38749         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38750         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38751         * modules/getcwd (configure.ac): Set C witness.
38752         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
38754         getcwd: tweak comments
38755         * m4/getcwd-abort-bug.m4: Fix comments.
38756         * m4/getcwd-path-max.m4: Likewise.
38757         * m4/getcwd.m4: Likewise.
38759 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38760         and Eric Blake  <eblake@redhat.com>
38762         mkstemp: replace if system version uses wrong permissions
38763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
38764         read/write mode bits set in file created by mkstemp.
38765         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
38767 2011-04-27  Eric Blake  <eblake@redhat.com>
38769         passfd: avoid compiler warning
38770         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
38771         Reported by Laine Stump.
38773 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
38775         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
38776         required by the NetBSD (and perhaps other 4.4BSD derived) join.
38778 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38779         and Eric Blake  <eblake@redhat.com>
38781         mkstemp: mention clean-temp module
38782         * lib/mkstemp.c: Add comment.
38783         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
38785 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
38787         inttypes: also provide default values for 32-bit tests
38788         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
38789         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
38791 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38793         strtoumax: remove dependency on strtoimax
38794         This is like the strtoull change of yesterday.
38795         * modules/strtoumax (Files): Add lib/strtoimax.c.
38796         (Depends-on): Remove strtoimax and add verify.
38798         inttypes-incomplete: new module
38799         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
38800         all but the PRI* and SCN* parts of gl_INTTYPES_H.
38801         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
38802         of gl_INTTYPES_H.
38803         (gl_INTTYPES_H): Rewrite in terms of these new macros.
38804         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
38805         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
38806         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
38807         * modules/strtoumax, modules/xstrtol (Depends-on):
38808         Depend on inttypes-incomplete, not inttypes.
38809         * modules/inttypes-incomplete: New module, containing the contents
38810         of the old modules/inttypes module, except that the Files: section
38811         omits m4/inttypes-pri.m4, and the configure.ac section invokes
38812         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
38813         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
38814         (Depends-on): Depend only on inttypes-incomplete.
38815         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
38817         inttypes: omit now-redundant strtoimax and strtoumax work
38818         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
38819         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
38821         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38822         This supports apps that need pointers to strtoimax and strtoumax,
38823         and ports to HP-UX 11.00 64.bit, which has macros that expand to
38824         nonexistent functions.  See
38825         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
38826         et seq.
38827         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
38828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
38829         a macro.
38830         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38832 2011-04-25  Simon Josefsson  <simon@josefsson.org>
38834         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
38836 2011-04-25  Bruno Haible  <bruno@clisp.org>
38838         strtol, strtoul: Mark modules as obsolete.
38839         * modules/strtol (Status, Notice): New sections.
38840         * modules/strtoul (Status, Notice): New sections.
38842 2011-04-25  Bruno Haible  <bruno@clisp.org>
38844         strtod: Remove check for strtod, unless supporting old platforms.
38845         * modules/strtod-obsolete: New file.
38846         * m4/strtod-obsolete.m4: New file.
38847         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
38848         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
38849         * modules/strtod (Depends-on): Add strtod-obsolete.
38850         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38852 2011-04-25  Bruno Haible  <bruno@clisp.org>
38854         strcase: Make module obsolete.
38855         * modules/strcase (Status, Notice): New sections.
38857 2011-04-25  Bruno Haible  <bruno@clisp.org>
38859         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38860         * modules/dup2-obsolete: New file.
38861         * m4/dup2-obsolete.m4: New file.
38862         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38863         gl_FUNC_DUP2_OBSOLETE is not also defined.
38864         * modules/dup2 (Depends-on): Add dup2-obsolete.
38865         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38867 2011-04-25  Bruno Haible  <bruno@clisp.org>
38869         strnlen: Avoid memchr related link error on old obsolete platforms.
38870         * modules/memchr-obsolete: New file.
38871         * m4/memchr-obsolete.m4: New file.
38872         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38873         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38874         * modules/memchr (Depends-on): Add memchr-obsolete.
38875         * modules/strnlen (Depends-on): Likewise.
38876         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38878 2011-04-25  Jim Meyering  <meyering@redhat.com>
38880         maint.mk: makefile_at_at_check extend and clean up
38881         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38882         in addition to */Makefile.am.
38883         Exempt legitimate uses of @VAR@ notation, e.g.,
38884         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38885         Remove obsolete coreutils-specific comment.
38886         Prompted by discussion here:
38887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38889 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38891         strtoul: remove dependency on strtol
38892         This is so that 'configure' need not check for strtol merely because
38893         the application needs strtoul.
38894         * modules/strtoul (Files): Add lib/strtol.c.
38895         (Depends-on): Remove strtol.
38897         strtoull: remove dependency on strtoul
38898         This is like the strtoll change.
38899         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38900         (Depends-on): Remove strtoul.
38902         strtoll: remove dependency on strtol
38903         This is so that 'configure' need not check for strtol merely because
38904         the application needs strtoll.
38905         * modules/strtoll (Files): Add lib/strtol.c.
38906         (Depends-on): Remove strtol.
38908 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38910         inttypes: Move some configure check to module 'imaxdiv'.
38911         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38912         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38913         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38915 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38917         inttypes: Move some configure check to module 'imaxabs'.
38918         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38919         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38920         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38922 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38924         inttypes: Remove configure tests that are not needed since 2009-12-31.
38925         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38926         gl_cv_header_working_inttypes_h.
38928 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38930         * modules/strnlen (Depends-on): Remove memchr.
38931         The strnlen implementation doesn't need the memchr module's fixes; see
38932         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38934         strtol: remove dependency on wchar
38935         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38936         * modules/strtol (Depends-on): Remove wchar.
38938 2011-04-21  Eric Blake  <eblake@redhat.com>
38940         passfd: fix test regression on Linux
38941         * modules/passfd-tests (configure.ac): Correct socketpair check.
38943         passfd: speed up configure and drop unused code
38944         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38945         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38946         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38947         Instead of probing at configure for unix_scm_rights_bsd44_way,
38948         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38949         check to a struct member probe.
38950         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38951         (sendfd, recvfd): Update preprocessor checks.
38952         * modules/passfd (Files): Reflect rename, and drop unused file.
38953         (Depends-on): Drop unused dependency.
38955         passfd: allow compilation on mingw
38956         * modules/sys_socket (Depends-on): Add sys_uio.
38957         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38958         iovec and a minimal struct msghdr.
38959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38960         * tests/test-sys_socket.c (main): Enhance test.
38961         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38962         guaranteed to provide what we need.
38963         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38964         * modules/passfd-tests (Depends-on): Add sys_wait.
38965         * tests/test-passfd.c (main): Skip test on mingw, for now.
38966         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38967         partial 'struct msghdr' implementation.
38969         sys_uio: new module
38970         * modules/sys_uio: New module.
38971         * modules/sys_uio-tests: Likewise.
38972         * lib/sys_uio.in.h: New file.
38973         * m4/sys_uio_h.m4: Likewise.
38974         * tests/test-sys_uio.c: Likewise.
38975         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38976         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38978 2011-04-20  Jim Meyering  <meyering@redhat.com>
38980         useless-if-before-free: avoid false-positive
38981         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38982         disjunct so that it too requires a terminating ";".  Without that,
38983         this script would identify as useless one statement from gcc that
38984         was not:
38985           if (aligned_ptr)
38986             free (((void **) aligned_ptr) [-1]);
38988 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38990         doc: update users.txt.
38991         * users.txt: Add barcode.
38993 2011-04-19  Bruno Haible  <bruno@clisp.org>
38995         ioctl: Remove link dependency on native Windows.
38996         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38997         (gl_close_fn, gl_ioctl_fn): New types.
38998         (struct fd_hook): Renamed from struct close_hook. Change type of
38999         private_close_fn field. Add private_ioctl_fn field.
39000         (close_hook_fn): Add parameter for primary close method.
39001         (execute_close_hooks, execute_all_close_hooks): Likewise.
39002         (ioctl_hook_fn): New type.
39003         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
39004         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
39005         argument.
39006         (unregister_fd_hook): Renamed from unregister_close_hook.
39007         * lib/fd-hook.c: Renamed from lib/close-hook.c.
39008         Don't include <unistd.h>.
39009         (close): Remove undef.
39010         (anchor): Update.
39011         (execute_close_hooks): Add argument for primary close method.
39012         (execute_all_close_hooks): Likewise.
39013         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
39014         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
39015         argument. Allow each argument to be NULL.
39016         (unregister_fd_hook): Renamed from unregister_close_hook.
39017         * lib/close.c (rpl_close): Pass 'close' function pointer to
39018         execute_all_close_hooks.
39019         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
39020         (primary_ioctl): New function.
39021         (ioctl): Don't call ioctlsocket here. Instead, call
39022         execute_all_ioctl_hooks.
39023         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
39024         close method.
39025         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
39026         (fd_sockets_hook): Renamed from close_sockets_hook.
39027         (gl_sockets_startup, gl_sockets_cleanup): Update.
39028         * modules/fd-hook: Renamed from modules/close-hook. Update.
39029         * modules/close (Depends-on): Add fd-hook, remove close-hook.
39030         * modules/sockets (Depends-on): Likewise.
39031         * modules/ioctl (Depends-on): Add fd-hook.
39032         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
39033         GNULIB_SOCKET.
39035 2011-04-19  Bruno Haible  <bruno@clisp.org>
39037         Move the support of O_NONBLOCK in open() to the 'open' module.
39038         * modules/nonblocking (Depends-on): Remove 'open'.
39039         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
39040         gl_cv_have_open_O_NONBLOCK.
39041         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
39042         O_NONBLOCK support.
39043         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
39045 2011-04-17  Bruno Haible  <bruno@clisp.org>
39047         pipe2: Simplify code.
39048         * lib/pipe2.c (pipe2): Reduce code duplication.
39050 2011-04-17  Bruno Haible  <bruno@clisp.org>
39052         nonblocking: Add comment.
39053         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
39055 2011-04-17  Bruno Haible  <bruno@clisp.org>
39057         nonblocking: Add tests for sockets.
39058         * tests/test-nonblocking-socket.sh: New file.
39059         * tests/test-nonblocking-socket-main.c: New file.
39060         * tests/test-nonblocking-socket-child.c: New file.
39061         * tests/test-nonblocking-socket.h: New file.
39062         * tests/socket-server.h: New file.
39063         * tests/socket-client.h: New file.
39064         * modules/nonblocking-socket-tests: New file.
39065         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
39067 2011-04-17  Bruno Haible  <bruno@clisp.org>
39069         nonblocking: Add tests for pipes.
39070         * tests/test-nonblocking-pipe.sh: New file.
39071         * tests/test-nonblocking-pipe-main.c: New file.
39072         * tests/test-nonblocking-pipe-child.c: New file.
39073         * tests/test-nonblocking-pipe.h: New file.
39074         * tests/test-nonblocking-writer.h: New file.
39075         * tests/test-nonblocking-reader.h: New file.
39076         * tests/test-nonblocking-misc.h: New file.
39077         * modules/nonblocking-pipe-tests: New file.
39078         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
39080 2011-04-16  Bruno Haible  <bruno@clisp.org>
39082         gettext: Clarify the needed programmer actions.
39083         * modules/gettext (Notice): New field.
39084         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39086 2011-04-16  Bruno Haible  <bruno@clisp.org>
39088         strchrnul: Tweak last commit.
39089         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
39090         bug.
39091         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
39092         as in _GL_FUNCDECL_SYS.
39093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
39094         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
39096 2011-04-15  Eric Blake  <eblake@redhat.com>
39098         strchrnul: work around cygwin bug
39099         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
39100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
39101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
39102         * modules/string (Makefile.am): Substitute it.
39103         * lib/string.in.h (strchrnul): Use it.
39105 2011-04-15  Bruno Haible  <bruno@clisp.org>
39107         Don't require lib/stdio-write.c when only module 'stdio' is used.
39108         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
39109         invocation.
39110         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
39112 2011-04-14  Bruno Haible  <bruno@clisp.org>
39114         Support non-blocking pipe I/O in read() on native Windows.
39115         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
39116         (read): New declaration.
39117         * lib/read.c: New file.
39118         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
39119         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
39120         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
39121         vscanf): New declarations.
39122         * lib/stdio-read.c: New file.
39123         * m4/read.m4: New file.
39124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
39125         REPLACE_READ.
39126         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
39127         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39128         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
39129         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
39130         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
39131         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39132         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
39133         * modules/read: New file.
39134         * modules/nonblocking (Files): Add lib/stdio-read.c.
39135         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
39136         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
39137         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39138         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
39139         * modules/pread (Depends-on): Add read.
39140         * modules/safe-read (Depends-on): Likewise.
39141         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
39142         gets, scanf, vfscanf, vscanf): Verify signatures.
39143         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
39144         problem with non-blocking pipes.
39145         * doc/posix-functions/fgetc.texi: Likewise.
39146         * doc/posix-functions/fgets.texi: Likewise.
39147         * doc/posix-functions/fread.texi: Likewise.
39148         * doc/posix-functions/fscanf.texi: Likewise.
39149         * doc/posix-functions/getc.texi: Likewise.
39150         * doc/posix-functions/getchar.texi: Likewise.
39151         * doc/posix-functions/gets.texi: Likewise.
39152         * doc/posix-functions/scanf.texi: Likewise.
39153         * doc/posix-functions/vfscanf.texi: Likewise.
39154         * doc/posix-functions/vscanf.texi: Likewise.
39156 2011-04-14  Bruno Haible  <bruno@clisp.org>
39158         Support non-blocking pipe I/O in write() on native Windows.
39159         * lib/write.c (rpl_write): Split a write request that failed merely
39160         because the byte count was larger than the pipe buffer's size.
39161         * doc/posix-functions/write.texi: Mention the problem with large byte
39162         counts.
39164 2011-04-14  Bruno Haible  <bruno@clisp.org>
39166         wchar: Ensure that wchar_t gets defined on uClibc.
39167         * lib/wchar.in.h: On uClibc, include <stddef.h>.
39168         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
39170 2011-04-13  Bruno Haible  <bruno@clisp.org>
39172         safe-write, full-read: Avoid unnecessary compilation units.
39173         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
39174         (Depends-on): Remove safe-read. Add ssize_t.
39175         * modules/full-read (Files): Add lib/full-write.c.
39176         (Depends-on): Add full-write.
39178 2011-04-13  Bruno Haible  <bruno@clisp.org>
39180         Support non-blocking pipe I/O and SIGPIPE in pwrite().
39181         * modules/pwrite (Depends-on): Add 'write'.
39183 2011-04-13  Bruno Haible  <bruno@clisp.org>
39185         Support non-blocking pipe I/O in write() on native Windows.
39186         * lib/unistd.in.h (write): Enable replacement also if
39187         GNULIB_UNISTD_H_NONBLOCKING is 1.
39188         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
39189         (rpl_write): When failing to write on a non-blocking pipe, change
39190         errno from ENOSPC to EAGAIN.
39191         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
39192         putchar, puts, vfprintf, vprintf): Enable replacement also if
39193         GNULIB_STDIO_H_NONBLOCKING is 1.
39194         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
39195         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
39196         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
39197         CALL_WITH_SIGPIPE_EMULATION.
39198         (CALL_WITH_SIGPIPE_EMULATION): Use them.
39199         * m4/nonblocking.m4: New file.
39200         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
39201         for non-blocking I/O support.
39202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39203         GNULIB_UNISTD_H_NONBLOCKING.
39204         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
39205         required for non-blocking I/O support.
39206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
39207         * modules/nonblocking (Files): Add m4/nonblocking.m4,
39208         lib/stdio-write.c, m4/asm-underscore.m4.
39209         (Depends-on): Add stdio, unistd.
39210         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
39211         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
39212         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
39213         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
39214         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
39215         problem with non-blocking pipes.
39216         * doc/posix-functions/fputc.texi: Likewise.
39217         * doc/posix-functions/fputs.texi: Likewise.
39218         * doc/posix-functions/fwrite.texi: Likewise.
39219         * doc/posix-functions/printf.texi: Likewise.
39220         * doc/posix-functions/putc.texi: Likewise.
39221         * doc/posix-functions/putchar.texi: Likewise.
39222         * doc/posix-functions/puts.texi: Likewise.
39223         * doc/posix-functions/vfprintf.texi: Likewise.
39224         * doc/posix-functions/vprintf.texi: Likewise.
39225         * doc/posix-functions/write.texi: Likewise.
39227 2011-04-10  Jim Meyering  <meyering@redhat.com>
39229         maint.mk: prohibit doubled words
39230         Detect them also when they're separated by a newline.
39231         There are 3 ways to customize it:
39232           - disable the test on a per file basis, as usual with rules using
39233             $(VC_LIST_EXCEPT)
39234           - replace the default doubled-word-selecting regexp (affects all files)
39235           - ignore a particular file-vs-doubled-word match
39236         I nearly used that last one to ignore the "is is" match in
39237         coreutils' NEWS file, since the text was "ls -is is ..."
39238         To do that, I would have added this line to cfg.mk:
39239           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
39240         but it would have ignored any "is is" match in NEWS.
39241         Low probability, but still...
39242         Instead, I changed the text, slightly:
39243           -  ls -is is now consistent with ls -lis in ignoring values returned
39244           +  "ls -is" is now consistent with ls -lis in ignoring values returned
39245         * top/maint.mk (prohibit_double_word_RE_): Provide default.
39246         (prohibit_doubled_word_): Define.
39247         (sc_prohibit_doubled_word): New rule.
39248         (sc_prohibit_the_the): Remove.  Subsumed by the above.
39250 2011-04-10  Jim Meyering  <meyering@redhat.com>
39252         maint: fix doubled-word typo in comment
39253         * m4/gethostname.m4: s/is is/it is/
39254         * m4/getdomainname.m4: Likewise.
39256 2011-04-10  Jim Meyering  <meyering@redhat.com>
39258         maint: remove doubled word: s/it it/it/
39259         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
39261 2011-04-10  Jim Meyering  <meyering@redhat.com>
39263         maint.mk: remove useless semicolon and backslash
39264         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
39265         semicolon and backslash.
39267 2011-04-10  Bruno Haible  <bruno@clisp.org>
39269         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
39270         * modules/stdint-tests (Depends-on): Add wchar.
39272 2011-04-10  Jim Meyering  <meyering@redhat.com>
39274         maint: remove doubled words in comments, e.g., s/a a/a/
39275         * lib/strptime.c (day_of_the_week): s/the the/the/
39276         * tests/test-chown.h (test_chown): s/a a/a/
39278         test-chown.h: correct a cast
39279         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
39280         when the destination is a stat.st_gid.
39282 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
39284         getaddrinfo: Fix test for sa_len member.
39285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
39286         include <sys/types.h> before <sys/socket.h>.
39288 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
39290         maint: change "can not" to "cannot"
39291         * doc/posix-functions/iconv.texi (iconv): This one crossed line
39292         boundaries.
39294 2011-04-09  Jim Meyering  <meyering@redhat.com>
39296         maint: change "a a" to "a"
39297         * tests/test-lchown.h (test_lchown): s/a a/a/
39299         maint.mk: prohibit \<the the\>
39300         * top/maint.mk (sc_prohibit_the_the): New rule.
39302         maint: fix "the the" in comment
39303         * lib/count-one-bits.h: s/the the/the/
39305         maint: change "can not" to "cannot"
39306         But do not change the occurrences in maintain.texi or in
39307         build-aux/po/Makefile.in.in, which I presume comes from gettext.
39308         * doc/gnulib-tool.texi: s/can not/cannot/
39309         * doc/posix-functions/accept.texi (accept): Likewise.
39310         * doc/posix-functions/socket.texi (socket): Likewise.
39311         * lib/mbrtowc.c: Likewise.
39313         maint.mk: prohibit use of "can not"
39314         * top/maint.mk (sc_prohibit_can_not): New rule.
39315         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
39317 2011-04-09  Bruno Haible  <bruno@clisp.org>
39319         careadlinkat: Guard against misuse of careadlinkatcwd.
39320         * lib/careadlinkat.c: Include <stdlib.h>.
39321         (careadlinkatcwd): Check that the fd argument is as expected.
39323 2011-04-09  Bruno Haible  <bruno@clisp.org>
39325         careadlinkat: Use common coding style.
39326         * lib/careadlinkat.c: Move gnulib includes after system includes.
39328 2011-04-09  Bruno Haible  <bruno@clisp.org>
39330         careadlinkat: Clarify specification.
39331         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
39332         (careadlinkatcwd): Add comment.
39333         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
39335 2011-04-09  Bruno Haible  <bruno@clisp.org>
39337         areadlinkat: Avoid link error on many platforms.
39338         * modules/areadlinkat (Depends-on): Add areadlink.
39340 2011-04-09  Bruno Haible  <bruno@clisp.org>
39342         allocator, careadlinkat: Fix double-inclusion guard.
39343         * lib/allocator.h: Fix double-inclusion guard.
39344         * lib/careadlinkat.h: Likewise.
39346 2011-04-09  Bruno Haible  <bruno@clisp.org>
39348         relocatable-prog-wrapper: Update after module 'areadlink' changed.
39349         * lib/relocwrapper.c: Update dependencies hierarchy.
39350         * build-aux/install-reloc: Update list of files to be compiled.
39351         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
39352         lib/allocator.[hc].
39354 2011-04-08  Eric Blake  <eblake@redhat.com>
39356         strftime: silence gnulib-tool warning
39357         * modules/strftime-tests (Depends-on): Drop automatic dependency.
39359 2011-04-08  Bruno Haible  <bruno@clisp.org>
39361         verify: Fix syntax error with GCC 4.6 in C++ mode.
39362         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
39363         (HAVE_STATIC_ASSERT): New macro.
39364         (verify_true, verify): Use 'static_assert' if it is supported and
39365         '_Static_assert' is not supported.
39367 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
39369         allocator: New module.
39370         * modules/allocator, lib/allocator.c: New files.
39371         * lib/allocator.h (stdlib_allocator): New decl.
39372         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
39373         Remove.  Do not include <stdlib.h>.
39374         (careadlinkat): Use stdlib_allocator instead of rolling our own.
39375         * modules/careadlinkat (Files): Remove lib/allocator.h.
39376         (Depends-on): Add allocator.
39378         stdlib: let modules use system malloc, realloc
39379         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
39380         if !_GL_USE_STDLIB_ALLOC.
39381         (malloc, realloc): Limit this change to a smaller scope.
39383         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
39384         (malloc, realloc): Don't #undef; no longer needed.
39385         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39386         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39387         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39388         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39389         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39390         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39391         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39392         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39394         careadlinkat: rename members to avoid problem
39395         * lib/allocator.h (struct allocator): Rename members from
39396         malloc/realloc to allocate/reallocate, to avoid problems if malloc
39397         and realloc are #define'd.  Reported by Eric Blake in
39398         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
39399         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
39401 2011-04-08  Eric Blake  <eblake@redhat.com>
39403         nonblocking: reduce dependency
39404         * tests/test-nonblocking.c: Only test sockets when in use.
39405         * modules/nonblocking-tests (Depends-on): Drop socket.
39406         (Makefile.am): Link even if sockets are not present.
39407         * modules/pipe2-tests (Makefile.am): Likewise.
39408         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
39410         pipe2: fix O_NONBLOCK support on mingw
39411         * modules/pipe2 (Depends-on): Add nonblocking.
39412         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
39413         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
39414         * tests/test-nonblocking.c (main): Likewise.
39415         * modules/pipe2-tests (Makefile.am): Avoid link failure.
39417         fcntl-h: fix O_ACCMODE on cygwin
39418         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
39419         * lib/fcntl.in.h (O_ACCMODE): Fix it.
39421         pipe-filter: drop O_NONBLOCK workarounds
39422         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
39423         * modules/pipe-filter-ii (Depends-on): Likewise.
39424         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
39426         nonblocking: provide O_NONBLOCK for mingw
39427         * modules/nonblocking (Depends-on): Add open.
39428         (configure.ac): Set new witness macro.
39429         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
39430         * modules/fcntl-h (Makefile.am): Substitute it.
39431         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
39432         nonblocking module is in use.
39433         * lib/nonblocking.c: Adjust portability test.
39434         * lib/open.c (open): Don't let native open see gnulib flag.
39435         * tests/test-fcntl-h.c (main): Enhance test.
39436         * tests/test-open.h (test_open): Likewise.
39437         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
39439         careadlinkat: fix compilation error on mingw
39440         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
39441         within struct allocator.
39443 2011-04-06  Eric Blake  <eblake@redhat.com>
39445         binary-io: relicense under LGPLv2+
39446         * modules/binary-io (License): Relax to LGPLv2+.
39447         Requested for libvirt, and required by pipe2.
39449 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
39451         verify: use _Static_assert if available
39452         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
39453         (verify_true, verify): Use it if available.  This generates better
39454         diagnostics with GCC 4.6.0 and later.
39456 2011-04-05  Bruno Haible  <bruno@clisp.org>
39458         Remove leftover generated .h files after config.status changed.
39460         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
39461         GL_GENERATE_ALLOCA_H.
39462         * modules/alloca-opt (Makefile.am): Remove alloca.h if
39463         GL_GENERATE_ALLOCA_H evaluates to false.
39465         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
39466         GL_GENERATE_ARGZ_H.
39467         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
39468         evaluates to false.
39470         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
39471         GL_GENERATE_BYTESWAP_H.
39472         * modules/byteswap (Makefile.am): Remove byteswap.h if
39473         GL_GENERATE_BYTESWAP_H evaluates to false.
39475         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
39476         GL_GENERATE_ERRNO_H.
39477         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
39478         evaluates to false.
39480         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
39481         GL_GENERATE_FLOAT_H.
39482         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
39483         evaluates to false.
39485         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
39486         GL_GENERATE_FNMATCH_H.
39487         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
39488         GL_GENERATE_FNMATCH_H evaluates to false.
39490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
39491         GL_GENERATE_GLOB_H.
39492         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
39493         evaluates to false.
39495         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
39496         automake conditional GL_GENERATE_ICONV_H.
39497         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
39498         evaluates to false.
39500         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
39501         GL_GENERATE_NETINET_IN_H.
39502         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
39503         GL_GENERATE_NETINET_IN_H evaluates to false.
39505         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
39506         conditional GL_GENERATE_PTHREAD_H.
39507         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
39508         * modules/pthread (Makefile.am): Remove pthread.h if
39509         GL_GENERATE_PTHREAD_H evaluates to false.
39511         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
39512         GL_GENERATE_SCHED_H.
39513         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
39514         evaluates to false.
39516         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
39517         conditional GL_GENERATE_SELINUX_CONTEXT_H.
39518         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
39519         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
39521         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
39522         GL_GENERATE_STDARG_H.
39523         * modules/stdarg (Makefile.am): Remove stdarg.h if
39524         GL_GENERATE_STDARG_H evaluates to false.
39526         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
39527         GL_GENERATE_STDBOOL_H.
39528         * modules/stdbool (Makefile.am): Remove stdbool.h if
39529         GL_GENERATE_STDBOOL_H evaluates to false.
39531         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
39532         conditional GL_GENERATE_STDDEF_H.
39533         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
39534         * modules/stddef (Makefile.am): Remove stddef.h if
39535         GL_GENERATE_STDDEF_H evaluates to false.
39537         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
39538         GL_GENERATE_STDINT_H.
39539         * modules/stdint (Makefile.am): Remove stdint.h if
39540         GL_GENERATE_STDINT_H evaluates to false.
39542         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
39543         GL_GENERATE_SYSEXITS_H.
39544         * modules/sysexits (Makefile.am): Remove sysexits.h if
39545         GL_GENERATE_SYSEXITS_H evaluates to false.
39547         Reported by Karl Berry and Ralf Wildenhues.
39549 2011-04-05  Bruno Haible  <bruno@clisp.org>
39551         Ensure to rebuild generated .h files when config.status has changed.
39552         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
39553         config.status.
39554         * modules/ctype (Makefile.am): Likewise.
39555         * modules/dirent (Makefile.am): Likewise.
39556         * modules/errno (Makefile.am): Likewise.
39557         * modules/fcntl-h (Makefile.am): Likewise.
39558         * modules/float (Makefile.am): Likewise.
39559         * modules/getopt-posix (Makefile.am): Likewise.
39560         * modules/glob (Makefile.am): Likewise.
39561         * modules/iconv-h (Makefile.am): Likewise.
39562         * modules/inttypes (Makefile.am): Likewise.
39563         * modules/langinfo (Makefile.am): Likewise.
39564         * modules/locale (Makefile.am): Likewise.
39565         * modules/math (Makefile.am): Likewise.
39566         * modules/netdb (Makefile.am): Likewise.
39567         * modules/netinet_in (Makefile.am): Likewise.
39568         * modules/poll-h (Makefile.am): Likewise.
39569         * modules/pthread (Makefile.am): Likewise.
39570         * modules/pty (Makefile.am): Likewise.
39571         * modules/sched (Makefile.am): Likewise.
39572         * modules/search (Makefile.am): Likewise.
39573         * modules/selinux-h (Makefile.am): Likewise.
39574         * modules/signal (Makefile.am): Likewise.
39575         * modules/spawn (Makefile.am): Likewise.
39576         * modules/stdarg (Makefile.am): Likewise.
39577         * modules/stdbool (Makefile.am): Likewise.
39578         * modules/stddef (Makefile.am): Likewise.
39579         * modules/stdint (Makefile.am): Likewise.
39580         * modules/stdio (Makefile.am): Likewise.
39581         * modules/stdlib (Makefile.am): Likewise.
39582         * modules/string (Makefile.am): Likewise.
39583         * modules/strings (Makefile.am): Likewise.
39584         * modules/sys_file (Makefile.am): Likewise.
39585         * modules/sys_ioctl (Makefile.am): Likewise.
39586         * modules/sys_select (Makefile.am): Likewise.
39587         * modules/sys_socket (Makefile.am): Likewise.
39588         * modules/sys_stat (Makefile.am): Likewise.
39589         * modules/sys_time (Makefile.am): Likewise.
39590         * modules/sys_times (Makefile.am): Likewise.
39591         * modules/sys_utsname (Makefile.am): Likewise.
39592         * modules/sys_wait (Makefile.am): Likewise.
39593         * modules/sysexits (Makefile.am): Likewise.
39594         * modules/termios (Makefile.am): Likewise.
39595         * modules/time (Makefile.am): Likewise.
39596         * modules/unistd (Makefile.am): Likewise.
39597         * modules/wchar (Makefile.am): Likewise.
39598         * modules/wctype-h (Makefile.am): Likewise.
39599         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
39601 2011-04-05  Bruno Haible  <bruno@clisp.org>
39603         pipe2: Relicense under LGPLv2+.
39604         * modules/pipe2 (License): Change to LGPLv2+.
39605         Requested by Eric Blake, for libvirt.
39607 2011-04-05  Bruce Korb  <bkorb@gnu.org>
39609         bootstrap: compute gnulib_extra_files after updating build_aux
39610         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
39611         change build_aux or also supply gnulib_extra_files.  Handle correctly.
39613 2011-04-05  Eric Blake  <eblake@redhat.com>
39615         bootstrap: preserve git whitelist item sorting
39616         * build-aux/bootstrap (sort_patterns): New function.
39617         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
39619 2011-04-05  Simon Josefsson  <simon@josefsson.org>
39621         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
39622         sc_space_tab check.
39624 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
39626         areadlink, areadlinkat: rewrite in terms of careadlinkat
39627         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
39628         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
39629         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
39630         (malloc, realloc): Remove #undefs.
39631         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
39632         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
39633         readlink, ssize_t, stdint, unistd.
39634         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
39635         areadlink, stdint.
39637         careadlinkat: new module
39638         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
39639         * modules/careadlinkat: New files, written by me with
39640         a review and feedback from Ben Pfaff in
39641         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
39643 2011-04-01  Bruno Haible  <bruno@clisp.org>
39645         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
39646         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
39647         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
39648         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
39649         Reported by Bruce Korb <bruce.korb@gmail.com>.
39651 2011-04-01  Bruno Haible  <bruno@clisp.org>
39653         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
39654         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
39655         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
39656         * modules/wcpcpy (Depends-on): Add extensions.
39657         * modules/wcpncpy (Depends-on): Likewise.
39658         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
39659         systems.
39660         * doc/posix-functions/wcpncpy.texi: Likewise.
39661         * doc/posix-functions/wcwidth.texi: Likewise.
39663 2011-03-31  Eric Blake  <eblake@redhat.com>
39665         nonblocking: fix mingw test failures
39666         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
39667         non-blocking flag on regular file.
39668         (get_nonblocking_flag): Set errno on invalid fd.
39669         * tests/test-nonblocking.c (main): Avoid test failure on
39670         directories if fchdir is not active.
39671         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
39673 2011-03-31  Bruno Haible  <bruno@clisp.org>
39675         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
39676         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
39677         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
39678         Reported by Simon Josefsson <simon@josefsson.org>.
39680 2011-03-31  Bruno Haible  <bruno@clisp.org>
39681         and Eric Blake  <eblake@redhat.com>
39683         nonblocking: new module
39684         * modules/nonblocking: New module.
39685         * modules/nonblocking-tests: Likewise.
39686         * lib/nonblocking.h: New file.
39687         * lib/nonblocking.c: Likewise.
39688         * tests/test-nonblocking.c: New test.
39689         * lib/ioctl.c (ioctl) [mingw]: Update comment.
39691 2011-03-30  Bruno Haible  <bruno@clisp.org>
39693         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
39694         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
39695         instead of 'printf' format for GCC >= 4.4.
39696         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
39697         (fprintf, printf, vfprintf, vprintf): Declare with
39698         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
39699         the system's vfprintf() function.
39700         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
39702 2011-03-30  Eric Blake  <eblake@redhat.com>
39704         passfd: fix scoping bug
39705         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
39706         before sendmsg/recvmsg.
39708         passfd: standardize coding conventions
39709         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
39710         can be learned at compile time.
39711         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
39712         ifdefs.
39713         (sendfd, recvfd): Follow gnulib code conventions.
39715         passfd: fix incorrect sendmsg arguments
39716         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
39717         incorrect msg_controllen value.
39718         * modules/passfd-tests (Depends-on): Check for alarm.
39719         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
39720         Reported by Bastien ROUCARIES.
39722 2011-03-30  Bruno Haible  <bruno@clisp.org>
39724         c-strcasestr: Relicense under LGPLv2+.
39725         * modules/c-strcasestr (License): Change to LGPLv2+.
39726         Requested by Eric Blake, for libvirt.
39728 2011-03-30  Simon Josefsson  <simon@josefsson.org>
39730         * users.txt: Add libidn2.  Fix libtasn1 link.
39732 2011-03-30  Jim Meyering  <meyering@redhat.com>
39734         tests: readlink* ("",... fails with EINVAL on newer kernels
39735         readlink and readlinkat have typically failed with ENOENT for
39736         the invalid, empty file name,  "".  However, with the advent
39737         of linux-2.6.39, they fail with EINVAL.
39738         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
39739         when operating on the empty file name.
39740         * tests/test-readlink.h (test_readlink): Likewise.
39742 2011-03-29  Bruno Haible  <bruno@clisp.org>
39744         Relicense some modules under LGPLv2+, for libidn2.
39745         * modules/array-mergesort (License): Change to LGPLv2+.
39746         * modules/c-strcaseeq (License): Likewise.
39747         * modules/striconveh (License): Likewise.
39748         * modules/striconveha (License): Likewise.
39749         * modules/uniconv/base (License): Likewise.
39750         * modules/uniconv/u8-conv-from-enc (License): Likewise.
39751         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
39752         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
39753         * modules/unictype/base (License): Likewise.
39754         * modules/unictype/bidiclass-of (License): Likewise.
39755         * modules/unictype/category-M (License): Likewise.
39756         * modules/unictype/category-none (License): Likewise.
39757         * modules/unictype/category-of (License): Likewise.
39758         * modules/unictype/category-test (License): Likewise.
39759         * modules/unictype/category-test-withtable (License): Likewise.
39760         * modules/unictype/combining-class (License): Likewise.
39761         * modules/unictype/joiningtype-of (License): Likewise.
39762         * modules/unictype/scripts (License): Likewise.
39763         * modules/uninorm/base (License): Likewise.
39764         * modules/uninorm/canonical-decomposition (License): Likewise.
39765         * modules/uninorm/composition (License): Likewise.
39766         * modules/uninorm/decompose-internal (License): Likewise.
39767         * modules/uninorm/decomposition-table (License): Likewise.
39768         * modules/uninorm/nfc (License): Likewise.
39769         * modules/uninorm/nfd (License): Likewise.
39770         * modules/uninorm/u32-normalize (License): Likewise.
39771         * modules/unistr/base (License): Likewise.
39772         * modules/unistr/u32-cpy (License): Likewise.
39773         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
39774         * modules/unistr/u32-to-u8 (License): Likewise.
39775         * modules/unistr/u32-uctomb (License): Likewise.
39776         * modules/unistr/u8-check (License): Likewise.
39777         * modules/unistr/u8-mblen (License): Likewise.
39778         * modules/unistr/u8-mbtouc (License): Likewise.
39779         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
39780         * modules/unistr/u8-mbtoucr (License): Likewise.
39781         * modules/unistr/u8-prev (License): Likewise.
39782         * modules/unistr/u8-strlen (License): Likewise.
39783         * modules/unistr/u8-to-u32 (License): Likewise.
39784         * modules/unistr/u8-uctomb (License): Likewise.
39785         * modules/unitypes (License): Likewise.
39786         Requested by Simon Josefsson.
39788 2011-03-29  Simon Josefsson  <simon@josefsson.org>
39790         lib-symbol-visibility: Add a notice.
39791         * modules/lib-symbol-visibility (Notice): New field.
39793 2011-03-29  Bruno Haible  <bruno@clisp.org>
39795         getaddrinfo: Doc fix.
39796         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
39797         section "fixed in Gnulib".
39799 2011-03-28  Simon Josefsson  <simon@josefsson.org>
39801         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
39802         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
39804 2011-03-26  Bruno Haible  <bruno@clisp.org>
39806         unictype/property-byname: Reduce the number of load-time relocations.
39807         * lib/unictype/pr_byname.c: Include <stdlib.h>.
39808         (UC_PROPERTY_INDEX_*): New enumeration values.
39809         (uc_property_byname): Convert an index from the lookup table to an
39810         uc_property_t.
39811         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
39812         values.
39814 2011-03-26  Bruno Haible  <bruno@clisp.org>
39816         unictype/property-byname: Allow omitted word separators and aliases.
39817         * lib/unictype/pr_byname.gperf: Add property names without word
39818         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
39819         for 'space'.
39821 2011-03-26  Bruno Haible  <bruno@clisp.org>
39823         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
39824         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
39825         also hyphens to space.
39826         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
39827         without spaces.
39828         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
39830 2011-03-26  Bruno Haible  <bruno@clisp.org>
39832         unictype/joiningtype-byname: Recognize long names as well.
39833         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
39834         a long name.
39835         * lib/unictype/joiningtype_byname.c: Include <string.h>,
39836         unictype/joiningtype_byname.h.
39837         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
39838         * lib/unictype/joiningtype_byname.gperf: New file.
39839         * modules/unictype/joiningtype-byname (Files): Add
39840         lib/unictype/joiningtype_byname.gperf.
39841         (Depends-on): Add gperf.
39842         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
39843         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
39844         long names.
39846         Tests for module 'unictype/joiningtype-longname'.
39847         * modules/unictype/joiningtype-longname-tests: New file.
39848         * tests/unictype/test-joiningtype_longname.c: New file.
39850         New module 'unictype/joiningtype-longname'.
39851         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39852         * lib/unictype/joiningtype_longname.c: New file.
39853         * modules/unictype/joiningtype-longname: New file.
39854         * modules/unictype/joiningtype-all (Depends-on): Add
39855         unictype/joiningtype-longname.
39857 2011-03-26  Bruno Haible  <bruno@clisp.org>
39859         unictype/bidiclass-byname: Recognize long names as well.
39860         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39861         name.
39862         * lib/unictype/bidi_byname.c: Include <string.h>,
39863         unictype/bidi_byname.h.
39864         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39865         * lib/unictype/bidi_byname.gperf: New file.
39866         * modules/unictype/bidiclass-byname (Files): Add
39867         lib/unictype/bidi_byname.gperf.
39868         (Depends-on): Add gperf.
39869         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39870         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39871         long names.
39873         Tests for module 'unictype/bidiclass-longname'.
39874         * modules/unictype/bidiclass-longname-tests: New file.
39875         * tests/unictype/test-bidi_longname.c: New file.
39877         New module 'unictype/bidiclass-longname'.
39878         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39879         * lib/unictype/bidi_longname.c: New file.
39880         * modules/unictype/bidiclass-longname: New file.
39881         * modules/unictype/bidiclass-all (Depends-on): Add
39882         unictype/bidiclass-longname.
39884 2011-03-26  Bruno Haible  <bruno@clisp.org>
39886         unictype/bidi*: Rename modules.
39887         * modules/unictype/bidiclass-all: Renamed from
39888         modules/unictype/bidicategory-all.
39889         * modules/unictype/bidiclass-name: Renamed from
39890         modules/unictype/bidiclass-name.
39891         (Description): Update.
39892         * modules/unictype/bidiclass-name-tests: Renamed from
39893         modules/unictype/bidicategory-name-tests.
39894         * modules/unictype/bidiclass-byname: Renamed from
39895         modules/unictype/bidicategory-byname.
39896         (Description): Update.
39897         * modules/unictype/bidiclass-byname-tests: Renamed from
39898         modules/unictype/bidicategory-byname-tests.
39899         * modules/unictype/bidiclass-of: Renamed from
39900         modules/unictype/bidicategory-of.
39901         (Description): Update.
39902         * modules/unictype/bidiclass-of-tests: Renamed from
39903         modules/unictype/bidicategory-of-tests.
39904         * modules/unictype/bidiclass-test: Renamed from
39905         modules/unictype/bidicategory-test.
39906         (Description): Update.
39907         * modules/unictype/bidiclass-test-tests: Renamed from
39908         modules/unictype/bidicategory-test-tests.
39909         * modules/unictype/bidicategory-all: New file, a simple redirection.
39910         * modules/unictype/bidicategory-name: Likewise.
39911         * modules/unictype/bidicategory-byname: Likewise.
39912         * modules/unictype/bidicategory-of: Likewise.
39913         * modules/unictype/bidicategory-test: Likewise.
39914         * modules/unictype/property-bidi-* (Dependencies): Update.
39915         * lib/unictype/bidi_*.c: Update comment.
39917 2011-03-26  Bruno Haible  <bruno@clisp.org>
39919         unictype/bidi*: Rename functions, part 2.
39920         * modules/unictype/bidicategory-name (configure.ac): Update required
39921         libunistring version.
39922         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39924 2011-03-25  Bruno Haible  <bruno@clisp.org>
39926         New module 'unictype/combining-class-all'.
39927         * modules/unictype/combining-class-all: New file.
39929         Tests for module 'unictype/combining-class-byname'.
39930         * modules/unictype/combining-class-byname-tests: New file.
39931         * tests/unictype/test-combiningclass_byname.c: New file.
39933         New module 'unictype/combining-class-byname'.
39934         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39935         * lib/unictype/combiningclass_byname.c: New file.
39936         * lib/unictype/combiningclass_byname.gperf: New file.
39937         * modules/unictype/combining-class-byname: New file.
39939         Tests for module 'unictype/combining-class-longname'.
39940         * modules/unictype/combining-class-longname-tests: New file.
39941         * tests/unictype/test-combiningclass_longname.c: New file.
39943         New module 'unictype/combining-class-longname'.
39944         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39945         * lib/unictype/combiningclass_longname.c: New file.
39946         * modules/unictype/combining-class-longname: New file.
39948         Tests for module 'unictype/combining-class-name'.
39949         * modules/unictype/combining-class-name-tests: New file.
39950         * tests/unictype/test-combiningclass_name.c: New file.
39952         New module 'unictype/combining-class-name'.
39953         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39954         * lib/unictype/combiningclass_name.c: New file.
39955         * modules/unictype/combining-class-name: New file.
39957 2011-03-25  Bruno Haible  <bruno@clisp.org>
39959         unictype/combining-class: Rename source files.
39960         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39961         of unictype/combining.h.
39962         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39963         Update.
39964         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39965         * modules/unictype/combining-class (Description): Fix.
39966         (Files, Makefile.am): Update.
39967         * tests/unictype/test-combiningclass.c: Renamed from
39968         tests/unictype/test-combining.c.
39969         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39971 2011-03-25  Bruno Haible  <bruno@clisp.org>
39973         unictype: Update list of canonical combining classes.
39974         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39976 2011-03-25  Bruno Haible  <bruno@clisp.org>
39978         unictype/category-byname: Recognize long names as well.
39979         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39980         a long name.
39981         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39982         unictype/categ_byname.h.
39983         (UC_CATEGORY_INDEX_*): New enumeration values.
39984         (uc_general_category_byname): Use uc_general_category_lookup and
39985         convert from index to value.
39986         * lib/unictype/categ_byname.gperf: New file.
39987         * modules/unictype/category-byname (Files): Add
39988         lib/unictype/categ_byname.gperf.
39989         (Depends-on): Add gperf.
39990         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39991         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39992         long names.
39994         Tests for module 'unictype/category-longname'.
39995         * modules/unictype/category-longname-tests: New file.
39996         * tests/unictype/test-categ_longname.c: New file.
39998         New module 'unictype/category-longname'.
39999         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
40000         * lib/unictype/categ_longname.c: New file.
40001         * modules/unictype/category-longname: New file.
40002         * modules/unictype/category-all (Depends-on): Add it.
40004 2011-03-25  Bruno Haible  <bruno@clisp.org>
40006         Tests for module 'unictype/category-LC'.
40007         * modules/unictype/category-LC-tests: New file.
40008         * tests/unictype/test-categ_LC.c: New file, automatically generated.
40010         New module 'unictype/category-LC'.
40011         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
40012         (UC_CATEGORY_LC): New declaration.
40013         (UC_CASED_LETTER): New macro.
40014         * lib/gen-uni-tables.c (is_category_LC): New function.
40015         (output_categories): Also handle category LC.
40016         (UC_CATEGORY_MASK_LC): New enumeration value.
40017         (general_category_byname): Also handle category LC.
40018         * lib/unictype/categ_LC.c: New file.
40019         * lib/unictype/categ_LC.h: New file, automatically generated.
40020         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
40021         category LC.
40022         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
40023         * modules/unictype/category-LC: New file.
40024         * modules/unictype/category-byname (Depends-on): Add
40025         unictype/category-LC.
40026         * modules/unictype/category-all (Depends-on): Likewise.
40028 2011-03-25  Eric Blake  <eblake@redhat.com>
40030         xmalloc: revert yesterday's regression
40031         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
40032         realloc's underlying behavior (allowing allocation of zero-size
40033         objects, especially if malloc-gnu is also in use).
40035 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
40037         maint.mk: add missing version to VC-tag
40038         * top/maint.mk: git tag was missing actual tag name; add it.
40040         valgrind: do leak checking, and exit with code 1 on error (not 0)
40041         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
40042         to VALGRIND.
40044 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
40046         posix-modules: say what it does.
40047         * posix-modules: Add a line to the --help output saying what it does.
40049 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
40051         xmalloc: Do not leak if underlying realloc is C99 compatible.
40052         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
40053         This avoids a leak on C99-based systems.  See
40054         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
40056 2011-03-24  Eric Blake  <eblake@redhat.com>
40058         realloc: document portability problem
40059         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
40060         passing 0 size to realloc.
40062 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
40064         doc: update users.txt
40065         * users.txt: Add cvsps, tmpwatch
40067 2011-03-23  Matt Rice  <ratmice@gmail.com>
40069         doc: update users.txt
40070         * users.txt: Add gdb.
40072 2011-03-23  Jim Meyering  <meyering@redhat.com>
40074         doc: update users.txt
40075         Looking through matches up to the following URL (there are still
40076         several more pages), I found several projects that use gnulib:
40077         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
40078         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
40079         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
40081 2011-03-22  Bruno Haible  <bruno@clisp.org>
40083         unictype/bidi*: Rename functions.
40084         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
40085         uc_bidi_class, uc_is_bidi_class): New declarations.
40086         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
40087         uc_bidi_category_byname.
40088         (uc_bidi_category_byname): New function.
40089         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
40090         u_bidi_category_name.
40091         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
40092         (uc_bidi_category_name): New function.
40093         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
40094         uc_bidi_category.
40095         (uc_bidi_category): New function.
40096         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
40097         uc_is_bidi_category. Invoke uc_bidi_class.
40098         (uc_is_bidi_category): New function.
40099         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
40100         instead of uc_bidi_category_byname.
40101         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
40102         instead of uc_bidi_category_name.
40103         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
40104         uc_bidi_category.
40105         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
40106         instead of uc_is_bidi_category.
40108 2011-03-21  Bruno Haible  <bruno@clisp.org>
40110         New module 'unictype/joininggroup-all'.
40111         * modules/unictype/joininggroup-all: New file.
40113         Tests for module 'unictype/joininggroup-of'.
40114         * modules/unictype/joininggroup-of-tests: New file.
40115         * tests/unictype/test-joininggroup_of.c: New file.
40116         * tests/unictype/test-joininggroup_of.h: New file, automatically
40117         generated by gen-uni-tables.
40119         New module 'unictype/joininggroup-of'.
40120         * modules/unictype/joininggroup-of: New file.
40121         * lib/unictype/joininggroup_of.c: New file.
40122         * lib/unictype/joininggroup_of.h: New file, automatically generated by
40123         gen-uni-tables.
40125         Tests for module 'unictype/joininggroup-byname'.
40126         * modules/unictype/joininggroup-byname-tests: New file.
40127         * tests/unictype/test-joininggroup_byname.c: New file.
40129         New module 'unictype/joininggroup-byname'.
40130         * modules/unictype/joininggroup-byname: New file.
40131         * lib/unictype/joininggroup_byname.c: New file.
40132         * lib/unictype/joininggroup_byname.gperf: New file.
40134         Tests for module 'unictype/joininggroup-name'.
40135         * modules/unictype/joininggroup-name-tests: New file.
40136         * tests/unictype/test-joininggroup_name.c: New file.
40138         New module 'unictype/joininggroup-name'.
40139         * modules/unictype/joininggroup-name: New file.
40140         * lib/unictype/joininggroup_name.c: New file.
40141         * lib/unictype/joininggroup_name.h: New file.
40143         New module 'unictype/joiningtype-all'.
40144         * modules/unictype/joiningtype-all: New file.
40146         Tests for module 'unictype/joiningtype-of'.
40147         * modules/unictype/joiningtype-of-tests: New file.
40148         * tests/unictype/test-joiningtype_of.c: New file.
40149         * tests/unictype/test-joiningtype_of.h: New file, automatically
40150         generated by gen-uni-tables.
40152         New module 'unictype/joiningtype-of'.
40153         * modules/unictype/joiningtype-of: New file.
40154         * lib/unictype/joiningtype_of.c: New file.
40155         * lib/unictype/joiningtype_of.h: New file, automatically generated by
40156         gen-uni-tables.
40158         Tests for module 'unictype/joiningtype-byname'.
40159         * modules/unictype/joiningtype-byname-tests: New file.
40160         * tests/unictype/test-joiningtype_byname.c: New file.
40162         New module 'unictype/joiningtype-byname'.
40163         * modules/unictype/joiningtype-byname: New file.
40164         * lib/unictype/joiningtype_byname.c: New file.
40166         Tests for module 'unictype/joiningtype-name'.
40167         * modules/unictype/joiningtype-name-tests: New file.
40168         * tests/unictype/test-joiningtype_name.c: New file.
40170         New module 'unictype/joiningtype-name'.
40171         * modules/unictype/joiningtype-name: New file.
40172         * lib/unictype/joiningtype_name.c: New file.
40174         unictype: Add support for Arabic shaping properties.
40175         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
40176         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
40177         declarations.
40178         (UC_JOINING_GROUP_*): New enumeration values.
40179         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
40180         declarations.
40181         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
40182         (unicode_joining_type): New variable.
40183         (UC_JOINING_GROUP_*): New enumeration values.
40184         (unicode_joining_group): New variable.
40185         (fill_arabicshaping, joining_type_as_c_identifier,
40186         output_joining_type_test, output_joining_type,
40187         joining_group_as_c_identifier, output_joining_group_test,
40188         output_joining_group): New functions.
40189         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
40190         fill_arabicshaping and output_joining_type_test, output_joining_type,
40191         output_joining_group_test, output_joining_group.
40192         Reported by Simon Josefsson.
40194 2011-03-21  Jim Meyering  <meyering@redhat.com>
40196         strftime: fix a bug in yesterday's change
40197         * lib/strftime.c (add): Accommodate width's initial value of -1.
40198         Otherwise, nstrftime would copy uninitialized data into
40199         the result buffer.
40201 2011-03-21  Jim Meyering  <meyering@redhat.com>
40203         tests: add strftime-tests module
40204         * tests/test-strftime.c: New file.
40205         * modules/strftime-tests: New module.
40207 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40209         strftime: don't assume a byte count fits in 'int'
40210         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
40211         found this problem by static analysis, using gcc -Wstrict-overflow
40212         (GCC 4.5.2, x86-64).  This reported an optimization that depended
40213         on an integer overflow having undefined behavior, but it turns out
40214         that the argument is a size, which might not fit in 'int' anyway,
40216 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40218         stdio: don't require ignore_value around fwrite
40220         This patch works around libc bug 11959
40221         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
40222         Without this patch, applications must often write
40223         ignore_value (fwrite (...)) even though the ignore_value is
40224         not helpful here.  It's common to write many objects, using
40225         fwrite/printf/etc., and then use ferror to detect output error.
40227         I considered making this patch optional, but decided against it,
40228         because libc is obviously being inconsistent here: there is no
40229         reason libc should insist that user code must inspect fwrite
40230         return's value without also insisting that it inspect printf's,
40231         putchar's, etc.  If user code wants to have a strict style where
40232         all these functions' values are checked (so that ferror need not
40233         be checked), we could add support for that style in a new gnulib
40234         module, but in the meantime it's better to be consistent and to
40235         support common usage.
40237         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
40238         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
40239         that we are compiling in checking mode, and if not C++, and
40240         if not already wrapping fwrite for some other reason.
40241         (fwrite): #define to rpl_fwrite if the latter is defined.
40243 2011-03-20  Bruno Haible  <bruno@clisp.org>
40245         verror: Fix compilation error introduced on 2011-02-13.
40246         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
40247         instead of __attribute__.
40248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40250 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40251             Bruno Haible  <bruno@clisp.org>
40253         socklen: do not depend on sys_socket
40254         While trying to modify Emacs to use gnulib's socklen module,
40255         I discovered a circular dependency: socklen depends on sys_socket
40256         and vice versa.  Emacs can use socklen, but it does not need
40257         sys_socket because it has its own substitute for sys/socket.h.
40258         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
40259         gl_TYPE_SOCKLEN_T.
40260         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
40261         gl_PREREQ_SYS_H_SOCKET.
40262         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
40263         gl_PREREQ_SYS_H_SOCKET.
40264         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
40265         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
40266         * modules/socklen (Depends-on): Do not depend on sys_socket.
40267         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
40269 2011-03-20  Jim Meyering  <meyering@redhat.com>
40271         maint.mk: sort file names *after* new transformation
40272         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
40273         prefix would have led to an unwarranted failure in GNU parted.
40274         Sort after that transformation.
40276 2011-03-19  Jim Meyering  <meyering@redhat.com>
40278         maint.mk: fix po-file syntax-check rule
40279         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
40280         Patch by Bruno Haible.
40282 2011-03-19  Bruno Haible  <bruno@clisp.org>
40284         socklen: Update comment.
40285         * m4/socklen.m4: Update comment about platforms.
40287 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40288             Bruno Haible  <bruno@clisp.org>
40290         inet_ntop, inet_pton: Simplify.
40291         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
40292         documented to provide socklen_t and we already depend on sys_socket.
40293         * modules/inet_pton (Depends-on): Likewise.
40294         * lib/arpa_inet.in.h: Adjust comment.
40296 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40297             Bruno Haible  <bruno@clisp.org>
40299         netdb: Simplify.
40300         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
40301         documented to provide socklen_t and we already depend on sys_socket.
40302         * lib/netdb.in.h: Adjust comment.
40304 2011-03-19  Bruno Haible  <bruno@clisp.org>
40306         sys_socket, netdb: Document problem with socklen_t.
40307         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
40308         platforms.
40309         * doc/posix-headers/netdb.texi: Likewise.
40311 2011-03-18  Eric Blake  <eblake@redhat.com>
40313         maint.mk: let po check work in VPATH build
40314         * top/maint.mk (po_file): Allow cfg.mk override.
40315         (sc_po_check): Allow VPATH use.
40316         Reported by Jiri Denemark.
40318 2011-03-16  Jim Meyering  <meyering@redhat.com>
40320         maint.mk: allow fine-grained syntax-check exclusion via Make variables
40321         Before, you would have had to create one .x-sc_ file per rule in order
40322         to exempt offending files.  Now, you may instead use a Make variable --
40323         usually defined in cfg.mk -- whose name identifies the affected rule.
40324         * top/maint.mk (_sc_excl): Define.
40325         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
40326         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
40328 2011-03-13  Bruno Haible  <bruno@clisp.org>
40330         ignore-value tests: Avoid warnings.
40331         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
40332         empty for gcc < 3.4.
40334 2011-03-13  Bruno Haible  <bruno@clisp.org>
40336         passfd: Fix link error on Solaris.
40337         * modules/passfd (Description): Correct.
40338         (Depends-on): Add socketlib.
40339         (Link): New section.
40340         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
40342 2011-03-13  Bruno Haible  <bruno@clisp.org>
40344         passfd: Fix link error on AIX 5.2.
40345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
40347 2011-03-13  Bruno Haible  <bruno@clisp.org>
40349         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
40350         * lib/sys_socket.in.h: Include <stddef.h>.
40351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
40352         CMSG_FIRSTHDR. Remove unused variable.
40354 2011-03-13  Bruno Haible  <bruno@clisp.org>
40356         passfd: Fix compilation error on OpenBSD.
40357         * lib/passfd.c: Include <sys/uio.h>.
40359 2011-03-13  Bruno Haible  <bruno@clisp.org>
40361         passfd test: Fix warnings.
40362         * tests/test-passfd.c: Include <sys/wait.h>.
40363         (main): Fix typo.
40365 2011-03-13  Bruno Haible  <bruno@clisp.org>
40367         passfd module, part 4, tweaks.
40368         * tests/test-passfd.c: Reorder includes.
40369         (main): Fix perror and printf calls.
40371 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40373         passfd module, part 4.
40374         * modules/passfd-tests: New file.
40375         * tests/test-passfd.c: New file.
40377 2011-03-13  Jim Meyering  <meyering@redhat.com>
40379         Makefile: rely on GNU make; derive syntax-check rule names
40380         Rather than requiring that each sc_ rule be listed as a dependent
40381         of "check", use features of GNU make to derive the list.
40382         * Makefile (syntax-check-rules): Define.
40383         (check): Depend on the new variable, not the hard-coded list.
40385 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
40386             Bruno Haible  <bruno@clisp.org>
40388         passfd module, part 3.
40389         * lib/passfd.h (recvfd): Add a flags argument.
40390         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
40391         (recvfd): Add a flags argument.
40392         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
40393         exists.
40394         * modules/passfd (Depends-on): Add cloexec.
40395         Suggested by Eric Blake.
40397 2011-03-13  Bruno Haible  <bruno@clisp.org>
40399         passfd module, part 2, tweaks.
40400         * modules/passfd (Files): Reorder.
40401         (Depends-on): Remove errno.
40402         (Include): Remove <sys/socket.h>, <sys/un.h>.
40403         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
40404         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
40405         specification header. Include <sys/socket.h> always. Don't include
40406         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
40407         (sendfd): Clarify that it sets errno when it fails.
40408         (recvfd): Fix specification.
40410 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40412         passfd module, part 2.
40413         * modules/passfd: New file.
40414         * lib/passfd.h: New file.
40415         * lib/passfd.c: New file.
40417 2011-03-12  Bruno Haible  <bruno@clisp.org>
40419         wcswidth, mbswidth: Avoid integer overflow.
40420         * lib/wcswidth.c: Include <limits.h>.
40421         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
40422         * lib/mbswidth.c: Include <limits.h>.
40423         (mbsnwidth): Avoid 'int' overflow.
40424         Reported by Jim Meyering.
40426 2011-03-12  Bruno Haible  <bruno@clisp.org>
40428         futimens, utimensat: Avoid endless recursion on Solaris 10.
40429         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
40430         Solaris.
40431         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
40432         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
40434 2011-03-11  Jim Meyering  <meyering@redhat.com>
40436         maint.mk: relax a regexp to accommodate other formatting styles
40437         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
40438         between "ngettext" and the following "(".
40440 2011-03-11  Pádraig Brady  <P@draigBrady.com>
40442         maint.mk: suppress a false positive warning
40443         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
40444         diagnostics are marked with ngettext.
40446 2011-03-10  Eric Blake  <eblake@redhat.com>
40448         wchar: add explicit dependencies, for Tru64
40449         * modules/mbmemcasecoll (Depends-on): Add wchar.
40450         * modules/mbtowc (Depends-on): Likewise.
40451         * modules/vasnprintf (Depends-on): Likewise.
40452         * modules/unistdio/u-printf-args (Depends-on): Likewise.
40453         * modules/wctomb (Depends-on): Likewise.
40454         Reported by Peter O'Gorman.
40456 2011-03-08  Bruno Haible  <bruno@clisp.org>
40458         passfd module, part 1, tweaks.
40459         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
40460         Improve indentation. Improve AC_MSG_CHECKING messages.
40461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
40462         gl_SOCKET_FAMILIES.
40464 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40466         passfd module, part 1.
40467         * m4/afunix.m4: New file.
40468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
40469         sockets.
40471 2011-03-08  Bruno Haible  <bruno@clisp.org>
40473         regex-quote: New API.
40474         * lib/regex-quote.h: Include <stdbool.h>.
40475         (struct regex_quote_spec): New type.
40476         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40477         New declarations.
40478         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40479         'const struct regex_quote_spec *' argument.
40480         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
40481         (pcre_special): New constant.
40482         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40483         New functions.
40484         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40485         'const struct regex_quote_spec *' argument.
40486         * modules/regex-quote (Depends-on): Add stdbool.
40487         * tests/test-regex-quote.c (check): Update for new API. Add test for
40488         anchored results.
40489         * NEWS: Mention the API change.
40490         Reported by Reuben Thomas and Eric Blake.
40492 2011-03-06  Bruno Haible  <bruno@clisp.org>
40494         regex-quote: Fix creation of POSIX extended regular expressions.
40495         * lib/regex-quote.c (ere_special): Add grouping and alternation
40496         operators.
40498 2011-03-05  Bruno Haible  <bruno@clisp.org>
40500         doc: Improve doc regarding autopoint vs. gnulib.
40501         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
40502         disable autopoint while running autoreconf.
40503         Suggested by Ralf Wildenhues.
40505 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40507         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
40508         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
40510 2011-03-03  Bruce Korb  <bkorb@gnu.org>
40512         parse-duration: remove xalloc.h dependency
40513         * lib/parse-duration.c (parse_period): handle NULL return from
40514         strdup instead of calling xstrdup().
40515         * modules/parse-duration: remove "xalloc" dependency
40517 2011-03-03  Matthew Booth  <mbooth@redhat.com>
40519         bootstrap: honor m4_base when running aclocal
40520         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
40522 2011-03-02  Jim Meyering  <meyering@redhat.com>
40524         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
40525         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
40526         on request from Matt Booth.
40528 2011-03-01  Eric Blake  <eblake@redhat.com>
40530         test-link: work on Hurd
40531         * tests/test-link.h (test_link): Hurd rejects linking directories
40532         with EISDIR instead of the POSIX-mandated EPERM.
40534 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
40536         stdio: simplify by moving files to printf-posix, sigpipe
40537         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
40538         since this symbol is needed only if printf is replaced.
40539         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
40540         Require gl_ASM_SYMBOL_PREFIX.
40541         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
40542         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
40543         (Depends-on): Add 'raise'.
40544         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
40545         * modules/stdio (Files): Remove lib/stdio-write.c,
40546         m4/asm-underscore.m4.
40547         (Depends-on): Remove 'raise'.
40549         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
40550         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
40551         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
40552         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
40554 2011-02-28  Bruno Haible  <bruno@clisp.org>
40556         localcharset: Assume ANSI C behaviour of free().
40557         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
40558         calling free().
40559         Suggested by Simon Josefsson <simon@josefsson.org>.
40561 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
40562             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
40563             Bruno Haible  <bruno@clisp.org>  (tiny change)
40565         On Cygwin, use /proc file system instead of win32 API.
40566         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
40567         Win32 file names.
40568         (DllMain): Simplify by removing Cygwin specific code.
40569         (find_shared_library_fullname): Use Linux specific implementation also
40570         for Cygwin.
40571         (get_shared_library_fullname): Update accordingly.
40572         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
40573         Win32 file names.
40574         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
40575         Cygwin specific code.
40577 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
40578             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
40580         Fix OpenMP flag detection for various Fortran compilers.
40581         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
40582         OpenMP-conditional compilation construct, to force compile
40583         failure with missing OpenMP flag.
40584         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
40586 2011-02-25  Eric Blake  <eblake@redhat.com>
40588         strstr: expand test coverage
40589         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
40590         compilation.
40591         * tests/test-memmem.c (main): Duplicate tests.
40592         * tests/test-strcasestr.c (main): Likewise.
40593         * tests/test-c-strcasestr.c (main): Likewise.
40595 2011-02-25  Jim Meyering  <meyering@redhat.com>
40597         maint.mk: detect missing-NL-at-EOF, too
40598         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
40599         it also detects when a file lacks a newline at EOF.
40600         (require_exactly_one_NL_at_EOF_): Renamed from
40601         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
40602         since people may well have .x-sc_... file names tied to the
40603         existing name.  Suggested by Eric Blake.
40605 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40607         dirname: move m4/dos.m4 functionality into lib/dosname.h
40609         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
40610         extracts symbols from it, puts them into config.h; but it's much
40611         easier to use the symbols directly.  filename.h already does this,
40612         but it disagrees with dos.m4 in some respects.  This patch
40613         introduces a different include file dosname.h that packages up
40614         dos.m4, and then later we can work on merging filename.h and
40615         dosname.h.  Applications that need only the easy-to-configure
40616         symbols should consider including dosname.h rather than dirname.h.
40617         * NEWS: Mention incompatible changes.
40618         * m4/dos.m4: Remove.
40619         * lib/dosname.h, modules/dosname: New files.
40620         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
40621         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
40622         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
40623         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
40624         Include dosname.h, not dirname.h.
40625         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
40626         Include dosname.h, for definitions of symbols like ISSLASH
40627         that used to be in config.h.
40628         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
40629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40630         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40631         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40632         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
40633         * modules/rmdir (Files): Likewise.
40634         * modules/stat (Files): Likewise.
40635         * modules/unlink (Files): Likewise.
40636         * modules/dirname-lgpl (Depends-on): Add dosname.
40637         * modules/lstat (Depends-on): Likewise.
40638         * modules/openat (Depends-on): Likewise.
40639         * modules/rmdir (Depends-on): Likewise.
40640         * modules/savewd (Depends-on): Likewise.
40641         * modules/stat (Depends-on): Likewise.
40642         * modules/unlink (Depends-on): Likewise.
40643         * modules/openat (Depends-on): Remove dirname-lgpl.
40644         * modules/savewd (Depends-on): Likewise.
40645         * tests/test-dirname.c: Do not use removed symbols like
40646         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
40647         the remaining symbols, e.g., ISSLASH ('\\').
40649 2011-02-25  Eric Blake  <eblake@redhat.com>
40651         strstr: revert patches that introduced bug and pessimization
40652         * lib/str-two-way.h: Add another reference.
40653         (two_way_short_needle, two_way_long_needle): Revert changes from
40654         2011-02-24; they pessimize search speed.
40655         (critical_factorization): Partially revert changes from
40656         2010-06-22; they violate the requirement that the left half of the
40657         needle be smaller than the period of the needle.
40659 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40661         filenamecat: remove unnecessary dependency on dirname-lgpl
40662         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
40663         is no direct dependency, just an indirect one via filenamecat-lgpl.
40665         remove: remove unnecessary use of m4/dos.m4
40666         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
40667         * modules/remove (FILES): Remove m4/dos.m4.
40669         * lib/openat-proc.c: Don't include dirname.h; not needed.
40671         backupfile: remove unnecessary use of m4/dos.m4
40672         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
40673         of its symbols are used by the backupfile code.  backupfile.c does
40674         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
40675         for the rare case of programs that want all their backup file
40676         names to live within 8+3 limits, and dos.m4 doesn't address that.
40677         * modules/backupfile (Files): Remove m4/dos.m4.
40679 2011-02-24  Jim Meyering  <meyering@redhat.com>
40681         strstr: fix a bug whereby strstr would mistakenly return NULL
40682         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
40683         in period calculation.
40684         (two_way_long_needle): Likewise.
40685         The original problem was reported by Mike Stump in
40686         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
40687         Ralf Wildenhues provided the short needle and haystack.
40688         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
40689         Add a more involved test to trigger the bug in two_way_long_needle.
40691 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40693         gnulib-tool: remove use of bold display in help screen
40694         * gnulib-tool (func_usage): Do not use bold display anymore in the
40695         help screen.  That was just meant to be a temporary emphasis for a
40696         backward-incompatible change.
40698 2011-02-23  Bruno Haible  <bruno@clisp.org>
40700         Fix misindentation of preprocessor directives.
40701         * lib/argp-namefrob.h: Reindent preprocessor directives.
40702         * lib/getopt_int.h (struct _getopt_data): Likewise.
40703         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
40704         * lib/vasnprintf.c (decode_long_double): Likewise.
40705         * tests/test-argmatch.c: Insert blank lines, for clarity.
40706         * tests/test-exclude.c: Likewise.
40708 2011-02-22  Bruno Haible  <bruno@clisp.org>
40710         ioctl: Fix for MacOS X in 64-bit mode.
40711         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
40712         value.
40713         Suggested by Eric Blake.
40714         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
40716 2011-02-22  Jim Meyering  <meyering@redhat.com>
40718         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
40719         * Makefile (sc_cpp_indent_check): Don't limit the check to files
40720         in lib/.
40722 2011-02-22  Eric Blake  <eblake@redhat.com>
40724         maint: avoid any CDPATH issue
40725         * Makefile (sc_cpp_indent_check): Anchor cd argument.
40727         maint: adjust cpp indentation for my modules, as well
40728         * Makefile (sc_cpp_indent_check): Add my name.
40729         * lib/fbufmode.c: Filter through cppi.
40730         * lib/fpurge.c: Likewise.
40731         * lib/freadable.c: Likewise.
40732         * lib/freading.c: Likewise.
40733         * lib/fwritable.c: Likewise.
40734         * lib/fwriting.c: Likewise.
40735         * lib/sigaction.c: Likewise.
40737 2011-02-22  Jim Meyering  <meyering@redhat.com>
40739         maint: adjust cpp indentation to reflect nesting depth
40740         I.e., in a block of code that begins with an unnested "#if",
40741         put one space between the "#" in column 1 and following token.
40742         For example,
40743         -#include <sys/vfs.h>
40744         +# include <sys/vfs.h>
40745         Do this only in .c files that are part of a module I maintain.
40746         * lib/linkat.c: Filter through cppi.
40747         * lib/nanosleep.c: Likewise.
40748         * lib/openat.c: Likewise.
40749         * lib/openat-die.c: Likewise.
40750         * lib/dup3.c: Likewise.
40751         * lib/fchownat.c: Likewise.
40752         * lib/flock.c: Likewise.
40753         * lib/fsync.c: Likewise.
40754         * lib/fts.c: Likewise.
40755         * lib/getpass.c: Likewise.
40756         * lib/gettimeofday.c: Likewise.
40757         * lib/userspec.c: Likewise.
40758         * Makefile (sc_cpp_indent_check): New rule, to check this.
40760 2011-02-22  Bruno Haible  <bruno@clisp.org>
40762         New module 'wctomb'.
40763         * lib/stdlib.in.h (wctomb): New declaration.
40764         * lib/wctomb.c: New file.
40765         * lib/wctomb-impl.h: New file.
40766         * m4/wctomb.m4: New file.
40767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
40768         REPLACE_WCTOMB.
40769         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
40770         REPLACE_WCTOMB.
40771         * modules/wctomb: New file.
40772         * tests/test-stdlib-c++.cc: Test signature of wctomb.
40773         * doc/posix-functions/wctomb.texi: Mention the new module.
40774         * modules/wctob (Depends-on): Add wctomb.
40776 2011-02-22  Bruno Haible  <bruno@clisp.org>
40778         New module 'mbtowc'.
40779         * lib/stdlib.in.h (mbtowc): New declaration.
40780         * lib/mbtowc.c: New file.
40781         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
40782         * m4/mbtowc.m4: New file.
40783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
40784         REPLACE_MBTOWC.
40785         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
40786         REPLACE_MBTOWC.
40787         * modules/mbtowc: New file.
40788         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
40789         * doc/posix-functions/mbtowc.texi: Mention the new module.
40790         * modules/btowc (Depends-on): Add mbtowc.
40792 2011-02-22  Bruno Haible  <bruno@clisp.org>
40794         wcrtomb: Add more tests for native Windows platforms.
40795         * tests/test-wcrtomb-w32-1.sh: New file.
40796         * tests/test-wcrtomb-w32-2.sh: New file.
40797         * tests/test-wcrtomb-w32-3.sh: New file.
40798         * tests/test-wcrtomb-w32-4.sh: New file.
40799         * tests/test-wcrtomb-w32-5.sh: New file.
40800         * tests/test-wcrtomb-w32.c: New file.
40801         * modules/wcrtomb-tests (Files): Add them.
40802         (Makefile.am): Arrange to run these tests.
40803         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
40804         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
40806 2011-02-20  Bruno Haible  <bruno@clisp.org>
40808         wcrtomb: Enhance test.
40809         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
40811 2011-02-20  Bruno Haible  <bruno@clisp.org>
40813         mbrtowc: Tiny optimization.
40814         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
40816 2011-02-20  Jim Meyering  <meyering@redhat.com>
40818         test-exclude.c: remove unmatched #endif
40819         * tests/test-exclude.c: Remove stray #endif, left over from
40820         the change of a week ago.
40822 2011-02-19  Jim Meyering  <meyering@redhat.com>
40824         git-version-gen: skip "-dirty" check when appropriate
40825         * build-aux/git-version-gen: Don't run any git commands when the
40826         version string comes from .tarball-version.  Prior to this, we
40827         would run git update-index --refresh even from a just-unpacked
40828         tarball directory, and that could affect a .git/ directory in a
40829         parent of the build directory.  Reported by Mike Frysinger.
40831 2011-02-19  Bruno Haible  <bruno@clisp.org>
40833         unictype/property-byname: Reduce the size of the 'data' segment.
40834         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
40836 2011-02-19  Bruno Haible  <bruno@clisp.org>
40838         unictype/scripts: Reduce the size of the 'data' segment.
40839         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
40840         '%pic'.
40841         * lib/unictype/scripts_byname.gperf: Regenerated.
40843 2011-02-19  Bruno Haible  <bruno@clisp.org>
40845         stdint: Update documentation.
40846         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
40848 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40850         stdint: omit redundant check for wchar.h
40851         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40852         always tests whether wchar.h exists, so remove the now-redundant test.
40854 2011-02-18  Bruno Haible  <bruno@clisp.org>
40856         stdint: Cut dependency to module 'wchar'.
40857         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40858         include the necessary prerequisites.
40859         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40860         * modules/stdint (Depends-on): Remove wchar.
40861         (Makefile.am): Substitute HAVE_WCHAR_H.
40862         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40864 2011-02-18  Eric Blake  <eblake@redhat.com>
40866         longlong: skip, rather than fail, on cross-compilation
40867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40868         when cross-compiling; regression from 2011-02-16.
40870 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40872         * NEWS: Mention 2011-02-08 change to stdlib.
40874 2011-02-17  Bruno Haible  <bruno@clisp.org>
40876         getloadavg: Add comments about platforms.
40877         * m4/getloadavg.m4: Add comment.
40878         * lib/getloadavg.c: Likewise.
40880 2011-02-17  Bruno Haible  <bruno@clisp.org>
40882         getloadavg: Fix link error on Solaris 2.6.
40883         * modules/getloadavg (Link): New section.
40884         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40885         linking test-getloadavg.
40886         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40887         getloadavg.
40889 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40891         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40892         It was 'int', but this doesn't match the IRIX 6.5 manual.
40893         Suggested by Bruno Haible in
40894         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40896 2011-02-17  Bruno Haible  <bruno@clisp.org>
40898         havelib: Fix comments.
40899         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40900         change.
40902 2011-02-17  Bruno Haible  <bruno@clisp.org>
40904         havelib: Update config.rpath.
40905         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40907 2011-02-17  Bruno Haible  <bruno@clisp.org>
40909         getloadavg test: Add some plausibility checks.
40910         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40911         is improbable.
40913 2011-02-16  Eric Blake  <eblake@redhat.com>
40915         maintainer-makefile: make syntax-check a no-op from tarballs
40916         * top/maint.mk (no-vc-detected): New rule.
40917         (local-checks-available): Use it to avoid hanging if someone tries
40918         'make syntax-check' from a tarball.  Also append to any non-syntax
40919         checks already defined in cfg.mk.
40921 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40923         longlong: tune, particularly for common case of c99
40925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40926         or running anything if c99, or if unsigned long long int does not
40927         work.  In either case, we know the answer without further tests.
40928         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40929         it at most once, and use its results for both long long int and
40930         unsigned long long int.  This is more likely to be efficient in
40931         the common case where the program wants to check for both long
40932         long int and unsigned long long int.
40933         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40934         since the answer is already known.
40936 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40938         getloadavg: set errno
40939         * lib/getloadavg.c: Set errno when returning -1.  If no other
40940         error number looks appropriate, set it to ENOSYS if the getloadavg
40941         looks like it can't possibly ever work, ENOTSUP otherwise.
40942         Suggested by Bruno Haible in
40943         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40945         getloadavg: trim unused parts and speed up 'configure'
40946         * NEWS: Document this.
40947         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40948         always compiled if getloadavg is absent.
40949         Move test code to ...
40950         * tests/test-getloadavg.c: New file, containing previous
40951         contents of test from lib/getloadavg.c.  It also contains
40952         suggestions by Bruno Haible in
40953         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40954         * modules/getloadavg-tests: New file.
40955         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40956         Do tests in the same order as they're needed for getloadavg.c.
40957         Omit setgid-related tests that generate symbols KMEM_GROUP,
40958         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40959         Do only the tests that are needed to see whether the system has
40960         getloadavg, moving the other tests into ...
40961         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40962         NLIST_NAME_UNION; nobody should be using it.  Do not define
40963         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40964         relevant, as the user of this module shouldn't care how getloadavg
40965         is implemented.
40967         getloadavg: omit unused var
40968         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40970 2011-02-15  Jim Meyering  <meyering@redhat.com>
40972         doc: update users.txt
40973         * users.txt: Update iwhd's URL.
40975 2011-02-13  Bruno Haible  <bruno@clisp.org>
40977         Consistent macro naming for macros that use GCC __attribute__.
40978         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40979         _ATTRIBUTE_NONNULL_.
40980         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40981         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40982         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40983         ATTRIBUTE_DEPRECATED.
40984         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40985         ATTRIBUTE_NORETURN.
40986         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40987         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40988         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40989         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40990         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40991         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40992         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40993         ATTRIBUTE_SENTINEL.
40994         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40995         ATTRIBUTE_RETURN_CHECK.
40996         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40997         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40998         ATTRIBUTE_NORETURN.
40999         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
41000         Reported by Paul Eggert.
41002 2011-02-13  Bruno Haible  <bruno@clisp.org>
41004         Don't interfere with a program's definition of __attribute__.
41005         * lib/argp.h (__attribute__): Remove definition.
41006         (_GL_ATTRIBUTE_FORMAT): New macro.
41007         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
41008         * lib/argp-fmtstream.h (__attribute__): Remove definition.
41009         (_GL_ATTRIBUTE_FORMAT): New macro.
41010         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
41011         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
41012         GCC 3 or newer.
41013         * lib/error.h (__attribute__): Remove definition.
41014         (_GL_ATTRIBUTE_FORMAT): New macro.
41015         (error, error_at_line): Use it.
41016         * lib/hash.h (__attribute__): Remove definition.
41017         (ATTRIBUTE_WUR): Update definition. Define always.
41018         * lib/openat.h (__attribute__): Remove definition.
41019         (ATTRIBUTE_NORETURN): Update definition. Define always.
41020         * lib/sigpipe-die.h (__attribute__): Remove definition.
41021         (ATTRIBUTE_NORETURN): Update definition. Define always.
41022         * lib/vasnprintf.h (__attribute__): Remove definition.
41023         (_GL_ATTRIBUTE_FORMAT): New macro.
41024         (asnprintf, vasnprintf): Use it.
41025         * lib/xalloc.h (__attribute__): Remove definition.
41026         (ATTRIBUTE_NORETURN): Update definition. Define always.
41027         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
41028         * lib/xmemdup0.h (__attribute__): Remove definition.
41029         (ATTRIBUTE_NORETURN): Update definition. Define always.
41030         * lib/xprintf.h (__attribute__): Remove definition.
41031         (_GL_ATTRIBUTE_FORMAT): New macro.
41032         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
41033         * lib/xstrtol.h (__attribute__): Remove definition.
41034         (ATTRIBUTE_NORETURN): Update definition. Define always.
41035         * lib/xvasprintf.h (__attribute__): Remove definition.
41036         (_GL_ATTRIBUTE_FORMAT): New macro.
41037         (xasprintf, xvasprintf): Use it.
41038         * tests/test-argmatch.c (__attribute__): Remove definition.
41039         (ATTRIBUTE_NORETURN): Update definition. Define always.
41040         * tests/test-exclude.c (__attribute__): Remove definition.
41041         (ATTRIBUTE_NORETURN): Update definition. Define always.
41042         Reported by Paul Eggert.
41044 2011-02-13  Bruno Haible  <bruno@clisp.org>
41046         mbrtowc: Add more tests for native Windows platforms.
41047         * tests/test-mbrtowc-w32-1.sh: New file.
41048         * tests/test-mbrtowc-w32-2.sh: New file.
41049         * tests/test-mbrtowc-w32-3.sh: New file.
41050         * tests/test-mbrtowc-w32-4.sh: New file.
41051         * tests/test-mbrtowc-w32-5.sh: New file.
41052         * tests/test-mbrtowc-w32.c: New file.
41053         * modules/mbrtowc-tests (Files): Add them.
41054         (Makefile.am): Arrange to run these tests.
41055         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
41056         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
41058 2011-02-13  Bruno Haible  <bruno@clisp.org>
41060         mbrtowc: Work around native Windows bug.
41061         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
41062         guess when no suitable locale for testing was found.
41063         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
41065 2011-02-13  Bruno Haible  <bruno@clisp.org>
41067         mbsinit: Work around mingw bug.
41068         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
41069         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
41070         Windows.
41071         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
41073 2011-02-13  Bruno Haible  <bruno@clisp.org>
41075         mbsinit: Don't crash for a NULL argument.
41076         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
41077         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
41079 2011-02-13  Bruno Haible  <bruno@clisp.org>
41081         Don't interfere with a program's definition of __attribute__.
41082         * lib/stdio.in.h (__attribute__): Remove definition.
41083         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
41084         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
41085         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
41086         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
41087         * lib/string.in.h (__attribute__): Remove definition.
41088         Reported by Paul Eggert.
41090 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41092         stdlib: don't get in the way of non-GCC __attribute__
41093         See thread starting at
41094         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
41095         Revert previous stdlib change, installing the following instead:
41096         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
41097         to get in the way of a non-GCC compiler that supports __attribute__.
41098         (_GL_ATTRIBUTE_RETURN): New macro.
41099         (_Exit): Use it instead of __attribute__.
41101 2011-02-12  Bruno Haible  <bruno@clisp.org>
41103         quotearg test: Avoid test failure on mingw.
41104         * tests/test-quotearg.sh: Convert the locale identifier from native
41105         Windows syntax to Unix syntax.
41107 2011-02-12  Bruno Haible  <bruno@clisp.org>
41109         setlocale: Prefer gnulib's override over libintl's override.
41110         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
41111         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
41112         GNULIB_defined_setlocale is set.
41114 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41116         stdlib: support non-GCC __attribute__
41118         Fix a serious and tricky problem encountered when attempting to
41119         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
41120         5.5, but it crashed due to memory corruption on Solaris 10 with
41121         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
41122         bits that are otherwise zero.  This tagging is optional inside
41123         Emacs but is preferred and is used when __attribute__ ((__aligned
41124         (8))) works, as it does with both recent-enough GCC and with Sun C
41125         5.11.  However, Sun C 5.11 is not GCC and does not #define
41126         __GNUC__ and __GNUC_MINOR__.
41128         When I added the getloadavg module to Emacs, it brought in
41129         stdlib.in.h, which contained this fragment:
41131            #ifndef __attribute__
41132            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
41133            #  define __attribute__(Spec)   /* empty */
41134            # endif
41135            #endif
41137         When files that include <stdlib.h> were compiled with Sun C 5.11,
41138         the above code disabled __attribute__ ((__aligned (8))), which
41139         caused variables to not be properly aligned, which eventually led
41140         to the pointer corruption mentioned above.  (This was a bit hard
41141         to diagnose, unfortunately.)
41143         Several "#define __attribute__(X) /* empty */" code snippets need
41144         to be eradicated from Gnulib to work with non-GCC compilers that
41145         support __attribute__.  The Autoconf way to do this is to test for
41146         each kind of attribute that we want support for, and selectively
41147         enable that in source code.
41149         Fix this problem just for stdlib.h, by adding a test for the
41150         __noreturn__ attribute, and change stdlib.in.h to use that test
41151         when needed.  This technique can be easily generalized to the
41152         other *.in.h files and attributes, and a similar technique can be
41153         used for *.h and *.c files.  This patch is enough to solve the
41154         problem for Emacs + getloadavg, and I thought I'd publish it for
41155         feedback before undertaking further, similar fixes in other
41156         modules.
41158         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
41159         because it's not needed for stdlib.h.  It merely substitutes the
41160         value directly into stdlib.h.  We may well need to #define it, or
41161         similar symbols, for other modules, but it's nice to also have an
41162         option to not #define it for applications like Emacs that do not
41163         need it.
41165         * lib/stdlib.in.h (__attribute__): Do not #define.
41166         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
41167         be defined only if the _Exit module is also used.
41168         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
41169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
41170         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
41171         platforms.
41172         * modules/_Exit (Files): Add m4/attribute.m4.
41173         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
41174         * m4/attribute.m4: New file.
41176 2011-02-12  Bruno Haible  <bruno@clisp.org>
41178         wcsrtombs: Work around bug on native Windows.
41179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
41180         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
41181         instead of len.
41182         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
41184 2011-02-12  Bruno Haible  <bruno@clisp.org>
41186         mbsrtowcs: Work around bug on native Windows.
41187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
41188         against mingw bug.
41189         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
41191 2011-02-12  Bruno Haible  <bruno@clisp.org>
41193         Avoid setlocale bugs in tests.
41194         * modules/btowc (Dependencies): Add setlocale.
41195         * modules/c-strcase (Dependencies): Likewise.
41196         * modules/mbmemcasecmp (Dependencies): Likewise.
41197         * modules/mbmemcasecoll (Dependencies): Likewise.
41198         * modules/mbrtowc (Dependencies): Likewise.
41199         * modules/mbscasecmp (Dependencies): Likewise.
41200         * modules/mbscasestr (Dependencies): Likewise.
41201         * modules/mbschr (Dependencies): Likewise.
41202         * modules/mbscspn (Dependencies): Likewise.
41203         * modules/mbsinit (Dependencies): Likewise.
41204         * modules/mbsncasecmp (Dependencies): Likewise.
41205         * modules/mbsnrtowcs (Dependencies): Likewise.
41206         * modules/mbspbrk (Dependencies): Likewise.
41207         * modules/mbspcasecmp (Dependencies): Likewise.
41208         * modules/mbsrchr (Dependencies): Likewise.
41209         * modules/mbsrtowcs (Dependencies): Likewise.
41210         * modules/mbsspn (Dependencies): Likewise.
41211         * modules/mbsstr (Dependencies): Likewise.
41212         * modules/nl_langinfo (Dependencies): Likewise.
41213         * modules/quotearg (Dependencies): Likewise.
41214         * modules/unicase/locale-language (Dependencies): Likewise.
41215         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
41216         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
41217         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
41218         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
41219         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
41220         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
41221         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
41222         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
41223         * modules/vasnprintf-posix (Dependencies): Likewise.
41224         * modules/wcrtomb (Dependencies): Likewise.
41225         * modules/wcsnrtombs (Dependencies): Likewise.
41226         * modules/wcsrtombs (Dependencies): Likewise.
41228 2011-02-12  Bruno Haible  <bruno@clisp.org>
41230         setlocale: Workaround native Windows bug.
41231         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
41232         succeeds but sets LC_CTYPE to "C", report a failure.
41233         * tests/test-setlocale2.sh: New file.
41234         * tests/test-setlocale2.c: New file.
41235         * modules/setlocale-tests (Files): Add the new files.
41236         (Makefile.am): Enable test-setlocale2.sh test.
41237         * doc/posix-functions/setlocale.texi: Mention workaround.
41239 2011-02-11  Bruno Haible  <bruno@clisp.org>
41241         Tests for module 'setlocale'.
41242         * modules/setlocale-tests: New file.
41243         * tests/test-setlocale1.sh: New file.
41244         * tests/test-setlocale1.c: New file.
41246         New module 'setlocale'.
41247         * lib/locale.in.h (setlocale): New declaration.
41248         * lib/setlocale.c: New file, based on
41249         gettext/gettext-runtime/intl/setlocale.c.
41250         * m4/setlocale.m4: New file.
41251         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
41252         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
41253         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
41254         REPLACE_SETLOCALE.
41255         * modules/setlocale: New file.
41256         * tests/test-locale-c++.cc: Test the declaration of setlocale.
41257         * doc/posix-functions/setlocale.texi: Mention the new module.
41259 2011-02-11  Bruno Haible  <bruno@clisp.org>
41261         Prepare for locale dependent tests on mingw.
41262         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
41263         because it has the wrong locale encoding.
41264         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
41265         French_France.1252 instead of "fr".
41266         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
41267         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
41268         because it has the wrong locale encoding.
41269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
41270         native Windows, try Turkish_Turkey.65001.
41271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
41272         Chinese_China.54936.
41274         Prepare for locale dependent tests on mingw.
41275         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
41276         differently.
41277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
41278         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
41279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41282 2011-02-11  Eric Blake  <eblake@redhat.com>
41284         strptime: avoid compiler warnings
41285         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
41286         compiler warnings about dead code.
41287         Reported by Daniel P. Berrange.
41289 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
41291         doc: update users.txt
41292         * users.txt: Add rcs.
41294 2011-02-10  John W. Eaton  <jwe@gnu.org>
41296         doc: update users.txt
41297         * users.txt: Add octave.
41299 2011-02-10  Jim Meyering  <meyering@redhat.com>
41301         doc: update users.txt
41302         * users.txt: Add iwhd.
41304 2011-02-09  Bruno Haible  <bruno@clisp.org>
41306         gnulib-tool: Make copyright notice adjustment more robust.
41307         * gnulib-tool (func_import): In sed_transform_main_lib_file,
41308         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
41309         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
41310         License".
41311         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
41313 2011-02-06  Bruno Haible  <bruno@clisp.org>
41315         New module 'towctrans'.
41316         * modules/towctrans: New file.
41317         * lib/wctype.in.h (towctrans): New declaration.
41318         * lib/towctrans.c: New file.
41319         * lib/towctrans-impl.h: New file.
41320         * m4/towctrans.m4: New file.
41321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
41322         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
41323         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
41324         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
41325         * doc/posix-functions/towctrans.texi: Mention the new module.
41327 2011-02-06  Bruno Haible  <bruno@clisp.org>
41329         New module 'wctrans'.
41330         * modules/wctrans: New file.
41331         * lib/wctype.in.h (wctrans): New declaration.
41332         * lib/wctrans.c: New file.
41333         * lib/wctrans-impl.h: New file.
41334         * m4/wctrans.m4: New file.
41335         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
41336         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
41337         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
41338         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
41339         * doc/posix-functions/wctrans.texi: Mention the new module.
41341 2011-02-06  Bruno Haible  <bruno@clisp.org>
41343         New module 'iswctype'.
41344         * modules/iswctype: New file.
41345         * lib/wctype.in.h (iswctype): New declaration.
41346         * lib/iswctype.c: New file.
41347         * lib/iswctype-impl.h: New file.
41348         * m4/iswctype.m4: New file.
41349         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
41350         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
41351         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
41352         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
41353         * doc/posix-functions/iswctype.texi: Mention the new module and the
41354         HP-UX 11.00 problem.
41356 2011-02-06  Bruno Haible  <bruno@clisp.org>
41358         New module 'wctype'.
41359         * modules/wctype: Change to represent the wctype() substitute.
41360         * lib/wctype.in.h (wctype): New declaration.
41361         * lib/wctype.c: New file.
41362         * lib/wctype-impl.h: New file.
41363         * m4/wctype.m4: New file.
41364         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
41365         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
41366         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
41367         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
41368         * doc/posix-functions/wctype.texi: Mention the new module and the
41369         HP-UX 11.00 problem.
41371 2011-02-06  Bruno Haible  <bruno@clisp.org>
41373         wctype-h: Ensure wctype_t and wctrans_t are defined.
41374         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
41375         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41376         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41377         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
41378         HAVE_WCTRANS_T.
41379         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
41381 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41383         flock: fix license typo
41385         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
41386         omitted.
41388 2011-02-08  Bruno Haible  <bruno@clisp.org>
41390         Split large sed scripts, for HP-UX sed.
41391         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
41392         to avoid HP-UX limit of 99 commands, in the near future.
41393         * modules/stdlib (Makefile.am): Likewise.
41394         * modules/unistd (Makefile.am): Likewise.
41395         * modules/wchar (Makefile.am): Likewise.
41396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41397         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
41398         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
41400 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41401             Bruno Haible  <bruno@clisp.org>
41403         stdlib: improve random_r modularization
41404         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
41405         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
41406         you also need the random_r module to get this material right.
41407         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
41408         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
41409         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
41411 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41413         stdlib: don't depend on stdint
41414         * lib/stdlib.in.h: Don't include <stdint.h> merely because
41415         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
41416         be independent of whether stdint.h is needed.
41417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
41418         here, instead of ...
41419         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
41420         struct random_data should be using the random_r module, not just
41421         the stdlib module (which wouldn't make sense: what package needs
41422         just struct random_data without also needing random_r?).
41423         * modules/stdlib (Depends-on): Remove stdint.
41425         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
41426         See the thread rooted at
41427         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
41428         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
41429         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
41430         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
41431         __VMS)); previously it was always included (via fcntl--.h).
41432         (getloadavg): Do not use c_strtod.  Instead, approximate it by
41433         hand; this is good enough for load averages.  Also, do not use
41434         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
41435         flags directly if available and don't bother otherwise.  (Packages
41436         that need the extra reliability should use the modules that define
41437         these flags on older platforms that lack them.)
41438         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
41439         fcntl-safer.
41441 2011-02-08  Jim Meyering  <meyering@redhat.com>
41443         di-set.h, ino-map.h: add multiple-inclusion guard
41444         Technically, the guard is required only for ino-map.h, due to its
41445         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
41446         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
41447         * lib/ino-map.h: Likewise.
41449 2011-02-06  Bruno Haible  <bruno@clisp.org>
41451         iswblank: Ensure declaration on glibc systems.
41452         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
41453         * modules/iswblank (Dependencies): Add 'extensions'.
41454         * doc/posix-functions/iswblank.texi: Document the glibc problem.
41456 2011-02-06  Bruno Haible  <bruno@clisp.org>
41458         New module 'iswblank'.
41459         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
41460         * modules/iswblank: New file.
41461         * modules/wctype-h (Files): Remove lib/iswblank.c.
41462         (Makefile.am): Substitute GNULIB_ISWBLANK.
41463         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
41464         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
41465         (gl_WCTYPE_H_DEFAULTS): New macro.
41466         (gl_WCTYPE_H): Require it. Remove iswblank related code.
41467         * modules/iswblank-tests: New file.
41468         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
41469         * tests/test-wctype-h.c (main): Remove iswblank tests.
41470         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
41471         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
41472         of 'wctype-h'.
41473         * NEWS: Mention the change.
41474         * modules/mbchar (Depends-on): Add iswblank.
41476 2011-02-08  Bruno Haible  <bruno@clisp.org>
41478         di-set tests: Refactor.
41479         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
41480         unnecessary includes.
41481         (ASSERT): Remove macro.
41482         (main): Make C90 compliant by avoiding variable declaration after
41483         statement.
41484         * modules/di-set-tests (Files): Add tests/macros.h.
41486 2011-02-08  Bruno Haible  <bruno@clisp.org>
41488         ino-map tests: Refactor.
41489         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
41490         unnecessary includes.
41491         (ASSERT): Remove macro.
41492         (main): Make C90 compliant by avoiding variable declaration after
41493         statement.
41494         * modules/ino-map-tests (Files): Add tests/macros.h.
41496 2011-02-08  Jim Meyering  <meyering@redhat.com>
41498         di-set: add "const" to a cast
41499         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
41500         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
41502 2011-02-06  Bruno Haible  <bruno@clisp.org>
41504         Rename module 'wctype' to 'wctype-h'.
41505         * modules/wctype-h: Renamed from modules/wctype.
41506         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
41507         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
41508         (Files, Depends-on, Makefile.am): Update.
41509         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
41510         (Files, Makefile.am): Update.
41511         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
41512         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
41513         * doc/posix-headers/wctype.texi: Update.
41514         * doc/posix-functions/iswalnum.texi: Update.
41515         * doc/posix-functions/iswalpha.texi: Update.
41516         * doc/posix-functions/iswblank.texi: Update.
41517         * doc/posix-functions/iswcntrl.texi: Update.
41518         * doc/posix-functions/iswdigit.texi: Update.
41519         * doc/posix-functions/iswgraph.texi: Update.
41520         * doc/posix-functions/iswlower.texi: Update.
41521         * doc/posix-functions/iswprint.texi: Update.
41522         * doc/posix-functions/iswpunct.texi: Update.
41523         * doc/posix-functions/iswspace.texi: Update.
41524         * doc/posix-functions/iswupper.texi: Update.
41525         * doc/posix-functions/iswxdigit.texi: Update.
41526         * doc/posix-functions/towlower.texi: Update.
41527         * doc/posix-functions/towupper.texi: Update.
41528         * NEWS: Mention the change.
41529         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
41530         * modules/mbchar (Dependencies): Likewise.
41531         * modules/mbswidth (Dependencies): Likewise.
41532         * modules/quotearg (Dependencies): Likewise.
41533         * modules/regex (Dependencies): Likewise.
41534         * modules/wcscasecmp (Dependencies): Likewise.
41535         * modules/wcsncasecmp (Dependencies): Likewise.
41536         * modules/wcwidth (Dependencies): Likewise.
41538 2011-02-06  Bruno Haible  <bruno@clisp.org>
41540         New module 'wcswidth'.
41541         * modules/wcswidth: New file.
41542         * lib/wchar.in.h (wcswidth): New declaration.
41543         * lib/wcswidth.c: New file.
41544         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
41545         * m4/wcswidth.m4: New file.
41546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
41547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
41548         REPLACE_WCSWIDTH.
41549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
41550         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
41551         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
41552         * doc/posix-functions/wcswidth.texi: Mention the new module.
41554 2011-02-06  Bruno Haible  <bruno@clisp.org>
41556         New module 'wcstok'.
41557         * modules/wcstok: New file.
41558         * lib/wchar.in.h (wcstok): New declaration.
41559         * lib/wcstok.c: New file.
41560         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
41561         * m4/wcstok.m4: New file.
41562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
41563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
41564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
41565         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
41566         * doc/posix-functions/wcstok.texi: Mention the new module.
41568 2011-02-06  Bruno Haible  <bruno@clisp.org>
41570         New module 'wcsstr'.
41571         * modules/wcsstr: New file.
41572         * lib/wchar.in.h (wcsstr): New declaration.
41573         * lib/wcsstr.c: New file.
41574         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
41575         * m4/wcsstr.m4: New file.
41576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
41577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
41578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
41579         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
41580         * doc/posix-functions/wcsstr.texi: Mention the new module.
41582 2011-02-06  Bruno Haible  <bruno@clisp.org>
41584         New module 'wcspbrk'.
41585         * modules/wcspbrk: New file.
41586         * lib/wchar.in.h (wcspbrk): New declaration.
41587         * lib/wcspbrk.c: New file.
41588         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
41589         * m4/wcspbrk.m4: New file.
41590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
41591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
41592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
41593         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
41594         * doc/posix-functions/wcspbrk.texi: Mention the new module.
41596 2011-02-06  Bruno Haible  <bruno@clisp.org>
41598         New module 'wcsspn'.
41599         * modules/wcsspn: New file.
41600         * lib/wchar.in.h (wcsspn): New declaration.
41601         * lib/wcsspn.c: New file.
41602         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
41603         * m4/wcsspn.m4: New file.
41604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
41605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
41606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
41607         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
41608         * doc/posix-functions/wcsspn.texi: Mention the new module.
41610 2011-02-06  Bruno Haible  <bruno@clisp.org>
41612         New module 'wcscspn'.
41613         * modules/wcscspn: New file.
41614         * lib/wchar.in.h (wcscspn): New declaration.
41615         * lib/wcscspn.c: New file.
41616         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
41617         * m4/wcscspn.m4: New file.
41618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
41619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
41620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
41621         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
41622         * doc/posix-functions/wcscspn.texi: Mention the new module.
41624 2011-02-06  Bruno Haible  <bruno@clisp.org>
41626         New module 'wcsrchr'.
41627         * modules/wcsrchr: New file.
41628         * lib/wchar.in.h (wcsrchr): New declaration.
41629         * lib/wcsrchr.c: New file.
41630         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
41631         * m4/wcsrchr.m4: New file.
41632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
41633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
41634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
41635         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
41636         * doc/posix-functions/wcsrchr.texi: Mention the new module.
41638 2011-02-06  Bruno Haible  <bruno@clisp.org>
41640         New module 'wcschr'.
41641         * modules/wcschr: New file.
41642         * lib/wchar.in.h (wcschr): New declaration.
41643         * lib/wcschr.c: New file.
41644         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
41645         * m4/wcschr.m4: New file.
41646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
41647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
41648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
41649         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
41650         * doc/posix-functions/wcschr.texi: Mention the new module.
41652 2011-02-06  Bruno Haible  <bruno@clisp.org>
41654         New module 'wcsdup'.
41655         * modules/wcsdup: New file.
41656         * lib/wchar.in.h (wcsdup): New declaration.
41657         * lib/wcsdup.c: New file.
41658         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
41659         * m4/wcsdup.m4: New file.
41660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
41661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
41662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
41663         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
41664         * doc/posix-functions/wcsdup.texi: Mention the new module.
41666 2011-02-06  Bruno Haible  <bruno@clisp.org>
41668         New module 'wcsxfrm'.
41669         * modules/wcsxfrm: New file.
41670         * lib/wchar.in.h (wcsxfrm): New declaration.
41671         * lib/wcsxfrm.c: New file.
41672         * lib/wcsxfrm-impl.h: New file.
41673         * m4/wcsxfrm.m4: New file.
41674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
41675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
41676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
41677         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
41678         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
41680 2011-02-06  Bruno Haible  <bruno@clisp.org>
41682         New module 'wcscoll'.
41683         * modules/wcscoll: New file.
41684         * lib/wchar.in.h (wcscoll): New declaration.
41685         * lib/wcscoll.c: New file.
41686         * lib/wcscoll-impl.h: New file.
41687         * m4/wcscoll.m4: New file.
41688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
41689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
41690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
41691         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
41692         * doc/posix-functions/wcscoll.texi: Mention the new module.
41694 2011-02-06  Bruno Haible  <bruno@clisp.org>
41696         New module 'wcsncasecmp'.
41697         * modules/wcsncasecmp: New file.
41698         * lib/wchar.in.h (wcsncasecmp): New declaration.
41699         * lib/wcsncasecmp.c: New file.
41700         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
41701         * m4/wcsncasecmp.m4: New file.
41702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
41703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
41704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
41705         HAVE_WCSNCASECMP.
41706         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
41707         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
41709 2011-02-06  Bruno Haible  <bruno@clisp.org>
41711         New module 'wcscasecmp'.
41712         * modules/wcscasecmp: New file.
41713         * lib/wchar.in.h (wcscasecmp): New declaration.
41714         * lib/wcscasecmp.c: New file.
41715         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
41716         * m4/wcscasecmp.m4: New file.
41717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
41718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
41719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
41720         HAVE_WCSCASECMP.
41721         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
41722         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
41724 2011-02-05  Bruno Haible  <bruno@clisp.org>
41726         New module 'wcsncmp'.
41727         * modules/wcsncmp: New file.
41728         * lib/wchar.in.h (wcsncmp): New declaration.
41729         * lib/wcsncmp.c: New file.
41730         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
41731         * m4/wcsncmp.m4: New file.
41732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
41733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
41734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
41735         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
41736         * doc/posix-functions/wcsncmp.texi: Mention the new module.
41738 2011-02-05  Bruno Haible  <bruno@clisp.org>
41740         New module 'wcscmp'.
41741         * modules/wcscmp: New file.
41742         * lib/wchar.in.h (wcscmp): New declaration.
41743         * lib/wcscmp.c: New file.
41744         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
41745         * m4/wcscmp.m4: New file.
41746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
41747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
41748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
41749         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
41750         * doc/posix-functions/wcscmp.texi: Mention the new module.
41752 2011-02-05  Bruno Haible  <bruno@clisp.org>
41754         New module 'wcsncat'.
41755         * modules/wcsncat: New file.
41756         * lib/wchar.in.h (wcsncat): New declaration.
41757         * lib/wcsncat.c: New file.
41758         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
41759         * m4/wcsncat.m4: New file.
41760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
41761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
41762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
41763         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
41764         * doc/posix-functions/wcsncat.texi: Mention the new module.
41766 2011-02-05  Bruno Haible  <bruno@clisp.org>
41768         New module 'wcscat'.
41769         * modules/wcscat: New file.
41770         * lib/wchar.in.h (wcscat): New declaration.
41771         * lib/wcscat.c: New file.
41772         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
41773         * m4/wcscat.m4: New file.
41774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
41775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
41776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
41777         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
41778         * doc/posix-functions/wcscat.texi: Mention the new module.
41780 2011-02-05  Bruno Haible  <bruno@clisp.org>
41782         New module 'wcpncpy'.
41783         * modules/wcpncpy: New file.
41784         * lib/wchar.in.h (wcpncpy): New declaration.
41785         * lib/wcpncpy.c: New file.
41786         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
41787         * m4/wcpncpy.m4: New file.
41788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
41789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
41790         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
41791         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
41792         * doc/posix-functions/wcpncpy.texi: Mention the new module.
41794 2011-02-05  Bruno Haible  <bruno@clisp.org>
41796         New module 'wcsncpy'.
41797         * modules/wcsncpy: New file.
41798         * lib/wchar.in.h (wcsncpy): New declaration.
41799         * lib/wcsncpy.c: New file.
41800         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
41801         * m4/wcsncpy.m4: New file.
41802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
41803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
41804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
41805         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
41806         * doc/posix-functions/wcsncpy.texi: Mention the new module.
41808 2011-02-05  Bruno Haible  <bruno@clisp.org>
41810         New module 'wcpcpy'.
41811         * modules/wcpcpy: New file.
41812         * lib/wchar.in.h (wcpcpy): New declaration.
41813         * lib/wcpcpy.c: New file.
41814         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
41815         * m4/wcpcpy.m4: New file.
41816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
41817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
41818         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
41819         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
41820         * doc/posix-functions/wcpcpy.texi: Mention the new module.
41822 2011-02-05  Bruno Haible  <bruno@clisp.org>
41824         New module 'wcscpy'.
41825         * modules/wcscpy: New file.
41826         * lib/wchar.in.h (wcscpy): New declaration.
41827         * lib/wcscpy.c: New file.
41828         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
41829         * m4/wcscpy.m4: New file.
41830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
41831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
41832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
41833         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
41834         * doc/posix-functions/wcscpy.texi: Mention the new module.
41836 2011-02-05  Bruno Haible  <bruno@clisp.org>
41838         New module 'wcsnlen'.
41839         * modules/wcsnlen: New file.
41840         * lib/wchar.in.h (wcsnlen): New declaration.
41841         * lib/wcsnlen.c: New file.
41842         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
41843         * m4/wcsnlen.m4: New file.
41844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
41845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
41846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
41847         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
41848         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41850 2011-02-05  Bruno Haible  <bruno@clisp.org>
41852         New module 'wcslen'.
41853         * modules/wcslen: New file.
41854         * lib/wchar.in.h (wcslen): New declaration.
41855         * lib/wcslen.c: New file.
41856         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41857         * m4/wcslen.m4: New file.
41858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41861         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41862         * doc/posix-functions/wcslen.texi: Mention the new module.
41864 2011-02-05  Bruno Haible  <bruno@clisp.org>
41866         New module 'wmemset'.
41867         * modules/wmemset: New file.
41868         * lib/wchar.in.h (wmemset): New declaration.
41869         * lib/wmemset.c: New file.
41870         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41871         * m4/wmemset.m4: New file.
41872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41874         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41875         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41876         * doc/posix-functions/wmemset.texi: Mention the new module.
41878 2011-02-05  Bruno Haible  <bruno@clisp.org>
41880         New module 'wmemmove'.
41881         * modules/wmemmove: New file.
41882         * lib/wchar.in.h (wmemmove): New declaration.
41883         * lib/wmemmove.c: New file.
41884         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41885         * m4/wmemmove.m4: New file.
41886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41888         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41889         HAVE_WMEMMOVE.
41890         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41891         * doc/posix-functions/wmemmove.texi: Mention the new module.
41893 2011-02-05  Bruno Haible  <bruno@clisp.org>
41895         New module 'wmemcpy'.
41896         * modules/wmemcpy: New file.
41897         * lib/wchar.in.h (wmemcpy): New declaration.
41898         * lib/wmemcpy.c: New file.
41899         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41900         * m4/wmemcpy.m4: New file.
41901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41903         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41904         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41905         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41907 2011-02-05  Bruno Haible  <bruno@clisp.org>
41909         New module 'wmemcmp'.
41910         * modules/wmemcmp: New file.
41911         * lib/wchar.in.h (wmemcmp): New declaration.
41912         * lib/wmemcmp.c: New file.
41913         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41914         * m4/wmemcmp.m4: New file.
41915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41917         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41918         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41919         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41921 2011-02-07  Jim Meyering  <meyering@redhat.com>
41923         di-set, ino-map: new modules, from coreutils
41924         * lib/di-set.c: New file.
41925         * lib/di-set.h: Likewise.
41926         * lib/ino-map.c: Likewise.
41927         * lib/ino-map.h: Likewise.
41928         * modules/di-set: Likewise.
41929         * modules/di-set-tests: Likewise.
41930         * modules/ino-map: Likewise.
41931         * modules/ino-map-tests: Likewise.
41932         * tests/test-di-set.c: Likewise.
41933         * tests/test-ino-map.c: Likewise.
41935 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41937         getloadavg: merge minor changes from Emacs
41939         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41940         (getloadavg): Use memset, not bzero.
41942         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41943         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41944         clash (bug#86).
41946 2010-11-14  Bruno Haible  <bruno@clisp.org>
41948         Allow multiple gnulib generated replacements to coexist.
41949         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41950         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41951         * lib/langinfo.in.h (nl_item): Likewise.
41952         * lib/math.in.h (_NaN, NAN): Likewise.
41953         * lib/netdb.in.h (struct addrinfo): Likewise.
41954         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41955         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41956         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41957         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41958         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41959         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41960         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41961         pthread_mutexattr_init, pthread_mutexattr_settype,
41962         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41963         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41964         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41965         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41966         * lib/sched.in.h (struct sched_param): Likewise.
41967         * lib/se-selinux.in.h (security_class_t, security_context_t,
41968         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41969         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41970         lsetfilecon, fsetfilecon, security_check_context,
41971         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41972         Likewise.
41973         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41974         Likewise.
41975         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41976         _gl_function_taking_int_returning_void_t, union sigval,
41977         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41978         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41979         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41980         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41981         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41982         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41983         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41984         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41985         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41986         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41987         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41988         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41989         socklen_t, rpl_fd_isset): Likewise.
41990         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41991         * lib/sys_time.in.h (struct timeval): Likewise.
41992         * lib/sys_times.in.h (struct tms): Likewise.
41993         * lib/sys_utsname.in.h (struct utsname):
41994         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41995         * lib/unistd.in.h (getpagesize): Likewise.
41996         * lib/wchar.in.h (mbstate_t): Likewise.
41997         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41998         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41999         towlower, towupper): Likewise.
42000         Reported by Sam Steingold <sds@gnu.org>.
42002 2011-02-05  Eric Blake  <eblake@redhat.com>
42004         unsetenv: work around Haiku issues
42005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
42006         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
42008 2010-12-30  Bruce Korb  <bkorb@gnu.org>
42010         libposix: avoid calling error() within libposix
42011         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
42012         is defined.
42014 2011-02-05  Eric Blake  <eblake@redhat.com>
42016         strerror_r-posix: port to cygwin
42017         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
42018         implementation.
42019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
42020         * tests/test-strerror_r.c (main): Fix test.
42021         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
42022         issue.
42024 2011-02-05  Bruno Haible  <bruno@clisp.org>
42026         New module 'wmemchr'.
42027         * modules/wmemchr: New file.
42028         * lib/wchar.in.h (wmemchr): New declaration.
42029         * lib/wmemchr.c: New file.
42030         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
42031         * m4/wmemchr.m4: New file.
42032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
42033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
42034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
42035         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
42036         * doc/posix-functions/wmemchr.texi: Mention the new module.
42038 2011-02-04  Eric Blake  <eblake@redhat.com>
42040         fdopendir: detect FreeBSD bug
42041         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
42042         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
42044 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42046         stdbool: do not define HAVE_STDBOOL_H
42047         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
42048         AC_HEADER_STDBOOL.  All uses changed.  Do not define
42049         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
42050         imported from the latest Autoconf git.  It was motivated by Emacs,
42051         which uses gnulib but does not need HAVE_STDBOOL_H.
42053 2011-02-04  Bruno Haible  <bruno@clisp.org>
42055         wcsnrtombs: Prepare for new module wwcsnrtombs.
42056         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
42057         * lib/wcsnrtombs.c: Include it.
42058         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
42060         wcsrtombs: Prepare for new module wwcsrtombs.
42061         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
42062         * lib/wcsrtombs.c: Include it.
42063         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
42065         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
42066         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
42067         * lib/mbsnrtowcs.c: Include it.
42068         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
42070         mbsrtowcs: Prepare for new module mbsrtowwcs.
42071         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
42072         * lib/mbsrtowcs.c: Include it.
42073         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
42075 2011-02-04  Bruno Haible  <bruno@clisp.org>
42077         vasnprintf: Reduce use of malloc for small format strings.
42078         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
42079         (arguments): Add room for the first 7 arguments.
42080         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
42081         (char_directives, u8_directives, u16_directives, u32_directives): Add
42082         room for the first 7 directives.
42083         * lib/printf-parse.c: Include <string.h>.
42084         (PRINTF_PARSE): Change memory handling code so that it uses the first
42085         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
42086         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
42087         Reported by Pádraig Brady <P@draigbrady.com>.
42089 2011-01-31  Eric Blake  <eblake@redhat.com>
42091         dup2: work around Haiku bug
42092         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
42093         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
42094         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42095         * tests/test-dup2.c (main): Enhance test.
42097 2011-01-31  Simon Josefsson  <simon@josefsson.org>
42099         doc: off_t is not available in eglibc 2.11.2 stdio.h.
42100         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
42101         declared by eglibc 2.11.2.
42102         * lib/stdio.in.h: Likewise.
42104 2011-01-31  Eric Blake  <eblake@redhat.com>
42106         ignore-value: add missing test dependency
42107         * tests/test-ignore-value.c: Revert previous change; stdio.h
42108         provides off_t.
42109         * modules/ignore-value-tests (Depends-on): Add missing dependency.
42111 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
42113         mktime: clarify long_int width checking
42114         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
42115         the top level, to make it clearer that the assumption about
42116         long_int width is being checked.  See
42117         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
42119 2011-01-30  Simon Josefsson  <simon@josefsson.org>
42121         ignore-value: Fix self-test.
42122         * tests/test-ignore-value.c: Include sys/types.h for off_t.
42124 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42126         TYPE_MAXIMUM: avoid theoretically undefined behavior
42127         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
42128         negative number, which the C Standard says has undefined behavior.
42129         In practice this is not a problem, but might as well do it by the book.
42130         Reported by Rich Felker and Eric Blake; see
42131         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
42132         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
42133         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42135         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
42136         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42137         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
42139         mktime: #undef mktime before #defining it
42140         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
42142         mktime: systematically normalize tm_isdst comparisons
42143         * lib/mktime.c (isdst_differ): New function.
42144         (__mktime_internal): Use it systematically for all isdst comparisons.
42145         This completes the fix for libc BZ #6723, and removes the need for
42146         normalizing tm_isdst.  See
42147         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
42148         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
42150         mktime: fix some integer overflow issues and sidestep the rest
42152         This was prompted by a bug report by Benjamin Lindner for MinGW
42153         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
42154         His bug is due to signed integer overflow (0 - INT_MIN), and I
42155         I scanned through mktime.c looking for other integer overflow
42156         problems, fixing all the bugs I found.
42158         Although the C Standard says the resulting code is still not safe
42159         in the presence of integer overflow, in practice it should be good
42160         enough for all real-world two's-complement implementations, except
42161         for debugging environments that deliberately trap on integer
42162         overflow (e.g., gcc -ftrapv).
42164         * lib/mktime.c (WRAPV): New macro.
42165         (SHR): Also check that long_int and time_t shift right in the
42166         usual way, before using the fast-but-unportable method.
42167         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
42168         used.  The code already assumed two's complement, so there's
42169         no need to test for alternatives.  All uses removed.
42170         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
42171         the C standard.  Problem reported by Rich Felker in
42172         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
42173         (twos_complement_arithmetic): Also check long_int and time_t.
42174         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
42175         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
42176         (__mktime_internal): Avoid integer overflow with unary subtraction
42177         in two instances where -1 - X is an adequate replacement for -X,
42178         since the calculations are approximate.
42180 2011-01-29  Eric Blake  <eblake@redhat.com>
42182         mktime: avoid infinite loop
42183         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
42184         type; behavior is still undefined but portable to all known targets.
42185         Reported by Rich Felker.
42187 2011-01-29  Simon Josefsson  <simon@josefsson.org>
42189         rename, unlink, same-inode: Relicense.
42190         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
42191         * modules/unlink (License): Likewise.
42192         * modules/same-inode (License): Likewise.
42194 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42196         mktime: avoid problems on NetBSD 5 / i386
42197         * lib/mktime.c (long_int): New type.  This works around a problem
42198         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
42199         but time_t is 64 bits, and where I expect the existing code is
42200         wrong in some cases.
42201         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
42202         (ydhms_diff): Bring back the compile-time check for wide-enough
42203         year and yday.
42205         mktime: fix misspelling in comment
42206         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
42207         This merges all recent glibc changes of importance.
42209 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42211         move-if-change: cope with concurrent mv of identical file.
42212         * build-aux/move-if-change (CMPPROG): Accept environment
42213         variable as an override for `cmp'.
42214         (usage): Document CMPPROG.
42215         Adjust comparison to drop stdout.  Cope with failure of mv if
42216         the target file exists and is identical to the source, for
42217         parallel builds.
42218         Report from H.J. Lu against binutils in PR binutils/12283.
42220 2011-01-28  Bruce Korb  <bkorb@gnu.org>
42222         * users.txt: Mention sharutils.
42224 2011-01-28  Simon Josefsson  <simon@josefsson.org>
42226         * users.txt: Mention OATH Toolkit.
42228 2011-01-27  Bruno Haible  <bruno@clisp.org>
42230         Prepare for supporting FreeBSD 10.
42231         * build-aux/config.libpath: Remove handling of freebsd1*.
42233 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
42235         Prepare for supporting FreeBSD 10.
42236         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
42237         match FreeBSD 10.0.
42239 2011-01-27  Bruno Haible  <bruno@clisp.org>
42241         vma-iter, get-rusage-as: Add OpenBSD support.
42242         * modules/vma-iter (configure.ac): Test for mquery.
42243         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
42244         * lib/vma-iter.c: Include <sys/mman.h>.
42245         (vma_iterate): Add an implementation based on mquery().
42246         * lib/resource-ext.h (get_rusage_as): Update comments.
42247         * lib/get-rusage-as.c: Likewise.
42248         * lib/get-rusage-data.c: Likewise.
42250 2011-01-26  Karl Berry  <karl@gnu.org>
42252         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
42253         variables to make it easier to override the makeinfo program used.
42255 2011-01-26  Eric Blake  <eblake@redhat.com>
42257         fcntl: work around Haiku F_DUPFD bugs
42258         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
42259         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
42260         cloexec bit on duplication.
42261         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
42263 2011-01-26  Bruno Haible  <bruno@clisp.org>
42265         Enable memory leak tests on AIX.
42266         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
42267         * tests/test-fprintf-posix3.c (main): Likewise.
42269 2011-01-26  Bruno Haible  <bruno@clisp.org>
42271         Tests for module 'get-rusage-data'.
42272         * modules/get-rusage-data-tests: New file.
42273         * tests/test-get-rusage-data.c: New file.
42275         New module 'get-rusage-data'.
42276         * lib/resource-ext.h (get_rusage_data): New declaration.
42277         * lib/get-rusage-data.c: New file.
42278         * modules/get-rusage-data: New file.
42280 2011-01-25  Bruno Haible  <bruno@clisp.org>
42282         get-rusage-as: Allow for easier testing.
42283         * lib/resource-ext.h (get_rusage_as): Add comment.
42284         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
42285         (main): New function for interactive testing.
42287 2011-01-25  Bruno Haible  <bruno@clisp.org>
42289         vma-iter: Treat Haiku like BeOS.
42290         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
42291         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
42293 2011-01-25  Eric Blake  <eblake@redhat.com>
42295         c-stack: fix regression on cygwin when libsigsegv is present
42296         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
42298 2011-01-24  Bruno Haible  <bruno@clisp.org>
42300         vma-iter: Avoid empty intervals.
42301         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
42302         on an empty interval.
42304 2011-01-24  Jim Meyering  <meyering@redhat.com>
42306         u64: remove unnecessary #include
42307         * lib/u64.h: Don't include <stddef.h>.  It was not used.
42309 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42311         Allow the user to avoid the HAVE_RAW_DECL_* macros.
42312         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
42314 2011-01-23  Bruno Haible  <bruno@clisp.org>
42316         New module 'vma-iter'.
42317         * lib/vma-iter.h: New file.
42318         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
42319         * modules/vma-iter: New file.
42320         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
42321         for get_rusage_as_via_iterator.
42322         (vma_iterate_callback): New function.
42323         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
42324         * modules/get-rusage-as (Depends-on): Add vma-iter.
42326 2011-01-23  Bruno Haible  <bruno@clisp.org>
42328         uninorm: Tweak includes.
42329         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
42330         Reported by Jim Meyering.
42332 2011-01-23  Bruno Haible  <bruno@clisp.org>
42334         get-rusage-as: Improve on NetBSD.
42335         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
42336         /proc, like on FreeBSD.
42338 2011-01-23  Jim Meyering  <meyering@redhat.com>
42340         xreadlink.h: remove unnecessary #include
42341         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
42343         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
42344         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
42346 2011-01-23  Bruno Haible  <bruno@clisp.org>
42348         get-rusage-as: Fix bug.
42349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
42350         original limit when aborting the first loop.
42352 2011-01-23  Bruno Haible  <bruno@clisp.org>
42354         wctype: Ensure valid C syntax.
42355         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
42356         unconditionally, instead of gl_NEXT_HEADERS conditionally.
42358 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42360         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
42361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
42362         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
42363         as they are needed only for configure's test case.
42364         This removes two unnecessary symbols from config.h.
42366         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
42367         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
42368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
42369         AC_CHECK_HEADERS_ONCE on a header that we also invoke
42370         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
42371         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
42372         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
42373         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
42374         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42375         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
42377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42378         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
42380         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
42381         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42382         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
42383         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42385 2011-01-21  Eric Blake  <eblake@redhat.com>
42387         maintainer-makefile: work with older git for submodule check
42388         * top/maint.mk (public-submodule-commit): Rewrite to avoid
42389         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
42390         Reported by Matthias Bolte.
42392         bootstrap: minor portability fixes
42393         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
42394         (usage): Omit leading capital and trailing . on help phrases, per
42395         GNU Coding Standards.
42396         (check_versions, top level): Prefix messages with script name.
42398 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
42400         bootstrap: support --no-git option
42401         * build-aux/bootstrap: Add --no-git option, to be used when
42402         --gnulib-srcdir points to the exact desired checkout.
42404 2011-01-21  Eric Blake  <eblake@redhat.com>
42406         strerror_r-posix: work with glibc 2.13
42407         * lib/strerror_r.c (strerror_r): Fix return type.
42409 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42410             Bruno Haible  <bruno@clisp.org>
42412         uN_strstr: New unit tests.
42413         * modules/unistr/u8-strstr-tests: New file.
42414         * modules/unistr/u16-strstr-tests: New file.
42415         * modules/unistr/u32-strstr-tests: New file.
42416         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
42417         * tests/unistr/test-u8-strstr.c: New file.
42418         * tests/unistr/test-u16-strstr.c: New file.
42419         * tests/unistr/test-u32-strstr.c: New file.
42421 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42422             Bruno Haible  <bruno@clisp.org>
42424         Make uN_strstr functions O(n) worst-case.
42425         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
42426         16-bit and 32-bit unit cases, use the unibyte algorithm from
42427         lib/mbsstr.c.
42428         * lib/unistr/u8-strstr.c: Include <string.h>.
42429         (UNIT_IS_UINT8_T): New macro.
42430         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
42431         (U_STRLEN, U_STRNLEN): New macros.
42432         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
42433         (U_STRLEN, U_STRNLEN): New macros.
42434         * modules/unistr/u8-strstr (Depends-on): Add strstr.
42435         (configure.ac): Update required libunistring version.
42436         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
42437         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
42438         malloca.
42439         (configure.ac): Update required libunistring version.
42440         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
42441         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
42442         malloca.
42443         (configure.ac): Update required libunistring version.
42445 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42446             Bruno Haible  <bruno@clisp.org>
42448         Prepare for faster uN_strstr functions.
42449         * lib/str-kmp.h: Support definable UNITs.
42450         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
42451         needle_len argument.
42452         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
42453         * lib/mbscasestr.c (mbscasestr): Likewise.
42455 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42457         malloca-tests: make faster by unsetting MALLOC_PERTURB_
42458         * tests/test-malloca.c (main): Unset the environment variable
42459         to greatly speed up the test.
42460         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
42461         * modules/malloca-tests: Depend on unsetenv.
42463 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42465         ignore-value: remove stdint dependency
42466         * lib/ignore-value.h: Remove <stdint.h>
42467         * modules/ignore-value: Remove stdint dependency.
42469 2011-01-21  Jim Meyering  <meyering@redhat.com>
42471         maint.mk: adjust variable name to be consistent with other gl_ vars
42472         * top/maint.mk (gl_public_submodule_commit): Rename the variable
42473         to be lower case.
42475 2011-01-20  Jim Meyering  <meyering@redhat.com>
42477         maint.mk: make "check" depend on public-submodule-commit by default
42478         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
42480 2011-01-20  Bruno Haible  <bruno@clisp.org>
42482         mbfile, mbiter: Complete change from 2008-12-21.
42483         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
42484         * m4/mbiter.m4 (gl_MBITER): Likewise.
42486 2011-01-20  Jim Meyering  <meyering@redhat.com>
42488         init.sh: insert space between each function name and "()"
42489         * tests/init.sh: Make it a little easier to see that a function's
42490         name is "warn_", and not "warn" when looking at the first part of
42491         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
42493 2011-01-20  Jim Meyering  <meyering@redhat.com>
42495         mountlist: clean up code formatting
42496         * lib/mountlist.c (read_file_system_list): Split a long line,
42497         correct bracing style, use NULL in place of "(struct statfs *)0",
42498         don't parenthesize return value, add spaces around "=" and after
42499         ";-in-for-stmt".
42501 2011-01-14  Markus Duft  <mduft@gentoo.org>
42503         mountlist: add support for Interix
42504         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
42505         Apply statvfs to all entries of /dev/fs.
42506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
42507         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
42509 2011-01-20  Jim Meyering  <meyering@redhat.com>
42511         maint.mk: improve the public-submodule-commit rule
42512         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
42513         to suppress printing of its commands... unless V=1.
42514         Add git submodule's --quiet option to suppress printing of e.g.,
42515         "Entering gnulib" output.
42516         "cd" into $(srcdir) before running git submodule.
42518 2011-01-20  Bruno Haible  <bruno@clisp.org>
42520         include_next: Fix bug introduced on 2011-01-18.
42521         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
42522         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
42523         ac_cv_header_... variable if the second argument is not 'check'.
42524         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
42525         gl_NEXT_HEADERS_INTERNAL.
42527 2011-01-20  Bruno Haible  <bruno@clisp.org>
42529         Allow the user to avoid the GNULIB_TEST_* macros.
42530         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
42531         Suggested by Paul Eggert.
42533 2011-01-14  Jim Meyering  <meyering@redhat.com>
42535         bootstrap: avoid failure when there is no .gitmodules file
42536         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
42537         has been assigned to, even when its value is the empty string.
42538         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
42539         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
42540         Reported by John W. Eaton <jwe@gnu.org>.
42542 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42544         assume <ctype.h>, ..., <time.h> exist
42545         For years gnulib has been assuming the existence of the headers
42546         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
42547         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
42548         them, since they don't appear to be needed.
42549         * README (Portability guidelines): Document this.
42550         * lib/flock.c: Assume <fcntl.h> exists.
42551         * lib/regex_internal.h: Assume <locale.h> exists.
42552         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
42553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
42554         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
42555         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
42556         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
42557         * m4/regex.m4 (gl_REGEX): Likewise.
42558         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
42559         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
42560         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
42561         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
42562         * tests/test-argp.c: Likewise.
42563         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
42565         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
42566         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
42567         AA_APPLE_UNIVERSAL_BUILD.  See
42568         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
42569         * NEWS: Document this.
42571 2011-01-19  Eric Blake  <eblake@redhat.com>
42573         c-stack: assume stack overflow if SA_SIGINFO unsupported
42574         * lib/c-stack.c (SIGACTION_WORKS): Rename...
42575         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
42576         sigaction will work.
42577         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
42578         behavior match Linux.
42579         * tests/test-c-stack.c (main): Prefer NULL for pointers.
42581         stdbool-tests: accommodate Haiku
42582         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
42584         binary-io: fix O_TEXT on Haiku
42585         * modules/binary-io (Depends-on): Add fcntl-h.
42586         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
42587         than blindly undefining O_TEXT.
42588         Reported by Scott McCreary.
42590 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42592         include_next: do not check for standard headers like stddef.h
42594         I found this problem when modifying Emacs to use gnulib.
42595         I noticed that it added HAVE_STDDEF_H to config.h, even though
42596         gnulib always assumes <stddef.h> exists as per README and this
42597         symbol is unnecessary.
42598         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
42599         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
42600         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
42601         faster for headers like stddef.h that are known to exist.
42602         (gl_CHECK_NEXT_HEADERS): Use it.
42603         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
42604         rather than gl_CHECK_NEXT_HEADERS.
42605         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
42606         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
42608 2011-01-18  Eric Blake  <eblake@redhat.com>
42610         ansi-c++-opt: skip C++ dependency style if C++ is unused
42611         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
42612         tests when we know C++ compilation is not desired.
42613         Reported by Scott McCreary.
42615 2011-01-18  Bruno Haible  <bruno@clisp.org>
42617         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
42618         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
42619         (main): Perform test also when getrlimit and setrlimit don't exist or
42620         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
42621         limiting the address space size using setrlimit, compare the address
42622         space size before and after the test.
42623         * tests/test-dprintf-posix2.c: Likewise.
42624         * tests/test-fprintf-posix3.sh: Update skip messages.
42625         * tests/test-dprintf-posix2.sh: Likewise.
42626         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
42627         * modules/dprintf-posix-tests (Depends-on): Likewise.
42628         Reported by Bruce Korb <bkorb@gnu.org> and
42629         Gary V. Vaughan <gary@gnu.org>.
42631 2011-01-18  Bruno Haible  <bruno@clisp.org>
42633         get-rusage-as: Improvement for Cygwin.
42634         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
42635         areas that are merely reserved.
42637 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42639         strftime: remove dependencies on multibyte modules
42641         strftime depended on mbrlen, mbsinit, and wchar, but these modules
42642         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
42643         only if __osf__ is defined, and I suspect OSF doesn't need these
42644         other modules.  If my guess is wrong, we'll need to come up with a
42645         variant of strftime that doesn't need the multibyte modules.
42647         I discovered this problem when attempting modify Emacs to use the
42648         strftime module.  With the previous gnulib, this caused Emacs to
42649         need 31 new files, ranging from lib/config.charset to
42650         m4/wint_t.m4.  This was overkill and I expect would be offputting
42651         to the Emacs maintainers.  After this change, only 6 new files are
42652         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
42653         stdbool.m4, and tm_gmtoff.m4.
42655         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
42656         Suggested by Bruno Haible in
42657         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
42658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
42659         and do not check for wchar.h.
42660         * modules/strftime (Files): Remove m4/mbstate_t.m4.
42661         (Depends-on): Remove mbrlen, mbsinit, wchar.
42663 2011-01-18  Bruno Haible  <bruno@clisp.org>
42665         Tests for module 'get-rusage-as'.
42666         * modules/get-rusage-as-tests: New file.
42667         * tests/test-get-rusage-as.c: New file.
42669         New module 'get-rusage-as'.
42670         * modules/get-rusage-as: New file.
42671         * lib/resource-ext.h: New file.
42672         * lib/get-rusage-as.c: New file.
42674 2011-01-17  Eric Blake  <eblake@redhat.com>
42676         sigaction: relax license from LGPLv3+ to LGPLv2+
42677         * modules/sigaction (License): Relax to LGPLv2+.
42679 2011-01-14  Bruno Haible  <bruno@clisp.org>
42681         filemode: Make function declarations usable in C++ mode.
42682         * lib/filemode.h: Enclose function declarations in extern "C" block.
42683         Reported by John W. Eaton <jwe@gnu.org>.
42685 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
42687         save-cwd: no longer include "xgetcwd.h"
42688         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
42689         This avoids a compilation failure in projects that use save-cwd
42690         without also using the xgetcwd module.
42692 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42694         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
42695         This is so that a program like Emacs, which needs only dtoastr,
42696         does not have to bother with distributing and compiling ftoastr
42697         and ldtoastr.
42698         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
42699         * modules/dtoastr, modules/ldtoastr: New files.
42700         * modules/ftoastr: Now works just for 'float'.
42701         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
42702         (Makefile.am): Remove ftoastr.h (not needed and no effect),
42703         dtoastr.c, ldtoastr.c.
42705 2011-01-11  Jim Meyering  <meyering@redhat.com>
42707         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
42708         There is no need to work around the lack of the fchdir function,
42709         since gnulib can now provide a replacement when required.
42710         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
42711         * modules/save-cwd (Depends-on): Add fchdir.
42713 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42715         openat, save-cwd: avoid xmalloc
42717         This removes a direct (but undocumented) dependency of openat on
42718         xalloc, along with an indirect dependency via save-cwd.  It also
42719         removes a dependency of save-cwd on xgetcwd, and thereby
42720         indirectly on xalloc.  This change causes the openat substitute
42721         to fall back on save_cwd when memory is tight, and for save_cwd to
42722         fail instead of dying when memory is tight, but that's good enough.
42723         Problem and initial idea for fix reported by Bastien Roucaries in
42724         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
42726         * lib/openat-proc.c: Include stdlib.h (for malloc), not
42727         xalloc.h (for xmalloc).
42728         (openat_proc_name): Use malloc, not xmalloc.
42729         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
42730         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
42732         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
42733         This avoids heap allocation for file names whose lengths are in
42734         the range 512..1023, with the upper bound increasing to at most
42735         4031 depending on the platform's PATH_MAX.  (We do not want
42736         pathmax.h here as it might supply a non-constant PATH_MAX.)
42737         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
42738         Perhaps they should be moved to malloca.h?
42739         (OPENAT_BUFFER_SIZE): Use them.
42741 2011-01-10  Bruno Haible  <bruno@clisp.org>
42743         doc: Update users.txt.
42744         * users.txt: Add recutils.
42746 2011-01-09  Karl Berry  <karl@gnu.org>
42748         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
42750         * doc/configmake.texi: New file.
42751         * doc/gnulib.texi: Include it.
42752         * modules/configmake: Move documentation from here.
42754 2011-01-09  Bruno Haible  <bruno@clisp.org>
42756         Update to Unicode 6.0.0.
42757         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
42758         (get_lbp): Update for Unicode 6.0.0.
42759         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
42760         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
42761         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
42762         U+11001, U+11038..U+11046. Remove U+06DE.
42763         (uc_width): Fix bounds of planes.
42764         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42765         lib/uniwidth/width.c.
42766         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
42767         trailing whitespace removed.
42768         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
42769         without comments, but with the original copyright notice.
42770         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
42771         * lib/unicase/ignorable.h: Likewise.
42772         * lib/unicase/tocasefold.h: Likewise.
42773         * lib/unicase/tolower.h: Likewise.
42774         * lib/unicase/totitle.h: Likewise.
42775         * lib/unicase/toupper.h: Likewise.
42776         * lib/unictype/bidi_of.h: Likewise.
42777         * lib/unictype/blocks.h: Likewise.
42778         * lib/unictype/categ_C.h: Likewise.
42779         * lib/unictype/categ_Cn.h: Likewise.
42780         * lib/unictype/categ_L.h: Likewise.
42781         * lib/unictype/categ_Ll.h: Likewise.
42782         * lib/unictype/categ_Lm.h: Likewise.
42783         * lib/unictype/categ_Lo.h: Likewise.
42784         * lib/unictype/categ_Lu.h: Likewise.
42785         * lib/unictype/categ_M.h: Likewise.
42786         * lib/unictype/categ_Mc.h: Likewise.
42787         * lib/unictype/categ_Me.h: Likewise.
42788         * lib/unictype/categ_Mn.h: Likewise.
42789         * lib/unictype/categ_N.h: Likewise.
42790         * lib/unictype/categ_Nd.h: Likewise.
42791         * lib/unictype/categ_No.h: Likewise.
42792         * lib/unictype/categ_P.h: Likewise.
42793         * lib/unictype/categ_Po.h: Likewise.
42794         * lib/unictype/categ_S.h: Likewise.
42795         * lib/unictype/categ_Sc.h: Likewise.
42796         * lib/unictype/categ_Sk.h: Likewise.
42797         * lib/unictype/categ_Sm.h: Likewise.
42798         * lib/unictype/categ_So.h: Likewise.
42799         * lib/unictype/categ_of.h: Likewise.
42800         * lib/unictype/combining.h: Likewise.
42801         * lib/unictype/ctype_alnum.h: Likewise.
42802         * lib/unictype/ctype_alpha.h: Likewise.
42803         * lib/unictype/ctype_graph.h: Likewise.
42804         * lib/unictype/ctype_lower.h: Likewise.
42805         * lib/unictype/ctype_print.h: Likewise.
42806         * lib/unictype/ctype_punct.h: Likewise.
42807         * lib/unictype/ctype_upper.h: Likewise.
42808         * lib/unictype/decdigit.h: Likewise.
42809         * lib/unictype/digit.h: Likewise.
42810         * lib/unictype/numeric.h: Likewise.
42811         * lib/unictype/pr_alphabetic.h: Likewise.
42812         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42813         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42814         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42815         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42816         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42817         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42818         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42819         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42820         * lib/unictype/pr_case_ignorable.h: Likewise.
42821         * lib/unictype/pr_cased.h: Likewise.
42822         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
42823         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
42824         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
42825         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
42826         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
42827         * lib/unictype/pr_combining.h: Likewise.
42828         * lib/unictype/pr_composite.h: Likewise.
42829         * lib/unictype/pr_currency_symbol.h: Likewise.
42830         * lib/unictype/pr_decimal_digit.h: Likewise.
42831         * lib/unictype/pr_deprecated.h: Likewise.
42832         * lib/unictype/pr_format_control.h: Likewise.
42833         * lib/unictype/pr_grapheme_base.h: Likewise.
42834         * lib/unictype/pr_grapheme_extend.h: Likewise.
42835         * lib/unictype/pr_grapheme_link.h: Likewise.
42836         * lib/unictype/pr_id_continue.h: Likewise.
42837         * lib/unictype/pr_id_start.h: Likewise.
42838         * lib/unictype/pr_ideographic.h: Likewise.
42839         * lib/unictype/pr_lowercase.h: Likewise.
42840         * lib/unictype/pr_math.h: Likewise.
42841         * lib/unictype/pr_numeric.h: Likewise.
42842         * lib/unictype/pr_other_alphabetic.h: Likewise.
42843         * lib/unictype/pr_other_id_continue.h: Likewise.
42844         * lib/unictype/pr_other_math.h: Likewise.
42845         * lib/unictype/pr_punctuation.h: Likewise.
42846         * lib/unictype/pr_sentence_terminal.h: Likewise.
42847         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42848         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42849         * lib/unictype/pr_unified_ideograph.h: Likewise.
42850         * lib/unictype/pr_uppercase.h: Likewise.
42851         * lib/unictype/pr_xid_continue.h: Likewise.
42852         * lib/unictype/pr_xid_start.h: Likewise.
42853         * lib/unictype/scripts.h: Likewise.
42854         * lib/unictype/scripts_byname.gperf: Likewise.
42855         * lib/unictype/sy_java_ident.h: Likewise.
42856         * lib/unigbrk/gbrkprop.h: Likewise.
42857         * lib/unilbrk/lbrkprop1.h: Likewise.
42858         * lib/unilbrk/lbrkprop2.h: Likewise.
42859         * lib/uninorm/decomposition-table2.h: Likewise.
42860         * lib/uniwbrk/wbrkprop.h: Likewise.
42861         * tests/unicase/test-cased.c: Likewise.
42862         * tests/unicase/test-ignorable.c: Likewise.
42863         * tests/unicase/test-uc_tolower.c: Likewise.
42864         * tests/unicase/test-uc_totitle.c: Likewise.
42865         * tests/unicase/test-uc_toupper.c: Likewise.
42866         * tests/unictype/test-categ_C.c: Likewise.
42867         * tests/unictype/test-categ_Cn.c: Likewise.
42868         * tests/unictype/test-categ_L.c: Likewise.
42869         * tests/unictype/test-categ_Ll.c: Likewise.
42870         * tests/unictype/test-categ_Lm.c: Likewise.
42871         * tests/unictype/test-categ_Lo.c: Likewise.
42872         * tests/unictype/test-categ_Lu.c: Likewise.
42873         * tests/unictype/test-categ_M.c: Likewise.
42874         * tests/unictype/test-categ_Mc.c: Likewise.
42875         * tests/unictype/test-categ_Me.c: Likewise.
42876         * tests/unictype/test-categ_Mn.c: Likewise.
42877         * tests/unictype/test-categ_N.c: Likewise.
42878         * tests/unictype/test-categ_Nd.c: Likewise.
42879         * tests/unictype/test-categ_No.c: Likewise.
42880         * tests/unictype/test-categ_P.c: Likewise.
42881         * tests/unictype/test-categ_Po.c: Likewise.
42882         * tests/unictype/test-categ_S.c: Likewise.
42883         * tests/unictype/test-categ_Sc.c: Likewise.
42884         * tests/unictype/test-categ_Sk.c: Likewise.
42885         * tests/unictype/test-categ_Sm.c: Likewise.
42886         * tests/unictype/test-categ_So.c: Likewise.
42887         * tests/unictype/test-ctype_alnum.c: Likewise.
42888         * tests/unictype/test-ctype_alpha.c: Likewise.
42889         * tests/unictype/test-ctype_graph.c: Likewise.
42890         * tests/unictype/test-ctype_lower.c: Likewise.
42891         * tests/unictype/test-ctype_print.c: Likewise.
42892         * tests/unictype/test-ctype_punct.c: Likewise.
42893         * tests/unictype/test-ctype_upper.c: Likewise.
42894         * tests/unictype/test-decdigit.h: Likewise.
42895         * tests/unictype/test-digit.h: Likewise.
42896         * tests/unictype/test-numeric.h: Likewise.
42897         * tests/unictype/test-pr_alphabetic.c: Likewise.
42898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42899         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42900         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42902         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42903         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42905         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42906         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42907         * tests/unictype/test-pr_cased.c: Likewise.
42908         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42909         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42910         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42911         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42912         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42913         * tests/unictype/test-pr_combining.c: Likewise.
42914         * tests/unictype/test-pr_composite.c: Likewise.
42915         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42916         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42917         * tests/unictype/test-pr_deprecated.c: Likewise.
42918         * tests/unictype/test-pr_format_control.c: Likewise.
42919         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42920         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42921         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42922         * tests/unictype/test-pr_id_continue.c: Likewise.
42923         * tests/unictype/test-pr_id_start.c: Likewise.
42924         * tests/unictype/test-pr_ideographic.c: Likewise.
42925         * tests/unictype/test-pr_lowercase.c: Likewise.
42926         * tests/unictype/test-pr_math.c: Likewise.
42927         * tests/unictype/test-pr_numeric.c: Likewise.
42928         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42929         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42930         * tests/unictype/test-pr_other_math.c: Likewise.
42931         * tests/unictype/test-pr_punctuation.c: Likewise.
42932         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42933         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42934         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42935         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42936         * tests/unictype/test-pr_uppercase.c: Likewise.
42937         * tests/unictype/test-pr_xid_continue.c: Likewise.
42938         * tests/unictype/test-pr_xid_start.c: Likewise.
42939         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42940         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42941         changes.
42942         * lib/unictype/categ_Cc.h: Likewise.
42943         * lib/unictype/categ_Cf.h: Likewise.
42944         * lib/unictype/categ_Co.h: Likewise.
42945         * lib/unictype/categ_Cs.h: Likewise.
42946         * lib/unictype/categ_Lt.h: Likewise.
42947         * lib/unictype/categ_Nl.h: Likewise.
42948         * lib/unictype/categ_Pc.h: Likewise.
42949         * lib/unictype/categ_Pd.h: Likewise.
42950         * lib/unictype/categ_Pe.h: Likewise.
42951         * lib/unictype/categ_Pf.h: Likewise.
42952         * lib/unictype/categ_Pi.h: Likewise.
42953         * lib/unictype/categ_Ps.h: Likewise.
42954         * lib/unictype/categ_Z.h: Likewise.
42955         * lib/unictype/categ_Zl.h: Likewise.
42956         * lib/unictype/categ_Zp.h: Likewise.
42957         * lib/unictype/categ_Zs.h: Likewise.
42958         * lib/unictype/ctype_blank.h: Likewise.
42959         * lib/unictype/ctype_cntrl.h: Likewise.
42960         * lib/unictype/ctype_digit.h: Likewise.
42961         * lib/unictype/ctype_space.h: Likewise.
42962         * lib/unictype/ctype_xdigit.h: Likewise.
42963         * lib/unictype/mirror.h: Likewise.
42964         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42965         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42966         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42967         * lib/unictype/pr_bidi_control.h: Likewise.
42968         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42969         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42970         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42971         * lib/unictype/pr_bidi_pdf.h: Likewise.
42972         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42973         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42974         * lib/unictype/pr_dash.h: Likewise.
42975         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42976         * lib/unictype/pr_diacritic.h: Likewise.
42977         * lib/unictype/pr_extender.h: Likewise.
42978         * lib/unictype/pr_hex_digit.h: Likewise.
42979         * lib/unictype/pr_hyphen.h: Likewise.
42980         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42981         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42982         * lib/unictype/pr_ignorable_control.h: Likewise.
42983         * lib/unictype/pr_iso_control.h: Likewise.
42984         * lib/unictype/pr_join_control.h: Likewise.
42985         * lib/unictype/pr_left_of_pair.h: Likewise.
42986         * lib/unictype/pr_line_separator.h: Likewise.
42987         * lib/unictype/pr_logical_order_exception.h: Likewise.
42988         * lib/unictype/pr_non_break.h: Likewise.
42989         * lib/unictype/pr_not_a_character.h: Likewise.
42990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42992         * lib/unictype/pr_other_id_start.h: Likewise.
42993         * lib/unictype/pr_other_lowercase.h: Likewise.
42994         * lib/unictype/pr_other_uppercase.h: Likewise.
42995         * lib/unictype/pr_paired_punctuation.h: Likewise.
42996         * lib/unictype/pr_paragraph_separator.h: Likewise.
42997         * lib/unictype/pr_pattern_syntax.h: Likewise.
42998         * lib/unictype/pr_pattern_white_space.h: Likewise.
42999         * lib/unictype/pr_private_use.h: Likewise.
43000         * lib/unictype/pr_quotation_mark.h: Likewise.
43001         * lib/unictype/pr_radical.h: Likewise.
43002         * lib/unictype/pr_soft_dotted.h: Likewise.
43003         * lib/unictype/pr_space.h: Likewise.
43004         * lib/unictype/pr_titlecase.h: Likewise.
43005         * lib/unictype/pr_variation_selector.h: Likewise.
43006         * lib/unictype/pr_white_space.h: Likewise.
43007         * lib/unictype/pr_zero_width.h: Likewise.
43008         * lib/unictype/sy_c_ident.h: Likewise.
43009         * lib/unictype/sy_c_whitespace.h: Likewise.
43010         * lib/unictype/sy_java_whitespace.h: Likewise.
43011         * lib/uninorm/composition-table.gperf: Likewise.
43012         * lib/uninorm/decomposition-table1.h: Likewise.
43013         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
43014         LB8.
43015         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43016         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43017         * modules/unictype/*: Bump version number of expected libunistring
43018         version.
43020 2011-01-09  Bruno Haible  <bruno@clisp.org>
43022         Update to Unicode 5.2.0.
43023         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
43024         trailing whitespace removed.
43026 2011-01-09  Bruno Haible  <bruno@clisp.org>
43028         New Unicode character properties, from Unicode 5.2.0.
43029         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
43030         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
43031         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
43032         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
43033         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
43034         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
43035         uc_is_property_cased, uc_is_property_case_ignorable,
43036         uc_is_property_changes_when_lowercased,
43037         uc_is_property_changes_when_uppercased,
43038         uc_is_property_changes_when_titlecased,
43039         uc_is_property_changes_when_casefolded,
43040         uc_is_property_changes_when_casemapped): New declarations.
43041         * lib/unictype/pr_byname.gperf: Add the new properties.
43042         * modules/unictype/property-byname (Depends-on): Depend on the new
43043         properties modules.
43044         * modules/unictype/property-all (Depends-on): Likewise.
43045         * MODULES.html.sh (Unicode string functions): Add
43046         unictype/property-case-ignorable, unictype/property-cased,
43047         unictype/property-changes-when-casefolded,
43048         unictype/property-changes-when-casemapped,
43049         unictype/property-changes-when-lowercased,
43050         unictype/property-changes-when-titlecased,
43051         unictype/property-changes-when-uppercased.
43053         New module 'unictype/property-changes-when-casemapped'.
43054         * modules/unictype/property-changes-when-casemapped: New file.
43055         * lib/unictype/pr_changes_when_casemapped.c: New file.
43056         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
43057         generated by gen-uni-tables.
43058         * modules/unictype/property-changes-when-casemapped-tests: New file.
43059         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
43060         automatically generated by gen-uni-tables.
43062         New module 'unictype/property-changes-when-casefolded'.
43063         * modules/unictype/property-changes-when-casefolded: New file.
43064         * lib/unictype/pr_changes_when_casefolded.c: New file.
43065         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
43066         generated by gen-uni-tables.
43067         * modules/unictype/property-changes-when-casefolded-tests: New file.
43068         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
43069         automatically generated by gen-uni-tables.
43071         New module 'unictype/property-changes-when-titlecased'.
43072         * modules/unictype/property-changes-when-titlecased: New file.
43073         * lib/unictype/pr_changes_when_titlecased.c: New file.
43074         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
43075         generated by gen-uni-tables.
43076         * modules/unictype/property-changes-when-titlecased-tests: New file.
43077         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
43078         automatically generated by gen-uni-tables.
43080         New module 'unictype/property-changes-when-uppercased'.
43081         * modules/unictype/property-changes-when-uppercased: New file.
43082         * lib/unictype/pr_changes_when_uppercased.c: New file.
43083         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
43084         generated by gen-uni-tables.
43085         * modules/unictype/property-changes-when-uppercased-tests: New file.
43086         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
43087         automatically generated by gen-uni-tables.
43089         New module 'unictype/property-changes-when-lowercased'.
43090         * modules/unictype/property-changes-when-lowercased: New file.
43091         * lib/unictype/pr_changes_when_lowercased.c: New file.
43092         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
43093         generated by gen-uni-tables.
43094         * modules/unictype/property-changes-when-lowercased-tests: New file.
43095         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
43096         automatically generated by gen-uni-tables.
43098         New module 'unictype/property-case-ignorable'.
43099         * modules/unictype/property-case-ignorable: New file.
43100         * lib/unictype/pr_case_ignorable.c: New file.
43101         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
43102         by gen-uni-tables.
43103         * modules/unictype/property-case-ignorable-tests: New file.
43104         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
43105         generated by gen-uni-tables.
43107         New module 'unictype/property-cased'.
43108         * modules/unictype/property-cased: New file.
43109         * lib/unictype/pr_cased.c: New file.
43110         * lib/unictype/pr_cased.h: New file, automatically generated by
43111         gen-uni-tables.
43112         * modules/unictype/property-cased-tests: New file.
43113         * tests/unictype/test-pr_cased.c: New file, automatically generated by
43114         gen-uni-tables.
43116 2011-01-09  Bruno Haible  <bruno@clisp.org>
43118         Update to Unicode 5.2.0.
43119         * lib/gen-uni-tables.c (output_predicate, output_category,
43120         output_combclass, output_bidi_category, output_decimal_digit_test,
43121         output_decimal_digit, output_digit_test, output_digit,
43122         output_numeric_test, output_numeric, output_mirror, output_scripts,
43123         output_scripts_byname, output_blocks, output_ident_category): Fix
43124         comment header.
43125         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
43126         get_wbp.
43127         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
43128         items.
43129         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
43130         Changes_When_Lowercased, Changes_When_Uppercased,
43131         Changes_When_Titlecased, Changes_When_Casefolded,
43132         Changes_When_Casemapped.
43133         (is_property_alphabetic, is_property_default_ignorable_code_point):
43134         Update for Unicode 5.2.0.
43135         (is_property_cased, is_property_case_ignorable,
43136         is_property_changes_when_lowercased,
43137         is_property_changes_when_uppercased,
43138         is_property_changes_when_titlecased,
43139         is_property_changes_when_casefolded,
43140         is_property_changes_when_casemapped): New functions.
43141         (output_properties): Output also the properties cased, case_ignorable,
43142         changes_when_lowercased, changes_when_uppercased,
43143         changes_when_titlecased, changes_when_casefolded,
43144         changes_when_casemapped.
43145         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
43146         Unicode TR#11 revision 17 -> 19.
43147         (LBP_CP): New enumeration value.
43148         (LBP_*): Adjust values accordingly.
43149         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
43150         TR#14 revision 22 -> 24.
43151         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
43152         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
43153         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
43154         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
43155         is_WBP_MIDLETTER.
43156         (output_composition_tables): Allow for 24 bits instead of 16 bits in
43157         the code1 and code2 of each composition rule.
43158         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
43159         * lib/unicase/ignorable.h: Likewise.
43160         * lib/unicase/tocasefold.h: Likewise.
43161         * lib/unicase/tolower.h: Likewise.
43162         * lib/unicase/totitle.h: Likewise.
43163         * lib/unicase/toupper.h: Likewise.
43164         * lib/unictype/bidi_of.h: Likewise.
43165         * lib/unictype/blocks.h: Likewise.
43166         * lib/unictype/categ_C.h: Likewise.
43167         * lib/unictype/categ_Cf.h: Likewise.
43168         * lib/unictype/categ_Cn.h: Likewise.
43169         * lib/unictype/categ_L.h: Likewise.
43170         * lib/unictype/categ_Ll.h: Likewise.
43171         * lib/unictype/categ_Lm.h: Likewise.
43172         * lib/unictype/categ_Lo.h: Likewise.
43173         * lib/unictype/categ_Lu.h: Likewise.
43174         * lib/unictype/categ_M.h: Likewise.
43175         * lib/unictype/categ_Mc.h: Likewise.
43176         * lib/unictype/categ_Mn.h: Likewise.
43177         * lib/unictype/categ_N.h: Likewise.
43178         * lib/unictype/categ_Nd.h: Likewise.
43179         * lib/unictype/categ_Nl.h: Likewise.
43180         * lib/unictype/categ_No.h: Likewise.
43181         * lib/unictype/categ_P.h: Likewise.
43182         * lib/unictype/categ_Pd.h: Likewise.
43183         * lib/unictype/categ_Po.h: Likewise.
43184         * lib/unictype/categ_S.h: Likewise.
43185         * lib/unictype/categ_Sc.h: Likewise.
43186         * lib/unictype/categ_So.h: Likewise.
43187         * lib/unictype/categ_of.h: Likewise.
43188         * lib/unictype/combining.h: Likewise.
43189         * lib/unictype/ctype_alnum.h: Likewise.
43190         * lib/unictype/ctype_alpha.h: Likewise.
43191         * lib/unictype/ctype_graph.h: Likewise.
43192         * lib/unictype/ctype_lower.h: Likewise.
43193         * lib/unictype/ctype_print.h: Likewise.
43194         * lib/unictype/ctype_punct.h: Likewise.
43195         * lib/unictype/ctype_upper.h: Likewise.
43196         * lib/unictype/decdigit.h: Likewise.
43197         * lib/unictype/digit.h: Likewise.
43198         * lib/unictype/numeric.h: Likewise.
43199         * lib/unictype/pr_alphabetic.h: Likewise.
43200         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43201         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43202         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43203         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43204         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43205         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43206         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43207         * lib/unictype/pr_combining.h: Likewise.
43208         * lib/unictype/pr_composite.h: Likewise.
43209         * lib/unictype/pr_currency_symbol.h: Likewise.
43210         * lib/unictype/pr_dash.h: Likewise.
43211         * lib/unictype/pr_decimal_digit.h: Likewise.
43212         * lib/unictype/pr_deprecated.h: Likewise.
43213         * lib/unictype/pr_diacritic.h: Likewise.
43214         * lib/unictype/pr_extender.h: Likewise.
43215         * lib/unictype/pr_grapheme_base.h: Likewise.
43216         * lib/unictype/pr_grapheme_extend.h: Likewise.
43217         * lib/unictype/pr_grapheme_link.h: Likewise.
43218         * lib/unictype/pr_id_continue.h: Likewise.
43219         * lib/unictype/pr_id_start.h: Likewise.
43220         * lib/unictype/pr_ideographic.h: Likewise.
43221         * lib/unictype/pr_ignorable_control.h: Likewise.
43222         * lib/unictype/pr_logical_order_exception.h: Likewise.
43223         * lib/unictype/pr_lowercase.h: Likewise.
43224         * lib/unictype/pr_numeric.h: Likewise.
43225         * lib/unictype/pr_other_alphabetic.h: Likewise.
43226         * lib/unictype/pr_punctuation.h: Likewise.
43227         * lib/unictype/pr_sentence_terminal.h: Likewise.
43228         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43229         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43230         * lib/unictype/pr_unified_ideograph.h: Likewise.
43231         * lib/unictype/pr_uppercase.h: Likewise.
43232         * lib/unictype/pr_xid_continue.h: Likewise.
43233         * lib/unictype/pr_xid_start.h: Likewise.
43234         * lib/unictype/pr_zero_width.h: Likewise.
43235         * lib/unictype/scripts.h: Likewise.
43236         * lib/unictype/scripts_byname.gperf: Likewise.
43237         * lib/unictype/sy_java_ident.h: Likewise.
43238         * lib/unigbrk/gbrkprop.h: Likewise.
43239         * lib/unilbrk/lbrkprop1.h: Likewise.
43240         * lib/unilbrk/lbrkprop2.h: Likewise.
43241         * lib/unilbrk/lbrktables.h: Likewise.
43242         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
43243         LBP_CP. Implement rule LB30.
43244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
43245         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
43246         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
43247         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
43248         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
43249         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
43250         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
43251         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
43252         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
43253         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
43254         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
43255         bits instead of 16 bits in the code1 and code2 of each composition
43256         rule.
43257         (uc_composition): Update for Unicode 5.2.0.
43258         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
43259         * lib/uninorm/decomposition-table2.h: Likewise.
43260         * lib/uniwbrk/wbrkprop.h: Likewise.
43261         * tests/unicase/test-cased.c: Likewise.
43262         * tests/unicase/test-ignorable.c: Likewise.
43263         * tests/unicase/test-uc_tolower.c: Likewise.
43264         * tests/unicase/test-uc_totitle.c: Likewise.
43265         * tests/unicase/test-uc_toupper.c: Likewise.
43266         * tests/unictype/test-categ_C.c: Likewise.
43267         * tests/unictype/test-categ_Cf.c: Likewise.
43268         * tests/unictype/test-categ_Cn.c: Likewise.
43269         * tests/unictype/test-categ_L.c: Likewise.
43270         * tests/unictype/test-categ_Ll.c: Likewise.
43271         * tests/unictype/test-categ_Lm.c: Likewise.
43272         * tests/unictype/test-categ_Lo.c: Likewise.
43273         * tests/unictype/test-categ_Lu.c: Likewise.
43274         * tests/unictype/test-categ_M.c: Likewise.
43275         * tests/unictype/test-categ_Mc.c: Likewise.
43276         * tests/unictype/test-categ_Mn.c: Likewise.
43277         * tests/unictype/test-categ_N.c: Likewise.
43278         * tests/unictype/test-categ_Nd.c: Likewise.
43279         * tests/unictype/test-categ_Nl.c: Likewise.
43280         * tests/unictype/test-categ_No.c: Likewise.
43281         * tests/unictype/test-categ_P.c: Likewise.
43282         * tests/unictype/test-categ_Pd.c: Likewise.
43283         * tests/unictype/test-categ_Po.c: Likewise.
43284         * tests/unictype/test-categ_S.c: Likewise.
43285         * tests/unictype/test-categ_Sc.c: Likewise.
43286         * tests/unictype/test-categ_So.c: Likewise.
43287         * tests/unictype/test-ctype_alnum.c: Likewise.
43288         * tests/unictype/test-ctype_alpha.c: Likewise.
43289         * tests/unictype/test-ctype_graph.c: Likewise.
43290         * tests/unictype/test-ctype_lower.c: Likewise.
43291         * tests/unictype/test-ctype_print.c: Likewise.
43292         * tests/unictype/test-ctype_punct.c: Likewise.
43293         * tests/unictype/test-ctype_upper.c: Likewise.
43294         * tests/unictype/test-decdigit.h: Likewise.
43295         * tests/unictype/test-digit.h: Likewise.
43296         * tests/unictype/test-numeric.h: Likewise.
43297         * tests/unictype/test-pr_alphabetic.c: Likewise.
43298         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43299         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43300         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43301         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43302         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43303         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43304         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43305         * tests/unictype/test-pr_combining.c: Likewise.
43306         * tests/unictype/test-pr_composite.c: Likewise.
43307         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43308         * tests/unictype/test-pr_dash.c: Likewise.
43309         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43310         * tests/unictype/test-pr_deprecated.c: Likewise.
43311         * tests/unictype/test-pr_diacritic.c: Likewise.
43312         * tests/unictype/test-pr_extender.c: Likewise.
43313         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43314         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43315         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43316         * tests/unictype/test-pr_id_continue.c: Likewise.
43317         * tests/unictype/test-pr_id_start.c: Likewise.
43318         * tests/unictype/test-pr_ideographic.c: Likewise.
43319         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43320         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43321         * tests/unictype/test-pr_lowercase.c: Likewise.
43322         * tests/unictype/test-pr_numeric.c: Likewise.
43323         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43324         * tests/unictype/test-pr_punctuation.c: Likewise.
43325         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43326         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43327         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43328         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43329         * tests/unictype/test-pr_uppercase.c: Likewise.
43330         * tests/unictype/test-pr_xid_continue.c: Likewise.
43331         * tests/unictype/test-pr_xid_start.c: Likewise.
43332         * tests/unictype/test-pr_zero_width.c: Likewise.
43333         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
43334         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
43335         changed behaviour: line breaking is now disallowed between a letter
43336         or '=' and '('.
43337         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43338         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43339         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43340         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
43341         * tests/uniwidth/test-uc_width2.sh: Same updates as in
43342         lib/uniwidth/width.c.
43343         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
43344         without comments, but with the original copyright notice.
43345         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
43346         changes.
43347         * lib/unictype/categ_Cc.h: Likewise.
43348         * lib/unictype/categ_Co.h: Likewise.
43349         * lib/unictype/categ_Cs.h: Likewise.
43350         * lib/unictype/categ_Lt.h: Likewise.
43351         * lib/unictype/categ_Me.h: Likewise.
43352         * lib/unictype/categ_Pc.h: Likewise.
43353         * lib/unictype/categ_Pe.h: Likewise.
43354         * lib/unictype/categ_Pf.h: Likewise.
43355         * lib/unictype/categ_Pi.h: Likewise.
43356         * lib/unictype/categ_Ps.h: Likewise.
43357         * lib/unictype/categ_Sk.h: Likewise.
43358         * lib/unictype/categ_Sm.h: Likewise.
43359         * lib/unictype/categ_Z.h: Likewise.
43360         * lib/unictype/categ_Zl.h: Likewise.
43361         * lib/unictype/categ_Zp.h: Likewise.
43362         * lib/unictype/categ_Zs.h: Likewise.
43363         * lib/unictype/ctype_blank.h: Likewise.
43364         * lib/unictype/ctype_cntrl.h: Likewise.
43365         * lib/unictype/ctype_digit.h: Likewise.
43366         * lib/unictype/ctype_space.h: Likewise.
43367         * lib/unictype/ctype_xdigit.h: Likewise.
43368         * lib/unictype/mirror.h: Likewise.
43369         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43370         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43371         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43372         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43373         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43374         * lib/unictype/pr_bidi_control.h: Likewise.
43375         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43376         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43377         * lib/unictype/pr_bidi_pdf.h: Likewise.
43378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43380         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43381         * lib/unictype/pr_format_control.h: Likewise.
43382         * lib/unictype/pr_hex_digit.h: Likewise.
43383         * lib/unictype/pr_hyphen.h: Likewise.
43384         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43385         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43386         * lib/unictype/pr_iso_control.h: Likewise.
43387         * lib/unictype/pr_join_control.h: Likewise.
43388         * lib/unictype/pr_left_of_pair.h: Likewise.
43389         * lib/unictype/pr_line_separator.h: Likewise.
43390         * lib/unictype/pr_math.h: Likewise.
43391         * lib/unictype/pr_non_break.h: Likewise.
43392         * lib/unictype/pr_not_a_character.h: Likewise.
43393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43395         * lib/unictype/pr_other_id_continue.h: Likewise.
43396         * lib/unictype/pr_other_id_start.h: Likewise.
43397         * lib/unictype/pr_other_lowercase.h: Likewise.
43398         * lib/unictype/pr_other_math.h: Likewise.
43399         * lib/unictype/pr_other_uppercase.h: Likewise.
43400         * lib/unictype/pr_paired_punctuation.h: Likewise.
43401         * lib/unictype/pr_paragraph_separator.h: Likewise.
43402         * lib/unictype/pr_pattern_syntax.h: Likewise.
43403         * lib/unictype/pr_pattern_white_space.h: Likewise.
43404         * lib/unictype/pr_private_use.h: Likewise.
43405         * lib/unictype/pr_quotation_mark.h: Likewise.
43406         * lib/unictype/pr_radical.h: Likewise.
43407         * lib/unictype/pr_soft_dotted.h: Likewise.
43408         * lib/unictype/pr_space.h: Likewise.
43409         * lib/unictype/pr_titlecase.h: Likewise.
43410         * lib/unictype/pr_variation_selector.h: Likewise.
43411         * lib/unictype/pr_white_space.h: Likewise.
43412         * lib/unictype/sy_c_ident.h: Likewise.
43413         * lib/unictype/sy_c_whitespace.h: Likewise.
43414         * lib/unictype/sy_java_whitespace.h: Likewise.
43415         * modules/uni*/*: Bump version number of expected libunistring version.
43416         Reported by Simon Josefsson.
43418 2011-01-09  Karl Heuer  <kwzh@gnu.org>
43420         useless-if-before-free: fix typo in --help and make the internal,
43421         automatic version date update process work once again.
43422         --help output contained a NUL character instead of the
43423         backslash-zero that was intended.  Also, the "must lie within
43424         the first 8 lines" line is on line 9, and hence not getting
43425         automatically updated.
43426         * build-aux/useless-if-before-free: Fix the former by adding a
43427         backslash, and the latter by condensing the three lines of what-it-does
43428         to a single line, leaving one line of slack for the future.
43430 2011-01-09  Bruno Haible  <bruno@clisp.org>
43432         uniwidth/width: Fix width of U+1D173..U+1D17A.
43433         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
43434         symbolic_width, output_width_property_test): New functions.
43435         (main): Invoke output_nonspacing_property, output_width_property_test.
43436         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
43437         U+1D173..U+1D17A.
43438         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
43439         1.
43440         * modules/uniwidth/*: Bump version number of expected libunistring
43441         version.
43442         * modules/unilbrk/*: Likewise.
43444 2011-01-08  Bruno Haible  <bruno@clisp.org>
43446         uninorm tests: Preserve copyright of Unicode data file.
43447         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
43448         Mention modifications.
43450 2011-01-08  Bruno Haible  <bruno@clisp.org>
43452         gen-uni-tables: Prepare for Unicode 5.2.0.
43453         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
43454         (debug_output_lbp, output_lbp): Update.
43456 2011-01-08  Bruno Haible  <bruno@clisp.org>
43458         unilbrk: Clarify gen-uni-tables.c code.
43459         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
43460         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
43461         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
43463 2011-01-07  Bruno Haible  <bruno@clisp.org>
43465         strtod: Restore errno when successfully parsing Infinity or NaN.
43466         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
43467         restore the original errno.
43469 2011-01-07  Bruno Haible  <bruno@clisp.org>
43471         remove test: Avoid failure on HP-UX 11.
43472         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
43474 2011-01-07  Bruno Haible  <bruno@clisp.org>
43476         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
43477         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
43478         error code.
43480 2011-01-07  Pádraig Brady  <P@draigBrady.com>
43482         ignore-value: fixup comments, and add Eric Blake
43483         as an author since he rewrote the macros.
43484         * lib/ignore-value.h (ignore_value):  State that
43485         we now support aggregates.  Also specify exactly
43486         when the GCC warn_unused_result feature was added.
43488 2011-01-06  Eric Blake  <eblake@redhat.com>
43490         ignore-value: support aggregate types
43491         * lib/ignore-value.h (ignore_value): Provide separate gcc
43492         definition.
43493         * modules/ignore-value-tests: New test module.
43494         * tests/test-ignore-value.c: New test.
43496         maint.mk: improve sc_prohibit_strcmp regex
43497         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
43498         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
43499         definition of STRNEQ.
43501         signal: work around Haiku issue with SIGBUS
43502         * lib/siglist.h: Add comment.
43503         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
43504         strsignal's favoring of SIGSEGV.
43505         * tests/test-signal.c (main): Avoid test failure.
43506         * doc/posix-headers/signal.texi (signal.h): Document the issue.
43507         Reported by Scott McCreary.
43509         maint.mk: add pre-release check to ensure submodule commits are public
43510         * top/maint.mk (public-submodule-commit): New rule.
43511         (submodule-checks): New variable.
43512         (alpha beta stable): Depend on the variable.
43514 2011-01-05  Pádraig Brady  <P@draigBrady.com>
43515         and Jim Meyering  <meyering@redhat.com>
43517         ignore-value: make ignore_value more generic; deprecate ignore_ptr
43518         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
43519         (ATTRIBUTE_DEPRECATED): Define.
43520         (_ignore_case): New function.
43521         (ignore_value): New macro, to replace the old function.
43522         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
43523         * modules/ignore-value (Depends-on): Add stdint.
43525 2011-01-04  Eric Blake  <eblake@redhat.com>
43527         doc: regenerate INSTALL
43528         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
43529         @firstparagraphindent support, now that autoconf dropped it.
43530         (INSTALL_PRELUDE): Reinstate old macro.
43531         * doc/install.texi: Resync from autoconf.
43532         * doc/INSTALL: Reflect recent autoconf update.
43533         * doc/INSTALL.ISO: Likewise.
43534         * doc/INSTALL.UTF-8: Likewise.
43535         Reported by Karl Berry.
43537 2011-01-04  Bruce Korb  <address@hidden>
43539         git-version-gen: avoid a sub-shell
43540         * build-aux/git-version-gen: Redirect stderr in `...` via
43541         "exec 2>...", rather than via an added sub-shell.
43543 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
43545         git-version-gen: use (...) rather than sh -c '...'
43546         * build-aux/git-version-gen: Rather than hard-coding a shell's name
43547         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
43549 2011-01-03  Jim Meyering  <meyering@redhat.com>
43551         git-version-gen: convert leading TABs to spaces
43552         * build-aux/git-version-gen: Expand leading TABs.
43554         git-version-gen: handle failed "git rev-list"
43555         * build-aux/git-version-gen: Rather than leaking a "fatal" error
43556         from git and proceeding as if it had succeeded but printed no SHA1
43557         checksums, suppress the diagnostic and handle the failure.
43558         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
43560         git-version-gen: include command name in one more diagnostic
43561         * build-aux/git-version-gen: When the required .tarball-version file
43562         was missing or unreadable, you might see the diagnostic from "cat",
43563         but no trace of the name of the invoking script.  Now, you still see
43564         the diagnostic from cat, but also get one from "git-version-gen: ".
43565         Inspired by a patch from Bruce Korb.
43567         update-copyright: adjust test to match changed code
43568         * tests/test-update-copyright.sh: Change test's expected output
43569         to match new actual output.
43571 2011-01-02  Bruno Haible  <bruno@clisp.org>
43573         getlogin_r: Avoid test failure on HP-UX 11.
43574         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
43575         ERANGE when the second argument is zero.
43576         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
43577         portability problem.
43579 2011-01-02  Bruce Korb  <bkorb@gnu.org>
43581         * build-aux/update-copyright: doc Simon's changes
43583 2011-01-02  Simon Josefsson  <simon@josefsson.org>
43585         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
43586         environment variable.
43588 2011-01-02  Bruno Haible  <bruno@clisp.org>
43590         unigbrk: Avoid gcc warnings.
43591         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
43592         unused variable.
43593         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
43594         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
43595         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
43596         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
43597         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
43598         Change type of first argument to 'const char *'.
43599         (main): Remove unused variable.
43600         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
43601         type of first argument to 'const char *'.
43602         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
43603         Likewise.
43604         (main): Change type of variable 's'.
43605         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
43606         to 'int'.
43608 2011-01-02  Bruno Haible  <bruno@clisp.org>
43610         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
43611         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
43612         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
43613         bug.
43614         * lib/pwrite.c: Undo 2010-12-31 patch.
43615         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
43617 2011-01-02  Bruno Haible  <bruno@clisp.org>
43619         pread: Fix test whether it works.
43620         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
43622 2011-01-02  Bruno Haible  <bruno@clisp.org>
43624         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
43625         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
43626         ends in "6". Don't require a specific month name. Try also the locale
43627         names found on HP-UX 11 and Solaris 7.
43629 2011-01-02  Bruno Haible  <bruno@clisp.org>
43631         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
43632         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
43633         C linkage.
43634         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
43636 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43638         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
43639         for consistency, since the "cluster" term is not used elsewhere.
43640         * lib/unigbrk.in.h: Update name.
43641         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
43642         * lib/unigbrk/u16-grapheme-next.c: Update name.
43643         * lib/unigbrk/u16-grapheme-prev.c: Update name.
43644         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
43645         * lib/unigbrk/u32-grapheme-next.c: Update name.
43646         * lib/unigbrk/u32-grapheme-prev.c: Update name.
43647         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
43648         * lib/unigbrk/u8-grapheme-next.c: Update name.
43649         * lib/unigbrk/u8-grapheme-prev.c: Update name.
43650         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
43651         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
43652         Suggested by Bruno Haible.
43654 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43656         Remove module 'u8-grapheme-len' as too redundant with
43657         'u8-grapheme-next'.
43658         * modules/unigbrk/u8-grapheme-len: Delete file.
43659         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
43660         * lib/unigbrk.in.h: Remove prototype for deleted function.
43661         * lib/unigbrk/u8-grapheme-len.c: Delete file.
43662         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
43664         Remove module 'u16-grapheme-len' as too redundant with
43665         'u16-grapheme-next'.
43666         * modules/unigbrk/u16-grapheme-len: Delete file.
43667         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
43668         * lib/unigbrk.in.h: Remove prototype for deleted function.
43669         * lib/unigbrk/u16-grapheme-len.c: Delete file.
43670         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
43672         Remove module 'u32-grapheme-len' as too redundant with
43673         'u32-grapheme-next'.
43674         * modules/unigbrk/u32-grapheme-len: Delete file.
43675         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
43676         * lib/unigbrk.in.h: Remove prototype for deleted function.
43677         * lib/unigbrk/u32-grapheme-len.c: Delete file.
43678         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
43680         Suggested by Bruno Haible.
43682 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43684         * unigbrk.in.h: Fix typo: "ben" => "been".
43685         Reported by Bruno Haible.
43687 2011-01-01  Jim Meyering  <meyering@redhat.com>
43689         maint: update almost all copyright ranges to include 2011
43690         Run the new "make update-copyright" rule.
43692 2011-01-01  Jim Meyering  <meyering@redhat.com>
43694         maint: update-copyright: exempt doc/INSTALL*
43695         * Makefile (update-copyright): Also exclude doc/INSTALL*,
43696         since they are generated.  Suggested by Bruno Haible.
43698 2011-01-01  Jim Meyering  <meyering@redhat.com>
43700         maint: refine the update-copyright rule
43701         * Makefile (update-copyright): Also exclude any file that includes
43702         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
43703         code that merely generates the comment.
43705 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43707         New module 'u8-grapheme-len'.
43708         * modules/unigbrk/u8-grapheme-len: New file.
43709         * modules/unigbrk/u8-grapheme-len-tests: New file.
43710         * lib/unigbrk.in.h: Add prototype for new function.
43711         * lib/unigbrk/u8-grapheme-len.c: New file.
43712         * tests/unigbrk/test-u8-grapheme-len.c: New file.
43714         New module 'u16-grapheme-len'.
43715         * modules/unigbrk/u16-grapheme-len: New file.
43716         * modules/unigbrk/u16-grapheme-len-tests: New file.
43717         * lib/unigbrk.in.h: Add prototype for new function.
43718         * lib/unigbrk/u16-grapheme-len.c: New file.
43719         * tests/unigbrk/test-u16-grapheme-len.c: New file.
43721         New module 'u32-grapheme-len'.
43722         * modules/unigbrk/u32-grapheme-len: New file.
43723         * modules/unigbrk/u32-grapheme-len-tests: New file.
43724         * lib/unigbrk.in.h: Add prototype for new function.
43725         * lib/unigbrk/u32-grapheme-len.c: New file.
43726         * tests/unigbrk/test-u32-grapheme-len.c: New file.
43728         New module 'u8-grapheme-next'.
43729         * modules/unigbrk/u8-grapheme-next: New file.
43730         * modules/unigbrk/u8-grapheme-next-tests: New file.
43731         * lib/unigbrk.in.h: Add prototype for new function.
43732         * lib/unigbrk/u8-grapheme-next.c: New file.
43733         * tests/unigbrk/test-u8-grapheme-next.c: New file.
43735         New module 'u16-grapheme-next'.
43736         * modules/unigbrk/u16-grapheme-next: New file.
43737         * modules/unigbrk/u16-grapheme-next-tests: New file.
43738         * lib/unigbrk.in.h: Add prototype for new function.
43739         * lib/unigbrk/u16-grapheme-next.c: New file.
43740         * tests/unigbrk/test-u16-grapheme-next.c: New file.
43742         New module 'u32-grapheme-next'.
43743         * modules/unigbrk/u32-grapheme-next: New file.
43744         * modules/unigbrk/u32-grapheme-next-tests: New file.
43745         * lib/unigbrk.in.h: Add prototype for new function.
43746         * lib/unigbrk/u32-grapheme-next.c: New file.
43747         * tests/unigbrk/test-u32-grapheme-next.c: New file.
43749         New module 'u8-grapheme-prev'.
43750         * modules/unigbrk/u8-grapheme-prev: New file.
43751         * modules/unigbrk/u8-grapheme-prev-tests: New file.
43752         * lib/unigbrk.in.h: Add prototype for new function.
43753         * lib/unigbrk/u8-grapheme-prev.c: New file.
43754         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
43756         New module 'u16-grapheme-prev'.
43757         * modules/unigbrk/u16-grapheme-prev: New file.
43758         * modules/unigbrk/u16-grapheme-prev-tests: New file.
43759         * lib/unigbrk.in.h: Add prototype for new function.
43760         * lib/unigbrk/u16-grapheme-prev.c: New file.
43761         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
43763         New module 'u32-grapheme-prev'.
43764         * modules/unigbrk/u32-grapheme-prev: New file.
43765         * modules/unigbrk/u32-grapheme-prev-tests: New file.
43766         * lib/unigbrk.in.h: Add prototype for new function.
43767         * lib/unigbrk/u32-grapheme-prev.c: New file.
43768         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
43770         New module 'u8-grapheme-breaks'.
43771         * modules/unigbrk/u8-grapheme-breaks: New file.
43772         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
43773         * lib/unigbrk.in.h: Add prototype for new function.
43774         * lib/unigbrk/u8-grapheme-breaks.c: New file.
43775         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
43777         New module 'u16-grapheme-breaks'.
43778         * modules/unigbrk/u16-grapheme-breaks: New file.
43779         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
43780         * lib/unigbrk.in.h: Add prototype for new function.
43781         * lib/unigbrk/u16-grapheme-breaks.c: New file.
43782         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
43784         New module 'u32-grapheme-breaks'.
43785         * modules/unigbrk/u32-grapheme-breaks: New file.
43786         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
43787         * lib/unigbrk.in.h: Add prototype for new function.
43788         * lib/unigbrk/u32-grapheme-breaks.c: New file.
43789         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
43791         New module 'ulc-grapheme-breaks'.
43792         * modules/unigbrk/ulc-grapheme-breaks: New file.
43793         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
43794         * m4/locale-ar.m4: New file.
43795         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
43796         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
43797         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
43799 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43801         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
43802         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
43803         modified how this file was generated before I initially submitted
43804         the module, but failed to regenerate it.  This meant that several
43805         of the level2 entries were wrong.
43806         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
43807         Remove the division-by-2 that is folded into the table now that
43808         gbrkprop.h has been regenerated properly.  Now -1 entries are
43809         handled correctly.
43811         New module 'unigbrk/uc-gbrk-prop-tests'.
43812         * modules/unigbrk/uc-gbrk-prop-tests: New file.
43813         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
43814         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
43815         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
43817 2011-01-01  Bruno Haible  <bruno@clisp.org>
43819         Avoid use of hexadecimal escapes.
43820         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
43821         instead of hexadecimal escapes.
43823 2011-01-01  Jim Meyering  <meyering@redhat.com>
43825         maint: new rule to update copyright year ranges
43826         * Makefile (update-copyright): New rule.
43828         maint: indent with TABs in Makefile
43829         * Makefile: Expand leading sequences of spaces to TABs
43831         version-etc: update the copyright year it reports
43832         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
43834 2010-12-31  Bruno Haible  <bruno@clisp.org>
43836         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
43837         * lib/isfinite.c (zerof, zerod, zerol): New variables.
43838         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
43839         zero.
43841 2010-12-31  Bruno Haible  <bruno@clisp.org>
43843         pwrite: Work around HP-UX 11.11 bug.
43844         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
43845         works and set REPLACE_PWRITE if not.
43846         * lib/pwrite.c (pwrite): Add an implementation that uses the system
43847         function.
43848         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43850 2010-12-31  Bruno Haible  <bruno@clisp.org>
43852         pread: Work around HP-UX 11 bugs.
43853         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43854         and set REPLACE_PREAD if not.
43855         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43857 2010-12-31  Eric Blake  <eblake@redhat.com>
43859         nl_langinfo: fix YESEXPR on Irix 6.5
43860         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43861         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43862         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43863         it.
43865 2010-12-31  Bruno Haible  <bruno@clisp.org>
43867         iconv: Document HP-UX 11 bug.
43868         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43870 2010-12-31  Bruno Haible  <bruno@clisp.org>
43872         ldexpl: Fix link error on HP-UX 11.
43873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43874         LDEXPL_LIBM, using $ISNANL_LIBM.
43876 2010-12-31  Eric Blake  <eblake@redhat.com>
43878         ftello: avoid compilation failure with SunStudio c89
43879         * lib/ftello.c (ftello): Use lseek, not llseek.
43881         tests: avoid failing coreutils tests on cygwin
43882         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43883         (create_exe_shims_): Return 0 when skipping.
43885 2010-12-31  Bruno Haible  <bruno@clisp.org>
43887         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43888         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43890 2010-12-31  Bruno Haible  <bruno@clisp.org>
43892         waitpid: Fix link error in C++ mode.
43893         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43895 2010-12-31  Bruno Haible  <bruno@clisp.org>
43897         isnan: Use GCC built-ins when possible.
43898         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43899         __builtin_isnan.
43900         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43901         (isnan): Define using GCC built-ins for GCC >= 4.0.
43903 2010-12-31  Bruno Haible  <bruno@clisp.org>
43905         isnand: Fix mistake.
43906         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43907         __builtin_isnand.
43909 2010-12-31  Bruno Haible  <bruno@clisp.org>
43911         open: Avoid C++ error on HP-UX 11.
43912         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43914 2010-12-31  Bruno Haible  <bruno@clisp.org>
43916         time_r: Add missing declarations on HP-UX 11.
43917         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43918         instead of HAVE_LOCALTIME_R.
43919         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43920         HAVE_LOCALTIME_R always.
43921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43922         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43923         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43924         HAVE_LOCALTIME_R.
43925         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43926         * doc/posix-functions/localtime_r.texi: Likewise.
43928 2010-12-29  Eric Blake  <eblake@redhat.com>
43930         mountlist: tweak previous commit
43931         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43932         Reported by Paul Eggert.
43934         mountlist: fix local drive detection on cygwin
43935         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43936         that works for cygwin.
43938 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43940         ftoastr, snprintf: ftoastr + snprintf module
43941         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43942         since the snprintf module now should be good enough here.
43943         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43944         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43945         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43946         GNULIB_SNPRINTF only for the test directory, and the latter
43947         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43948         seems to suffice by itself.
43950 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43952         alloca: one step towards thread-safety
43953         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43954         need for a static variable.  All callers changed.  This does not
43955         make the alloca replacement thread-safe, but it's one step.
43957         tests: minor indenting change
43958         * tests/init.sh: Sync from coreutils housekeeping patch
43959         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43960         to keep lines within 80 columns.
43962 2010-12-28  Jim Meyering  <meyering@redhat.com>
43964         regex: don't infloop on persistent failing calloc
43965         * lib/regexec.c (build_trtable): Return failure indication upon
43966         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43967         In glibc, this was fixed for version 2.13:
43968         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43970 2010-12-28  Bruno Haible  <bruno@clisp.org>
43971             Paul Eggert <eggert@cs.ucla.edu>
43973         linkat: Make implementation robust against system behaviour variations.
43974         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43975         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43976         way, and to -2 if it needs a generic runtime test.
43977         * lib/linkat.c (solaris_optimized_link_immediate,
43978         solaris_optimized_link_follow): New functions.
43979         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43980         (check_same_link): Use it.
43982 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43984         New module 'unigbrk/base'.
43985         * modules/unigbrk/base: New file.
43986         * lib/unigbrk.in.h: New file.
43988         New module 'unigbrk/uc-gbrk-prop'.
43989         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43990         * modules/unigbrk/uc-gbrk-prop: New file.
43991         * lib/unigbrk/gbrkprop.h: New file.
43992         * lib/unigbrk/uc-gbrk-prop.c: New file.
43994         New module 'unigbrk/uc-is-grapheme-break'.
43995         * modules/unigbrk/uc-is-grapheme-break: New file.
43996         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43997         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43998         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43999         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
44000         * tests/unigbrk/GraphemeBreakTest.txt: New file.
44002         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
44004 2010-12-27  Bruno Haible  <bruno@clisp.org>
44006         linkat test: Avoid failure on Solaris 11 2010-11.
44007         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
44009 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44011         utimens: work around glibc rounding bug on more platforms
44012         * lib/utimens.c (fdutimens): Work around rounding bug even if
44013         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
44014         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
44016 2010-12-27  Bruno Haible  <bruno@clisp.org>
44018         select tests: Improve comments.
44019         * tests/test-select.c (do_select): Add comments.
44021 2010-12-27  Bruno Haible  <bruno@clisp.org>
44023         select tests: Safer way of handling timeout.
44024         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
44025         at every invocation.
44027 2010-12-27  Bruno Haible  <bruno@clisp.org>
44029         select tests: Use 'bool' where appropriate.
44030         * tests/test-select.c (connect_to_socket): Change argument type to
44031         'bool'.
44033 2010-12-27  Bruno Haible  <bruno@clisp.org>
44035         select tests: Use existing modules.
44036         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
44037         (configure.ac): Don't test for unistd.h.
44038         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
44039         declared in <unistd.h>.
44041 2010-12-27  Bruno Haible  <bruno@clisp.org>
44043         mbrtowc: Work around a Solaris 7 bug.
44044         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
44045         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
44046         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
44047         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
44048         MBRTOWC_NULL_ARG1_BUG.
44049         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
44050         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
44051         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
44052         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
44054 2010-12-27  Jim Meyering  <meyering@redhat.com>
44056         read-file.c: tweak syntax
44057         * lib/read-file.c (fread_file): Remove space after "*" in function
44058         definitions.
44060 2010-12-27  Bruno Haible  <bruno@clisp.org>
44062         times test: Avoid gcc warnings on OSF/1.
44063         * tests/test-times.c (main): Cast printf arguments from clock_t to
44064         'long int'.
44066 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44068         utimens: work around glibc rounding bug on older Linux kernels
44069         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
44070         on Linux with a glibc whose utimes might not work, then work
44071         around a longstanding glibc bug involving rounding rather than
44072         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
44073         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
44075 2010-12-26  Bruno Haible  <bruno@clisp.org>
44077         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
44078         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
44079         _GL_CXXALIAS_SYS.
44080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44082 2010-12-26  Bruno Haible  <bruno@clisp.org>
44084         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
44085         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
44086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44087         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
44088         looking for the declaration.
44089         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44090         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
44091         problem.
44092         * doc/posix-functions/inet_pton.texi: Likewise.
44094 2010-12-26  Bruno Haible  <bruno@clisp.org>
44096         arpa_inet: Use the common idioms with C++ support.
44097         * lib/arpa_inet.in.h: Include c++defs.h.
44098         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
44099         support.
44100         * modules/arpa_inet (Depends-on): Add c++defs.
44101         (Makefile.am): Substitute the contents of c++defs.h.
44102         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
44103         * modules/arpa_inet-c++-tests: New file.
44104         * tests/test-arpa_inet-c++.cc: New file.
44106 2010-12-25  Bruno Haible  <bruno@clisp.org>
44108         Fix more C++ link errors on Solaris 8.
44109         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
44110         $(LIB_EACCESS).
44111         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
44112         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
44113         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
44114         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
44115         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
44117 2010-12-25  Bruno Haible  <bruno@clisp.org>
44119         printf-posix: Fix link error when a non-GCC compiler is used.
44120         * lib/stdio.in.h (printf): When not using GCC, override printf
44121         correctly.
44122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44124 2010-12-25  Bruno Haible  <bruno@clisp.org>
44126         strerror_r-posix: Update doc.
44127         * doc/posix-functions/strerror_r.texi: Update doc about the return
44128         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
44130 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44132         utimens: simplify the logic of the previous change
44133         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
44134         This should not affect whether the test succeeds or fails.
44136         utimens: configure better on hosts with NFS clock skew
44137         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
44138         uses the clock of the local host.  It might use the clock of the
44139         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
44140         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
44142 2010-12-25  Bruno Haible  <bruno@clisp.org>
44144         ptsname test: Avoid failure on Solaris.
44145         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
44146         open a pseudo-terminal; don't use BSD-style ptys.
44147         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
44149 2010-12-25  Bruno Haible  <bruno@clisp.org>
44151         ptsname: Avoid ERANGE failure on some systems.
44152         * lib/ptsname.c (buffer): Increase size.
44154 2010-12-25  Bruno Haible  <bruno@clisp.org>
44156         rename, renameat: Avoid test failures at NFS mounted locations.
44157         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
44158         so that subsequent mkdir calls succeed.
44160 2010-12-25  Bruno Haible  <bruno@clisp.org>
44162         iswblank: Fix C++ link error on Solaris 8.
44163         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
44164         _GL_FUNCDECL_SYS.
44166 2010-12-25  Bruno Haible  <bruno@clisp.org>
44168         unistd: Fix C++ link error on Solaris 8.
44169         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
44171 2010-12-25  Bruno Haible  <bruno@clisp.org>
44173         readlink doc: Mention an old glibc bug.
44174         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
44176 2010-12-25  Bruno Haible  <bruno@clisp.org>
44178         fcntl-h: Fix for use of C++ on glibc systems.
44179         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44180         also on glibc systems in C++ mode.
44181         Reported by Gary V. Vaughan <gary@gnu.org>.
44183 2010-12-25  Bruno Haible  <bruno@clisp.org>
44185         roundl-ieee: Make it work on OSF/1 5.1 with cc.
44186         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
44188 2010-12-25  Bruno Haible  <bruno@clisp.org>
44190         truncl-ieee: Make it work on OSF/1 5.1 with cc.
44191         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
44192         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
44193         test whether truncl works according to ISO C 99 with IEC 60559.
44194         * m4/truncl-ieee.m4: New file.
44195         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
44196         m4/signbit.m4.
44197         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
44199 2010-12-25  Bruno Haible  <bruno@clisp.org>
44201         ceill-ieee: Make it work on OSF/1 5.1 with cc.
44202         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
44203         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
44204         test whether ceill works according to ISO C 99 with IEC 60559.
44205         * m4/ceill-ieee.m4: New file.
44206         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
44207         m4/signbit.m4.
44208         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
44210 2010-12-25  Bruno Haible  <bruno@clisp.org>
44212         Ensure all prerequisites of <wchar.h> are included.
44213         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
44214         before <wchar.h>.
44215         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
44216         gl_MBRLEN_NUL_RETVAL): Likewise.
44217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44218         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
44219         AC_FUNC_MBRTOWC): Likewise.
44220         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44221         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44222         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44223         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44224         Likewise.
44225         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44226         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
44227         (gl_WCHAR_H): Improve comments.
44228         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44230 2010-12-25  Bruno Haible  <bruno@clisp.org>
44232         strtok_r: Fix C syntax error in autoconf macro.
44233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
44234         characters in test program.
44236 2010-12-24  Bruno Haible  <bruno@clisp.org>
44238         ceil, trunc, round: Fix gcc warnings.
44239         * lib/ceil.c (MIN): Undefine before redefining.
44240         * lib/trunc.c (MIN): Likewise.
44241         * lib/round.c (MIN): Likewise.
44242         Include <math.h> first.
44244 2010-12-24  Bruno Haible  <bruno@clisp.org>
44246         select tests: Avoid failures on OSF/1 5.1.
44247         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
44248         failure of closing the last socket; it may fail with ECONNRESET.
44250 2010-12-24  Eric Blake  <eblake@redhat.com>
44252         stdint: avoid HP-UX 10.20 preprocessor bug
44253         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
44254         than #if.
44255         * tests/test-floor2.c (main): Likewise.
44256         Reported by Peter O'Gorman.
44258         pipe: make obsoletion transition easier
44259         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
44260         * modules/pipe (Files): Include revived file.
44261         (Include): Drop reference, to mirror getdate's behavior.
44263 2010-12-24  Bruno Haible  <bruno@clisp.org>
44265         sys_socket: Hide mismatch of declarations on NonStop Kernel.
44266         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
44267         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
44268         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44270 2010-12-24  Bruno Haible  <bruno@clisp.org>
44272         gethostname: Ensure declaration on NonStop Kernel.
44273         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
44274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44276 2010-12-24  Bruno Haible  <bruno@clisp.org>
44278         sys_select: Ensure all necessary types on NonStop Kernel.
44279         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
44280         include <sys/time.h>.
44281         * doc/posix-headers/sys_select.texi: Mention that it's missing on
44282         NonStop Kernel.
44283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44285 2010-12-24  Bruno Haible  <bruno@clisp.org>
44287         sys_select: Remove unneeded include.
44288         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
44289         have <sys/select.h>.
44291 2010-12-24  Bruno Haible  <bruno@clisp.org>
44293         gethostname: Provide a fallback for HOST_NAME_MAX.
44294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
44295         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
44296         instead.
44297         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44299 2010-12-24  Bruno Haible  <bruno@clisp.org>
44301         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
44302         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
44303         (SA_RESTART): Likewise.
44304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44306 2010-12-24  Bruno Haible  <bruno@clisp.org>
44308         signal: Define NSIG.
44309         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
44310         * tests/test-signal.c (nsig): New variable.
44311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44313 2010-12-24  Bruno Haible  <bruno@clisp.org>
44315         rename, renameat: Avoid test failures on OSF/1 5.1.
44316         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
44317         alternative error codes.
44318         * tests/test-renameat.c (main): Likewise.
44320 2010-12-24  Bruno Haible  <bruno@clisp.org>
44322         *printf: Detect large precisions bug on Solaris 10/SPARC.
44323         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
44324         by Paul Eggert.
44325         * tests/test-snprintf-posix.h (test_function): Add this test code here
44326         too.
44327         * tests/test-sprintf-posix.h (test_function): Likewise.
44328         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44329         * tests/test-vasprintf-posix.c (test_function): Likewise.
44330         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
44331         around by gnulib.
44332         * doc/posix-functions/printf.texi: Likewise.
44333         * doc/posix-functions/snprintf.texi: Likewise.
44334         * doc/posix-functions/sprintf.texi: Likewise.
44335         * doc/posix-functions/vfprintf.texi: Likewise.
44336         * doc/posix-functions/vprintf.texi: Likewise.
44337         * doc/posix-functions/vsnprintf.texi: Likewise.
44338         * doc/posix-functions/vsprintf.texi: Likewise.
44339         * doc/posix-functions/dprintf.texi: Undo last commit.
44340         * doc/posix-functions/vdprintf.texi: Likewise.
44342 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44344         tests: port test-fdutimensat.c to Solaris 8
44345         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
44346         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
44347         On Solaris 8, it fails with errno == ENOSYS, because there is no
44348         futimens (so it can't use the fd), and there is no lutimens (so it
44349         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
44351         vsnprintf: make more consistent with snprintf; doc fixes
44353         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
44354         the byte count return problem was promoted from the snprintf-posix
44355         to the snprintf module.
44356         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
44358         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
44359         * tests/test-snprintf.c (main): Check the byte count returned.
44360         * tests/test-vsnprintf.c (main): Likewise.
44362 2010-12-23  Eric Blake  <eblake@redhat.com>
44364         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
44365         * modules/sigpipe (License): Relax license.
44367 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44369         doc: document Solaris printf bug with large float precisions
44370         * doc/posix-functions/dprintf.texi (dprintf):
44371         * doc/posix-functions/fprintf.texi (fprintf):
44372         * doc/posix-functions/printf.texi (printf):
44373         * doc/posix-functions/snprintf.texi (snprintf):
44374         * doc/posix-functions/sprintf.texi (sprintf):
44375         * doc/posix-functions/vdprintf.texi (vdprintf):
44376         * doc/posix-functions/vfprintf.texi (vfprintf):
44377         * doc/posix-functions/vprintf.texi (vprintf):
44378         * doc/posix-functions/vsnprintf.texi (vsnprintf):
44379         * doc/posix-functions/vsprintf.texi (vsprintf):
44380         Mention that these functions mishandle large floating point
44381         precisions on Solaris 10.  The same bug is also present in Solaris
44382         8, and I assume earlier.  This causes "cd gnulib-tests; make
44383         check" to fail on Solaris 8 (and I assume, later) when building
44384         the latest coreutils, in test-vasprintf-posix's call to
44385         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
44386         the wide flavors (e.g., wprintf) so this patch just updates the
44387         documentation for the narrow ones.
44389         test-posixtm.c: add two tests
44390         * tests/test-posixtm.c: Add two tests, to highlight the
44391         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
44392         around this bug; this is merely to document it.
44394 2010-12-22  Bruno Haible  <bruno@clisp.org>
44396         getlogin_r: Work around portability problem on OSF/1.
44397         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
44398         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
44399         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
44400         test for a truncated result.
44401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
44402         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
44403         * modules/getlogin_r (Depends-on): Add memchr.
44404         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
44406 2010-12-22  Bruno Haible  <bruno@clisp.org>
44408         ptsname: Avoid test failure on OSF/1 5.1.
44409         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
44410         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
44411         (same_slave): New function.
44412         (main): Use it to compare ptsname's result with the expected file name.
44414 2010-12-22  Bruno Haible  <bruno@clisp.org>
44416         Port extended stdio modules to HP NonStop Kernel.
44417         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
44418         macros.
44419         * lib/fbufmode.c: Update comments.
44420         * lib/fflush.c: Likewise.
44421         * lib/fpurge.c: Likewise.
44422         * lib/freadable.c: Likewise.
44423         * lib/freadahead.c: Likewise.
44424         * lib/freading.c: Likewise.
44425         * lib/freadptr.c: Likewise.
44426         * lib/freadseek.c: Likewise.
44427         * lib/fseeko.c: Likewise.
44428         * lib/fseterr.c: Likewise.
44429         * lib/fwritable.c: Likewise.
44430         * lib/fwriting.c: Likewise.
44431         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44433 2010-12-22  Bruno Haible  <bruno@clisp.org>
44435         ttyname_r: Work around bug on OSF/1 5.1.
44436         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
44437         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
44438         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
44439         present.
44440         * lib/ttyname_r.c (ttyname_r): Update comments.
44442 2010-12-22  Bruno Haible  <bruno@clisp.org>
44444         round: Implement result sign according to IEEE 754.
44445         * lib/round.c (MIN, MINUS_ZERO): New macros.
44446         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
44447         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
44448         * tests/test-round-ieee.c (main): Likewise.
44449         * tests/test-roundl-ieee.c (main): Likewise.
44451         trunc: Implement result sign according to IEEE 754.
44452         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
44453         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
44454         * tests/test-trunc2.c: Include minus-zero.h.
44455         (MINUS_ZERO): New macro.
44456         (trunc_reference): Keep in sync with lib/trunc.c.
44457         * tests/test-truncf2.c: Include minus-zero.h.
44458         (MINUS_ZERO): New macro.
44459         (truncf_reference): Keep in sync with lib/trunc.c.
44460         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
44461         * tests/test-trunc-ieee.c (main): Likewise.
44462         * tests/test-truncl-ieee.c (main): Likewise.
44464         ceil: Implement result sign according to IEEE 754.
44465         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
44466         (FUNC): Return -0.0 for -1 < x < 0.
44467         * tests/test-ceil2.c: Include minus-zero.h.
44468         (MINUS_ZERO): New macro.
44469         (ceil_reference): Keep in sync with lib/ceil.c.
44470         * tests/test-ceilf2.c: Include minus-zero.h.
44471         (MINUS_ZERO): New macro.
44472         (ceilf_reference): Keep in sync with lib/ceil.c.
44473         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
44474         * tests/test-ceil-ieee.c (main): Likewise.
44475         * tests/test-ceill-ieee.c (main): Likewise.
44477         floor: Implement result sign according to IEEE 754.
44478         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
44479         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
44480         * tests/test-floorf2.c (floorf_reference): Likewise.
44481         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
44482         * tests/test-floor-ieee.c (main): Likewise.
44483         * tests/test-floorl-ieee.c (main): Likewise.
44485 2010-12-22  Bruno Haible  <bruno@clisp.org>
44487         getaddrinfo: Update doc.
44488         * doc/posix-functions/gai_strerror.texi: Return type is also different
44489         on AIX and HP-UX.
44491 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44493         getaddrinfo, inet_ntop: Update doc for Solaris.
44494         * doc/posix-functions/gai_strerror.texi: Return type is also an
44495         issue on Solaris 9 and earlier.
44496         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
44497         on Solaris 10 and earlier.
44499 2010-12-21  Bruno Haible  <bruno@clisp.org>
44501         New module 'roundl-ieee'.
44502         * modules/roundl-ieee: New file.
44503         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
44504         test whether roundl works according to ISO C 99 with IEC 60559.
44505         * m4/roundl-ieee.m4: New file.
44506         * modules/roundl-ieee-tests: New file.
44507         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
44508         * tests/test-roundl.c (main): Remove signbit tests.
44509         * modules/roundl-tests (Depends-on): Remove signbit.
44510         * doc/posix-functions/roundl.texi: Mention the new module.
44512 2010-12-21  Bruno Haible  <bruno@clisp.org>
44514         New module 'truncl-ieee'.
44515         * modules/truncl-ieee: New file.
44516         * modules/truncl-ieee-tests: New file.
44517         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
44518         * tests/test-truncl.c (main): Remove signbit tests.
44519         * modules/truncl-tests (Depends-on): Remove signbit.
44520         * doc/posix-functions/truncl.texi: Mention the new module.
44522 2010-12-21  Bruno Haible  <bruno@clisp.org>
44524         New module 'ceill-ieee'.
44525         * modules/ceill-ieee: New file.
44526         * modules/ceill-ieee-tests: New file.
44527         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
44528         * tests/test-ceill.c (main): Remove signbit tests.
44529         * modules/ceill-tests (Depends-on): Remove signbit.
44530         * doc/posix-functions/ceill.texi: Mention the new module.
44532 2010-12-21  Bruno Haible  <bruno@clisp.org>
44534         New module 'floorl-ieee'.
44535         * modules/floorl-ieee: New file.
44536         * modules/floorl-ieee-tests: New file.
44537         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
44538         * tests/test-floorl.c (main): Remove signbit tests.
44539         * modules/floorl-tests (Depends-on): Remove signbit.
44540         * doc/posix-functions/floorl.texi: Mention the new module.
44542 2010-12-21  Bruno Haible  <bruno@clisp.org>
44544         New module 'round-ieee'.
44545         * modules/round-ieee: New file.
44546         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
44547         whether round works according to ISO C 99 with IEC 60559.
44548         * m4/round-ieee.m4: New file.
44549         * modules/round-ieee-tests: New file.
44550         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
44551         * tests/test-round1.c (main): Remove signbit tests.
44552         * modules/round-tests (Depends-on): Remove 'signbit'.
44553         * doc/posix-functions/round.texi: Mention the new module.
44555 2010-12-21  Bruno Haible  <bruno@clisp.org>
44557         New module 'trunc-ieee'.
44558         * modules/trunc-ieee: New file.
44559         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
44560         whether trunc works according to ISO C 99 with IEC 60559.
44561         * m4/trunc-ieee.m4: New file.
44562         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
44563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
44564         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
44565         * modules/trunc-ieee-tests: New file.
44566         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
44567         * tests/test-trunc1.c (main): Remove signbit tests.
44568         * modules/trunc-tests (Depends-on): Remove 'signbit'.
44569         * doc/posix-functions/trunc.texi: Mention the new module.
44571 2010-12-21  Bruno Haible  <bruno@clisp.org>
44573         New module 'ceil-ieee'.
44574         * modules/ceil-ieee: New file.
44575         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
44576         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
44577         ISO C 99 with IEC 60559.
44578         * m4/ceil-ieee.m4: New file.
44579         * modules/ceil (Files): Add lib/ceil.c.
44580         (Depends-on): Add 'float'.
44581         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44582         * lib/math.in.h (ceil): New declaration.
44583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
44584         REPLACE_CEIL.
44585         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
44586         * modules/ceil-ieee-tests: New file.
44587         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
44588         * tests/test-math-c++.cc: Check the signature of 'ceil'.
44589         * doc/posix-functions/ceil.texi: Mention the new module.
44591 2010-12-21  Bruno Haible  <bruno@clisp.org>
44593         New module 'floor-ieee'.
44594         * modules/floor-ieee: New file.
44595         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
44596         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
44597         ISO C 99 with IEC 60559.
44598         * m4/floor-ieee.m4: New file.
44599         * modules/floor (Files): Add lib/floor.c.
44600         (Depends-on): Add 'float'.
44601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44602         * lib/math.in.h (floor): New declaration.
44603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
44604         REPLACE_FLOOR.
44605         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
44606         * modules/floor-ieee-tests: New file.
44607         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
44608         * tests/test-math-c++.cc: Check the signature of 'floor'.
44609         * doc/posix-functions/floor.texi: Mention the new module.
44611 2010-12-21  Bruno Haible  <bruno@clisp.org>
44613         New module 'roundf-ieee'.
44614         * modules/roundf-ieee: New file.
44615         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
44616         test whether roundf works according to ISO C 99 with IEC 60559.
44617         * m4/roundf-ieee.m4: New file.
44618         * modules/roundf-ieee-tests: New file.
44619         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
44620         * tests/test-roundf1.c (main): Remove signbit tests.
44621         * modules/roundf-tests (Depends-on): Remove 'signbit'.
44622         * doc/posix-functions/roundf.texi: Mention the new module.
44624 2010-12-21  Bruno Haible  <bruno@clisp.org>
44626         New module 'truncf-ieee'.
44627         * modules/truncf-ieee: New file.
44628         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
44629         test whether truncf works according to ISO C 99 with IEC 60559.
44630         * m4/truncf-ieee.m4: New file.
44631         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
44632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
44633         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
44634         * modules/truncf-ieee-tests: New file.
44635         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
44636         * tests/test-truncf1.c (main): Remove signbit tests.
44637         * modules/truncf-tests (Depends-on): Remove 'signbit'.
44638         * doc/posix-functions/truncf.texi: Mention the new module.
44640 2010-12-21  Bruno Haible  <bruno@clisp.org>
44642         New module 'ceilf-ieee'.
44643         * modules/ceilf-ieee: New file.
44644         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
44645         test whether ceilf works according to ISO C 99 with IEC 60559.
44646         * m4/ceilf-ieee.m4: New file.
44647         * modules/ceilf-ieee-tests: New file.
44648         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
44649         * tests/test-ceilf1.c (main): Remove signbit tests.
44650         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
44651         * doc/posix-functions/ceilf.texi: Mention the new module.
44653 2010-12-21  Bruno Haible  <bruno@clisp.org>
44655         New module 'floorf-ieee'.
44656         * modules/floorf-ieee: New file.
44657         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
44658         test whether floorf works according to ISO C 99 with IEC 60559.
44659         * m4/floorf-ieee.m4: New file.
44660         * modules/floorf-ieee-tests: New file.
44661         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
44662         * tests/test-floorf1.c (main): Remove signbit tests.
44663         * modules/floorf-tests (Depends-on): Remove 'signbit'.
44664         * doc/posix-functions/floorf.texi: Mention the new module.
44666 2010-12-21  Bruno Haible  <bruno@clisp.org>
44668         Support for minus zero in autoconf macros.
44669         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
44670         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
44671         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
44672         * tests/minus-zero.h: Update comments.
44674 2010-12-21  Bruno Haible  <bruno@clisp.org>
44676         Tests for module 'ceil'.
44677         * modules/ceil-tests: New file.
44678         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
44679         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
44681 2010-12-21  Bruno Haible  <bruno@clisp.org>
44683         Tests for module 'floor'.
44684         * modules/floor-tests: New file.
44685         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
44686         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
44688 2010-12-21  Bruno Haible  <bruno@clisp.org>
44690         math: Fix indentation.
44691         * lib/math.in.h (floorf): Fix indentation.
44693 2010-12-21  Bruno Haible  <bruno@clisp.org>
44695         Fix cross-compilation guesses on Solaris.
44696         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
44697         not match "solaris2.10".
44698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44699         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
44700         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
44702 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44704         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
44705         This fixes a problem observed with the latest coreutils snapshot
44706         that caused a test to fail on Solaris 8.  src/csplit.c's call
44707         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
44708         earlier, instead of returning the number of bytes that would have
44709         been generated; this causes csplit to incorrectly report memory
44710         exhaustion.
44711         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
44712         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
44713         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
44714         comments to match.
44715         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
44716         Fix typo in matching older versions of Solaris: "solaris2.10"
44717         is matched by the shell pattern "solaris2.[0-9]*".  This matters
44718         only for guessing while cross-compiling.
44719         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
44721 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
44723         ftoastr: fix comment again
44724         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44725         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
44726         Also, simplify example a bit by using flags = 0.
44728 2010-12-20  Bruno Haible  <bruno@clisp.org>
44730         round*, trunc*: Update documentation regarding glibc.
44731         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
44732         * doc/posix-functions/round.texi: Likewise.
44733         * doc/posix-functions/roundl.texi: Likewise.
44734         * doc/posix-functions/truncf.texi: Likewise.
44735         * doc/posix-functions/trunc.texi: Likewise.
44736         * doc/posix-functions/truncl.texi: Likewise.
44738 2010-12-20  Bruno Haible  <bruno@clisp.org>
44740         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
44741         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
44742         * doc/posix-functions/round.texi: Likewise.
44743         * doc/posix-functions/roundl.texi: Likewise.
44745 2010-12-20  Bruno Haible  <bruno@clisp.org>
44747         ttyname_r: Add missing declaration on HP-UX 11.
44748         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
44749         HAVE_TTYNAME_R.
44750         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
44751         declared. Set HAVE_TTYNAME_R always.
44752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44753         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
44754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
44755         HAVE_TTYNAME_R.
44756         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
44758 2010-12-20  Bruno Haible  <bruno@clisp.org>
44760         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
44761         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
44762         * doc/posix-functions/getlogin_r.texi: Likewise.
44763         * tests/test-getlogin.c: Include <errno.h>.
44764         (main): Avoid test failure on HP-UX 11.11.
44765         * tests/test-getlogin_r.c (main): Likewise.
44767 2010-12-20  Bruno Haible  <bruno@clisp.org>
44769         getlogin_r: Add missing declaration on HP-UX 11.
44770         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
44771         declared also when it exists as a function.
44772         * doc/posix-functions/getlogin_r.texi: Document this workaround.
44774 2010-12-20  Bruno Haible  <bruno@clisp.org>
44776         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
44777         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
44778         through wcrtomb.
44780 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44782         ftoastr: fix comment
44783         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44784         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
44786 2010-12-19  Bruno Haible  <bruno@clisp.org>
44788         isnan: Ensure it is a macro.
44789         * lib/math.in.h (isnan): Define as a macro if not already a macro.
44790         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
44791         Solaris.
44793 2010-12-19  Bruno Haible  <bruno@clisp.org>
44795         ldexpl test: Fix link error on OSF/1 5.1.
44796         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
44798 2010-12-19  Bruno Haible  <bruno@clisp.org>
44800         wctype: Make it work in C++ mode on OSF/1 5.1.
44801         * lib/wctype.in.h (iswblank): Declare but not define here.
44802         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
44803         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
44804         * modules/wctype (Files): Add lib/iswblank.c.
44806 2010-12-19  Bruno Haible  <bruno@clisp.org>
44808         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
44809         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
44810         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
44812 2010-12-19  Bruno Haible  <bruno@clisp.org>
44814         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
44815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
44816         _POSIX_PII_SOCKET.
44817         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
44818         * doc/posix-functions/recvfrom.texi: Likewise.
44819         * doc/posix-functions/send.texi: Likewise.
44820         * doc/posix-functions/sendto.texi: Likewise.
44822 2010-12-19  Bruno Haible  <bruno@clisp.org>
44824         tcgetsid: Add missing declaration on OSF/1 5.1.
44825         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
44826         HAVE_TCGETSID.
44827         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
44828         Don't set HAVE_TCGETSID.
44829         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
44830         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
44831         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
44832         HAVE_TCGETSID.
44833         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
44835 2010-12-19  Bruno Haible  <bruno@clisp.org>
44837         stdio: Fix problem with popen() declaration on OSF/1 5.1.
44838         * lib/stdio.in.h: During the include_next statement, let recursive
44839         includes of this file include only the system header file.
44841 2010-12-19  Bruno Haible  <bruno@clisp.org>
44843         iconv_open: Fix regression from 2010-12-04.
44844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
44845         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
44847 2010-12-19  Bruno Haible  <bruno@clisp.org>
44849         stdbool test: Avoid a gcc warning.
44850         * tests/test-stdbool.c (main): Fail if e1 is false.
44851         Reported by Jim Meyering.
44853 2010-12-19  Jim Meyering  <meyering@redhat.com>
44855         setenv: restore to working order
44856         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44857         mistakenly removed.
44858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44859         HAVE_SETENV.
44860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44861         HAVE_SETENV.
44863 2010-12-19  Bruno Haible  <bruno@clisp.org>
44865         Document some different function declarations on OSF/1 5.1.
44866         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44867         * doc/posix-functions/inet_ntop.texi: Likewise.
44868         * doc/posix-functions/gethostname.texi: Likewise.
44869         * lib/unistd.in.h (gethostname): Update comment.
44871 2010-12-19  Bruno Haible  <bruno@clisp.org>
44873         doc: Mention vasprintf-posix module.
44874         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44875         the 'vasprintf-posix' module.
44876         * doc/glibc-functions/vasprintf.texi: Likewise.
44878 2010-12-19  Bruno Haible  <bruno@clisp.org>
44880         unsetenv: Add missing declaration on OSF/1 5.1.
44881         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44883         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44885         not HAVE_UNSETENV.
44886         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44887         HAVE_UNSETENV.
44888         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44890 2010-12-19  Bruno Haible  <bruno@clisp.org>
44892         setenv: Add missing declaration on OSF/1 5.1.
44893         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44895         declared. Don't set HAVE_SETENV.
44896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44897         not HAVE_SETENV.
44898         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44899         HAVE_SETENV.
44900         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44902 2010-12-19  Bruno Haible  <bruno@clisp.org>
44904         nl_langinfo tests: Avoid gcc warning.
44905         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44907 2010-12-19  Bruno Haible  <bruno@clisp.org>
44909         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44910         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44911         _GL_CXXALIAS_SYS.
44913 2010-12-19  Bruno Haible  <bruno@clisp.org>
44915         stdbool: Relax test.
44916         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44917         address to 'bool' work in static initializer, for compilers other than
44918         GCC.
44920 2010-12-19  Bruno Haible  <bruno@clisp.org>
44922         ftello: Add missing declaration on OSF/1 5.1.
44923         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44924         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44926         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44927         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44929 2010-12-19  Bruno Haible  <bruno@clisp.org>
44931         fseeko: Add missing declaration on OSF/1 5.1.
44932         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44935         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44936         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44938 2010-12-19  Bruno Haible  <bruno@clisp.org>
44940         fchdir: Add missing declaration on OSF/1 5.1.
44941         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44944         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44945         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44947 2010-12-19  Bruno Haible  <bruno@clisp.org>
44949         relocatable-prog-wrapper: Separate from relocatable-prog.
44950         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44951         uninstall-relocwrapper rule here.
44952         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44953         Reported by Ian Beckwith <ianb@erislabs.net>.
44955 2010-12-19  Bruno Haible  <bruno@clisp.org>
44957         unistr/u8-mbsnlen: Add missing dependency.
44958         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44959         Reported by Ian Beckwith <ianb@erislabs.net>.
44961 2010-12-19  Bruno Haible  <bruno@clisp.org>
44963         iconv: Make it possible again to use this module without 'iconv-h'.
44964         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44965         if it is not defined.
44966         Reported by Ian Beckwith <ianb@erislabs.net>.
44968 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44970         acl: port to Solaris 8 when copying from tmpfs to ufs
44971         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44972         error number.  Problem observed on Solaris 8 with latest
44973         coreutils, with "mv A B", where A is on a tmpfs file system and B
44974         is on a ufs file system.  This caused coreutils' mv/part-symlink
44975         test to fail.
44977         tests: set fail=0 at start
44978         * tests/init.sh (setup_): Move fail=0 initialization here ...
44979         (mktempd_): ... from here, so that tests can rely on fail being
44980         set to 0 initially.  This fixes a problem in coreutils; see:
44981         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44983 2010-12-18  Bruno Haible  <bruno@clisp.org>
44985         memmem-simple: Stylistic changes.
44986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44987         Fix preprocessor directive indentation.
44989 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44991         memmem, memmem-simple: reorganize and expand empty needle check
44992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44993         functional checks to memmem-simple so that one has a fully functional
44994         memmem by using just this module.
44995         Restrict the performance only check to the memmem module.
44996         Also expand the empty needle check to ensure the correct
44997         pointer is returned, not just a non NULL pointer.
44998         * doc/glibc-functions/memmem.texi: Rearrange the portability
44999         documentation to correlate with the rearranged checks.
45000         Clarify exactly how the memmem and memmem-simple modules
45001         relate to each other.
45003 2010-12-15  Pádraig Brady  <P@draigBrady.com>
45004             Bruno Haible  <bruno@clisp.org>
45006         Improve cross-compilation guesses for uClibc.
45007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
45008         that uClibc does not have the glibc bug.
45009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
45010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
45012 2010-12-14  Eric Blake  <eblake@redhat.com>
45014         configmake: provide fallbacks for oldest supported autotools
45015         * m4/configmake.m4: New file.
45016         * modules/configmake (Files): Ship it.
45017         (configure.ac): Use it to guarantee fallbacks.
45019 2010-12-13  Pádraig Brady  <P@draigBrady.com>
45021         read-file: Improve handling of large files
45022         * lib/read-file.c (fread_file): Minimize realloc()s
45023         for regular files, and better manage sizes around SIZE_MAX.
45025 2010-12-13  Eric Blake  <eblake@redhat.com>
45027         cloexec, fcntl: relax license
45028         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
45029         consent from all contributors.
45030         * modules/fcntl (License): Likewise.
45032 2010-12-10  Bruno Haible  <bruno@clisp.org>
45034         Tests for module 'pipe-posix'.
45035         * modules/pipe-posix-tests: New file.
45036         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
45038 2010-12-10  Bruno Haible  <bruno@clisp.org>
45040         pipe-posix: Make it work in C++ mode.
45041         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
45042         (pipe): Use common idiom, not a macro definition.
45043         * lib/pipe.c: New file.
45044         * m4/pipe.m4: New file.
45045         * modules/pipe-posix (Description): Enhance.
45046         (Files): Add lib/pipe.c, m4/pipe.m4.
45047         (configure.ac): Invoke gl_FUNC_PIPE.
45048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
45049         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
45050         * tests/test-unistd-c++.cc: Check the signature of pipe.
45052 2010-12-10  Bruno Haible  <bruno@clisp.org>
45054         Rename module 'pipe' to 'spawn-pipe'.
45055         * modules/spawn-pipe: New file, renamed from modules/pipe.
45056         (Files, configure.ac, Makefile.am): Update.
45057         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
45058         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
45059         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
45060         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
45061         "spawn-pipe.h" instead of "pipe.h".
45062         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
45063         to gl_SPAWN_PIPE.
45064         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
45065         (Files, Makefile.am): Update.
45066         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
45067         Update.
45068         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
45069         Include "spawn-pipe.h" instead of "pipe.h".
45070         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
45071         * lib/javacomp.c: Likewise.
45072         * lib/javaversion.c: Likewise.
45073         * lib/pipe-filter-gi.c: Likewise.
45074         * lib/pipe-filter-ii.c: Likewise.
45075         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
45076         * modules/javacomp (Depends-on): Likewise.
45077         * modules/javaversion (Depends-on): Likewise.
45078         * modules/pipe-filter-gi (Depends-on): Likewise.
45079         * modules/pipe-filter-ii (Depends-on): Likewise.
45080         * MODULES.html.sh (Executing programs): Update.
45081         * NEWS: Mention the change.
45083 2010-12-10  Eric Blake  <eblake@redhat.com>
45085         pipe-posix: new module
45086         * modules/pipe-posix: New file.
45087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
45088         (gl_UNISTD_H): Check for declaration.
45089         * modules/unistd (Makefile.am): Substitute it.
45090         * lib/unistd.in.h (pipe): Provide it for mingw.
45091         * doc/posix-functions/pipe.texi (pipe): Update documentation.
45092         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
45094 2010-12-07  Bruno Haible  <bruno@clisp.org>
45096         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
45097         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
45098         u8_strcmp_gnu.
45099         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
45101 2010-12-06  Bruno Haible  <bruno@clisp.org>
45103         Update internal documentation.
45104         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
45106 2010-12-04  Bruno Haible  <bruno@clisp.org>
45108         Put more information about failed tests into the test return codes.
45109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
45110         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
45111         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
45114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45115         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45116         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45117         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
45118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
45120         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45121         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45122         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
45124         returns a bit mask.
45125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
45126         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
45127         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
45128         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
45129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45131         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45133         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45135         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45136         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45137         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45138         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45139         * m4/link.m4 (gl_FUNC_LINK): Likewise.
45140         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45141         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
45142         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
45143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45144         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
45145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45146         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
45147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
45148         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45149         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45150         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45151         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
45152         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45153         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45154         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
45155         gl_PRINTF_PRECISION): Likewise.
45156         * m4/regex.m4 (gl_REGEX): Likewise.
45157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
45159         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
45160         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
45164         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
45165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45166         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45167         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45168         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45171         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45173         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
45174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
45177         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
45178         enumerated value.
45179         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
45181 2010-12-04  Bruno Haible  <bruno@clisp.org>
45183         Update for Solaris 11 2010-11.
45184         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
45185         Express, released in November 2010.
45187 2010-12-04  Bruno Haible  <bruno@clisp.org>
45189         nproc: Relax license.
45190         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
45191         and Paul Eggert.
45192         Requested by Ludovic Courtès <ludo@gnu.org>.
45194 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45196         utimecmp: fine-grained src to nearby coarse-grained dest
45198         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
45199         and the source is on a file system with higher-resolution time
45200         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
45201         not work, and the time stamps are close together, the algorithm to
45202         determine the exact resolution from the read-back mtime was buggy:
45203         it had a "!=" where it should have had an "==".  This bug has been
45204         in the code ever since it was introduced to gnulib.
45205         Problem reported by Dan Jacobson in
45206         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
45208 2010-11-30  Bruno Haible  <bruno@clisp.org>
45210         strerror_r-posix: Fix autoconf test.
45211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
45213 2010-11-28  Bruno Haible  <bruno@clisp.org>
45214             Paul Eggert  <eggert@cs.ucla.edu>
45216         Tests for module 'getdomainname'.
45217         * modules/getdomainname-tests: New file.
45218         * tests/test-getdomainname.c: New file, based on
45219         tests/test-gethostname.c.
45221 2010-11-28  Bruno Haible  <bruno@clisp.org>
45222             Paul Eggert  <eggert@cs.ucla.edu>
45224         getdomainname: Use the system function when possible.
45225         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
45226         (getdomainname): Replace if needed. Provide the declaration if it is
45227         missing. Don't use _GL_CXXALIAS_SYS_CAST.
45228         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
45229         (getdomainname): When the system has getdomainname, call the system
45230         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
45231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45232         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
45233         found in libnsl. Look for the declaration also in <netdb.h>. Replace
45234         the function if its second argument is of type 'int' or if it is found
45235         in libnsl.
45236         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
45237         <sys/systeminfo.h> and sysinfo().
45238         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
45239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45240         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
45241         HAVE_GETDOMAINNAME.
45242         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
45243         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
45244         * doc/glibc-functions/getdomainname.texi: Document the problems with
45245         the getdomainname declaration.
45247 2010-11-28  Bruno Haible  <bruno@clisp.org>
45249         sys_socket: Ensure ss_family field on AIX.
45250         * lib/sys_socket.in.h (ss_family): New macro definition.
45251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
45252         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
45253         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45254         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45255         * modules/sys_socket (Makefile.am): Substitute
45256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45257         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
45259 2010-11-27  Bruno Haible  <bruno@clisp.org>
45261         readline: Improve configure output.
45262         * m4/readline.m4 (gl_FUNC_READLINE): Make the
45263         "checking for readline..." result understandable.
45265 2010-11-27  Bruno Haible  <bruno@clisp.org>
45267         *printf-posix: Detect a bug on Solaris 10/x86.
45268         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
45269         for floating-point output.
45270         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
45271         directive.
45272         * tests/test-snprintf-posix.h (test_function): Likewise.
45273         * tests/test-sprintf-posix.h (test_function): Likewise.
45274         * tests/test-vasprintf-posix.c (test_function): Likewise.
45275         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
45276         * doc/posix-functions/printf.texi: Likewise.
45277         * doc/posix-functions/snprintf.texi: Likewise.
45278         * doc/posix-functions/sprintf.texi: Likewise.
45279         * doc/posix-functions/vfprintf.texi: Likewise.
45280         * doc/posix-functions/vprintf.texi: Likewise.
45281         * doc/posix-functions/vsnprintf.texi: Likewise.
45282         * doc/posix-functions/vsprintf.texi: Likewise.
45283         * doc/glibc-functions/obstack_printf.texi: Likewise.
45284         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45286 2010-11-27  Bruno Haible  <bruno@clisp.org>
45288         Fix link error when module libunistring-optional is in use.
45289         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
45290         * modules/striconveha-tests (Makefile.am): Likewise.
45292 2010-11-27  Bruno Haible  <bruno@clisp.org>
45294         regex: Mention link dependencies.
45295         * modules/regex (Link): New section.
45296         * modules/rpmatch (Link): Likewise.
45297         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
45299 2010-11-27  Bruno Haible  <bruno@clisp.org>
45301         ftoastr: Fix compilation error on Solaris.
45302         * lib/ftoastr.c: Include <config.h>.
45304 2010-11-27  Bruno Haible  <bruno@clisp.org>
45306         getloadavg: Update documentation.
45307         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
45309 2010-11-27  Bruno Haible  <bruno@clisp.org>
45311         sys_socket: Fix test whether the functions are declared.
45312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
45313         not <sys/select.h>.
45315 2010-11-27  Bruno Haible  <bruno@clisp.org>
45317         getpass: Make sure to get system declaration on some platforms.
45318         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
45319         gl_USE_SYSTEM_EXTENSIONS.
45320         * modules/getpass (Depends-on): Add extensions.
45322 2010-11-26  Bruno Haible  <bruno@clisp.org>
45324         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
45325         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
45326         'iconv' module is present.
45327         (ICONV_CONST): New macro.
45328         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
45329         ICONV_CONST.
45330         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
45331         set ICONV_CONST.
45332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
45333         here.
45334         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
45335         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
45336         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
45337         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
45338         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
45339         present.
45341 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45343         ftoastr: comment fix
45344         * lib/ftoastr.c: "little" -> "little or no" in comment
45346 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
45348         stdint: port to GCC 4.3 + OSX + Octave
45349         On this platform, stdint.h is buggy and defines int64_t to long
45350         long int.  The replacement defined it to long int, causing
45351         problems with C++ style name mangling.  Instead, trust the system
45352         definition if INT64_MAX is defined, and likewise for the unsigned
45353         variant.   Problem reported by Jarno Rajahalme in
45354         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
45355         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
45356         and don't mess with int64_t and INT64_MAX in this case.
45357         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
45359 2010-11-24  Bruno Haible  <bruno@clisp.org>
45361         doc: Corrections regarding MacOS X 10.4 and 10.5.
45362         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
45363         MacOS X.
45364         Reported by Simon Josefsson.
45366 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
45368         Uninstall ".bin" files installed by relocwrapper.
45369         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
45370         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
45371         unless it is already there.
45373 2010-11-21  Bruno Haible  <bruno@clisp.org>
45375         Update for NetBSD 5.0.
45376         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45377         NetBSD; the test fails on NetBSD 5.0.
45378         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45379         about NetBSD.
45381 2010-11-21  Bruno Haible  <bruno@clisp.org>
45383         Update for HP-UX 11.23 and HP-UX 11.31.
45384         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
45385         HP-UX.
45387 2010-11-21  Bruno Haible  <bruno@clisp.org>
45389         Update for MacOS X 10.5.
45390         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45391         MacOS X; the test fails on MacOS X 10.5.8.
45392         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45393         about MacOS X.
45395 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
45397         bootstrap: add bootstrap_sync option.
45398         See discussion at
45399         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
45400         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
45401         * build-aux/bootstrap: Accept --bootstrap-sync to update
45402         bootstrap if it is not identical to the local gnulib's
45403         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
45404         enable this by default.  Accept --no-bootstrap-sync to disable
45405         it.
45407 2010-11-20  Bruno Haible  <bruno@clisp.org>
45409         Ensure that <features.h> is included before __GLIBC__ is tested.
45410         * lib/printf-parse.h: Include <features.h>.
45411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
45412         Reported by Mike Frysinger <vapier@gentoo.org>.
45414         Ensure that <features.h> is included before __GLIBC__ is tested.
45415         * lib/wchar.in.h: Include <features.h>.
45416         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
45417         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
45418         Reported by Mike Frysinger <vapier@gentoo.org>.
45420         Ensure that <features.h> is included before __GLIBC__ is tested.
45421         * lib/arpa_inet.in.h: Include <features.h>.
45422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
45423         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
45424         Reported by Mike Frysinger <vapier@gentoo.org>.
45426         Ensure that <features.h> is included before __GLIBC__ is tested.
45427         * build-aux/link-warning.h: Include <features.h>.
45428         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
45429         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
45430         Reported by Mike Frysinger <vapier@gentoo.org>.
45432         Ensure that <features.h> is included before __GLIBC__ is tested.
45433         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
45434         Reported by Mike Frysinger <vapier@gentoo.org>.
45436 2010-11-20  Bruno Haible  <bruno@clisp.org>
45438         memmem: Fix autoconf test.
45439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
45441 2010-11-20  Bruno Haible  <bruno@clisp.org>
45443         Port to uClibc.
45444         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
45445         * lib/fcntl.in.h: Likewise.
45446         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
45447         * lib/mbrtowc.c (mbrtowc): Likewise.
45448         * lib/relocatable.c (find_shared_library_fullname): Likewise.
45449         * lib/strerror_r.c: Likewise.
45450         * lib/unistr/u8-strnlen.c: Likewise.
45451         * lib/vasnprintf.c (decimal_point_char): Likewise.
45452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45455         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45456         * tests/test-sigaction.c (handler, main): Likewise.
45457         * lib/freading.h: Treat uClibc like a non-glibc platform.
45458         * lib/freading.c: Likewise.
45459         * lib/gettext.h: Likewise.
45460         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
45461         Likewise.
45462         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
45463         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45464         * lib/propername.c (proper_name_utf8): Likewise.
45465         * lib/spawn.in.h: Likewise.
45466         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
45467         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
45468         mem_cd_iconveh_internal): Likewise.
45469         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
45470         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
45471         strstr, strcasestr): Likewise.
45472         * lib/unicodeio.c (unicode_to_mb): Likewise.
45473         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
45474         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
45475         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
45476         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
45477         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
45478         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
45479         * lib/unistr/u8-stpncpy.c: Likewise.
45480         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45481         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
45482         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45483         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45484         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45485         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
45486         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
45487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
45488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
45489         Likewise.
45490         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45491         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
45493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
45496         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45497         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
45498         * tests/test-getopt.h (OPTIND_MIN): Likewise.
45499         * tests/test-striconveha.c (main): Likewise.
45500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45501         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
45502         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
45503         * doc/posix-functions/getline.texi: Likewise.
45504         Reported by Mike Frysinger <vapier@gentoo.org>.
45506 2010-11-20  Bruno Haible  <bruno@clisp.org>
45508         nproc: Fix condition.
45509         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
45510         HAVE_PTHREAD_AFFINITY_NP.
45512 2010-11-20  Bruno Haible  <bruno@clisp.org>
45514         Fix a comment.
45515         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
45517 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
45519         ftoastr: don't assume snprintf
45520         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
45521         Implement a subset of snprintf here, by using sprintf safely.
45522         * modules/ftoastr (Depends-on): Remove snprintf.
45524 2010-11-19  Jim Meyering  <meyering@redhat.com>
45526         test-rename.h: fix compilation failure
45527         * tests/test-rename.h (test_rename): Add omitted "}".
45529 2010-11-17  Jim Meyering  <meyering@redhat.com>
45531         maint.mk: add a URL discussing the no-@acronym policy
45532         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
45534 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45536         ftoastr: depend on snprintf, improve comments
45537         * lib/ftoastr.c: Also mention Loitsch's draft.
45538         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
45539         needed in the current implementation, but it might simplify
45540         speeding up the code later.
45541         * modules/ftoastr: Depend on snprintf; this improves portability.
45542         Suggested by Bruno Haible in the same email.
45544         ftoastr: port to hosts lacking strtof and strtold
45545         Problem reported by Bruno Haible in
45546         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
45547         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
45548         environment and strtold (and presumably strtof) are not available.
45549         * modules/ftoastr (Files): Add m4/c-strtod.m4.
45550         (configure.ac): Require gl_C99_STRTOLD.
45552 2010-11-18  Bruno Haible  <bruno@clisp.org>
45554         c-strtold: Avoid link error on AIX 7.
45555         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
45556         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
45557         (gl_C_STRTOLD): Test whether strtold_l exists.
45558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45560 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45562         intprops: new macro INT_BITS_STRLEN_BOUND
45563         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
45564         ftoastr.h.  This exposes an internal of intprops.h that was formerly
45565         not exposed.  Also, it uses a slightly tighter bound than before;
45566         though this makes no practical difference, we might as well be as
45567         tight as we easily can.
45569         ftoastr: new module, for lossless conversion of floats to short strings
45570         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
45571         * modules/ftoastr: New files.
45573 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45575         bootstrap: port to Solaris sed
45576         * build-aux/bootstrap (get_version): Port to Solaris sed.
45577         See Ralf Wildenhues's note in
45578         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
45580 2010-11-14  Jim Meyering  <meyering@redhat.com>
45582         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
45583         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
45584         and move definition closer to sole use.
45586 2010-11-13  Jim Meyering  <meyering@redhat.com>
45588         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
45589         Now we require at least autoconf-2.59, which means the work-around
45590         is no longer needed.
45591         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
45592         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45595         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45597 2010-11-13  Bruno Haible  <bruno@clisp.org>
45599         rename, renameat: Avoid test failures at NFS mounted locations.
45600         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
45601         functions.
45602         (test_rename): Use assert_nonexistent.
45603         * tests/test-rename.c: Include <dirent.h>.
45604         * tests/test-renameat.c: Likewise.
45605         Reported by Gary V. Vaughan <gary@gnu.org>.
45607         rename, renameat: Document Linux bug with NFS
45608         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
45609         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
45610         * doc/posix-functions/renameat.texi: Likewise.
45611         Suggested by Eric Blake.
45613 2010-11-13  Bruno Haible  <bruno@clisp.org>
45615         rename test: Add comments.
45616         * tests/test-rename.h (test_rename): Add structure and comments.
45618 2010-11-13  Eric Blake  <eblake@redhat.com>
45620         maintainer-makefile: cover a few more files
45621         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
45622         scripts generated within C files, for libvirt.
45624 2010-11-13  Bruno Haible  <bruno@clisp.org>
45626         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
45627         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
45628         character, return the number of bytes that belong together, not always
45629         1.
45630         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
45631         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
45632         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
45633         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
45634         number of bytes of an invalid character.
45635         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
45636         (main): Invoke it.
45637         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
45638         results.
45639         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
45640         malformed byte sequences.
45641         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
45642         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
45643         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
45644         Reported by Ben Pfaff and Paolo Bonzini.
45646 2010-11-13  Bruno Haible  <bruno@clisp.org>
45648         openat: Work around glibc bug with fchownat() and empty file names.
45649         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
45650         (gl_FUNC_FCHOWNAT): Invoke it.
45651         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
45652         * doc/posix-functions/fchownat.texi: Document the glibc bug.
45653         Reported by Gary V. Vaughan <gary@gnu.org>.
45655 2010-11-13  Bruno Haible  <bruno@clisp.org>
45657         openat: Ensure autoconf macro ordering.
45658         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
45659         gl_USE_SYSTEM_EXTENSIONS.
45660         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
45662 2010-11-13  Bruno Haible  <bruno@clisp.org>
45664         Update comments.
45665         * lib/unistr/u8-check.c: Update file name in comments.
45666         * lib/unistr/u8-mblen.c: Likewise.
45667         * lib/unistr/u8-prev.c: Likewise.
45668         * lib/unistr/u8-strmblen.c: Likewise.
45669         * lib/unistr/u8-strmbtouc.c: Likewise.
45671 2010-11-13  Jim Meyering  <meyering@redhat.com>
45673         tests: avoid test failure on Solaris 10 due to lack of PATH export
45674         * tests/test-update-copyright.sh: Don't forget to export PATH.
45676         init.sh: ensure that IFS is defined, just in case...
45677         * tests/init.sh (setup_): Ensure that IFS is defined,
45678         so that saving and restoring it works as expected.  This
45679         appears to be useful at least for an old version of dash
45680         from a long time ago (RH 6).  See here for details:
45681         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
45683         maint.mk: tighten "test a == b" check
45684         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
45685         test to files that contain something like #!/bin/sh.
45686         Without this, coreutils would get two false positives in
45687         the comments of C source files.
45689 2010-11-12  Eric Blake  <eblake@redhat.com>
45691         bootstrap: fix typo in previous attempt
45692         * build-aux/bootstrap (buildreq): Correct the grouping.
45693         Reported by Paul Eggert.
45695         maintainer-makefile: prohibit test x == x
45696         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
45697         Based on a report by Matthias Bolte.
45699         bootstrap: allow FreeBSD gzip
45700         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
45701         which has no '.' and goes to stderr.
45702         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
45703         Reported by Matthias Bolte.
45705         maintainer-makefile: check for i18n setup
45706         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
45707         will likely work.
45709 2010-11-12  Bruno Haible  <bruno@clisp.org>
45711         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
45712         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
45713         * lib/nanosleep.c (nanosleep): Likewise.
45715 2010-11-11  Bruno Haible  <bruno@clisp.org>
45717         fcntl-h: Fix for use of C++ on glibc systems.
45718         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45719         also on glibc systems in C++ mode.
45720         Reported by Gary V. Vaughan <gary@gnu.org>.
45722 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45724         mknod: avoid false failure with dash
45725         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
45727 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45729         unlink: Fix "is it should" typo in diagnostic.
45730         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
45731         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
45733 2010-11-11  Bruno Haible  <bruno@clisp.org>
45735         Tests for module 'strerror_r-posix'.
45736         * modules/strerror_r-posix-tests: New file.
45737         * tests/test-strerror_r.c: New file.
45738         * tests/test-string-c++.cc: Check the signature of strerror_r.
45740         New module 'strerror_r-posix'.
45741         * lib/string.in.h (strerror_r): New declaration.
45742         * lib/strerror_r.c: New file.
45743         * m4/strerror_r.m4: New file.
45744         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
45745         of strerror_r.
45746         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
45747         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45748         * modules/strerror_r-posix: New file.
45749         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
45750         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45751         * doc/posix-functions/strerror_r.texi: Mention the new module and the
45752         portability problems.
45754 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
45756         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
45757         line is also considered for output. Quoted function name in shell
45758         command, so temporary files for functions like MyClass::operator()
45759         are removed correctly without errors.
45761 2010-11-09  Bruno Haible  <bruno@clisp.org>
45763         * doc/posix-functions/strerror.texi: List more failing platforms.
45765         * doc/posix-functions/strerror.texi: Add a comment.
45767 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45769         fdopendir: fix bug on MacOS X when low on file descriptors
45771         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
45772         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
45773         All callers changed.
45774         (fdopendir): Invoke save_cwd at the top level, not after using
45775         multiple dup() calls to use up file descriptors.  Then retry
45776         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
45777         less than the maximum number of open file descriptors, because
45778         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
45779         on Mac OS X 10.6.4 for tar 1.24
45780         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
45781         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
45782         and for tar 1.25
45783         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
45785 2010-11-07  Bruno Haible  <bruno@clisp.org>
45787         vasnprintf: Support I flag on glibc systems.
45788         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
45789         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
45790         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
45791         snprintf function.
45792         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
45793         glibc systems.
45794         * tests/test-vasnprintf-posix3.c: New file.
45795         * modules/vasnprintf-posix-tests (Files): Add it.
45796         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
45798 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45800         [html] Fix copy/paste bug: Use unique name for compiler warnings.
45801         * MODULES.html.sh: For compiler warnings, use name
45802         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
45804 2010-11-05  Eric Blake  <eblake@redhat.com>
45806         ceil, floor: avoid spurious failure with icc
45807         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
45808         [denormals-as-zero] when optimizing without -mieee-fp option.
45809         * tests/test-floorf2.c (floorf_reference): Likewise.
45810         * tests/test-ceilf1.c (dummy): New function.
45811         (main): Use it to outsmart icc's optimization.
45812         * tests/test-floorf1.c (dummy, main): Likewise.
45814         tests: require working signbit
45815         * modules/ceilf-tests (Depends-on): Add signbit.
45816         * modules/ceill-tests (Depends-on): Likewise.
45817         * modules/floorf-tests (Depends-on): Likewise.
45818         * modules/floorl-tests (Depends-on): Likewise.
45819         * modules/round-tests (Depends-on): Likewise.
45820         * modules/roundf-tests (Depends-on): Likewise.
45821         * modules/roundl-tests (Depends-on): Likewise.
45822         * modules/trunc-tests (Depends-on): Likewise.
45823         * modules/truncf-tests (Depends-on): Likewise.
45824         * modules/truncl-tests (Depends-on): Likewise.
45826         strtod: work around icc bug
45827         * lib/strtod.c (minus_zero): Define to working value.
45828         (strtod): Use it to avoid icc bug.
45830         copysign: enhance tests
45831         * modules/copysign-tests (Files): Add minus-zero.h.
45832         * tests/test-copysign.c (main): Also test zeros.
45834 2010-11-04  Eric Blake  <eblake@redhat.com>
45836         ceil, floor, round, trunc: enhance tests of -0
45837         * tests/test-ceilf1.c (main): Ensure correct sign of result.
45838         * tests/test-ceill.c (main): Likewise.
45839         * tests/test-floorf1.c (main): Likewise.
45840         * tests/test-floorl.c (main): Likewise.
45841         * tests/test-round1.c (main): Likewise.
45842         * tests/test-roundf1.c (main): Likewise.
45843         * tests/test-roundl.c (main): Likewise.
45844         * tests/test-trunc1.c (main): Likewise.
45845         * tests/test-truncf1.c (main): Likewise.
45846         * tests/test-truncl.c (main): Likewise.
45848 2010-11-04  Eric Blake  <eblake@redhat.com>
45850         frexp, tests: work around ICC bug with -zero
45851         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45852         works with more compilers.
45853         * tests/minus-zero.h: New file.
45854         * modules/ceilf-tests (Files): Include it.
45855         * modules/ceill-tests (Files): Likewise.
45856         * modules/floorf-tests (Files): Likewise.
45857         * modules/floorl-tests (Files): Likewise.
45858         * modules/frexp-nolibm-tests (Files): Likewise.
45859         * modules/frexp-tests (Files): Likewise.
45860         * modules/frexpl-nolibm-tests (Files): Likewise.
45861         * modules/frexpl-tests (Files): Likewise.
45862         * modules/isnan-tests (Files): Likewise.
45863         * modules/isnand-nolibm-tests (Files): Likewise.
45864         * modules/isnand-tests (Files): Likewise.
45865         * modules/isnanf-nolibm-tests (Files): Likewise.
45866         * modules/isnanf-tests (Files): Likewise.
45867         * modules/isnanl-nolibm-tests (Files): Likewise.
45868         * modules/isnanl-tests (Files): Likewise.
45869         * modules/round-tests (Files): Likewise.
45870         * modules/roundf-tests (Files): Likewise.
45871         * modules/roundl-tests (Files): Likewise.
45872         * modules/ldexpl-tests (Files): Likewise.
45873         * modules/signbit-tests (Files): Likewise.
45874         * modules/snprintf-posix-tests (Files): Likewise.
45875         * modules/sprintf-posix-tests (Files): Likewise.
45876         * modules/strtod-tests (Files): Likewise.
45877         * modules/trunc-tests (Files): Likewise.
45878         * modules/truncf-tests (Files): Likewise.
45879         * modules/truncl-tests (Files): Likewise.
45880         * modules/vsnprintf-posix-tests (Files): Likewise.
45881         * modules/vsprintf-posix-tests (Files): Likewise.
45882         * modules/vasnprintf-posix-tests (Files): Likewise.
45883         * modules/vasprintf-posix-tests (Files): Likewise.
45884         * tests/test-ceilf1.c (main): Use it.
45885         * tests/test-ceill.c (main): Likewise.
45886         * tests/test-floorf1.c (main): Likewise.
45887         * tests/test-floorl.c (main): Likewise.
45888         * tests/test-frexp.c (main): Likewise.
45889         * tests/test-frexpl.c (main): Likewise.
45890         * tests/test-isnan.c (main): Likewise.
45891         * tests/test-isnand.h (main): Likewise.
45892         * tests/test-isnanf.h (main): Likewise.
45893         * tests/test-isnanl.h (main): Likewise.
45894         * tests/test-ldexpl.c (main): Likewise.
45895         * tests/test-round.c (main): Likewise.
45896         * tests/test-roundf.c (main): Likewise.
45897         * tests/test-roundl.c (main): Likewise.
45898         * tests/test-signbit.c (test_signbitf, test_signbitd)
45899         (test_signbitl): Likewise.
45900         * tests/test-snprintf-posix.h (test_function): Likewise.
45901         * tests/test-sprintf-posix.h (test_function): Likewise.
45902         * tests/test-strtod.c (main): Likewise.
45903         * tests/test-trunc1.c (main): Likewise.
45904         * tests/test-truncf1.c (main): Likewise.
45905         * tests/test-truncl.c (main): Likewise.
45907         isnanl: work around icc bug
45908         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45910 2010-11-03  Eric Blake  <eblake@redhat.com>
45912         tests: fix compiler warnings
45913         * tests/test-getopt.h (test_getopt): Fix condition.
45914         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45915         * tests/test-pipe2.c (main): Likewise.
45916         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45918         utimens: fix broken m4 test
45919         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45921 2010-10-28  Bruno Haible  <bruno@clisp.org>
45923         posix_spawn*, getdtablesize: Relax license.
45924         * modules/posix_spawn (License): Change to LGPLv2+.
45925         * modules/posix_spawnp (License): Likewise.
45926         * modules/posix_spawn-internal (License): Likewise.
45927         * modules/posix_spawnattr_init (License): Likewise.
45928         * modules/posix_spawnattr_getflags (License): Likewise.
45929         * modules/posix_spawnattr_setflags (License): Likewise.
45930         * modules/posix_spawnattr_getpgroup (License): Likewise.
45931         * modules/posix_spawnattr_setpgroup (License): Likewise.
45932         * modules/posix_spawnattr_getschedparam (License): Likewise.
45933         * modules/posix_spawnattr_setschedparam (License): Likewise.
45934         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45935         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45936         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45937         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45938         * modules/posix_spawnattr_getsigmask (License): Likewise.
45939         * modules/posix_spawnattr_setsigmask (License): Likewise.
45940         * modules/posix_spawnattr_destroy (License): Likewise.
45941         * modules/posix_spawn_file_actions_init (License): Likewise.
45942         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45943         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45944         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45945         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45946         * modules/getdtablesize (License): Likewise.
45947         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45949 2010-10-26  Bruno Haible  <bruno@clisp.org>
45951         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45952         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45953         Cygwin and mingw.
45954         Suggested by Eric Blake.
45956 2010-10-26  Bruno Haible  <bruno@clisp.org>
45958         stdio: Work around compilation error due to renameat() on Solaris 10.
45959         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45960         * lib/renameat.c: Don't include <unistd.h> here.
45961         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45962         Reported by Paul Eggert and Eric Blake.
45964 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45966         renameat: port to Solaris 10, which declares renameat in unistd.h
45968         * lib/renameat.c: Include unistd.h before stdio.h, because
45969         Solaris 10 declares renameat in unistd.h.  Problem encountered
45970         when building GNU tar 1.24 on Solaris 10.
45972 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45974         fdopendir: fix C89 compilation
45975         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45976         compilers.
45978 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45980         inttostr: simplify by removing unnecessary redundancy
45981         * lib/anytostr.c: Don't include verify.h.
45982         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45983         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45984         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45985         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45986         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45987         Likewise.
45988         * modules/inttostr (Depends-on): Remove 'verify'.
45990 2010-10-23  Bruno Haible  <bruno@clisp.org>
45992         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45993         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45994         Reported by Eric Blake.
45996 2010-10-23  Bruno Haible  <bruno@clisp.org>
45998         Tests: Fix LOCALE_JA on MirBSD 10.
45999         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
46000         to an UTF-8 locale.
46001         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
46002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46003         Reported by Eric Blake.
46005 2010-10-21  Bruno Haible  <bruno@clisp.org>
46007         nl_langinfo test: Avoid test failure on NetBSD 5.
46008         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
46009         Reported by Eric Blake.
46011 2010-10-21  Eric Blake  <eblake@redhat.com>
46013         c-stack: work around libsigsegv 2.8 bug
46014         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
46015         overflow on at least PowerPC64.
46017 2010-10-17  Bruno Haible  <bruno@clisp.org>
46019         userspec: Drop redundant file.
46020         * modules/userspec (Files): Remove lib/inttostr.h.
46022 2010-10-17  Bruno Haible  <bruno@clisp.org>
46024         nl_langinfo tests: Silence some warnings.
46025         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
46026         Reported by Jim Meyering.
46028 2010-10-17  Bruno Haible  <bruno@clisp.org>
46030         Make use of GCC's attribute __alloc_size__.
46031         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
46032         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
46033         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
46034         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
46035         __alloc_size__.
46036         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46037         Suggested by Jim Meyering.
46039 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
46041         bootstrap: anchor .gitignore entries.
46042         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
46043         with...
46044         (insert_vc_ignore): ... this new function, which prepends `/' to
46045         all .gitignore entries before passing them to
46046         insert_sorted_if_absent.
46048 2010-10-16  Bruno Haible  <bruno@clisp.org>
46050         nextafter: Fix configure check.
46051         * modules/nextafter (configure.ac): Correct expected prototype.
46053 2010-10-16  Bruno Haible  <bruno@clisp.org>
46055         termios: Update documentation.
46056         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
46058 2010-10-16  Bruno Haible  <bruno@clisp.org>
46060         tests: Make them compile with TinyCC.
46061         * tests/test-strstr.c (main): Remove parentheses around array
46062         initializer.
46064 2010-10-15  Eric Blake  <eblake@redhat.com>
46066         ignore-value: make header idempotent
46067         * lib/ignore-value.h: Add double-inclusion guards.
46068         Reported by Stefan Berger.
46070 2010-10-15  Jim Meyering  <meyering@redhat.com>
46072         GNUmakefile: handle "stable" target, not "major"
46073         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
46074         lists in maint.mk and announce-gen.  Without this, "make stable"
46075         would fail to ensure that $(VERSION) is up to date.
46077 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
46079         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
46080         & co.
46082 2010-10-14  Bruno Haible  <bruno@clisp.org>
46084         vasnprintf: Don't set errno to 0.
46085         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
46086         block that sets it to 0.
46087         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
46089 2010-10-14  Bruno Haible  <bruno@clisp.org>
46091         socketlib: Fix.
46092         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
46093         gl_PREREQ_SYS_H_WINSOCK2.
46094         Reported by Ian Beckwith <ianb@erislabs.net>.
46096 2010-10-13  Jim Meyering  <meyering@redhat.com>
46098         test-select-stdin.c: avoid warn_unused_result warnings
46099         * tests/test-select-stdin.c: Include "macros.h".
46100         ASSERT that read and fflush succeed.
46102 2010-10-13  Jim Meyering  <meyering@redhat.com>
46104         git-version-gen: do require git-VC'd files in cwd
46105         * build-aux/git-version-gen: Reject a git version string
46106         if there are no commits associated with the current directory.
46107         This avoids an unlikely false-positive (unrelated dir whose parent
46108         repository also contains a tag matching v*), as pointed out
46109         by Giuseppe Scrivano in
46110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
46112 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
46114         argv-iter: omit nonconforming declaration
46115         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
46116         enum arg_iter_err declaration, which doesn't conform to C99.
46117         Solaris 10 cc warns about this.
46119 2010-10-13  Eric Blake  <eblake@redhat.com>
46121         termios: fix compilation on mingw
46122         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
46123         (gl_TERMIOS_H): Adjust it on mingw.
46124         * modules/termios (Makefile.am): Substitute new key.
46125         * lib/termios.in.h (includes): Make include_next conditional.
46126         * doc/posix-headers/termios.texi (termios.h): Update
46127         documentation.
46128         Reported by Daniel P. Berrange.
46130 2010-10-13  Jim Meyering  <meyering@redhat.com>
46132         git-version-gen: don't require that .git/ be in the current dir
46133         * build-aux/git-version-gen: Adjust this script so that it works
46134         when run from any working directory beneath the top-level .git/-
46135         containing directory.  Inspired by a patch from Giuseppe Scrivano,
46136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
46138         test-select: avoid warn_unused_result warnings
46139         * tests/test-select.c: Include "macros.h".
46140         ASSERT that each call to read, write, and pipe succeeds.
46141         While not technically required, also check each "close".
46142         * modules/select-tests (Files): Add tests/macros.h.
46144         test-symlinkat: remove declaration of unused local
46145         * tests/test-symlinkat.c (main): Remove unused local, "buf".
46147         test-inttostr: avoid shadowing warnings
46148         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
46149         and use malloc rather than the stack for the same reason as
46150         mentioned in the comment justifying the other allocation.
46152 2010-10-11  Bruno Haible  <bruno@clisp.org>
46154         stdlib: Allow multiple gnulib generated replacements to coexist.
46155         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
46156         Reported by Sam Steingold <sds@gnu.org>.
46158 2010-10-11  Jim Meyering  <meyering@redhat.com>
46160         fix a documentation typo
46161         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
46163 2010-10-11  Eric Blake  <eblake@redhat.com>
46165         futimens: work around Solaris 11 bug
46166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
46167         * tests/test-futimens.h (test_futimens): Enhance, rather than
46168         weaken test.
46169         * doc/posix-functions/futimens.texi (futimens): Document the bug.
46171 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46173         Indentation.
46174         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
46175         higher-level operators more to the left.
46177 2010-10-11  Jim Meyering  <meyering@redhat.com>
46179         test-futimens: avoid unwarranted test failure on Solaris 5.11
46180         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
46181         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
46182         because it tries to dereference the NULL name argument.
46184 2010-10-11  Bruno Haible  <bruno@clisp.org>
46186         Indentation.
46187         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
46188         indentation.
46190 2010-10-11  Jim Meyering  <meyering@redhat.com>
46192         spawn.in.h: make indentation consistent with parentheses
46193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
46194         Make indentation consistent with parentheses.
46196 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
46198         Fix mismatched parens in previous commit
46199         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
46200         parens.
46202 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46204         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
46206         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
46207         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
46208         * lib/malloca.c: Include "verify.h".
46209         (verify1): Remove, replacing with a verify call.
46210         * lib/relocwrapper.c (verify1): Likewise.
46211         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
46212         Likewise.
46213         * modules/malloca (Depends-on): Add 'verify'.
46214         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
46215         * modules/vasnprintf (Depends-on): Add 'verify'.
46216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46224         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
46226         Formerly the style was sometimes 2*X - 1, because the C standard
46227         was wrongly thought to disallow ?: in integral constant expressions.
46228         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
46229         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
46230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
46231         * lib/stdint.in.h (_verify_intmax_size): Likewise.
46232         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
46233         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
46234         verify that time_t cannot be floating.
46236 2010-10-08  Eric Blake  <eblake@redhat.com>
46238         time: enforce recent POSIX ruling that time_t is integral
46239         * lib/time.in.h (__time_t_must_be_integral): Detect any
46240         problematic systems, allowing the rest of gnulib to assume POSIX.
46242 2010-10-08  Jim Meyering  <meyering@redhat.com>
46244         fdopendir: fix a bug on systems lacking openat and /proc support
46245         OpenBSD 4.7 is one such system.  The most noticeable effect was
46246         failure of any application making nontrivial use of fts: rm, du,
46247         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
46248           ./rm: traversal failed: `a': Bad file descriptor
46249         Debugging that, you see that even though FD 6 was closed just
46250         prior to the opendir call in fd_clone_opendir, its resulting
46251         dir->dd_fd was 8, rather than the expected value of 6:
46253         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
46254         93                close (fd);
46255         (gdb) n
46256         94                dir = fd_clone_opendir (dupfd);
46257         (gdb) n
46258         95                saved_errno = errno;
46259         (gdb) p dir->dd_fd
46260         $11 = 8
46262         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
46263         The problem is that on OpenBSD, fd_clone_opendir has to resort
46264         to using the old-style save/restore CWD mechanism, due to its
46265         lack of openat/proc support, and *that* would steal the FD (6)
46266         that opendir was supposed to use.
46268         The fix is to squirrel away the desired FD so that save_cwd uses a
46269         different one, and then free the dest FD right before calling opendir.
46270         That guarantees opendir will use the required file descriptor.
46272         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
46274 2010-10-08  Bruno Haible  <bruno@clisp.org>
46276         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
46277         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
46279 2010-10-08  Bruno Haible  <bruno@clisp.org>
46281         nanosleep: Make replacement POSIX compliant.
46282         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
46283         is out of range.
46284         Reported by Jim Meyering.
46286 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46288         bootstrap: add hook for altering gnulib.mk, for Bison
46289         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
46290         the Bison bootstrapping process can rewrite file names and variables
46291         in this file before later parts of 'bootstrap' use the file.
46292         Bison wants to include lib/gnulib.mk from the top-level makefile,
46293         so it needs the file names in this file to be relative to the top
46294         level, not relative to lib; plus it needs variable names to be
46295         rewritten.
46296         (slurp): Use the new function.
46298         bootstrap: reformat for readability
46299         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
46301 2010-10-08  Eric Blake  <eblake@redhat.com>
46303         docs: update cygwin progress
46304         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
46305         1.7.7.
46306         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
46307         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
46308         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
46309         * doc/posix-functions/carg.texi (carg): Likewise.
46310         * doc/posix-functions/cargf.texi (cargf): Likewise.
46311         * doc/posix-functions/casin.texi (casin): Likewise.
46312         * doc/posix-functions/casinf.texi (casinf): Likewise.
46313         * doc/posix-functions/casinh.texi (casinh): Likewise.
46314         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
46315         * doc/posix-functions/catan.texi (catan): Likewise.
46316         * doc/posix-functions/catanf.texi (catanf): Likewise.
46317         * doc/posix-functions/catanh.texi (catanh): Likewise.
46318         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
46319         * doc/posix-functions/ccos.texi (ccos): Likewise.
46320         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
46321         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
46322         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
46323         * doc/posix-functions/cexp.texi (cexp): Likewise.
46324         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
46325         * doc/posix-functions/cimag.texi (cimag): Likewise.
46326         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
46327         * doc/posix-functions/clog.texi (clog): Likewise.
46328         * doc/posix-functions/clogf.texi (clogf): Likewise.
46329         * doc/posix-functions/conj.texi (conj): Likewise.
46330         * doc/posix-functions/conjf.texi (conjf): Likewise.
46331         * doc/posix-functions/cpow.texi (cpow): Likewise.
46332         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
46333         * doc/posix-functions/cproj.texi (cproj): Likewise.
46334         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
46335         * doc/posix-functions/creal.texi (creal): Likewise.
46336         * doc/posix-functions/crealf.texi (crealf): Likewise.
46337         * doc/posix-functions/csin.texi (csin): Likewise.
46338         * doc/posix-functions/csinf.texi (csinf): Likewise.
46339         * doc/posix-functions/csinh.texi (csinh): Likewise.
46340         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
46341         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
46342         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
46343         * doc/posix-functions/ctan.texi (ctan): Likewise.
46344         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
46345         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
46346         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
46347         * doc/posix-headers/complex.texi (complex.h): Likewise.
46349 2010-10-07  Jim Meyering  <meyering@redhat.com>
46351         parse-datetime: avoid compilation failure on OpenBSD 4.7
46352         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
46353         This works around a compilation failure on OpenBSD 4.7:
46354         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
46356 2010-10-07  Eric Blake  <eblake@redhat.com>
46358         docs: update cygwin progress
46359         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
46360         1.7.6.
46361         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
46362         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
46363         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
46364         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
46365         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
46366         Likewise.
46367         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
46368         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
46369         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
46370         Likewise.
46371         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
46372         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
46373         Likewise.
46374         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
46375         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
46376         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
46377         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
46378         Likewise.
46379         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
46380         Likewise.
46381         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
46383         docs: update parse-datetime history
46384         * doc/parse-datetime.texi (Authors of parse_datetime): Better
46385         documentation of this function's history and alternatives.
46387         cygwin: use more robust version check
46388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
46389         exclude an eventual cygwin 1.9.1.
46390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46392         (gl_FUNC_STRCASESTR): Likewise.
46393         Reported by Bruno Haible.
46395 2010-10-06  Bruno Haible  <bruno@clisp.org>
46397         string, sys_select: Avoid #including large headers unless necessary.
46398         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
46399         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
46400         OSF/1, BeOS, Haiku.
46401         Reported by Jim Meyering.
46403 2010-10-05  Eric Blake  <eblake@redhat.com>
46405         memmem, strstr, strcasestr: fix bug with long periodic needle
46406         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
46407         periodic needle having false positive.
46408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
46409         and cygwin 1.7.7.
46410         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
46411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46412         (gl_FUNC_STRCASESTR): Likewise.
46413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46414         * tests/test-memmem.c (main): Expose the bug.
46415         * tests/test-strcasestr.c (main): Likewise.
46416         * tests/test-strstr.c (main): Likewise.
46417         * tests/test-c-strcasestr.c (main): Likewise.
46418         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
46419         * doc/posix-functions/strstr.texi (strstr): Likewise.
46420         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46421         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
46423 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46425         parse-datetime: do some more renaming
46426         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
46427         parse_datetime, not get_date.  Mention the renaming.
46428         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
46429         in comments.
46430         * m4/bison.m4: Likewise.
46432 2010-10-05  Eric Blake  <eblake@redhat.com>
46434         parse-datetime: better name than get_date
46435         * NEWS: Reword the deprecation notice.
46436         * modules/get_date: Rename to modules/parse-datetime.
46437         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
46438         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
46439         * lib/get_date.y: Rename to lib/parse-datetime.y.
46440         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
46441         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
46442         * doc/getdate.texi: Provide fallback wrapper.
46443         * lib/getdate.h: Move guts, and wrap...
46444         * lib/parse-datetime.h: ...new file.
46445         * lib/parse-datetime.y (get_date): Rename...
46446         (parse_datetime): ...to this.
46447         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
46448         (gl_PARSE_DATETIME): ...to this.
46449         * doc/posix-functions/getdate.texi (get_date): Provide fallback
46450         documentation.
46451         * modules/getdate (Files): Provide fallback docs and header.
46452         (Notice, Depends-on): Update references.
46453         * tests/test-parse-datetime.c: Likewise.
46454         * DEPENDENCIES: Likewise.
46455         * MODULES.html.sh (Date and time <time.h>): Likewise.
46456         * doc/parse-datetime.texi (Date input formats)
46457         (Authors of parse_datetime): Likewise.
46458         * modules/parse-datetime (Files, configure.ac, Makefile.am)
46459         (Include): Likewise.
46460         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
46461         * gnulib-tool: Likewise.
46462         * m4/bison.m4 (gl_BISON): Likewise.
46463         Suggested by Bruno Haible.
46465 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46467         more ports to Solaris tr, which needs [] around ranges
46468         * gnulib-tool: Solaris tr needs [] around ranges.
46469         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46470         * tests/test-pipe-filter-gi1.c (main): Likewise.
46471         * tests/test-pipe-filter-ii1.c (main): Likewise.
46473 2010-10-05  Eric Blake  <eblake@redhat.com>
46475         bootstrap: fix Solaris regression
46476         * build-aux/bootstrap (check_versions): Solaris tr still needs []
46477         around ranges.
46478         Reported by Pádraig Brady.
46480         bootstrap: work with pkg-config
46481         * build-aux/bootstrap (check_versions): Also transliterate - in
46482         prerequisite name.
46483         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
46484         prerequisites that were already found, to avoid confusion.
46485         Reported by Justin Clift.
46487         faccessat: remove unused wrappers
46488         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
46489         presence of these wrappers dragged in -lgen on Solaris.
46490         Reported by Clemens Brogi; fix suggested by Paul Eggert.
46492 2010-10-05  Jim Meyering  <meyering@redhat.com>
46494         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
46495         * Makefile (sc_pragma_columns): New syntax-check rule.
46497 2010-10-04  Bruno Haible  <bruno@clisp.org>
46499         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
46500         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
46501         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
46502         Reported by Bruce Korb and Eric Blake.
46504 2010-10-04  Bruno Haible  <bruno@clisp.org>
46506         threadlib: Make option --with-libpth-prefix work.
46507         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
46508         use $LIBPTH, not just -lpth.
46510 2010-10-04  Bruno Haible  <bruno@clisp.org>
46512         Avoid line length limitation from HP NonStop system header files.
46513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
46514         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
46515         * lib/ctype.in.h: Likewise.
46516         * lib/dirent.in.h: Likewise.
46517         * lib/errno.in.h: Likewise.
46518         * lib/fcntl.in.h: Likewise.
46519         * lib/float.in.h: Likewise.
46520         * lib/getopt.in.h: Likewise.
46521         * lib/iconv.in.h: Likewise.
46522         * lib/inttypes.in.h: Likewise.
46523         * lib/langinfo.in.h: Likewise.
46524         * lib/locale.in.h: Likewise.
46525         * lib/math.in.h: Likewise.
46526         * lib/netdb.in.h: Likewise.
46527         * lib/netinet_in.in.h: Likewise.
46528         * lib/poll.in.h: Likewise.
46529         * lib/pthread.in.h: Likewise.
46530         * lib/pty.in.h: Likewise.
46531         * lib/sched.in.h: Likewise.
46532         * lib/se-selinux.in.h: Likewise.
46533         * lib/search.in.h: Likewise.
46534         * lib/signal.in.h: Likewise.
46535         * lib/spawn.in.h: Likewise.
46536         * lib/stdarg.in.h: Likewise.
46537         * lib/stddef.in.h: Likewise.
46538         * lib/stdint.in.h: Likewise.
46539         * lib/stdio.in.h: Likewise.
46540         * lib/stdlib.in.h: Likewise.
46541         * lib/string.in.h: Likewise.
46542         * lib/strings.in.h: Likewise.
46543         * lib/sys_file.in.h: Likewise.
46544         * lib/sys_ioctl.in.h: Likewise.
46545         * lib/sys_select.in.h: Likewise.
46546         * lib/sys_socket.in.h: Likewise.
46547         * lib/sys_stat.in.h: Likewise.
46548         * lib/sys_time.in.h: Likewise.
46549         * lib/sys_times.in.h: Likewise.
46550         * lib/sys_utsname.in.h: Likewise.
46551         * lib/sys_wait.in.h: Likewise.
46552         * lib/sysexits.in.h: Likewise.
46553         * lib/termios.in.h: Likewise.
46554         * lib/time.in.h: Likewise.
46555         * lib/unistd.in.h: Likewise.
46556         * lib/wchar.in.h: Likewise.
46557         * lib/wctype.in.h: Likewise.
46558         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
46559         * modules/ctype (Makefile.am): Likewise.
46560         * modules/dirent (Makefile.am): Likewise.
46561         * modules/errno (Makefile.am): Likewise.
46562         * modules/fcntl-h (Makefile.am): Likewise.
46563         * modules/float (Makefile.am): Likewise.
46564         * modules/getopt-posix (Makefile.am): Likewise.
46565         * modules/iconv-h (Makefile.am): Likewise.
46566         * modules/inttypes (Makefile.am): Likewise.
46567         * modules/langinfo (Makefile.am): Likewise.
46568         * modules/locale (Makefile.am): Likewise.
46569         * modules/math (Makefile.am): Likewise.
46570         * modules/netdb (Makefile.am): Likewise.
46571         * modules/netinet_in (Makefile.am): Likewise.
46572         * modules/poll-h (Makefile.am): Likewise.
46573         * modules/pthread (Makefile.am): Likewise.
46574         * modules/pty (Makefile.am): Likewise.
46575         * modules/sched (Makefile.am): Likewise.
46576         * modules/search (Makefile.am): Likewise.
46577         * modules/selinux-h (Makefile.am): Likewise.
46578         * modules/signal (Makefile.am): Likewise.
46579         * modules/spawn (Makefile.am): Likewise.
46580         * modules/stdarg (Makefile.am): Likewise.
46581         * modules/stddef (Makefile.am): Likewise.
46582         * modules/stdint (Makefile.am): Likewise.
46583         * modules/stdio (Makefile.am): Likewise.
46584         * modules/stdlib (Makefile.am): Likewise.
46585         * modules/string (Makefile.am): Likewise.
46586         * modules/strings (Makefile.am): Likewise.
46587         * modules/sys_file (Makefile.am): Likewise.
46588         * modules/sys_ioctl (Makefile.am): Likewise.
46589         * modules/sys_select (Makefile.am): Likewise.
46590         * modules/sys_socket (Makefile.am): Likewise.
46591         * modules/sys_stat (Makefile.am): Likewise.
46592         * modules/sys_time (Makefile.am): Likewise.
46593         * modules/sys_times (Makefile.am): Likewise.
46594         * modules/sys_utsname (Makefile.am): Likewise.
46595         * modules/sys_wait (Makefile.am): Likewise.
46596         * modules/sysexits (Makefile.am): Likewise.
46597         * modules/termios (Makefile.am): Likewise.
46598         * modules/time (Makefile.am): Likewise.
46599         * modules/unistd (Makefile.am): Likewise.
46600         * modules/wchar (Makefile.am): Likewise.
46601         * modules/wctype (Makefile.am): Likewise.
46603 2010-10-04  Bruno Haible  <bruno@clisp.org>
46605         read-file tests: Avoid a test failure on NonStop Kernel.
46606         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
46607         a regular file.
46608         Reported by Joachim Schmitz <schmitz@hp.com>.
46610 2010-10-03  Bruno Haible  <bruno@clisp.org>
46612         gnulib-tool: Fixes for --create-testdir with --libtool.
46613         * gnulib-tool (func_get_automake_snippet): Don't augment
46614         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
46615         an executable.
46616         (func_create_testdir): Handle module 'alloca' like func_import.
46617         Reported by Bruce Korb <bruce.korb@gmail.com>.
46619 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46621         Avoid some lines longer than 80 characters.
46622         * lib/stdint.in.h: Break long comment lines.
46623         * lib/math.in.h: Likewise.
46624         (_GL_NUM_UINT_WORDS): New macro, for readability.
46625         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
46626         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
46627         * lib/stdlib.in.h: Likewise.
46628         * lib/spawn.in.h: Likewise.
46629         * lib/sys_socket.in.h: Update an URL.
46630         * lib/sys_stat.in.h: Break long line.
46632 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
46634         Improve pmccabe2html.
46635         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
46636         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
46637         when the sources change. Remove the line in the HTML about "Used
46638         ranges" (which implied that there might be other unused ranges),
46639         rename "Resume" to "Summary" (easier to understand for more users).
46640         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
46641         styles, and some unnecessary blank lines.
46643 2010-10-03  Bruno Haible  <bruno@clisp.org>
46644             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46646         acl: Add support for ACLs on NonStop Kernel.
46647         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
46648         Check whether the function aclsort() exists.
46649         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
46650         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
46651         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46652         (acl_nontrivial [HAVE_ACLSORT]: New function.
46653         (file_has_acl): Implement for NonStop Kernel.
46654         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46655         (qset_acl): Implement for NonStop Kernel.
46656         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
46657         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46658         (main): Implement for NonStop Kernel.
46659         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
46660         Kernel. Handle this flavor.
46661         * tests/test-set-mode-acl.sh: Likewise.
46662         * tests/test-copy-acl.sh: Likewise.
46663         * tests/test-copy-file.sh: Likewise.
46665 2010-10-03  Bruno Haible  <bruno@clisp.org>
46667         Info about ACLs on NonStop Kernel.
46668         * doc/acl-resources.txt: Add info about NonStop Kernel.
46669         References by Joachim Schmitz <schmitz@hp.com>.
46671 2010-10-02  Bruno Haible  <bruno@clisp.org>
46673         Define missing EDQUOT on NonStop Kernel.
46674         * lib/errno.in.h (EDQUOT): Assign a value if missing.
46675         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
46676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
46677         missing.
46678         * doc/posix-headers/errno.texi: Mention the NSK bug.
46679         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
46680         Reported by Joachim Schmitz <schmitz@hp.com>.
46682 2010-10-02  Bruno Haible  <bruno@clisp.org>
46684         Update doc for POSIX:2008.
46685         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
46686         Update URL of POSIX specification.
46688 2010-10-02  Bruno Haible  <bruno@clisp.org>
46690         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
46691         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
46692         from gnulib, not from Automake.
46694 2010-10-02  Bruno Haible  <bruno@clisp.org>
46696         New module 'system-posix'.
46697         * modules/system-posix: New file.
46698         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
46699         module is present.
46700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46701         GNULIB_SYSTEM_POSIX.
46702         * modules/stdlib (Depends-on): Remove sys_wait.
46703         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
46704         * doc/posix-functions/system.texi: Mention the new module.
46705         * doc/posix-headers/stdlib.texi: Likewise.
46706         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
46707         define test_sys_wait_macros to a no-op.
46708         Reported by Sam Steingold <sds@gnu.org>.
46710 2010-09-30  Bruno Haible  <bruno@clisp.org>
46712         More renaming from 'getdate' to 'get_date'.
46713         * doc/get_date.texi: Renamed from doc/getdate.texi.
46714         * modules/get_date (Files): Update.
46715         * MODULES.html.sh (Date and time <time.h>): Update.
46716         * DEPENDENCIES: Update.
46717         * gnulib-tool: Update comment.
46718         * m4/bison.m4 (gl_BISON): Likewise.
46719         * m4/get_date.m4 (gl_GET_DATE): Likewise.
46721 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
46723         bootstrap: support ACLOCAL_FLAGS during aclocal
46724         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
46725         can add additional -I dir for third-party .m4 files.
46727 2010-09-30  Eric Blake  <eblake@redhat.com>
46729         bootstrap: use glibtoolize on MacOS
46730         * build-aux/bootstrap (check_versions): Convert libtool into
46731         libtoolize.
46732         (tool search): Move libtool check earlier, and look for
46733         glibtoolize for MacOS.
46734         (gnulib_tool_options): Auto-add --libtool when appropriate.
46735         Reported by Justin Clift.
46737         poll: fix typo that broke test on MacOS
46738         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
46739         Reported by Justin Clift.
46741         getdate: rename to get_date
46742         Note: getdate.h is not renamed, to minimize client impact.
46743         * modules/getdate: Mark obsolete.  Move old contents...
46744         * modules/get_date: ...to new module name.
46745         * modules/getdate-tests: Move...
46746         * modules/get_date-tests: ...here.
46747         * m4/getdate.m4: Move...
46748         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
46749         * lib/getdate.y: Move...
46750         * lib/get_date.y: ...here.
46751         * tests/test-getdate.c: Move...
46752         * tests/test-get_date.c: ...here.
46753         * doc/posix-functions/getdate.texi (getdate): Update name.
46754         * NEWS: Mention the change.
46756 2010-09-29  Bruno Haible  <bruno@clisp.org>
46758         Separate the module 'waitpid' from the module 'sys_wait'.
46759         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
46760         present.
46761         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
46762         gl_MODULE_INDICATOR_FOR_TESTS.
46763         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
46764         * modules/sys_wait (Depends-on): Remove waitpid.
46765         (Makefile.am): Substitute GNULIB_WAITPID.
46766         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
46767         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
46768         signature only if the 'waitpid' module is present.
46769         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
46770         * NEWS: Mention the change.
46771         * modules/grantpt (Depends-on): Add waitpid.
46772         * modules/wait-process (Depends-on): Likewise.
46774 2010-09-29  Bruno Haible  <bruno@clisp.org>
46776         More tests for module 'sys_wait'.
46777         * modules/sys_wait-c++-tests: New file.
46778         * tests/test-sys_wait-c++.cc: New file.
46779         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
46780         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46782 2010-09-29  Bruno Haible  <bruno@clisp.org>
46784         New module 'waitpid'.
46785         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
46786         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
46787         Don't include <process.h>.
46788         (waitpid): Declare only, using modern idiom.
46789         * m4/waitpid.m4: New file.
46790         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
46791         * modules/waitpid: New file.
46792         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
46793         (Makefile.am): Update.
46794         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46796 2010-09-28  Bruno Haible  <bruno@clisp.org>
46798         poll: Assume ANSI C.
46799         * lib/poll.c (poll): Use an ANSI C declaration.
46801 2010-09-28  Bruno Haible  <bruno@clisp.org>
46803         poll-h: Create poll.h on all platforms.
46804         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
46805         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
46806         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
46807         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
46808         (gl_REPLACE_POLL_H): Don't set POLL_H.
46809         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
46810         * modules/poll-h (Depends-on): Add include_next.
46811         (Makefile.am): Create poll.h unconditionally. Substitute also
46812         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
46814 2010-09-28  Bruno Haible  <bruno@clisp.org>
46816         Tests for module 'poll-h'.
46817         * modules/poll-h-c++-tests: New file.
46818         * tests/test-poll-h-c++.cc: New file.
46820         Tests for module 'poll-h'.
46821         * modules/poll-h-tests: New file.
46822         * tests/test-poll-h.c: New file.
46824 2010-09-28  Bruno Haible  <bruno@clisp.org>
46826         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
46827         * modules/poll-h (Depends-on): Add 'extensions'.
46829 2010-09-28  Bruno Haible  <bruno@clisp.org>
46831         New module 'poll-h'.
46832         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
46833         (poll): Use modern idiom.
46834         * modules/poll-h: New file.
46835         * modules/poll (Files): Remove lib/poll.in.h.
46836         (Depends-on): Add poll-h.
46837         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
46838         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
46839         * m4/poll_h.m4: New file.
46840         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
46841         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
46842         and invoke gl_REPLACE_POLL_H.
46843         * lib/poll.c: Use common idiom.
46844         * tests/test-poll.c: Likewise.
46845         * doc/posix-headers/poll.texi: Mention the poll-h module.
46846         Suggested by Eric Blake.
46848 2010-09-26  Bruno Haible  <bruno@clisp.org>
46850         sys_wait: Implement WSTOPSIG.
46851         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46852         Reported by Simon Josefsson.
46854 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46856         stdlib, sys_wait: Avoid compilation error on mingw.
46857         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46859 2010-09-26  Bruno Haible  <bruno@clisp.org>
46861         stdlib tests: Avoid code duplication.
46862         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46863         * modules/sys_wait-tests (Files): Likewise.
46864         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46865         * tests/test-stdlib.c: Include test-sys_wait.h.
46866         (main): Invoke test_sys_wait_macros.
46867         * tests/test-sys_wait.c: Include test-sys_wait.h.
46868         (main): Invoke test_sys_wait_macros.
46870 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46872         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46873         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46874         sure Windows sockets are working before calling getaddrinfo.
46875         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46876         * doc/gnulib.texi (Windows sockets): Fix typo.
46878 2010-09-25  Bruno Haible  <bruno@clisp.org>
46880         Tests for module 'regex-quote'.
46881         * modules/regex-quote-tests: New file.
46882         * tests/test-regex-quote.c: New file.
46884         New module 'regex-quote'.
46885         * lib/regex-quote.h: New file.
46886         * lib/regex-quote.c: New file.
46887         * modules/regex-quote: New file.
46888         Suggested by Reuben Thomas <rrt@sc3d.org>.
46890 2010-09-24  Bruno Haible  <bruno@clisp.org>
46892         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46893         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46895 2010-09-23  Bruno Haible  <bruno@clisp.org>
46897         setenv: Relax license.
46898         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46899         Blake.
46900         Requested by Eric Blake.
46902 2010-09-22  Bruno Haible  <bruno@clisp.org>
46904         termios: Relax license.
46905         * modules/termios (License): Change to LGPLv2+.
46906         Requested by Eric Blake.
46908 2010-09-22  Bruno Haible  <bruno@clisp.org>
46910         threadlib: Allow the package to change the default to 'no'.
46911         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46912         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46913         Reported by Paul Eggert.
46915 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46916             Bruno Haible  <bruno@clisp.org>
46918         Fix endless loop in mbmemcasecoll.
46919         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46920         byte.
46921         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46923 2010-09-22  Bruno Haible  <bruno@clisp.org>
46925         Tests for module 'memcoll'.
46926         * modules/memcoll-tests: New file.
46927         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46929         memcoll, xmemcoll: Clarify size vs. length.
46930         * modules/memcoll.c (memcoll0): Clarify specification.
46931         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46932         passed to collate_error.
46934 2010-09-22  Bruno Haible  <bruno@clisp.org>
46936         Tests for module 'memcasecmp'.
46937         * modules/memcasecmp-tests: New file.
46938         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46940 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46942         * lib/pthread.in.h: Add split double-inclusion guard, and include
46943         system <pthread.h> if there is one.  Use @@-style as in other
46944         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46945         pthread.h doesn't.
46946         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46947         (pthread_mutexattr_settype, pthread_mutex_trylock):
46948         New static inline functions, if there's no system <pthread.h>.
46949         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46950         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46951         Approximate with mutexes if the system lacks spinlocks, as in
46952         MacOS.
46953         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46954         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46955         @@-style.  Check for spinlocks separately.
46956         (gl_PTHREAD_DEFAULTS): New macro.
46957         * modules/pthread: Redo to use a more typical style for in.h files.
46959 2010-09-21  Eric Blake  <eblake@redhat.com>
46961         net_if: enhance tests
46962         * tests/test-net_if.c (main): Move signature checks earlier.
46963         Print failures to stderr.
46964         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46965         Document the bug that we do not yet fix.
46967 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46969         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46970         about gnulib, not GSS.
46972 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46974         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46975         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46976         for Emacs.
46977         * build-aux/pmccabe2html: Make Makefile.am example code more
46978         cut-and-paste friendly.
46980 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46982         * tests/test-net_if.c: New file.
46983         * modules/net_if-tests: New file.
46985 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46987         pthread: add pthread_spin_destroy
46988         * lib/pthread.in.h (pthread_spin_destroy): New function.
46990 2010-09-19  Bruno Haible  <bruno@clisp.org>
46992         gnulib-tool: Fix --help output.
46993         * gnulib-tool (func_usage): Fix help message.
46994         Reported by Reuben Thomas <rrt@sc3d.org>.
46996 2010-09-18  Jim Meyering  <meyering@redhat.com>
46998         maint.mk: avoid unexpanded \n in two diagnostics
46999         * top/maint.mk (sc_prohibit_always_true_header_tests):
47000         Don't use a literal \n in a halt=... assignment.  It would not be
47001         expanded, and the two \n bytes would appear in the diagnostic output
47002         rather than the desired newline.  Use halt=$$(printf ... instead.
47003         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
47005 2010-09-18  Bruno Haible  <bruno@clisp.org>
47007         netinet_in: Doc tweak.
47008         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
47009         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47011 2010-09-18  Jim Meyering  <meyering@redhat.com>
47013         init.sh: correct an outdated comment
47014         * tests/init.sh (create_exe_shims_):  s/function/alias/
47016         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
47017         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
47018         a file named "*.exe" is removed between the glob expansion and the
47019         processing of that oddly named file.
47021 2010-09-17  Eric Blake  <eblake@redhat.com>
47023         mirbsd: add some more support
47024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
47025         in BSD family.
47026         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
47027         devices as OpenBSD.
47028         * m4/host-os.m4 (mirbsd): Add MirBSD.
47030         tests: fix unportable assumption on sys/wait.h
47031         * tests/test-sys_wait.c (main): Relax test.
47032         * tests/test-stdlib.c (main): Likewise.
47034         init.sh: accommodate directory with no .exes
47035         * tests/init.sh: Accomodate directory containing only scripts.
47037         tests: avoid compiler warning
47038         * tests/test-stdlib.c (main): Use the variable.
47040         fdutimens, fdutimensat: update signature, again
47041         * lib/utimens.h (gl_futimens): Delete, and move signature...
47042         (fdutimens): ...here.
47043         (fdutimensat): Rearrange signature.
47044         (lutimensat): Rename variable for clarity.
47045         * lib/fdutimensat.c (fdutimensat): Update signature.
47046         * lib/utimens.c (fdutimens): Likewise.
47047         (gl_futimens): Delete.
47048         (utimens, lutimens): Update callers.
47049         * lib/futimens.c (futimens): Likewise.
47050         * tests/test-fdutimensat.c: Likewise.
47051         * tests/test-utimens.c: Likewise.
47052         * tests/test-futimens.h: Update comment.
47053         * NEWS: Mention this.
47054         Suggested by Paul Eggert.
47056 2010-09-17  Bruno Haible  <bruno@clisp.org>
47058         Take over the maintenance of some older macros from Autoconf.
47059         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
47060         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
47061         GNU Autoconf.
47062         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
47063         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
47065 2010-09-17  Eric Blake  <eblake@redhat.com>
47067         fdutimensat: drop atflag validation
47068         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
47069         with valid fd, to close a race scenario where futimens is
47070         unsupported and FILE was replaced by a symlink.
47071         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
47072         accordingly.
47073         Suggested by Paul Eggert.
47075 2010-09-16  Bruno Haible  <bruno@clisp.org>
47077         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
47078         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
47080 2010-09-16  Bruno Haible  <bruno@clisp.org>
47082         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
47083         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
47084         login_tty exists.
47085         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47087 2010-09-16  Bruno Haible  <bruno@clisp.org>
47089         login_tty: Make the replacement code work on BSD systems.
47090         * lib/login_tty.c: Include <sys/ioctl.h>.
47091         (login_tty): Use ioctl TIOCSCTTY when available.
47092         * modules/login_tty (Depends-on): Add sys_ioctl.
47093         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47095 2010-09-16  Bruno Haible  <bruno@clisp.org>
47097         login_tty: Stricter unit test.
47098         * modules/login_tty-tests (Depends-on): Add tcgetsid.
47099         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
47100         and tcgetsid() after login_tty.
47101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47103 2010-09-16  Bruno Haible  <bruno@clisp.org>
47105         New module 'tcgetsid'.
47106         * lib/tcgetsid.c: New file.
47107         * m4/tcgetsid.m4: New file.
47108         * modules/tcgetsid: New file.
47109         * modules/termios (Depends-on): Add c++defs, warn-on-use.
47110         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
47111         GNULIB_TCGETSID, HAVE_TCGETSID.
47112         * lib/termios.in.h: Include <sys/types.h>.
47113         (tcgetsid): New declaration.
47114         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
47115         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
47116         * doc/posix-functions/tcgetsid.texi: Mention the new module.
47117         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
47119 2010-09-16  Bruno Haible  <bruno@clisp.org>
47121         Tests for module 'termios'.
47122         * modules/termios-c++-tests: New file.
47123         * modules/termios-tests: New file.
47124         * tests/test-termios-c++.cc: New file.
47125         * tests/test-termios.c: New file.
47127         New module 'termios'.
47128         * modules/termios: New file.
47129         * lib/termios.in.h: New file.
47130         * m4/termios_h.m4: New file.
47131         * doc/posix-headers/termios.texi: Mention the new module.
47133 2010-09-16  Eric Blake  <eblake@redhat.com>
47135         fdutimensat: add an atflag parameter
47136         * lib/fdutimensat.c (fdutimensat): Add new parameter.
47137         * lib/utimens.h (fdutimensat): Update prototype.
47138         * tests/test-fdutimensat.c: Adjust test to match.
47139         * NEWS: Document the change.
47140         Suggested by Paul Eggert.
47142 2010-09-16  Bruno Haible  <bruno@clisp.org>
47144         Fix typos in comments.
47145         * lib/striconveh.h: Fix typo in comment.
47146         * lib/login_tty.c (login_tty): Likewise.
47148 2010-09-15  Bruno Haible  <bruno@clisp.org>
47150         stdlib: clarify MirBSD WEXITSTATUS bug
47151         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
47152         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47154 2010-09-15  Eric Blake  <eblake@redhat.com>
47156         stdlib: work around MirBSD WEXITSTATUS bug
47157         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
47158         * modules/stdlib (Depends-on): Add sys_wait.
47159         * tests/test-sys_wait.c (main): Enhance test.
47160         * tests/test-stdlib.c (main): Likewise.
47161         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
47163         docs: mention MacOS issue with WEXITSTATUS(constant)
47164         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
47165         issue.
47166         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47168         strnlen: add tests
47169         * modules/strnlen-tests: New file.
47170         * tests/test-strnlen.c: Likewise.
47172 2010-09-14  Bruno Haible  <bruno@clisp.org>
47174         unistr/base: Avoid link errors when module 'libunistring' is also used.
47175         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
47176         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
47177         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
47178         Declare also when HAVE_LIBUNISTRING is set.
47179         Reported by Pádraig Brady <P@draigbrady.com>.
47181 2010-09-14  Eric Blake  <eblake@redhat.com>
47183         test-rawmemchr: make more robust
47184         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
47185         (Depends-on, configure.ac): Add needed prerequisites to use it.
47186         * modules/memchr-tests (Files, Depends-on, configure.ac):
47187         Likewise, to avoid implicit reliance on memchr module prereqs.
47188         * tests/test-memchr.c (main): Ensure proper masking.
47189         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
47190         reads.
47192         memchr: detect glibc Alpha bug
47193         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
47194         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
47195         Alpha.
47196         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
47197         * tests/test-memchr.c (main): Enhance test.
47198         Reported by Nelson H. F. Beebe.
47200 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47202         fts, getcwd, glob: audit for dirfd returning -1
47203         * lib/fts.c (opendir): Remove #define; no longer used.
47204         (opendirat): New arg PDIR_FD.  All callers changed.
47205         (fts_build, _opendir2): Use new opendirat to avoid the need for
47206         dirfd, or for checking whether dirfd returns a negative value.
47207         Don't use opendir; always use openat followed by fdopendir.
47208         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
47209         it.
47210         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
47211         returns -1 here.
47212         * modules/fts (Depends-on): Remove dirfd.
47213         * modules/getcwd (Depends-on): Likewise.
47215 2010-09-13  Eric Blake  <eblake@redhat.com>
47217         float: fix broken MirBSD header
47218         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
47219         * doc/posix-headers/float.texi (float.h): Document it.
47221 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47223         fts: use O_NOFOLLOW to avoid race condition when opening a directory
47224         * lib/fts.c (opendirat): New arg extra_flags.
47225         (__opendir2): Use it to avoid following symlinks when opening
47226         a directory, if symlinks are not supposed to be followed.  See
47227         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
47229         fdopendir: preserve argument fd before returning
47230         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
47231         (fdopendir_with_dup, fd_clone_opendir): New static functions.
47232         (fdopendir): Use them, arranging for FD to be open to the same
47233         directory that it was when it started.  (It might be temporarily
47234         closed while fdopendir is running, so this not thread- or
47235         signal-safe.)  Be careful to do the right thing even when file
47236         descriptors are scarce and dup fails with errno == EMFILE.  See
47237         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
47239 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
47241         regex: Pass the system regex if its only problem is 32-bit regoff_t.
47242         * NEWS: Document change.
47243         * m4/regex.m4: Disable test for regoff_t size.
47245 2010-09-13  Jim Meyering  <meyering@redhat.com>
47247         fts: don't operate on an invalid file descriptor after failed dup
47248         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
47249         negative file descriptor.
47251 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47253         savedir: add streamsavedir, deprecate fdsavedir
47254         * NEWS: Mention deprecation of fdsavedir.
47255         * lib/savedir.c (streamsavedir): New extern function, whose name
47256         ends in "savedir" to be consistent with the others.  This differs
47257         from savedirstream in that it doesn't close its argument.  The
47258         next version of GNU tar will use this instead of fdsavedir, to
47259         avoid some race conditions and conserve file descriptors.
47260         (savedirstream): Reimplement as a wrapper around streamsavedir.
47261         (fdsavedir): Add a comment deprecating this function.  As far as
47262         I know, only GNU tar used it, and GNU tar doesn't need it any more.
47263         * lib/savedir.h (streamsavedir): New decl.
47264         (fdsavedir): Add a comment deprecating this.
47266 2010-09-10  Bruno Haible  <bruno@clisp.org>
47268         langinfo: Fix last commit.
47269         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
47270         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
47271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47273 2010-09-10  Bruno Haible  <bruno@clisp.org>
47275         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
47276         * lib/progreloc.c (O_EXEC): Define fallback.
47278 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
47280         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
47281         * NEWS: Document recent changes to fcntl-h.
47282         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
47283         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
47284         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
47285         Similarly for O_SEARCH; this last was already true, but not documented.
47286         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
47287         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
47288         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
47289         Likewise.
47290         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
47291         is zero, not whether it is defined.
47292         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
47293         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
47294         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
47296 2010-09-10  Bruno Haible  <bruno@clisp.org>
47298         langinfo, nl_langinfo: Fix for IRIX 5.3.
47299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
47300         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
47301         HAVE_LANGINFO_YESEXPR.
47302         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
47303         HAVE_LANGINFO_YESEXPR.
47304         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
47305         HAVE_LANGINFO_T_FMT_AMPM is 0.
47306         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
47307         HAVE_LANGINFO_YESEXPR is 0.
47308         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
47309         NOEXPR.
47310         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
47311         * doc/posix-functions/nl_langinfo.texi: Likewise.
47312         Reported by Eric Blake.
47314 2010-09-10  Bruno Haible  <bruno@clisp.org>
47316         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
47317         * doc/glibc-functions/login_tty.texi: Mention the include file problem
47318         on FreeBSD 8.0 and OpenBSD 4.6.
47319         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
47320         * m4/pty_h.m4 (gl_PTY_H): Likewise.
47321         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
47322         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
47323         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
47324         ac_includes_default.
47325         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47327 2010-09-09  Eric Blake  <eblake@redhat.com>
47329         strsignal: work around NetBSD bug
47330         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
47331         * lib/string.in.h (includes): Likewise.
47332         * doc/posix-functions/strsignal.texi (strsignal): Document the
47333         bug.
47334         Reported by Nelson H. F. Beebe.
47336         gnulib-tool: work with NetBSD /bin/sh
47337         * gnulib-tool (func_cache_var, func_cache_lookup_module)
47338         (func_get_description, func_get_comment, func_get_status)
47339         (func_get_notice, func_get_applicability, func_get_filelist)
47340         (func_get_dependencies, func_get_autoconf_early_snippet)
47341         (func_get_autoconf_snippet, func_get_automake_snippet)
47342         (func_get_include_directive, func_get_link_directive)
47343         (func_get_license, func_get_maintainer, func_import): Avoid
47344         shell syntax errors from parsing syntax extensions.
47346 2010-09-09  Bruno Haible  <bruno@clisp.org>
47348         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47349         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
47350         a reliable way to determine whether the 'alias' command works.
47352 2010-09-08  Jim Meyering  <meyering@redhat.com>
47354         init.sh: penalize a set-x-impaired shell; don't disqualify it
47355         * tests/init.sh: Too many shells corrupt application stderr when
47356         you set -x, so we can't afford to disqualify them, since at least
47357         on Irix-6.5, that would disqualify all bourne shells.
47358         Instead, use a two-pass approach.
47359         On the first pass, try to find a shell that meets the stricter
47360         condition that set -x does not corrupt stderr.
47361         If no shell meets the stricter condition, retest each candidate
47362         shell, but without that extra condition.  Finally, when
47363         VERBOSE=yes is requested and set -x might cause trouble, simply
47364         issue a warning and refrain from enabling debug output.
47366 2010-09-08  Eric Blake  <eblake@redhat.com>
47368         unsetenv: fix OpenBSD bug
47369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
47370         * doc/posix-functions/unsetenv.texi (unsetenv): Update
47371         documentation.
47372         Reported by Jim Meyering.
47374         strtod: work around IRIX 6.5 bug
47375         * lib/strtod.c (strtod): Reparse number on shorter string if
47376         exponent parse was invalid.
47377         * tests/test-strtod.c (main): Add check for "0x1p 2".
47378         Reported by Tom G. Christensen.
47380         getopt: optimize previous patch
47381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
47382         empty variable.  Speed up awk script.
47383         Reported by Paolo Bonzini.
47385 2010-09-08  Jim Meyering  <meyering@redhat.com>
47387         test.sh: disqualify shells for which set -x corrupts stderr
47388         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
47389         and OpenBSD 4.7.  They make it so with "set -x", environment settings
47390         appear in stderr output.  For example, this command:
47391             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
47392         prints "P=1" on those two systems:
47394 2010-09-08  Bruno Haible  <bruno@clisp.org>
47396         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47397         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
47398         commands, because some shells ignore redirections when there is an
47399         error in the command lookup.
47400         Reported by Eric Blake.
47402 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
47404         * lib/regex.h: Fix a mention of `regex_compile' (should be
47405         `re_compile_pattern').
47406         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
47407         (re_set_registers): Correct name of parameter in comment.
47409         * doc/regex.texi: Add documentation for missing syntax flags.
47410         Remove commented-out documentation of defunct syntax option
47411         RE_NO_EMPTY_ALTS.
47412         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
47413         Add documentation of re_set_registers.
47414         Document trick to re-use a pattern buffer by setting fastmap manually.
47415         Update documentation of struct re_pattern_buffer per public members.
47416         Uncomment documentation of equivalence class operators and
47417         collating symbol operators, since they are now implemented,
47418         Explain leftmost-longest matching in relation to alternatives.
47419         Tidy documentation of substring matching.
47420         Remove POSIX documentation, which is done better in
47421         glibc, and refer the reader there. Keep BSD API documentation, as
47422         that is not readily available elsewhere.
47424 2010-09-07  Eric Blake  <eblake@redhat.com>
47426         getopt: handle POSIXLY_CORRECT set but not exported
47427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
47428         export state of POSIXLY_CORRECT, due to bash set -o posix.
47429         Reported by Dustin J. Mitchell.
47431 2010-09-05  Bruno Haible  <bruno@clisp.org>
47433         gnulib-tool: Highlight the changed options.
47434         * gnulib-tool (func_usage): Display the --import, --add-import,
47435         --remove-import explanations in bold font.
47437 2010-09-06  Karl Berry  <karl@gnu.org>
47439         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
47441 2010-09-05  Bruno Haible  <bruno@clisp.org>
47443         uniwidth/width: Update comment.
47444         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
47445         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
47447 2010-09-05  Bruno Haible  <bruno@clisp.org>
47449         isinf, isnan: Relax license.
47450         * modules/isinf (License): Change from GPL to LGPL, with consent from
47451         Ben Pfaff.
47452         * modules/isnan (License): Likewise.
47453         Requested by Ludovic Courtès.
47455 2010-09-04  Bruno Haible  <bruno@clisp.org>
47457         gnulib-tool: Help migration from --import to --add-import or --update.
47458         * gnulib-tool: Emit a verbose error message when --import is used
47459         without any module name.
47461 2010-09-04  Bruno Haible  <bruno@clisp.org>
47463         Update doc about gnulib-tool.
47464         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
47465         'gnulib-tool --update' in more detail.
47466         Reported by Eric Blake.
47468 2010-09-04  Bruno Haible  <bruno@clisp.org>
47470         gnulib-tool: Change --import. New options --add/remove-import.
47471         * gnulib-tool: New options --add-import, --remove-import.
47472         (func_usage): Document them.
47473         (have_associative): Define always.
47474         (func_import): In import mode, don't merge the specified settings with
47475         the cached settings. Implement remove-import mode.
47476         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
47477         Explain when to use them versus --import.
47478         (Simple update): Use --add-import instead of --import.
47479         * NEWS: Mention the change.
47481 2010-09-04  Bruno Haible  <bruno@clisp.org>
47483         * doc/gnulib-tool.texi (Initial import): Update paragraph about
47484         separate gnulib.mk.
47486 2010-09-04  Bruno Haible  <bruno@clisp.org>
47488         gnulib-tool: Don't talk about CVS any more.
47489         * gnulib-tool (func_usage, func_import): Write "version control"
47490         instead of CVS.
47492 2010-09-04  Jim Meyering  <meyering@redhat.com>
47494         maint.mk: avoid obscure sc_copyright_check failure in coreutils
47495         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
47496         false positives (whose names may be ill-chosen) when searching
47497         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
47498         would cause a false-positive.
47500         avoid coreutils "make distcheck" failure
47501         Coreutils tests with an absolute build directory name that contains
47502         a space.  Not quoting this directory name caused a failure.
47503         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
47504         * tests/test-vc-list-files-cvs.sh: Likewise.
47506 2010-09-04  Bruno Haible  <bruno@clisp.org>
47508         gnulib-tool: Avoid error when run in a package without Makefile.am.
47509         * gnulib-tool: When collecting the m4dirs in a package that does not
47510         have a Makefile.am, eliminate those directories that contain no
47511         gnulib-cache.m4. Fix expression that counts these directories.
47513 2010-09-04  Bruno Haible  <bruno@clisp.org>
47515         update-copyright test: Improve output when perl is missing or too old.
47516         * tests/test-update-copyright.sh: Move test of Perl version down after
47517         the test whether Perl exists. Provide an explanation relating Perl's
47518         error message to Automake's SKIP: message.
47520 2010-09-04  Bruno Haible  <bruno@clisp.org>
47522         Don't augment PATH in TESTS_ENVIRONMENT.
47523         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
47524         set abs_aux_dir instead of augmenting PATH.
47525         * modules/vc-list-files-tests (Makefile.am): Likewise.
47526         * tests/test-update-copyright.sh: Augment PATH here.
47527         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
47528         path_prepend_.
47529         * tests/test-vc-list-files-git.sh: Likewise.
47531 2010-09-04  Jim Meyering  <meyering@redhat.com>
47533         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
47534         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
47536 2010-09-04  Bruno Haible  <bruno@clisp.org>
47538         strdup: Fix compilation error in C++ mode.
47539         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
47540         the macro.
47542 2010-09-04  Bruno Haible  <bruno@clisp.org>
47544         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
47545         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
47546         macro into a function.
47547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47549 2010-09-04  Bruno Haible  <bruno@clisp.org>
47551         Set PATH_SEPARATOR the same way autoconf does.
47552         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
47553         the value of PATH_SEPARATOR the same way autoconf-generated configure
47554         scripts do.
47555         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
47556         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47558 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47560         Set PATH_SEPARATOR the same way autoconf does.
47561         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
47562         the same way autoconf-generated configure scripts do.
47563         * posix-modules: Likewise.
47565 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47567         hash: fix safe_hasher const typo
47568         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
47569         const; otherwise, there is a type error later.
47571 2010-09-02  Jim Meyering  <meyering@redhat.com>
47573         test-update-copyright.sh: require perl 5.8.0
47574         * tests/test-update-copyright.sh: Require 5.8.0,
47575         which Tom G. Christensen has confirmed is adequate,
47576         while 5.6.1 is not.
47578 2010-09-02  Eric Blake  <eblake@redhat.com>
47580         tests: init.sh improvements for re-exec'ing with zsh
47581         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
47582         -vx through shell re-exec.
47583         Reported by Tom G. Christensen.
47585         wctype: fix typo in previous commit
47586         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
47587         Reported by Ludovic Courtès.
47589 2010-09-02  Jim Meyering  <meyering@redhat.com>
47591         test-update-copyright.sh: skip test if Perl is too old
47592         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
47593         Reported by Tom G. Christensen.
47595 2010-09-02  Bruno Haible  <bruno@clisp.org>
47597         wctype: Avoid compilation error on IRIX 6.5.30.
47598         * lib/wctype.in.h (iswblank): Declare with a replacement if
47599         REPLACE_ISWBLANK is set.
47600         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
47601         declared. Set REPLACE_ISWBLANK.
47602         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
47603         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
47604         * doc/posix-headers/wctype.texi: Likewise.
47605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47607 2010-09-01  Bruno Haible  <bruno@clisp.org>
47609         New module 'socketlib'.
47610         * modules/socketlib: New file.
47611         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
47612         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
47613         * modules/sockets (Depends-on): Add socketlib.
47614         Suggested by Sam Steingold <sds@gnu.org>.
47616 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47618         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
47620         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
47621         when one needs search access to a directory but not read access.
47622         On systems where it is available, it works in some cases where
47623         O_RDONLY does not, namely on directories that are searchable but
47624         not readable, and which need only to be searchable.  If O_SEARCH
47625         is not available, fall back to the traditional method of using
47626         O_RDONLY.
47628         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
47629         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
47630         when opening a directory that needs only to be searchable.
47631         * lib/chdir-safer.c (chdir_no_follow): Likewise.
47632         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
47633         * lib/openat-proc.c (openat_proc_name): Likewise.
47634         * lib/openat.c (openat_needs_fchdir): Likewise.
47635         * lib/save-cwd.c (save_cwd): Likewise.
47636         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
47638 2010-08-28  Bruno Haible  <bruno@clisp.org>
47640         New module 'host-cpu-c-abi'.
47641         * modules/host-cpu-c-abi: New file.
47642         * m4/host-cpu-c-abi.m4: New file, based on part of
47643         clisp/src/m4/general.m4.
47644         Requested by Sam Steingold <sds@gnu.org>.
47646 2010-08-31  Eric Blake  <eblake@redhat.com>
47647         and Jim Meyering  <meyering@redhat.com>
47649         hash: factor, and guard against misbehaving hasher function
47650         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
47651         of table->hasher's return value.  Also protect against a hash value
47652         so large that adding it to table->bucket results in a NULL pointer.
47653         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
47654         Use it in place of open-coded check-and-abort.
47656 2010-08-30  Bruno Haible  <bruno@clisp.org>
47658         hash: silence spurious clang warning
47659         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
47660         Reported by Eric Blake.
47662 2010-08-30  Eric Blake  <eblake@redhat.com>
47664         strstr, memmem, strcasestr: avoid leaked shell message
47665         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
47666         FreeBSD.
47667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47670         tests: silence clang warning
47671         * tests/test-malloca.c (do_allocation): Avoid dead store.
47673 2010-08-29  Bruno Haible  <bruno@clisp.org>
47675         gettext: Fix recent mistake.
47676         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
47678 2010-08-29  Bruno Haible  <bruno@clisp.org>
47680         selinux-h: Offer a --without-selinux option.
47681         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
47682         --without-selinux was specified, skip all tests and define
47683         HAVE_SELINUX_SELINUX_H to 0.
47684         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
47685         set LIB_SELINUX to empty.
47686         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
47687         gl_LIBSELINUX. If --without-selinux was specified, replace
47688         selinux/context.h.
47689         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
47691 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47692             Bruno Haible  <bruno@clisp.org>
47694         Make the module 'realloc-gnu' work again on AIX and OSF/1.
47695         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
47696         of HAVE_REALLOC.
47697         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
47698         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
47699         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
47700         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47702 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47703             Bruno Haible  <bruno@clisp.org>
47705         Make the module 'calloc-gnu' work again on AIX and OSF/1.
47706         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
47707         HAVE_CALLOC.
47708         * lib/xmalloc.c: Update accordingly.
47709         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
47710         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
47711         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
47713 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47714             Bruno Haible  <bruno@clisp.org>
47716         Make the module 'malloc-gnu' work again on AIX and OSF/1.
47717         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
47718         HAVE_MALLOC.
47719         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
47720         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
47721         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47723 2010-08-29  Bruno Haible  <bruno@clisp.org>
47725         Update modules list.
47726         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47727         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
47728         (String handling <string.h>): Add astrxfrm.
47729         (File system functions): Add readlinkat.
47731 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47733         Tests for module 'realloc-gnu'.
47734         * modules/realloc-gnu-tests: New file.
47735         * tests/test-realloc-gnu.c: New file.
47737         Tests for module 'calloc-gnu'.
47738         * modules/calloc-gnu-tests: New file.
47739         * tests/test-calloc-gnu.c: New file.
47741         Tests for module 'malloc-gnu'.
47742         * modules/malloc-gnu-tests: New file.
47743         * tests/test-malloc-gnu.c: New file.
47745 2010-08-28  Bruno Haible  <bruno@clisp.org>
47747         Rename module 'realloc' -> 'realloc-gnu'.
47748         * modules/realloc-gnu: New file, copied from modules/realloc.
47749         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
47750         obsolete.
47751         * modules/mgetgroups (Depends-on): Update.
47752         * doc/posix-functions/realloc.texi: Update.
47753         * NEWS: Mention the change.
47755         Rename module 'calloc' -> 'calloc-gnu'.
47756         * modules/calloc-gnu: New file, copied from modules/calloc.
47757         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
47758         obsolete.
47759         * doc/posix-functions/calloc.texi: Update.
47760         * NEWS: Mention the change.
47762         Rename module 'malloc' -> 'malloc-gnu'.
47763         * modules/malloc-gnu: New file, copied from modules/malloc.
47764         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
47765         obsolete.
47766         * modules/argp (Depends-on): Update.
47767         * modules/regex (Depends-on): Update.
47768         * doc/posix-functions/malloc.texi: Update.
47769         * NEWS: Mention the change.
47771 2010-08-28  Eric Blake  <eblake@redhat.com>
47773         pread, pwrite: add missing dependency
47774         * modules/pread (Depends-on): Add extensions.
47775         * modules/pwrite (Depends-on): Likewise.
47777 2010-08-28  Bruno Haible  <bruno@clisp.org>
47779         unistr/u*-strchr: Fix tests dependencies.
47780         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
47781         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
47782         Reported by Ian Beckwith <ianb@erislabs.net>.
47784 2010-08-28  Bruno Haible  <bruno@clisp.org>
47786         read-file: Don't occupy too much unused memory.
47787         * lib/read-file.c (fread_file): Shrink the buffer at the end.
47789 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
47790             Eric Blake  <eblake@redhat.com>
47791             Bruno Haible  <bruno@clisp.org>
47793         read-file: Avoid memory reallocations with regular files.
47794         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
47795         (fread_file): With regular files, use the remaining length as the
47796         initial buffer size.  Check against overflow.
47797         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
47798         sys_stat.
47800 2010-08-28  Bruno Haible  <bruno@clisp.org>
47802         ftello: Relax license.
47803         * modules/ftello (License): Relax to LGPLv2+.
47804         Reported by Eric Blake.
47806 2010-08-28  Bruno Haible  <bruno@clisp.org>
47808         Avoid relocwrapper link errors due to gnulib replacement functions.
47809         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
47810         function.
47811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47813 2010-08-28  Bruno Haible  <bruno@clisp.org>
47815         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
47816         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
47817         defined.
47818         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
47819         Suggested by Eric Blake.
47821 2010-08-28  Bruno Haible  <bruno@clisp.org>
47823         sys_socket, netdb: Ensure socklen_t gets defined.
47824         * modules/sys_socket (Depends-on): Add socklen.
47825         * modules/netdb (Depends-on): Likewise.
47826         * modules/getaddrinfo (Depends-on): Remove socklen.
47827         * modules/getsockopt (Depends-on): Likewise.
47828         * modules/setsockopt (Depends-on): Likewise.
47829         * tests/test-sys_socket.c: Check that socklen_t is defined.
47830         * tests/test-netdb.c: Likewise.
47831         * m4/socklen.m4: Update comments.
47832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47834 2010-08-27  Eric Blake  <eblake@redhat.com>
47836         login_tty: add missing dependency
47837         * modules/login_tty (Depends-on): Add pty.
47839 2010-08-26  Eric Blake  <eblake@redhat.com>
47841         lib-symbol-versions: fix m4 quoting
47842         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
47843         format for AC_LINK_IFELSE.
47845         glob: fix compile test
47846         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
47848         btowc: fix missing file
47849         * modules/btowc (Files): Also ship locale-fr.m4.
47851         lseek: fix link test
47852         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47853         AC_LINK_IFELSE.
47855         include_next: silence autoconf 2.68 warning
47856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47857         AC_COMPILE_IFELSE as special.
47858         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47859         autoconf < 2.68.
47861         acl: fix compilation test
47862         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47863         AC_COMPILE_IFELSE.
47865 2010-08-26  Bruno Haible  <bruno@clisp.org>
47867         Modernize AC_TRY_RUN invocations.
47868         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47870         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47871         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47873         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47876         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47877         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47879         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47880         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47881         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47883         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47884         gl_MBRLEN_NUL_RETVAL): Likewise.
47885         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47886         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47887         Likewise.
47888         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47889         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47890         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47891         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47892         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47893         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47894         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47895         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47896         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47897         Likewise.
47898         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47899         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47902         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47905         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47906         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47909 2010-08-26  Bruno Haible  <bruno@clisp.org>
47911         Modernize AC_TRY_LINK invocations.
47912         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47913         AC_TRY_LINK.
47914         * m4/argp.m4 (gl_ARGP): Likewise.
47915         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47917         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47918         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47919         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47920         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47921         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47922         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47923         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47925         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47926         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47928         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47929         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47930         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47931         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47932         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47933         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47934         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47935         Likewise.
47936         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47937         Likewise.
47938         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47939         Likewise.
47940         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47941         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47943         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47944         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47945         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47946         * m4/servent.m4 (gl_SERVENT): Likewise.
47947         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47948         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47949         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47950         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47951         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47955         * modules/tsearch-tests (configure.ac): Likewise.
47957 2010-08-26  Bruno Haible  <bruno@clisp.org>
47959         Modernize AC_TRY_COMPILE invocations.
47960         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47961         AC_TRY_COMPILE.
47962         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47963         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47964         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47965         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47966         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47967         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47968         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47969         * m4/lock.m4 (gl_LOCK): Likewise.
47970         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47972         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47974         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47975         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47976         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47978         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47979         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47980         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47981         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47982         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47983         extraneous semicolon.
47985 2010-08-26  Jim Meyering  <meyering@redhat.com>
47987         stat-time: relax license LGPL
47988         * modules/stat-time (License): Change from GPL to LGPL,
47989         with consent from all contributors, for use in libguile.
47990         Requested by Ludovic Courtès.
47992 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47994         poll: return immediately on POLLHUP.
47995         * lib/poll.c (poll): Always set timeout before wait_timeout is
47996         computed.
47998 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48000         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
48001         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
48002         rmdir ("dir/.//"), unlinkat.
48004 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48006         stdbool: avoid spurious failure with modern xlc
48007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
48009 2010-08-24  Bruno Haible  <bruno@clisp.org>
48011         getloadavg: simplify code
48012         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
48013         gl_have_func. Update comments.
48015 2010-08-24  Eric Blake  <eblake@redhat.com>
48017         getloadavg: don't define SVR4 on cygwin
48018         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
48019         only define SVR4 when -lkvm is required.
48020         Reported by Yaakov Selkowitz.
48022 2010-08-24  Bruno Haible  <bruno@clisp.org>
48024         priv-set: fix comment
48025         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
48027 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48029         priv-set: fix comments
48030         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
48031         to match code, as suggested by David Bartley in:
48032         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
48034 2010-08-23  Eric Blake  <eblake@redhat.com>
48036         stdbool: avoid rejecting clang
48037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
48038         * tests/test-stdbool.c: Enable more tests if using the system
48039         <stdbool.h> instead of the gnulib replacement.
48040         (main): Move xlc bug test to a runtime test for all compilers.
48041         Reported by Anders Kaseorg.
48043         argz: fix shell quoting issue
48044         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
48045         Reported by Charles Wilson.
48047 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
48048             Erik Faye-Lund <kusmabite@gmail.com>
48050         poll, select: handle ERROR_BROKEN_PIPE.
48051         * lib/poll.c (win32_compute_revents): Return POLLHUP when
48052         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
48053         * lib/select.c (win32_compute_revents): Do not mark a pipe
48054         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
48056 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
48058         fts: allow compilation with C++
48059         * lib/fts_.h: Specify extern "C" linkage with C++.
48061 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48063         Fix gnulib-tool sed script de-commentation for AIX sed.
48064         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
48065         sed.
48067 2010-08-17  Eric Blake  <eblake@redhat.com>
48069         test-stddef: test for (some) offsetof bugs
48070         * tests/test-stddef.c: Enhance test to ensure correct type of
48071         offsetof.
48072         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
48073         that we are not fixing at this time.
48075 2010-08-15  Bruno Haible  <bruno@clisp.org>
48077         stpncpy: Allow stpncpy to be defined as a macro.
48078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
48079         if it's already correctly declared.
48080         * lib/string.in.h (stpncpy): Undefine before redefining.
48081         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
48083 2010-08-14  Bruno Haible  <bruno@clisp.org>
48085         Rename module 'memxfrm' to 'amemxfrm'.
48086         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
48087         (amemxfrm): Renamed from memxfrm.
48088         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
48089         (amemxfrm): Renamed from memxfrm.
48090         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
48091         * NEWS: Mention the change.
48092         * MODULES.html.sh (String handling <string.h>): Update.
48093         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
48094         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
48095         * lib/unicase/u16-casexfrm.c: Likewise.
48096         * lib/unicase/u32-casexfrm.c: Likewise.
48097         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
48098         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
48099         * lib/uninorm/u16-normxfrm.c: Likewise.
48100         * lib/uninorm/u32-normxfrm.c: Likewise.
48101         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
48102         memxfrm.
48103         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
48104         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
48105         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
48106         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
48107         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
48108         Suggested by Paul Eggert.
48110 2010-08-14  Bruno Haible  <bruno@clisp.org>
48112         Tests for module 'astrxfrm'.
48113         * modules/astrxfrm-tests: New file.
48114         * tests/test-astrxfrm.c: New file.
48116         New module 'astrxfrm'.
48117         * lib/astrxfrm.h: New file.
48118         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
48119         * modules/astrxfrm: New file.
48121 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
48123         regex: Tweak doc.
48124         * doc/regex.texi (Overview): Don't mention regex.c.
48125         (GNU Regular Expression Compiling): Likewise.
48126         (Match-end-of-line Operator): Mention 'not_eol'.
48128 2010-08-14  Brian Gough  <bjg@gnu.org>
48129             Bruno Haible  <bruno@clisp.org>
48131         git-merge-changelog: add doc relating to use with bzr and hg.
48132         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
48134 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
48136         pthread: fix pthread.h creation for srcdir != builddir
48137         * modules/pthread (Makefile.am): Fix the rule to work also in a
48138         non-srcdir build.
48140 2010-08-13  Karl Berry  <karl@gnu.org>
48142         * doc/regex.texi (Predefined Syntaxes): @smallexample.
48143         * doc/posix-*/*: force line break before @url of POSIX
48144         specifications.
48145         Suggested by Werner Lemberg.
48147 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48149         strtod: fix const diagnostic
48150         * lib/strtod.c (strtod): Don't assign const char * to char *,
48151         as this elicits a warning from GCC when warnings are enabled.
48153 2010-08-10  Pádraig Brady  <P@draigbrady.com>
48154         and Eric Blake  <eblake@redhat.com>
48156         copy-acl: ignore ENOTSUP on HP-UX
48157         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
48158         so that it is available for HP-UX.
48159         * lib/copy-acl.c (qcopy_acl): Use it.
48160         Reported by Patrick M. Callahan.
48162 2010-08-10  Eric Blake  <eblake@redhat.com>
48164         open, chown: relax license
48165         * modules/open (License): Change to LGPLv2+, with consent by all
48166         authors, for use in augeas.
48167         * modules/chown (License): Likewise.
48168         * modules/lchown (Likewise): Likewise.
48169         Requested by Adam Stokes.
48171 2010-08-09  Karl Berry  <karl@gnu.org>
48173         * build-aux/ar-lib: new file, import from Automake.
48174         * config/srclist.txt: autocheck for updates.
48176 2010-08-09  Eric Blake  <eblake@redhat.com>
48178         readlinkat: adjust client modules
48179         * modules/areadlinkat (Depends-on): Use readlinkat, not
48180         symlinkat.
48181         * modules/areadlinkat-with-size (Depends-on): Likewise.
48183         mknod: be more vocal about danger of running tests as root
48184         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
48185         root, since that is just asking for problems.
48186         Suggested by Bruno Haible, based on a report by Rainer Tammer.
48188         readlinkat: split into its own module
48189         * modules/symlinkat: Split readlinkat...
48190         * modules/readlinkat: ...into separate module.
48191         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
48192         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
48193         * lib/symlinkat.c (readlinkat): Move...
48194         * lib/readlinkat.c: ...into new file.
48195         * modules/symlinkat-tests: Split readlinkat test...
48196         * modules/readlinkat-tests: ...into separate module.
48197         * tests/test-symlinkat.c: Split...
48198         * tests/test-readlinkat.c: ...into new file.
48199         * NEWS: Document the split.
48200         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
48201         * lib/unistd.in.h (readlinkat): Likewise.
48202         Suggested by Bruno Haible.
48204 2010-08-08  Bruno Haible  <bruno@clisp.org>
48206         memxfrm: Speed up.
48207         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
48208         that usually only one call to strxfrm is necessary for each string
48209         part.
48210         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48212 2010-08-07  Karl Berry  <karl@gnu.org>
48214         * doc/posix-headers/limits.texi,
48215         * doc/posix-functions/malloc.texi,
48216         * doc/posix-functions/strsignal.texi: missing @item.
48217         * doc/ld-version-script.texi: spurious leading i.
48218         * doc/regex.texi (Interval Operators): no commas inside @var.
48220 2010-08-01  Bruno Haible  <bruno@clisp.org>
48222         Integrate the regex documentation.
48223         * doc/gnulib.texi: Define 'cn' index.
48224         (Regular expressions): New a chapter that includes regex.texi and
48225         regexprops-generic.texi.
48226         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
48227         syntax.
48229         Whitespace cleanup.
48230         * doc/regex.texi: Remove trailing spaces.
48232         Add regex documentation.
48233         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
48234         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
48235         Written by Kathy A. Hargreaves and Karl Berry.
48237 2010-08-01  Bruno Haible  <bruno@clisp.org>
48239         link: Update documentation.
48240         * doc/posix-functions/link.texi: Update regarding Solaris.
48242 2010-07-31  Bruno Haible  <bruno@clisp.org>
48244         Update modules list.
48245         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
48246         (String handling <string.h>): Add memcmp2, memxfrm.
48247         (Container data structures): Add xlist, xsublist, xoset.
48248         (Core language properties): Add alignof, unused-parameter.
48249         (Process control, Numeric conversion functions <stdlib.h>): Renamed
48250         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
48251         (Unibyte characters <ctype.h>): New section.
48252         (String handling <string.h>): New section.
48253         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
48254         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
48255         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
48256         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
48257         tan, tanh, tanl, y0, y1, yn.
48258         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
48259         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
48260         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
48261         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
48262         unlockpt, vdprintf, vdprintf-posix.
48263         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
48264         (File system functions): Add concat-filename, sys_file, sys_ioctl,
48265         xconcat-filename.
48266         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
48267         getdtablesize, pipe2, pipe2-safer.
48268         (Security): New section.
48269         (Networking functions): Add accept4.
48270         (Signal handling): Add sigpipe.
48271         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
48272         mbmemcasecoll.
48273         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
48274         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
48275         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
48276         pipe-filter-ii.
48277         (Misc): Add argp-version-etc, login_tty, parse-duration.
48279 2010-07-31  Bruno Haible  <bruno@clisp.org>
48281         Improve doc in MODULES.html.
48282         * modules/linkat (Description): Add the word "function".
48283         * modules/mkfifo (Description): Likewise.
48284         * modules/mknod (Description): Likewise.
48285         * modules/remove (Description): Likewise.
48286         * modules/renameat (Description): Likewise.
48287         * modules/stat (Description): Likewise.
48288         * modules/symlink (Description): Likewise.
48289         * modules/unlink (Description): Likewise.
48291 2010-07-31  Bruno Haible  <bruno@clisp.org>
48293         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
48294         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
48295         option --enable/disable-c++ instead of --enable/disable-cxx.
48296         * NEWS: Mention the change.
48298 2010-07-31  Bruno Haible  <bruno@clisp.org>
48300         readlink, areadlink: Relax test a bit.
48301         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
48302         alternative to ENOTDIR.
48303         * tests/test-areadlink.h (test_areadlink): Likewise.
48304         Reported by Rainer Tammer.
48306 2010-07-31  Bruno Haible  <bruno@clisp.org>
48308         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
48309         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
48310         character, perform the search using U_STRCHR.
48311         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
48312         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
48313         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
48314         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
48315         Suggested by Paolo Bonzini.
48317 2010-07-31  Bruno Haible  <bruno@clisp.org>
48319         unistr/u*-strstr: Fix dependencies.
48320         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
48321         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
48322         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
48324 2010-07-31  Bruno Haible  <bruno@clisp.org>
48326         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
48327         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
48328         the beginning of the loop.
48329         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
48330         cases in 'switch' statement.
48332         unistr/u8-strchr: Fix several bugs.
48333         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
48334         the string. When not found, return NULL, not a pointer near the end.
48336         More tests for unistr/u8-strchr.
48337         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
48338         that the function does not read past the first occurrence of the byte
48339         being searched.
48340         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
48341         * tests/unistr/test-u16-strchr.c (main): New function.
48342         * tests/unistr/test-u32-strchr.c (main): New function.
48344 2010-07-31  Bruno Haible  <bruno@clisp.org>
48346         posix-modules: Ignore backup files of documentation files.
48347         * posix-modules: grep only through files named *.texi.
48349 2010-07-31  Bruno Haible  <bruno@clisp.org>
48351         symlinkat: Fix documentation.
48352         * doc/posix-functions/readlinkat.texi: Fix module name.
48354 2010-07-31  Bruno Haible  <bruno@clisp.org>
48356         fchownat: Replace also when chown has the trailing slash bug.
48357         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
48358         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
48359         introduced on 2010-04-10.
48360         Reported by Rainer Tammer.
48362 2010-07-31  Bruno Haible  <bruno@clisp.org>
48364         linkat: Work around AIX 7.1 bug.
48365         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
48366         whether linkat handles trailing slash correctly. If not, replace linkat
48367         and define LINKAT_TRAILING_SLASH_BUG.
48368         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
48369         check whether (fd1,file1) points to a directory if file1 or file2 ends
48370         in a slash. Code taken from lib/link.c.
48371         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
48372         Reported by Rainer Tammer.
48374 2010-07-31  Bruno Haible  <bruno@clisp.org>
48376         Correctly determine whether pow is available in libc on AIX 7 with xlc.
48377         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
48378         This disables an xlc optimization that was causing wrong test results.
48379         Reported by Rainer Tammer.
48381 2010-07-31  Bruno Haible  <bruno@clisp.org>
48383         iconv: Work around AIX 6.1..7.1 bug.
48384         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
48385         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
48386         cross-compiling, guess no on all versions of AIX.
48387         Reported by Rainer Tammer.
48389 2010-07-31  Bruno Haible  <bruno@clisp.org>
48391         readlink: Relax test a bit.
48392         * tests/test-readlink.h (test_readlink): Allow different errno value
48393         when readlink is called with a file name that ends in / and refers to
48394         a file.
48395         Suggested by Eric Blake.
48396         Reported by Rainer Tammer.
48398 2010-07-31  Bruno Haible  <bruno@clisp.org>
48400         copysign: Does not require -lm on glibc systems.
48401         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
48402         gl_COMMON_DOUBLE_MATHFUNC.
48403         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
48405 2010-07-31  Bruno Haible  <bruno@clisp.org>
48407         duplocale: Work around AIX 7.1 bug.
48408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
48409         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
48410         * lib/duplocale.c (rpl_duplocale): Update comment.
48411         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
48412         Reported by Rainer Tammer.
48414 2010-07-30  Bruno Haible  <bruno@clisp.org>
48416         dirfd: Avoid link error on AIX 7.1.
48417         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
48418         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
48419         exist, set REPLACE_DIRFD.
48420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
48421         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
48422         * doc/posix-functions/dirfd.texi: Update.
48423         Reported by Rainer Tammer.
48425 2010-07-30  Eric Blake  <eblake@redhat.com>
48427         strtod: next round of AIX fixes
48428         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
48429         exponent.
48430         * tests/test-strtod.c (main): Enhance tests.
48431         * doc/posix-functions/strtod.texi (strtod): Document next bug.
48432         Reported by Rainer Tammer.
48434         futimens: fix configure check
48435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
48436         Reported by Bruno Haible.
48438 2010-07-30  Bruno Haible  <bruno@clisp.org>
48440         getline: Update regarding AIX.
48441         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
48442         Reported by Rainer Tammer.
48444 2010-07-30  Bruno Haible  <bruno@clisp.org>
48446         wcwidth: Drop replacement on AIX 7.
48447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
48448         AIX 7.
48449         Reported by Rainer Tammer.
48451 2010-07-30  Bruno Haible  <bruno@clisp.org>
48453         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
48454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
48455         a 'char *'.
48456         Reported by Rainer Tammer.
48458 2010-07-30  Bruno Haible  <bruno@clisp.org>
48460         unlink: Update regarding AIX.
48461         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
48462         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
48463         Reported by Rainer Tammer.
48465 2010-07-30  Bruno Haible  <bruno@clisp.org>
48467         symlink: Update regarding AIX.
48468         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
48469         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
48470         Reported by Rainer Tammer.
48472 2010-07-30  Bruno Haible  <bruno@clisp.org>
48474         strndup: Update regarding AIX.
48475         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
48476         AIX 7.
48477         Reported by Rainer Tammer.
48479 2010-07-30  Bruno Haible  <bruno@clisp.org>
48481         stat: Update regarding AIX.
48482         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
48483         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
48484         Reported by Rainer Tammer.
48486 2010-07-30  Bruno Haible  <bruno@clisp.org>
48488         truncl: Fix autoconf test.
48489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
48490         whether truncl works.
48491         Reported by Rainer Tammer.
48493 2010-07-30  Bruno Haible  <bruno@clisp.org>
48495         round: Update regarding AIX.
48496         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
48497         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
48498         Reported by Rainer Tammer.
48500 2010-07-30  Bruno Haible  <bruno@clisp.org>
48502         rename: Update regarding AIX.
48503         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
48504         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
48505         Reported by Rainer Tammer.
48507 2010-07-30  Bruno Haible  <bruno@clisp.org>
48509         printf.m4: Update regarding AIX.
48510         * m4/printf.m4: Update comments regarding AIX.
48511         Reported by Rainer Tammer.
48513 2010-07-30  Bruno Haible  <bruno@clisp.org>
48515         iconv: Update regarding AIX.
48516         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
48517         AIX 7.
48518         Reported by Rainer Tammer.
48520 2010-07-30  Bruno Haible  <bruno@clisp.org>
48522         getopt: Update regarding AIX.
48523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
48524         no on AIX.
48525         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
48526         Reported by Rainer Tammer.
48528 2010-07-30  Bruno Haible  <bruno@clisp.org>
48530         ldexpl; Update regarding AIX.
48531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
48532         on AIX 7.
48533         Reported by Rainer Tammer.
48535 2010-07-30  Bruno Haible  <bruno@clisp.org>
48537         frexpl: Update regarding AIX.
48538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
48539         on AIX 7.
48540         Reported by Rainer Tammer.
48542 2010-07-30  Bruno Haible  <bruno@clisp.org>
48544         open, fopen: Update regarding AIX.
48545         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
48546         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
48547         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
48548         * doc/posix-functions/fopen.texi: Likewise.
48549         Reported by Rainer Tammer.
48551 2010-07-30  Bruno Haible  <bruno@clisp.org>
48553         chown: Update doc regarding AIX.
48554         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
48555         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
48556         Reported by Rainer Tammer.
48558 2010-07-30  Eric Blake  <eblake@redhat.com>
48560         strtod: fix bug in replacement function on AIX
48561         * lib/strtod.c (strtod): Special case broken "0x" parse in
48562         underlying strtod.
48563         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
48564         * doc/posix-functions/strtod.texi (strtod): Likewise.
48565         Reported by Rainer Tammer.
48567 2010-07-30  Bruno Haible  <bruno@clisp.org>
48569         mbrlen: Fix cross-compilation guess for AIX.
48570         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
48571         guess. Leftover from 2008-12-22.
48573 2010-07-30  Bruno Haible  <bruno@clisp.org>
48575         mbrtowc: Fix cross-compilation guess for AIX.
48576         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
48577         guess. Leftover from 2008-12-21.
48579 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
48581         init.sh: work around trap limitation of some shells
48582         * tests/init.sh (setup_): Move exit trap outside of shell function.
48584 2010-07-29  Eric Blake  <eblake@redhat.com>
48586         strtod: aid debugging
48587         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
48588         understanding why strtod is rejected.
48590 2010-07-28  Bruno Haible  <bruno@clisp.org>
48592         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
48593         * lib/unistr/u8-chr.c: Include <string.h>.
48594         * tests/unistr/test-u8-chr.c: Likewise.
48595         * tests/unistr/test-u16-chr.c: Likewise.
48596         * tests/unistr/test-u32-chr.c: Likewise.
48597         * tests/unistr/test-u8-strchr.c: Likewise.
48598         * tests/unistr/test-u16-strchr.c: Likewise.
48599         * tests/unistr/test-u32-strchr.c: Likewise.
48600         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
48601         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
48602         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
48603         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
48605 2010-07-28  Bruno Haible  <bruno@clisp.org>
48607         Use spaces for indentation, not tabs.
48608         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
48610 2010-07-27  Bruno Haible  <bruno@clisp.org>
48612         mbspcasecmp: Fix function specification.
48613         * lib/string.in.h (mbspcasecmp): Fix specification comment.
48614         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
48615         Reported by Eric Blake <eblake@redhat.com>.
48617 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
48619         timespec: use cast and not conditional, as truncation isn't possible
48620         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
48621         instead of a conditional.  Comment about the situation in more detail.
48622         This undoes most of the 2009-10-29 patch.
48624 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
48626         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
48627         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
48628         * lib/unistr/u8-strchr.c: Likewise.
48629         * modules/unistr/u8-chr: Depend on memchr.
48631         unistr/u*-strchr: add tests
48632         * modules/unistr/u8-strchr-tests: New file.
48633         * modules/unistr/u16-strchr-tests: New file.
48634         * modules/unistr/u32-strchr-tests: New file.
48635         * tests/unistr/test-strchr.h: New file.
48636         * tests/unistr/test-u8-strchr.c: New file.
48637         * tests/unistr/test-u16-strchr.c: New file.
48638         * tests/unistr/test-u32-strchr.c: New file.
48640         unistr/u*-chr: test multibyte sequences more
48641         * tests/unistr/test-chr.h: Do complete testing of the characters in the
48642         test vector.
48643         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
48644         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
48645         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
48647         unistr/u*-chr: test multibyte sequences
48648         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
48650         unistr/u*-chr: prepare for multibyte tests
48651         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
48652         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
48653         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
48654         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
48655         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
48656         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
48658 2010-07-18  Bruno Haible  <bruno@clisp.org>
48660         unistr/u8-strchr: Optimize non-ASCII argument case.
48661         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
48662         because the first byte often matches anyway.
48663         Reported by Pádraig Brady <P@draigbrady.com>.
48665 2010-07-15  Karl Berry  <karl@gnu.org>
48667         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
48669 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
48671         getcwd: on Solaris, work better if ancestors are inaccessible
48672         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
48673         buffer and size, try again with a large buffer.  This works better
48674         on Solaris, since its getcwd succeeds even if the path to the root
48675         is inaccessible, and this is helpful in common cases such as .zfs
48676         hidden directories.  Problem reported by J Chapman Flack in
48677         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
48678         Use system getcwd if it's declared, not merely if it's partly
48679         working; use the partly-working test only to avoid needless effort
48680         if the system getcwd fails.
48681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
48682         comment that was already obsolete and is now even more obsolete.
48683         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
48684         now might call strdup.
48686 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
48688         pthread: Add enough so that coreutils/src/sort.c compiles.
48689         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
48690         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
48691         gnulib. Include <sched.h> and <time.h>, as per POSIX.
48692         Include <sys/types.h>, in case it defines pthread_t.
48693         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
48694         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
48695         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
48696         (pthread_rwlockattr_t, pthread_spinlock_t):
48697         New typedefs, if HAVE_PTHREAD_T is not defined.
48698         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
48699         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
48700         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
48701         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
48702         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
48703         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
48704         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
48705         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
48706         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
48707         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
48708         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
48709         New macros.
48710         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
48711         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
48712         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
48713         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
48714         (pthread_spin_unlock): New dummy functions.
48715         (pthread_create): Return EAGAIN; don't set errno.
48716         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
48717         require AC_C_INLINE.
48718         * modules/pthread (Depends-on): Add sched, time.
48719         (pthread.h): Use AM_V_GEN.
48721 2010-07-13  Bruno Haible  <bruno@clisp.org>
48723         striconveh: Don't malloc memory if the result buffer is sufficient.
48724         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
48725         buffer if its size is sufficient.
48726         Reported by Ludovic Courtès <ludo@gnu.org>.
48728 2010-07-13  Bruno Haible  <bruno@clisp.org>
48730         strtod: Add safety check.
48731         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
48733 2010-07-12  Bruno Haible  <bruno@clisp.org>
48735         Unify tests that set gl_cv_func_ldexpl_no_libm.
48736         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
48737         gl_FUNC_LDEXPL.
48738         (gl_FUNC_LDEXPL): Invoke it.
48739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48741 2010-07-12  Bruno Haible  <bruno@clisp.org>
48743         Unify tests that set gl_cv_func_ldexp_no_libm.
48744         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
48745         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
48746         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
48747         (configure.ac): Simply invoke gl_FUNC_LDEXP.
48748         * modules/strtod (Files): Add m4/ldexp.m4.
48750 2010-07-12  Bruno Haible  <bruno@clisp.org>
48752         Unify tests that set gl_cv_func_frexpl_no_libm.
48753         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
48754         gl_FUNC_FREXPL_NO_LIBM.
48755         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
48756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48758 2010-07-12  Bruno Haible  <bruno@clisp.org>
48760         Unify tests that set gl_cv_func_frexp_no_libm.
48761         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
48762         gl_FUNC_FREXP_NO_LIBM.
48763         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
48764         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
48766 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48768         memcoll: clarify sizes versus lengths, document better, and tweak perf
48769         * lib/memcoll.c (strcoll_loop, memcoll0):
48770         Improve quality of descriptive comments.  Name variables
48771         consistently as to whether they are lengths (which do not include
48772         terminating null) versus sizes (which do).
48773         * lib/xmemcoll.c (xmemcoll0): Likewise.
48774         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
48775         returned when s1size == 0; this is easier to compile and saves
48776         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
48778 2010-07-12  Bruno Haible  <bruno@clisp.org>
48780         Tests for module '_Exit'.
48781         * modules/_Exit-tests: New file.
48782         * tests/test-_Exit.sh: New file.
48783         * tests/test-_Exit.c: New file.
48785         New module '_Exit'.
48786         * lib/stdlib.in.h (__attribute__): New macro.
48787         (_Exit): New declaration.
48788         * lib/_Exit.c: New file.
48789         * m4/_Exit.m4: New file.
48790         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
48791         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
48792         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
48793         * modules/_Exit: New file.
48794         * tests/test-stdlib-c++.cc (_Exit): Check signature.
48795         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
48797 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48799         strtod: make it more-accurate typically, and don't require libm
48800         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
48801         Include limits.h.  Don't include string.h.
48802         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
48803         (locale_isspace): New function, so that no casts are needed to
48804         check whether *s is a space.
48805         (ldexp): Provide an unused dummy if not available.
48806         (scale_radix_exp, parse_number, underlying_strtod): New functions.
48807         (strtod): Use them.  This implementation prefers to use the
48808         underlying strtod if available, falling back on our own code
48809         only to fix known bugs.  This is more likely to produce an
48810         accurate result.  Also, it avoids the use of libm functions.
48811         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
48812         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
48813         was absent, but it caused a test failure with coreutils.
48814         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
48815         with libm.
48816         * modules/strtod (Makefile.am, Link): libm is no longer needed.
48817         * modules/strtod-tests (Makefile.am): Likewise.
48819 2010-07-11  Pádraig Brady  <P@draigBrady.com>
48820             Bruno Haible  <bruno@clisp.org>
48822         unistr/u8-strchr: Optimize ASCII argument case.
48823         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
48825 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48827         (x)memcoll: minor tweaks
48828         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
48829         is after the type that it qualifies.
48830         (memcoll0): Likewise.
48831         * lib/memcoll.h (memcoll0): Likewise.
48832         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
48833         * lib/xmemcoll.h (xmemcoll0): Likewise.
48834         * lib/memcoll.c (memcoll0): Correct the comment.  This function
48835         differs from memcoll in that the NUL byte is part of the argument.
48836         Omit the abort-checks, as performance is a real issue here.  Plus,
48837         the checks were wrong anyway (an off-by-one error).  Omit local
48838         variable 'diff', as it's a bit clearer that way.
48839         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
48840         no longer needed.
48842 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
48844         (x)memcoll: speedup when input is known to be NUL delimited
48845         * lib/memcoll.c: Include stdlib.
48846         (memcoll0): New function.
48847         (strcoll_loop): New function, refactored for use in both memcoll
48848         and memcoll0.
48849         * lib/memcoll.h (memcoll0): Add prototype.
48850         * lib/xmemcoll.c (xmemcoll0): New function.
48851         (collate_error): New function, refactored for use in both xmemcoll
48852         and xmemcoll0.
48853         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48854         * m4/memcoll.m4: add inline invocation.
48856 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48858         * build-aux/bootstrap: Remove any local translations
48859         from the translation project synchronization directory,
48860         so that local only translations are not distributed.
48862 2010-07-04  Bruno Haible  <bruno@clisp.org>
48864         fsusage: Clarify which code applies to which platforms.
48865         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48866         platform.
48867         * lib/fsusage.c (get_fs_usage): Likewise.
48869 2010-07-04  Bruno Haible  <bruno@clisp.org>
48871         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48872         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48873         Reported by Martin Lambers <marlam@marlam.de>.
48875 2010-07-04  Jim Meyering  <meyering@redhat.com>
48877         hash: once again explicitly disallow insertion of NULL
48878         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48879         inserting a NULL pointer cannot work with these functions.
48880         Add a comment with details.
48881         This reverts part of the 2010-07-01 commit, 5bef1a35
48882         "hash: extend module to deal with non-pointer keys".
48884 2010-07-01  Bruno Haible  <bruno@clisp.org>
48886         stdbool: Update doc.
48887         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48888         Info from Christian Weisgerber <naddy@mips.inka.de>.
48890 2010-07-01  Jim Meyering  <meyering@redhat.com>
48892         hash: extend module to deal with non-pointer keys
48893         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48894         but that allows insertion of non-pointer entries.
48895         Do not disallow an ENTRY value of NULL.
48896         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48897         * lib/hash.h (hash_insert0): Declare.
48899 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48901         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48902         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48903         not present (i.e. with autoconf 2.59 and when using gettextize, not
48904         gnulib), require AC_GNU_SOURCE instead.
48906 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48908         idpriv-drop: Fix tests.
48909         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48910         not to the test-idpriv-droptemp program.
48912 2010-06-29  Bruno Haible  <bruno@clisp.org>
48914         string: Fix syntax error with g++ 2.96.
48915         * lib/string.in.h (__pure__): Remove definition.
48916         (_GL_ATTRIBUTE_PURE): New macro.
48917         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48918         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48919         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48921 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48923         unitypes: Fix bug introduced on 2010-05-18.
48924         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48926 2010-06-22  Eric Blake  <eblake@redhat.com>
48928         memmem: slight optimization
48929         * lib/str-two-way.h (critical_factorization): Update comments.
48930         Reduce work during factorization phase.
48931         Reported by Carlos Bueno <carlos@bueno.org>.
48933 2010-06-21  Bruno Haible  <bruno@clisp.org>
48935         Fix HAVE_CALLOC_POSIX misnomer.
48936         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48937         !HAVE_CALLOC_POSIX.
48938         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48939         HAVE_CALLOC_POSIX.
48940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48941         instead of HAVE_CALLOC_POSIX.
48942         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48943         HAVE_CALLOC_POSIX.
48945         Use modern idiom for calloc() replacement.
48946         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48947         AC_FUNC_CALLOC.
48948         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48949         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48950         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48951         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48952         (gl_REPLACE_CALLOC): New macro.
48954 2010-06-21  Bruno Haible  <bruno@clisp.org>
48956         Fix HAVE_REALLOC_POSIX misnomer.
48957         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48958         !HAVE_REALLOC_POSIX.
48959         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48960         HAVE_REALLOC_POSIX.
48961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48962         instead of HAVE_REALLOC_POSIX.
48963         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48964         HAVE_REALLOC_POSIX.
48966         Use modern idiom for realloc() replacement.
48967         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48968         AC_FUNC_REALLOC.
48969         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48970         Autoconf's AC_FUNC_REALLOC.
48971         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48972         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48973         (gl_REPLACE_REALLOC): New macro.
48974         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48976 2010-06-21  Bruno Haible  <bruno@clisp.org>
48978         Fix HAVE_MALLOC_POSIX misnomer.
48979         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48980         !HAVE_MALLOC_POSIX.
48981         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48982         HAVE_MALLOC_POSIX.
48983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48984         instead of HAVE_MALLOC_POSIX.
48985         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48986         HAVE_MALLOC_POSIX.
48988         Use modern idiom for malloc() replacement.
48989         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48990         AC_FUNC_MALLOC.
48991         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48992         Autoconf's AC_FUNC_MALLOC.
48993         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48994         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48995         (gl_REPLACE_MALLOC): New macro.
48996         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48998 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
49000         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
49001         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
49002         This macro takes 3 arguments, not 4.
49004 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
49006         ipv6: fix detection under mingw
49007         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
49008         in6_addr.
49010 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
49012         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
49013         that strtod() works when cross-compiling to a glibc version known
49014         to work.
49016 2010-06-15  Bruno Haible  <bruno@clisp.org>
49018         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
49020 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
49022         select: Correct timeout.
49023         * lib/select.c (rpl_select): Compute wait_timeout correctly.
49025 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49027         git-version-gen: init shell var to avoid env var influence
49028         * build-aux/git-version-gen (v): Init shell var to empty.
49030 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
49032         priv-set: Don't assume that priv.h exists merely because getppriv does.
49033         See Jan Andersen's bug report about AIX 5L in
49034         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
49035         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
49036         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
49037         * lib/priv-set.h: Likewise.
49038         * tests/test-priv-set.c: Likewise.
49040 2010-06-13  Bruno Haible  <bruno@clisp.org>
49042         relocatable: Make it easier to test whether to install wrappers.
49043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
49044         RELOCATABLE_VIA_WRAPPER.
49046 2010-06-13  Bruno Haible  <bruno@clisp.org>
49048         gnulib-tool: Display specified modules and dependencies differently.
49049         * gnulib-tool (func_show_module_list): New function.
49050         (func_import, func_create_testdir): Invoke it.
49051         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49053 2010-06-13  Bruno Haible  <bruno@clisp.org>
49055         gnulib-tool: Align code of func_import and func_create_testdir.
49056         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
49057         specified_modules.
49059 2010-06-12  Jim Meyering  <meyering@redhat.com>
49061         test-inttostr: avoid spurious failure on Solaris 9
49062         * tests/test-inttostr.c (main): Skip the test when snprintf fails
49063         to accept "%ju".  Reported by Bruno Haible.
49065 2010-06-11  Jim Meyering  <meyering@redhat.com>
49067         test-sys_socket: mark variables as used more readably
49068         * tests/test-sys_socket.c (main): Mark otherwise unused variables
49069         as "used" explicitly via (void) statement casts.  This is more
49070         readable than using them in an artificial return expression.
49071         Suggestion from Bruno Haible.
49073 2010-06-11  Bruno Haible  <bruno@clisp.org>
49075         Avoid some more warnings from "gcc -Wwrite-strings".
49076         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
49077         to 'const char *'.
49078         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
49079         * tests/test-c-strcasestr.c (main): Likewise.
49080         * tests/test-mbscasestr1.c (main): Likewise.
49081         * tests/test-mbscasestr2.c (main): Likewise.
49082         * tests/test-memmem.c (main): Likewise.
49083         * tests/test-strstr.c (main): Likewise.
49084         * tests/test-strcasestr.c (main): Likewise.
49086 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49088         init.sh: change framework_failure_ to fail with status 99, not 1
49089         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
49090         automake's parallel-tests rule that this is an unexpected failure,
49091         even if the test is listed in XFAIL_TESTS.
49093 2010-06-11  Jim Meyering  <meyering@redhat.com>
49095         test-inttostr: avoid warnings about 4-6KB literal strings
49096         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
49097         Include "macros.h", for its definition of ASSERT.
49098         (CK): s/assert/ASSERT/
49099         * modules/inttostr-tests (Files): Add macros.h.
49101         init.sh: don't use $ME_ or skip_ before they are defined
49102         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
49103         their first uses.  Also hoist their companions: warn_, fail_,
49104         framework_failure_, $stderr_fileno.  Prompted by a patch from
49105         Stefano Lattarini.
49107         test-sys_socket: avoid set-but-not-used warnings from gcc
49108         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
49109         avoid warning about set-but-not-used variables.
49111         test-xvasprintf: avoid 'const' discard warnings
49112         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
49113         "const" when assigning from literal strings.
49114         (test_xasprintf): Add "void" in function argument list to placate
49115         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
49117         tests: avoid compilation warnings in argmatch and exclude tests...
49118         in packages that define ARGMATCH_DIE_DECL, like coreutils.
49119         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
49120         Since it always exits, declare with the "noreturn" attribute.
49121         * tests/test-argmatch.c: Likewise.
49123         tests: avoid 'const' discard warnings in mbsstr tests
49124         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
49125         * tests/test-mbsstr2.c (main): Likewise.
49127         test-verify: avoid warning from gcc's -Wmissing-declarations
49128         * tests/test-verify.c (function): Declare to be static.
49130         test-inttostr.c: include <string.h> for use of strcmp
49131         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
49133         test-linkat: avoid failed assertion on "other" architectures
49134         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
49135         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
49136         sparc: https://bugs.launchpad.net/bugs/591968
49138 2010-06-11  Jim Meyering  <meyering@redhat.com>
49140         printf.m4: avoid autoconf's "Expanded Before Required" warning
49141         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
49142         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
49143         autoconf warning.
49145 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
49147         Replacement header templates are now named with ".in", not "_".
49148         * doc/gnulib-intro.texi: Correct.
49150 2010-06-10  Jim Meyering  <meyering@redhat.com>
49152         inttostr-tests: depend on snprintf, not snprintf-posix
49153         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
49154         snprintf-posix, to avoid this aclocal failure:
49155           missing file gnulib-tests/vasnprintf.c
49156           configure.ac:45: error: expected source file, required through \
49157           AC_LIBSOURCES, not found
49159 2010-06-10  Jim Meyering  <meyering@redhat.com>
49161         inttostr: add a new function, inttostr, and tests
49162         The namesake function was not available.  The existence of the
49163         template file, inttostr.c makes its addition nontrivial.
49164         * lib/anytostr.c: Rename from inttostr.c.
49165         (anytostr): Rename from inttostr.
49166         * lib/inttostr.c: New file.
49167         * modules/inttostr (Files): Add anytostr.c.
49168         (Makefile.am): Set lib_SOURCES instead of ...
49169         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
49170         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
49171         * lib/offtostr.c: Likewise.
49172         * lib/uinttostr.c: Likewise.
49173         * lib/umaxtostr.c: Likewise.
49174         * modules/inttostr-tests: New file.
49175         * tests/test-inttostr.c: New file.  Test these functions.
49177 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
49178             Bruno Haible  <bruno@clisp.org>
49180         Add "Extending Gnulib" chapter to manual.
49181         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
49182         chapter.
49183         (Extending Gnulib): New chapter.
49184         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
49185         chapter.
49187 2010-06-09  Bruno Haible  <bruno@clisp.org>
49189         Avoid relocwrapper link errors due to gnulib replacement functions.
49190         * lib/areadlink.c: Use the system's malloc, realloc functions.
49191         (areadlink): Set errno to ENOMEM explicitly.
49192         * modules/areadlink (Depends-on): Remove malloc-posix.
49193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49195 2010-06-09  Bruno Haible  <bruno@clisp.org>
49197         Avoid relocwrapper link errors due to gnulib replacement functions.
49198         * lib/canonicalize-lgpl.c: Use the system's malloc function.
49199         * lib/malloca.c: Likewise.
49200         * lib/relocatable.c: Likewise.
49201         * lib/progreloc.c: Use the system's malloc, sprintf functions.
49202         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
49203         * lib/setenv.c: Use the system's malloc, realloc functions.
49204         * lib/strerror.c: Use the system's sprintf function.
49205         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49207 2010-06-04  Bruno Haible  <bruno@clisp.org>
49209         Prefer documented low-level autoconf macro names.
49210         * m4/lib-link.m4: Use m4_translit instead of translit.
49211         * m4/environ.m4: Likewise.
49212         * m4/mathfunc.m4: Likewise.
49213         * m4/onceonly.m4: Likewise.
49214         * m4/stdint.m4: Likewise.
49215         Suggested by Eric Blake.
49217 2010-06-04  Martin Lambers  <marlam@marlam.de>
49218             Bruno Haible  <bruno@clisp.org>
49220         havelib: Allow library names with '+' characters.
49221         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49222         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
49224 2010-06-09  Bruno Haible  <bruno@clisp.org>
49226         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
49227         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
49228         realloc failed.
49230 2010-06-08  Peter Simons  <simons@cryp.to>
49232         maint.mk: make the news-check rule more configurable
49233         * top/maint.mk (news-check-lines-spec): New variable.
49234         (news-check): Use "sed -n 1,10p" in place of "head".
49236 2010-06-07  Jim Meyering  <meyering@redhat.com>
49238         do-release-commit-and-tag: fix typo in --help
49239         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
49241         regex: avoid new dead-code warning with gcc-4.6.0
49242         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
49243         if-block containing a while-loop.  It's been unused for at least
49244         5 years.
49246 2010-06-05  Bruno Haible  <bruno@clisp.org>
49248         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
49249         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
49251 2010-06-04  Bruno Haible  <bruno@clisp.org>
49253         Update to GNU gettext 0.18.1.
49254         * modules/gettext (configure.ac): Require gettext infrastructure from
49255         version 0.18.1.
49257 2010-06-03  Bruno Haible  <bruno@clisp.org>
49259         Don't use AC_LIBOBJ with file names in subdirectories.
49260         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
49261         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
49262         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
49263         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
49264         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
49265         gl_LIBUNISTRING_LIBSOURCE.
49266         (Makefile.am): Augment lib_SOURCES here, conditionally.
49267         * NEWS: Drop requirement for Automake option 'subdir-objects'.
49269 2010-06-03  Bruno Haible  <bruno@clisp.org>
49271         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
49272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
49273         expansion does not end with a newline.
49274         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
49275         unnecessary newline.
49277 2010-06-03  Bruno Haible  <bruno@clisp.org>
49279         Reduce dependencies.
49280         * tests/test-quotearg.h: New file, extracted from
49281         tests/test-quotearg.c.
49282         * tests/test-quotearg-simple.c: New file, extracted from
49283         tests/test-quotearg.c.
49284         * tests/test-quotearg.c: Don't include <ctype.h>.
49285         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
49286         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
49287         use_quote_double_quotes, use_quotearg_colon): Moved to
49288         tests/test-quotearg.h.
49289         (results_g, flag_results, custom_quotes, custom_results): Moved
49290         to tests/test-quotearg-simple.c.
49291         (main): Moved the part that does not depend on gettext to
49292         tests/test-quotearg-simple.c. Return 77 if the test cannot be
49293         performed.
49294         * modules/quotearg-simple: New file.
49295         * modules/quotearg-simple-tests: New file.
49296         * modules/quotearg (Depends-on): Add quotearg-simple.
49297         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
49298         (Files): Add tests/test-quotearg.h.
49299         Reported by Paolo Bonzini.
49301 2010-06-03  Bruno Haible  <bruno@clisp.org>
49303         Reduce dependencies.
49304         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
49306 2010-06-03  Bruno Haible  <bruno@clisp.org>
49308         time: Undefine more broken macros.
49309         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
49310         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
49311         Reported by Eric Blake.
49313 2010-06-03  Bruno Haible  <bruno@clisp.org>
49315         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
49316         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
49317         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
49318         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
49319         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
49320         Reported by Ludovic Courtès <ludo@gnu.org>.
49322 2010-06-02  Eric Blake  <eblake@redhat.com>
49324         time: work with mingw + pthreads-win32 library
49325         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
49326         if timespec is defined only in pthread.h.
49327         * modules/time (Makefile.am): Substitute it.
49328         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
49329         <pthread.h>, when needed.
49330         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
49331         from the library.
49333 2010-05-31  Bruno Haible  <bruno@clisp.org>
49335         Avoid expanding two macros in the wrong order.
49336         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
49337         gl_LIBUNISTRING if it is defined.
49338         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
49339         autoconf >= 2.64.
49340         Reported by Ludovic Courtès <ludo@gnu.org>.
49342 2010-05-27  Jim Meyering  <meyering@redhat.com>
49344         maint.mk: also prohibit "#undef" of always-defined symbols
49345         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
49346         Allow more than one space before the symbol name.
49347         (sc_prohibit_always-defined_macros): Use grep's -E, now that
49348         the regexp uses alternation.
49350 2010-05-26  Eric Blake  <eblake@redhat.com>
49352         maint.mk: avoid echo -e
49353         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
49354         Convert all uses of echo -* to printf.
49355         Reported by Matthias Bolte.
49357 2010-05-25  Bruno Haible  <bruno@clisp.org>
49359         Update to GNU gettext 0.18, part 2.
49360         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
49361         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
49363 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49365         Add missing include in test-pwrite.c.
49366         * tests/test-pwrite.c: Include string.h, for strcmp.
49368 2010-05-24  Bruno Haible  <bruno@clisp.org>
49370         * NEWS: Mention requirement for Automake option 'subdir-objects'.
49372 2010-05-24  Bruno Haible  <bruno@clisp.org>
49374         Don't use conversion with transliteration in u{8,16,32}_strcoll.
49375         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
49376         iconveh_error argument.
49377         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
49378         U_STRCONV_TO_LOCALE.
49379         * lib/unistr/u16-strcoll.c: Likewise.
49380         * lib/unistr/u32-strcoll.c: Likewise.
49381         * modules/unistr/u8-strcoll (Depends-on): Add
49382         uniconv/u8-strconv-to-enc, localcharset. Remove
49383         uniconv/u8-strconv-to-locale.
49384         (configure.ac): Bump version number.
49385         * modules/unistr/u16-strcoll (Depends-on): Add
49386         uniconv/u16-strconv-to-enc, localcharset. Remove
49387         uniconv/u16-strconv-to-locale.
49388         (configure.ac): Bump version number.
49389         * modules/unistr/u32-strcoll (Depends-on): Add
49390         uniconv/u32-strconv-to-enc, localcharset. Remove
49391         uniconv/u32-strconv-to-locale.
49392         (configure.ac): Bump version number.
49394 2010-05-24  Bruno Haible  <bruno@clisp.org>
49396         Avoid a test failure on NetBSD 5.0.
49397         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
49398         an iconv() bug.
49400 2010-05-24  Bruno Haible  <bruno@clisp.org>
49402         Adjust #include directive style.
49403         * modules/regex (Includes): Recommend to write <regex.h>.
49405 2010-05-24  Bruno Haible  <bruno@clisp.org>
49407         regex: Don't require alloca.
49408         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
49409         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
49410         only inside if (0).
49412 2010-05-23  Jim Meyering  <meyering@redhat.com>
49414         test-renameat.c: include <sys/stat.h>
49415         * tests/test-renameat.c: Include <sys/stat.h>; required for
49416         definition of S_IS* macros.
49418 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
49420         Update maintainer documentation for 'relocatable-prog' module.
49421         * doc/relocatable-maint.texi: Update.
49422         Comments by Bruno Haible.
49424 2010-05-23  Bruno Haible  <bruno@clisp.org>
49426         git-merge-changelog: Enable --split-merged-entry by default.
49427         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
49428         (usage): Don't mention this option any more.
49429         Reported by Ralf Wildenhues.
49431 2010-05-23  Jim Meyering  <meyering@redhat.com>
49433         test-pwrite: do not leave behind a test file named "out"
49434         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
49435         The trivial-looking use of init.sh is really necessary.
49436         It ensures that the temporary file, "out", is created in
49437         a temporary directory, and removed upon termination.
49438         * tests/test-pwrite.sh: Re-add file.
49439         * modules/pwrite-tests: Reference it.
49441 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49443         Fix output redirection buglet in init.sh.
49444         * tests/init.sh: Fix redirection of stderr.
49446 2010-05-20  Simon Josefsson  <simon@josefsson.org>
49448         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
49450 2010-05-17  Simon Josefsson  <simon@josefsson.org>
49452         * modules/valgrind-tests: New file.
49453         * m4/valgrind-tests.m4: New file.
49454         * doc/valgrind-tests.texi: New file.
49455         * doc/gnulib.texi (Running self-tests under valgrind): New
49456         section.
49458 2010-05-19  Bruno Haible  <bruno@clisp.org>
49460         Clean up dead code in recent commit.
49461         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
49462         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
49463         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
49464         Suggested by Paolo Bonzini.
49466 2010-05-19  Bruno Haible  <bruno@clisp.org>
49468         Avoid valgrind error reports from libunistring.
49469         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
49470         * modules/libunistring (Files): Add it.
49471         * modules/libunistring-optional (Files): Likewise.
49473 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
49474             Bruno Haible  <bruno@clisp.org>
49476         New module 'libunistring-optional'.
49477         * modules/libunistring-optional: New file.
49478         * m4/libunistring-base.m4: New file.
49479         * m4/libunistring-optional.m4: New file.
49480         * lib/unicase.in.h: Renamed from lib/unicase.h.
49481         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
49482         * lib/unictype.in.h: Renamed from lib/unictype.h.
49483         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
49484         * lib/uniname.in.h: Renamed from lib/uniname.h.
49485         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
49486         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
49487         * lib/unistr.in.h: Renamed from lib/unistr.h.
49488         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
49489         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
49490         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
49491         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
49492         gl_LIBUNISTRING. If the library was found, determine the installed
49493         version and set LIBUNISTRING_VERSION.
49494         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
49495         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
49496         handle a configuration option --with-included-libunistring.
49497         * modules/libunistring (Files): Add m4/absolute-header.m4.
49498         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
49499         Add m4/libunistring-base.m4.
49500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49501         (Makefile.am): Build unicase.h from unicase.in.h.
49502         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
49503         Add m4/libunistring-base.m4.
49504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49505         (Makefile.am): Build uniconv.h from uniconv.in.h.
49506         * modules/unictype/base (Files): Use unictype.in.h instead of
49507         unictype.h. Add m4/libunistring-base.m4.
49508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49509         (Makefile.am): Build unictype.h from unictype.in.h.
49510         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
49511         Add m4/libunistring-base.m4.
49512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49513         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
49514         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
49515         Add m4/libunistring-base.m4.
49516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49517         (Makefile.am): Build uniname.h from uniname.in.h.
49518         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
49519         Add m4/libunistring-base.m4.
49520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49521         (Makefile.am): Build uninorm.h from uninorm.in.h.
49522         * modules/unistdio/base (Files): Use unistdio.in.h instead of
49523         unistdio.h. Add m4/libunistring-base.m4.
49524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49525         (Makefile.am): Build unistdio.h from unistdio.in.h.
49526         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
49527         Add m4/libunistring-base.m4.
49528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49529         (Makefile.am): Build unistr.h from unistr.in.h.
49530         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
49531         Add m4/libunistring-base.m4.
49532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49533         (Makefile.am): Build unitypes.h from unitypes.in.h.
49534         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
49535         Add m4/libunistring-base.m4.
49536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49537         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
49538         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
49539         uniwidth.h. Add m4/libunistring-base.m4.
49540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49541         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
49542         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
49543         instead of augmenting lib_SOURCES.
49544         * modules/unicase/empty-suffix-context: Likewise.
49545         * modules/unicase/locale-language: Likewise.
49546         * modules/unicase/tolower: Likewise.
49547         * modules/unicase/totitle: Likewise.
49548         * modules/unicase/toupper: Likewise.
49549         * modules/unicase/u8-casecmp: Likewise.
49550         * modules/unicase/u8-casecoll: Likewise.
49551         * modules/unicase/u8-casefold: Likewise.
49552         * modules/unicase/u8-casexfrm: Likewise.
49553         * modules/unicase/u8-ct-casefold: Likewise.
49554         * modules/unicase/u8-ct-tolower: Likewise.
49555         * modules/unicase/u8-ct-totitle: Likewise.
49556         * modules/unicase/u8-ct-toupper: Likewise.
49557         * modules/unicase/u8-is-cased: Likewise.
49558         * modules/unicase/u8-is-casefolded: Likewise.
49559         * modules/unicase/u8-is-lowercase: Likewise.
49560         * modules/unicase/u8-is-titlecase: Likewise.
49561         * modules/unicase/u8-is-uppercase: Likewise.
49562         * modules/unicase/u8-prefix-context: Likewise.
49563         * modules/unicase/u8-suffix-context: Likewise.
49564         * modules/unicase/u8-tolower: Likewise.
49565         * modules/unicase/u8-totitle: Likewise.
49566         * modules/unicase/u8-toupper: Likewise.
49567         * modules/unicase/u16-casecmp: Likewise.
49568         * modules/unicase/u16-casecoll: Likewise.
49569         * modules/unicase/u16-casefold: Likewise.
49570         * modules/unicase/u16-casexfrm: Likewise.
49571         * modules/unicase/u16-ct-casefold: Likewise.
49572         * modules/unicase/u16-ct-tolower: Likewise.
49573         * modules/unicase/u16-ct-totitle: Likewise.
49574         * modules/unicase/u16-ct-toupper: Likewise.
49575         * modules/unicase/u16-is-cased: Likewise.
49576         * modules/unicase/u16-is-casefolded: Likewise.
49577         * modules/unicase/u16-is-lowercase: Likewise.
49578         * modules/unicase/u16-is-titlecase: Likewise.
49579         * modules/unicase/u16-is-uppercase: Likewise.
49580         * modules/unicase/u16-prefix-context: Likewise.
49581         * modules/unicase/u16-suffix-context: Likewise.
49582         * modules/unicase/u16-tolower: Likewise.
49583         * modules/unicase/u16-totitle: Likewise.
49584         * modules/unicase/u16-toupper: Likewise.
49585         * modules/unicase/u32-casecmp: Likewise.
49586         * modules/unicase/u32-casecoll: Likewise.
49587         * modules/unicase/u32-casefold: Likewise.
49588         * modules/unicase/u32-casexfrm: Likewise.
49589         * modules/unicase/u32-ct-casefold: Likewise.
49590         * modules/unicase/u32-ct-tolower: Likewise.
49591         * modules/unicase/u32-ct-totitle: Likewise.
49592         * modules/unicase/u32-ct-toupper: Likewise.
49593         * modules/unicase/u32-is-cased: Likewise.
49594         * modules/unicase/u32-is-casefolded: Likewise.
49595         * modules/unicase/u32-is-lowercase: Likewise.
49596         * modules/unicase/u32-is-titlecase: Likewise.
49597         * modules/unicase/u32-is-uppercase: Likewise.
49598         * modules/unicase/u32-prefix-context: Likewise.
49599         * modules/unicase/u32-suffix-context: Likewise.
49600         * modules/unicase/u32-tolower: Likewise.
49601         * modules/unicase/u32-totitle: Likewise.
49602         * modules/unicase/u32-toupper: Likewise.
49603         * modules/unicase/ulc-casecmp: Likewise.
49604         * modules/unicase/ulc-casecoll: Likewise.
49605         * modules/unicase/ulc-casexfrm: Likewise.
49606         * modules/uniconv/u8-conv-from-enc: Likewise.
49607         * modules/uniconv/u8-conv-to-enc: Likewise.
49608         * modules/uniconv/u8-strconv-from-enc: Likewise.
49609         * modules/uniconv/u8-strconv-from-locale: Likewise.
49610         * modules/uniconv/u8-strconv-to-enc: Likewise.
49611         * modules/uniconv/u8-strconv-to-locale: Likewise.
49612         * modules/uniconv/u16-conv-from-enc: Likewise.
49613         * modules/uniconv/u16-conv-to-enc: Likewise.
49614         * modules/uniconv/u16-strconv-from-enc: Likewise.
49615         * modules/uniconv/u16-strconv-from-locale: Likewise.
49616         * modules/uniconv/u16-strconv-to-enc: Likewise.
49617         * modules/uniconv/u16-strconv-to-locale: Likewise.
49618         * modules/uniconv/u32-conv-from-enc: Likewise.
49619         * modules/uniconv/u32-conv-to-enc: Likewise.
49620         * modules/uniconv/u32-strconv-from-enc: Likewise.
49621         * modules/uniconv/u32-strconv-from-locale: Likewise.
49622         * modules/uniconv/u32-strconv-to-enc: Likewise.
49623         * modules/uniconv/u32-strconv-to-locale: Likewise.
49624         * modules/unictype/bidicategory-byname: Likewise.
49625         * modules/unictype/bidicategory-name: Likewise.
49626         * modules/unictype/bidicategory-of: Likewise.
49627         * modules/unictype/bidicategory-test: Likewise.
49628         * modules/unictype/block-list: Likewise.
49629         * modules/unictype/block-test: Likewise.
49630         * modules/unictype/category-C: Likewise.
49631         * modules/unictype/category-Cc: Likewise.
49632         * modules/unictype/category-Cf: Likewise.
49633         * modules/unictype/category-Cn: Likewise.
49634         * modules/unictype/category-Co: Likewise.
49635         * modules/unictype/category-Cs: Likewise.
49636         * modules/unictype/category-L: Likewise.
49637         * modules/unictype/category-Ll: Likewise.
49638         * modules/unictype/category-Lm: Likewise.
49639         * modules/unictype/category-Lo: Likewise.
49640         * modules/unictype/category-Lt: Likewise.
49641         * modules/unictype/category-Lu: Likewise.
49642         * modules/unictype/category-M: Likewise.
49643         * modules/unictype/category-Mc: Likewise.
49644         * modules/unictype/category-Me: Likewise.
49645         * modules/unictype/category-Mn: Likewise.
49646         * modules/unictype/category-N: Likewise.
49647         * modules/unictype/category-Nd: Likewise.
49648         * modules/unictype/category-Nl: Likewise.
49649         * modules/unictype/category-No: Likewise.
49650         * modules/unictype/category-P: Likewise.
49651         * modules/unictype/category-Pc: Likewise.
49652         * modules/unictype/category-Pd: Likewise.
49653         * modules/unictype/category-Pe: Likewise.
49654         * modules/unictype/category-Pf: Likewise.
49655         * modules/unictype/category-Pi: Likewise.
49656         * modules/unictype/category-Po: Likewise.
49657         * modules/unictype/category-Ps: Likewise.
49658         * modules/unictype/category-S: Likewise.
49659         * modules/unictype/category-Sc: Likewise.
49660         * modules/unictype/category-Sk: Likewise.
49661         * modules/unictype/category-Sm: Likewise.
49662         * modules/unictype/category-So: Likewise.
49663         * modules/unictype/category-Z: Likewise.
49664         * modules/unictype/category-Zl: Likewise.
49665         * modules/unictype/category-Zp: Likewise.
49666         * modules/unictype/category-Zs: Likewise.
49667         * modules/unictype/category-and: Likewise.
49668         * modules/unictype/category-and-not: Likewise.
49669         * modules/unictype/category-byname: Likewise.
49670         * modules/unictype/category-name: Likewise.
49671         * modules/unictype/category-none: Likewise.
49672         * modules/unictype/category-of: Likewise.
49673         * modules/unictype/category-or: Likewise.
49674         * modules/unictype/category-test: Likewise.
49675         * modules/unictype/combining-class: Likewise.
49676         * modules/unictype/ctype-alnum: Likewise.
49677         * modules/unictype/ctype-alpha: Likewise.
49678         * modules/unictype/ctype-blank: Likewise.
49679         * modules/unictype/ctype-cntrl: Likewise.
49680         * modules/unictype/ctype-digit: Likewise.
49681         * modules/unictype/ctype-graph: Likewise.
49682         * modules/unictype/ctype-lower: Likewise.
49683         * modules/unictype/ctype-print: Likewise.
49684         * modules/unictype/ctype-punct: Likewise.
49685         * modules/unictype/ctype-space: Likewise.
49686         * modules/unictype/ctype-upper: Likewise.
49687         * modules/unictype/ctype-xdigit: Likewise.
49688         * modules/unictype/decimal-digit: Likewise.
49689         * modules/unictype/digit: Likewise.
49690         * modules/unictype/mirror: Likewise.
49691         * modules/unictype/numeric: Likewise.
49692         * modules/unictype/property-alphabetic: Likewise.
49693         * modules/unictype/property-ascii-hex-digit: Likewise.
49694         * modules/unictype/property-bidi-arabic-digit: Likewise.
49695         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
49696         * modules/unictype/property-bidi-block-separator: Likewise.
49697         * modules/unictype/property-bidi-boundary-neutral: Likewise.
49698         * modules/unictype/property-bidi-common-separator: Likewise.
49699         * modules/unictype/property-bidi-control: Likewise.
49700         * modules/unictype/property-bidi-embedding-or-override: Likewise.
49701         * modules/unictype/property-bidi-eur-num-separator: Likewise.
49702         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
49703         * modules/unictype/property-bidi-european-digit: Likewise.
49704         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
49705         * modules/unictype/property-bidi-left-to-right: Likewise.
49706         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
49707         * modules/unictype/property-bidi-other-neutral: Likewise.
49708         * modules/unictype/property-bidi-pdf: Likewise.
49709         * modules/unictype/property-bidi-segment-separator: Likewise.
49710         * modules/unictype/property-bidi-whitespace: Likewise.
49711         * modules/unictype/property-byname: Likewise.
49712         * modules/unictype/property-combining: Likewise.
49713         * modules/unictype/property-composite: Likewise.
49714         * modules/unictype/property-currency-symbol: Likewise.
49715         * modules/unictype/property-dash: Likewise.
49716         * modules/unictype/property-decimal-digit: Likewise.
49717         * modules/unictype/property-default-ignorable-code-point: Likewise.
49718         * modules/unictype/property-deprecated: Likewise.
49719         * modules/unictype/property-diacritic: Likewise.
49720         * modules/unictype/property-extender: Likewise.
49721         * modules/unictype/property-format-control: Likewise.
49722         * modules/unictype/property-grapheme-base: Likewise.
49723         * modules/unictype/property-grapheme-extend: Likewise.
49724         * modules/unictype/property-grapheme-link: Likewise.
49725         * modules/unictype/property-hex-digit: Likewise.
49726         * modules/unictype/property-hyphen: Likewise.
49727         * modules/unictype/property-id-continue: Likewise.
49728         * modules/unictype/property-id-start: Likewise.
49729         * modules/unictype/property-ideographic: Likewise.
49730         * modules/unictype/property-ids-binary-operator: Likewise.
49731         * modules/unictype/property-ids-trinary-operator: Likewise.
49732         * modules/unictype/property-ignorable-control: Likewise.
49733         * modules/unictype/property-iso-control: Likewise.
49734         * modules/unictype/property-join-control: Likewise.
49735         * modules/unictype/property-left-of-pair: Likewise.
49736         * modules/unictype/property-line-separator: Likewise.
49737         * modules/unictype/property-logical-order-exception: Likewise.
49738         * modules/unictype/property-lowercase: Likewise.
49739         * modules/unictype/property-math: Likewise.
49740         * modules/unictype/property-non-break: Likewise.
49741         * modules/unictype/property-not-a-character: Likewise.
49742         * modules/unictype/property-numeric: Likewise.
49743         * modules/unictype/property-other-alphabetic: Likewise.
49744         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
49745         * modules/unictype/property-other-grapheme-extend: Likewise.
49746         * modules/unictype/property-other-id-continue: Likewise.
49747         * modules/unictype/property-other-id-start: Likewise.
49748         * modules/unictype/property-other-lowercase: Likewise.
49749         * modules/unictype/property-other-math: Likewise.
49750         * modules/unictype/property-other-uppercase: Likewise.
49751         * modules/unictype/property-paired-punctuation: Likewise.
49752         * modules/unictype/property-paragraph-separator: Likewise.
49753         * modules/unictype/property-pattern-syntax: Likewise.
49754         * modules/unictype/property-pattern-white-space: Likewise.
49755         * modules/unictype/property-private-use: Likewise.
49756         * modules/unictype/property-punctuation: Likewise.
49757         * modules/unictype/property-quotation-mark: Likewise.
49758         * modules/unictype/property-radical: Likewise.
49759         * modules/unictype/property-sentence-terminal: Likewise.
49760         * modules/unictype/property-soft-dotted: Likewise.
49761         * modules/unictype/property-space: Likewise.
49762         * modules/unictype/property-terminal-punctuation: Likewise.
49763         * modules/unictype/property-test: Likewise.
49764         * modules/unictype/property-titlecase: Likewise.
49765         * modules/unictype/property-unassigned-code-value: Likewise.
49766         * modules/unictype/property-unified-ideograph: Likewise.
49767         * modules/unictype/property-uppercase: Likewise.
49768         * modules/unictype/property-variation-selector: Likewise.
49769         * modules/unictype/property-white-space: Likewise.
49770         * modules/unictype/property-xid-continue: Likewise.
49771         * modules/unictype/property-xid-start: Likewise.
49772         * modules/unictype/property-zero-width: Likewise.
49773         * modules/unictype/scripts: Likewise.
49774         * modules/unictype/syntax-c-ident: Likewise.
49775         * modules/unictype/syntax-c-whitespace: Likewise.
49776         * modules/unictype/syntax-java-ident: Likewise.
49777         * modules/unictype/syntax-java-whitespace: Likewise.
49778         * modules/unilbrk/u8-possible-linebreaks: Likewise.
49779         * modules/unilbrk/u8-width-linebreaks: Likewise.
49780         * modules/unilbrk/u16-possible-linebreaks: Likewise.
49781         * modules/unilbrk/u16-width-linebreaks: Likewise.
49782         * modules/unilbrk/u32-possible-linebreaks: Likewise.
49783         * modules/unilbrk/u32-width-linebreaks: Likewise.
49784         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
49785         * modules/unilbrk/ulc-width-linebreaks: Likewise.
49786         * modules/uniname/uniname: Likewise.
49787         * modules/uninorm/canonical-decomposition: Likewise.
49788         * modules/uninorm/composition: Likewise.
49789         * modules/uninorm/decomposing-form: Likewise.
49790         * modules/uninorm/decomposition: Likewise.
49791         * modules/uninorm/filter: Likewise.
49792         * modules/uninorm/nfc: Likewise.
49793         * modules/uninorm/nfd: Likewise.
49794         * modules/uninorm/nfkc: Likewise.
49795         * modules/uninorm/nfkd: Likewise.
49796         * modules/uninorm/u8-normalize: Likewise.
49797         * modules/uninorm/u8-normcmp: Likewise.
49798         * modules/uninorm/u8-normcoll: Likewise.
49799         * modules/uninorm/u8-normxfrm: Likewise.
49800         * modules/uninorm/u16-normalize: Likewise.
49801         * modules/uninorm/u16-normcmp: Likewise.
49802         * modules/uninorm/u16-normcoll: Likewise.
49803         * modules/uninorm/u16-normxfrm: Likewise.
49804         * modules/uninorm/u32-normalize: Likewise.
49805         * modules/uninorm/u32-normcmp: Likewise.
49806         * modules/uninorm/u32-normcoll: Likewise.
49807         * modules/uninorm/u32-normxfrm: Likewise.
49808         * modules/unistdio/u8-asnprintf: Likewise.
49809         * modules/unistdio/u8-asprintf: Likewise.
49810         * modules/unistdio/u8-snprintf: Likewise.
49811         * modules/unistdio/u8-sprintf: Likewise.
49812         * modules/unistdio/u8-u8-asnprintf: Likewise.
49813         * modules/unistdio/u8-u8-asprintf: Likewise.
49814         * modules/unistdio/u8-u8-snprintf: Likewise.
49815         * modules/unistdio/u8-u8-sprintf: Likewise.
49816         * modules/unistdio/u8-u8-vasnprintf: Likewise.
49817         * modules/unistdio/u8-u8-vasprintf: Likewise.
49818         * modules/unistdio/u8-u8-vsnprintf: Likewise.
49819         * modules/unistdio/u8-u8-vsprintf: Likewise.
49820         * modules/unistdio/u8-vasnprintf: Likewise.
49821         * modules/unistdio/u8-vasprintf: Likewise.
49822         * modules/unistdio/u8-vsnprintf: Likewise.
49823         * modules/unistdio/u8-vsprintf: Likewise.
49824         * modules/unistdio/u16-asnprintf: Likewise.
49825         * modules/unistdio/u16-asprintf: Likewise.
49826         * modules/unistdio/u16-snprintf: Likewise.
49827         * modules/unistdio/u16-sprintf: Likewise.
49828         * modules/unistdio/u16-u16-asnprintf: Likewise.
49829         * modules/unistdio/u16-u16-asprintf: Likewise.
49830         * modules/unistdio/u16-u16-snprintf: Likewise.
49831         * modules/unistdio/u16-u16-sprintf: Likewise.
49832         * modules/unistdio/u16-u16-vasnprintf: Likewise.
49833         * modules/unistdio/u16-u16-vasprintf: Likewise.
49834         * modules/unistdio/u16-u16-vsnprintf: Likewise.
49835         * modules/unistdio/u16-u16-vsprintf: Likewise.
49836         * modules/unistdio/u16-vasnprintf: Likewise.
49837         * modules/unistdio/u16-vasprintf: Likewise.
49838         * modules/unistdio/u16-vsnprintf: Likewise.
49839         * modules/unistdio/u16-vsprintf: Likewise.
49840         * modules/unistdio/u32-asnprintf: Likewise.
49841         * modules/unistdio/u32-asprintf: Likewise.
49842         * modules/unistdio/u32-snprintf: Likewise.
49843         * modules/unistdio/u32-sprintf: Likewise.
49844         * modules/unistdio/u32-u32-asnprintf: Likewise.
49845         * modules/unistdio/u32-u32-asprintf: Likewise.
49846         * modules/unistdio/u32-u32-snprintf: Likewise.
49847         * modules/unistdio/u32-u32-sprintf: Likewise.
49848         * modules/unistdio/u32-u32-vasnprintf: Likewise.
49849         * modules/unistdio/u32-u32-vasprintf: Likewise.
49850         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49851         * modules/unistdio/u32-u32-vsprintf: Likewise.
49852         * modules/unistdio/u32-vasnprintf: Likewise.
49853         * modules/unistdio/u32-vasprintf: Likewise.
49854         * modules/unistdio/u32-vsnprintf: Likewise.
49855         * modules/unistdio/u32-vsprintf: Likewise.
49856         * modules/unistdio/ulc-asnprintf: Likewise.
49857         * modules/unistdio/ulc-asprintf: Likewise.
49858         * modules/unistdio/ulc-fprintf: Likewise.
49859         * modules/unistdio/ulc-snprintf: Likewise.
49860         * modules/unistdio/ulc-sprintf: Likewise.
49861         * modules/unistdio/ulc-vasnprintf: Likewise.
49862         * modules/unistdio/ulc-vasprintf: Likewise.
49863         * modules/unistdio/ulc-vfprintf: Likewise.
49864         * modules/unistdio/ulc-vsnprintf: Likewise.
49865         * modules/unistdio/ulc-vsprintf: Likewise.
49866         * modules/unistr/u8-check: Likewise.
49867         * modules/unistr/u8-chr: Likewise.
49868         * modules/unistr/u8-cmp: Likewise.
49869         * modules/unistr/u8-cmp2: Likewise.
49870         * modules/unistr/u8-cpy: Likewise.
49871         * modules/unistr/u8-cpy-alloc: Likewise.
49872         * modules/unistr/u8-endswith: Likewise.
49873         * modules/unistr/u8-mblen: Likewise.
49874         * modules/unistr/u8-mbsnlen: Likewise.
49875         * modules/unistr/u8-mbtouc: Likewise.
49876         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49877         * modules/unistr/u8-mbtoucr: Likewise.
49878         * modules/unistr/u8-move: Likewise.
49879         * modules/unistr/u8-next: Likewise.
49880         * modules/unistr/u8-prev: Likewise.
49881         * modules/unistr/u8-set: Likewise.
49882         * modules/unistr/u8-startswith: Likewise.
49883         * modules/unistr/u8-stpcpy: Likewise.
49884         * modules/unistr/u8-stpncpy: Likewise.
49885         * modules/unistr/u8-strcat: Likewise.
49886         * modules/unistr/u8-strchr: Likewise.
49887         * modules/unistr/u8-strcmp: Likewise.
49888         * modules/unistr/u8-strcoll: Likewise.
49889         * modules/unistr/u8-strcpy: Likewise.
49890         * modules/unistr/u8-strcspn: Likewise.
49891         * modules/unistr/u8-strdup: Likewise.
49892         * modules/unistr/u8-strlen: Likewise.
49893         * modules/unistr/u8-strmblen: Likewise.
49894         * modules/unistr/u8-strmbtouc: Likewise.
49895         * modules/unistr/u8-strncat: Likewise.
49896         * modules/unistr/u8-strncmp: Likewise.
49897         * modules/unistr/u8-strncpy: Likewise.
49898         * modules/unistr/u8-strnlen: Likewise.
49899         * modules/unistr/u8-strpbrk: Likewise.
49900         * modules/unistr/u8-strrchr: Likewise.
49901         * modules/unistr/u8-strspn: Likewise.
49902         * modules/unistr/u8-strstr: Likewise.
49903         * modules/unistr/u8-strtok: Likewise.
49904         * modules/unistr/u8-to-u16: Likewise.
49905         * modules/unistr/u8-to-u32: Likewise.
49906         * modules/unistr/u8-uctomb: Likewise.
49907         * modules/unistr/u16-check: Likewise.
49908         * modules/unistr/u16-chr: Likewise.
49909         * modules/unistr/u16-cmp: Likewise.
49910         * modules/unistr/u16-cmp2: Likewise.
49911         * modules/unistr/u16-cpy: Likewise.
49912         * modules/unistr/u16-cpy-alloc: Likewise.
49913         * modules/unistr/u16-endswith: Likewise.
49914         * modules/unistr/u16-mblen: Likewise.
49915         * modules/unistr/u16-mbsnlen: Likewise.
49916         * modules/unistr/u16-mbtouc: Likewise.
49917         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49918         * modules/unistr/u16-mbtoucr: Likewise.
49919         * modules/unistr/u16-move: Likewise.
49920         * modules/unistr/u16-next: Likewise.
49921         * modules/unistr/u16-prev: Likewise.
49922         * modules/unistr/u16-set: Likewise.
49923         * modules/unistr/u16-startswith: Likewise.
49924         * modules/unistr/u16-stpcpy: Likewise.
49925         * modules/unistr/u16-stpncpy: Likewise.
49926         * modules/unistr/u16-strcat: Likewise.
49927         * modules/unistr/u16-strchr: Likewise.
49928         * modules/unistr/u16-strcmp: Likewise.
49929         * modules/unistr/u16-strcoll: Likewise.
49930         * modules/unistr/u16-strcpy: Likewise.
49931         * modules/unistr/u16-strcspn: Likewise.
49932         * modules/unistr/u16-strdup: Likewise.
49933         * modules/unistr/u16-strlen: Likewise.
49934         * modules/unistr/u16-strmblen: Likewise.
49935         * modules/unistr/u16-strmbtouc: Likewise.
49936         * modules/unistr/u16-strncat: Likewise.
49937         * modules/unistr/u16-strncmp: Likewise.
49938         * modules/unistr/u16-strncpy: Likewise.
49939         * modules/unistr/u16-strnlen: Likewise.
49940         * modules/unistr/u16-strpbrk: Likewise.
49941         * modules/unistr/u16-strrchr: Likewise.
49942         * modules/unistr/u16-strspn: Likewise.
49943         * modules/unistr/u16-strstr: Likewise.
49944         * modules/unistr/u16-strtok: Likewise.
49945         * modules/unistr/u16-to-u32: Likewise.
49946         * modules/unistr/u16-to-u8: Likewise.
49947         * modules/unistr/u16-uctomb: Likewise.
49948         * modules/unistr/u32-check: Likewise.
49949         * modules/unistr/u32-chr: Likewise.
49950         * modules/unistr/u32-cmp: Likewise.
49951         * modules/unistr/u32-cmp2: Likewise.
49952         * modules/unistr/u32-cpy: Likewise.
49953         * modules/unistr/u32-cpy-alloc: Likewise.
49954         * modules/unistr/u32-endswith: Likewise.
49955         * modules/unistr/u32-mblen: Likewise.
49956         * modules/unistr/u32-mbsnlen: Likewise.
49957         * modules/unistr/u32-mbtouc: Likewise.
49958         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49959         * modules/unistr/u32-mbtoucr: Likewise.
49960         * modules/unistr/u32-move: Likewise.
49961         * modules/unistr/u32-next: Likewise.
49962         * modules/unistr/u32-prev: Likewise.
49963         * modules/unistr/u32-set: Likewise.
49964         * modules/unistr/u32-startswith: Likewise.
49965         * modules/unistr/u32-stpcpy: Likewise.
49966         * modules/unistr/u32-stpncpy: Likewise.
49967         * modules/unistr/u32-strcat: Likewise.
49968         * modules/unistr/u32-strchr: Likewise.
49969         * modules/unistr/u32-strcmp: Likewise.
49970         * modules/unistr/u32-strcoll: Likewise.
49971         * modules/unistr/u32-strcpy: Likewise.
49972         * modules/unistr/u32-strcspn: Likewise.
49973         * modules/unistr/u32-strdup: Likewise.
49974         * modules/unistr/u32-strlen: Likewise.
49975         * modules/unistr/u32-strmblen: Likewise.
49976         * modules/unistr/u32-strmbtouc: Likewise.
49977         * modules/unistr/u32-strncat: Likewise.
49978         * modules/unistr/u32-strncmp: Likewise.
49979         * modules/unistr/u32-strncpy: Likewise.
49980         * modules/unistr/u32-strnlen: Likewise.
49981         * modules/unistr/u32-strpbrk: Likewise.
49982         * modules/unistr/u32-strrchr: Likewise.
49983         * modules/unistr/u32-strspn: Likewise.
49984         * modules/unistr/u32-strstr: Likewise.
49985         * modules/unistr/u32-strtok: Likewise.
49986         * modules/unistr/u32-to-u16: Likewise.
49987         * modules/unistr/u32-to-u8: Likewise.
49988         * modules/unistr/u32-uctomb: Likewise.
49989         * modules/uniwbrk/u8-wordbreaks: Likewise.
49990         * modules/uniwbrk/u16-wordbreaks: Likewise.
49991         * modules/uniwbrk/u32-wordbreaks: Likewise.
49992         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49993         * modules/uniwbrk/wordbreak-property: Likewise.
49994         * modules/uniwidth/u8-strwidth: Likewise.
49995         * modules/uniwidth/u8-width: Likewise.
49996         * modules/uniwidth/u16-strwidth: Likewise.
49997         * modules/uniwidth/u16-width: Likewise.
49998         * modules/uniwidth/u32-strwidth: Likewise.
49999         * modules/uniwidth/u32-width: Likewise.
50000         * modules/uniwidth/width: Likewise.
50001         * modules/unicase/cased-tests (Makefile.am): Link all test programs
50002         with $(LIBUNISTRING).
50003         * modules/unicase/ignorable-tests: Likewise.
50004         * modules/unicase/locale-language-tests: Likewise.
50005         * modules/unicase/tolower-tests: Likewise.
50006         * modules/unicase/totitle-tests: Likewise.
50007         * modules/unicase/toupper-tests: Likewise.
50008         * modules/unicase/u8-casecmp-tests: Likewise.
50009         * modules/unicase/u8-casecoll-tests: Likewise.
50010         * modules/unicase/u8-casefold-tests: Likewise.
50011         * modules/unicase/u8-is-cased-tests: Likewise.
50012         * modules/unicase/u8-is-casefolded-tests: Likewise.
50013         * modules/unicase/u8-is-lowercase-tests: Likewise.
50014         * modules/unicase/u8-is-titlecase-tests: Likewise.
50015         * modules/unicase/u8-is-uppercase-tests: Likewise.
50016         * modules/unicase/u8-tolower-tests: Likewise.
50017         * modules/unicase/u8-totitle-tests: Likewise.
50018         * modules/unicase/u8-toupper-tests: Likewise.
50019         * modules/unicase/u16-casecmp-tests: Likewise.
50020         * modules/unicase/u16-casecoll-tests: Likewise.
50021         * modules/unicase/u16-casefold-tests: Likewise.
50022         * modules/unicase/u16-is-cased-tests: Likewise.
50023         * modules/unicase/u16-is-casefolded-tests: Likewise.
50024         * modules/unicase/u16-is-lowercase-tests: Likewise.
50025         * modules/unicase/u16-is-titlecase-tests: Likewise.
50026         * modules/unicase/u16-is-uppercase-tests: Likewise.
50027         * modules/unicase/u16-tolower-tests: Likewise.
50028         * modules/unicase/u16-totitle-tests: Likewise.
50029         * modules/unicase/u16-toupper-tests: Likewise.
50030         * modules/unicase/u32-casecmp-tests: Likewise.
50031         * modules/unicase/u32-casecoll-tests: Likewise.
50032         * modules/unicase/u32-casefold-tests: Likewise.
50033         * modules/unicase/u32-is-cased-tests: Likewise.
50034         * modules/unicase/u32-is-casefolded-tests: Likewise.
50035         * modules/unicase/u32-is-lowercase-tests: Likewise.
50036         * modules/unicase/u32-is-titlecase-tests: Likewise.
50037         * modules/unicase/u32-is-uppercase-tests: Likewise.
50038         * modules/unicase/u32-tolower-tests: Likewise.
50039         * modules/unicase/u32-totitle-tests: Likewise.
50040         * modules/unicase/u32-toupper-tests: Likewise.
50041         * modules/unicase/ulc-casecmp-tests: Likewise.
50042         * modules/unicase/ulc-casecoll-tests: Likewise.
50043         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
50044         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
50045         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
50046         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
50047         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
50048         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
50049         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
50050         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
50051         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
50052         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
50053         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
50054         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
50055         * modules/unictype/bidicategory-byname-tests: Likewise.
50056         * modules/unictype/bidicategory-name-tests: Likewise.
50057         * modules/unictype/bidicategory-of-tests: Likewise.
50058         * modules/unictype/bidicategory-test-tests: Likewise.
50059         * modules/unictype/block-list-tests: Likewise.
50060         * modules/unictype/block-of-tests: Likewise.
50061         * modules/unictype/block-test-tests: Likewise.
50062         * modules/unictype/category-C-tests: Likewise.
50063         * modules/unictype/category-Cc-tests: Likewise.
50064         * modules/unictype/category-Cf-tests: Likewise.
50065         * modules/unictype/category-Cn-tests: Likewise.
50066         * modules/unictype/category-Co-tests: Likewise.
50067         * modules/unictype/category-Cs-tests: Likewise.
50068         * modules/unictype/category-L-tests: Likewise.
50069         * modules/unictype/category-Ll-tests: Likewise.
50070         * modules/unictype/category-Lm-tests: Likewise.
50071         * modules/unictype/category-Lo-tests: Likewise.
50072         * modules/unictype/category-Lt-tests: Likewise.
50073         * modules/unictype/category-Lu-tests: Likewise.
50074         * modules/unictype/category-M-tests: Likewise.
50075         * modules/unictype/category-Mc-tests: Likewise.
50076         * modules/unictype/category-Me-tests: Likewise.
50077         * modules/unictype/category-Mn-tests: Likewise.
50078         * modules/unictype/category-N-tests: Likewise.
50079         * modules/unictype/category-Nd-tests: Likewise.
50080         * modules/unictype/category-Nl-tests: Likewise.
50081         * modules/unictype/category-No-tests: Likewise.
50082         * modules/unictype/category-P-tests: Likewise.
50083         * modules/unictype/category-Pc-tests: Likewise.
50084         * modules/unictype/category-Pd-tests: Likewise.
50085         * modules/unictype/category-Pe-tests: Likewise.
50086         * modules/unictype/category-Pf-tests: Likewise.
50087         * modules/unictype/category-Pi-tests: Likewise.
50088         * modules/unictype/category-Po-tests: Likewise.
50089         * modules/unictype/category-Ps-tests: Likewise.
50090         * modules/unictype/category-S-tests: Likewise.
50091         * modules/unictype/category-Sc-tests: Likewise.
50092         * modules/unictype/category-Sk-tests: Likewise.
50093         * modules/unictype/category-Sm-tests: Likewise.
50094         * modules/unictype/category-So-tests: Likewise.
50095         * modules/unictype/category-Z-tests: Likewise.
50096         * modules/unictype/category-Zl-tests: Likewise.
50097         * modules/unictype/category-Zp-tests: Likewise.
50098         * modules/unictype/category-Zs-tests: Likewise.
50099         * modules/unictype/category-and-not-tests: Likewise.
50100         * modules/unictype/category-and-tests: Likewise.
50101         * modules/unictype/category-byname-tests: Likewise.
50102         * modules/unictype/category-name-tests: Likewise.
50103         * modules/unictype/category-none-tests: Likewise.
50104         * modules/unictype/category-of-tests: Likewise.
50105         * modules/unictype/category-or-tests: Likewise.
50106         * modules/unictype/category-test-withtable-tests: Likewise.
50107         * modules/unictype/combining-class-tests: Likewise.
50108         * modules/unictype/ctype-alnum-tests: Likewise.
50109         * modules/unictype/ctype-alpha-tests: Likewise.
50110         * modules/unictype/ctype-blank-tests: Likewise.
50111         * modules/unictype/ctype-cntrl-tests: Likewise.
50112         * modules/unictype/ctype-digit-tests: Likewise.
50113         * modules/unictype/ctype-graph-tests: Likewise.
50114         * modules/unictype/ctype-lower-tests: Likewise.
50115         * modules/unictype/ctype-print-tests: Likewise.
50116         * modules/unictype/ctype-punct-tests: Likewise.
50117         * modules/unictype/ctype-space-tests: Likewise.
50118         * modules/unictype/ctype-upper-tests: Likewise.
50119         * modules/unictype/ctype-xdigit-tests: Likewise.
50120         * modules/unictype/decimal-digit-tests: Likewise.
50121         * modules/unictype/digit-tests: Likewise.
50122         * modules/unictype/mirror-tests: Likewise.
50123         * modules/unictype/numeric-tests: Likewise.
50124         * modules/unictype/property-alphabetic-tests: Likewise.
50125         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
50126         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
50127         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
50128         * modules/unictype/property-bidi-block-separator-tests: Likewise.
50129         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
50130         * modules/unictype/property-bidi-common-separator-tests: Likewise.
50131         * modules/unictype/property-bidi-control-tests: Likewise.
50132         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
50133         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
50134         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
50135         * modules/unictype/property-bidi-european-digit-tests: Likewise.
50136         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
50137         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
50138         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
50139         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
50140         * modules/unictype/property-bidi-pdf-tests: Likewise.
50141         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
50142         * modules/unictype/property-bidi-whitespace-tests: Likewise.
50143         * modules/unictype/property-byname-tests: Likewise.
50144         * modules/unictype/property-combining-tests: Likewise.
50145         * modules/unictype/property-composite-tests: Likewise.
50146         * modules/unictype/property-currency-symbol-tests: Likewise.
50147         * modules/unictype/property-dash-tests: Likewise.
50148         * modules/unictype/property-decimal-digit-tests: Likewise.
50149         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
50150         * modules/unictype/property-deprecated-tests: Likewise.
50151         * modules/unictype/property-diacritic-tests: Likewise.
50152         * modules/unictype/property-extender-tests: Likewise.
50153         * modules/unictype/property-format-control-tests: Likewise.
50154         * modules/unictype/property-grapheme-base-tests: Likewise.
50155         * modules/unictype/property-grapheme-extend-tests: Likewise.
50156         * modules/unictype/property-grapheme-link-tests: Likewise.
50157         * modules/unictype/property-hex-digit-tests: Likewise.
50158         * modules/unictype/property-hyphen-tests: Likewise.
50159         * modules/unictype/property-id-continue-tests: Likewise.
50160         * modules/unictype/property-id-start-tests: Likewise.
50161         * modules/unictype/property-ideographic-tests: Likewise.
50162         * modules/unictype/property-ids-binary-operator-tests: Likewise.
50163         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
50164         * modules/unictype/property-ignorable-control-tests: Likewise.
50165         * modules/unictype/property-iso-control-tests: Likewise.
50166         * modules/unictype/property-join-control-tests: Likewise.
50167         * modules/unictype/property-left-of-pair-tests: Likewise.
50168         * modules/unictype/property-line-separator-tests: Likewise.
50169         * modules/unictype/property-logical-order-exception-tests: Likewise.
50170         * modules/unictype/property-lowercase-tests: Likewise.
50171         * modules/unictype/property-math-tests: Likewise.
50172         * modules/unictype/property-non-break-tests: Likewise.
50173         * modules/unictype/property-not-a-character-tests: Likewise.
50174         * modules/unictype/property-numeric-tests: Likewise.
50175         * modules/unictype/property-other-alphabetic-tests: Likewise.
50176         * modules/unictype/property-other-default-ignorable-code-point-tests:
50177         Likewise.
50178         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
50179         * modules/unictype/property-other-id-continue-tests: Likewise.
50180         * modules/unictype/property-other-id-start-tests: Likewise.
50181         * modules/unictype/property-other-lowercase-tests: Likewise.
50182         * modules/unictype/property-other-math-tests: Likewise.
50183         * modules/unictype/property-other-uppercase-tests: Likewise.
50184         * modules/unictype/property-paired-punctuation-tests: Likewise.
50185         * modules/unictype/property-paragraph-separator-tests: Likewise.
50186         * modules/unictype/property-pattern-syntax-tests: Likewise.
50187         * modules/unictype/property-pattern-white-space-tests: Likewise.
50188         * modules/unictype/property-private-use-tests: Likewise.
50189         * modules/unictype/property-punctuation-tests: Likewise.
50190         * modules/unictype/property-quotation-mark-tests: Likewise.
50191         * modules/unictype/property-radical-tests: Likewise.
50192         * modules/unictype/property-sentence-terminal-tests: Likewise.
50193         * modules/unictype/property-soft-dotted-tests: Likewise.
50194         * modules/unictype/property-space-tests: Likewise.
50195         * modules/unictype/property-terminal-punctuation-tests: Likewise.
50196         * modules/unictype/property-test-tests: Likewise.
50197         * modules/unictype/property-titlecase-tests: Likewise.
50198         * modules/unictype/property-unassigned-code-value-tests: Likewise.
50199         * modules/unictype/property-unified-ideograph-tests: Likewise.
50200         * modules/unictype/property-uppercase-tests: Likewise.
50201         * modules/unictype/property-variation-selector-tests: Likewise.
50202         * modules/unictype/property-white-space-tests: Likewise.
50203         * modules/unictype/property-xid-continue-tests: Likewise.
50204         * modules/unictype/property-xid-start-tests: Likewise.
50205         * modules/unictype/property-zero-width-tests: Likewise.
50206         * modules/unictype/scripts-tests: Likewise.
50207         * modules/unictype/syntax-c-ident-tests: Likewise.
50208         * modules/unictype/syntax-c-whitespace-tests: Likewise.
50209         * modules/unictype/syntax-java-ident-tests: Likewise.
50210         * modules/unictype/syntax-java-whitespace-tests: Likewise.
50211         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
50212         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
50213         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
50214         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
50215         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
50216         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
50217         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
50218         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
50219         * modules/uniname/uniname-tests: Likewise.
50220         * modules/uninorm/canonical-decomposition-tests: Likewise.
50221         * modules/uninorm/compat-decomposition-tests: Likewise.
50222         * modules/uninorm/composition-tests: Likewise.
50223         * modules/uninorm/decomposing-form-tests: Likewise.
50224         * modules/uninorm/decomposition-tests: Likewise.
50225         * modules/uninorm/filter-tests: Likewise.
50226         * modules/uninorm/nfc-tests: Likewise.
50227         * modules/uninorm/nfd-tests: Likewise.
50228         * modules/uninorm/nfkc-tests: Likewise.
50229         * modules/uninorm/nfkd-tests: Likewise.
50230         * modules/uninorm/u8-normcmp-tests: Likewise.
50231         * modules/uninorm/u8-normcoll-tests: Likewise.
50232         * modules/uninorm/u16-normcmp-tests: Likewise.
50233         * modules/uninorm/u16-normcoll-tests: Likewise.
50234         * modules/uninorm/u32-normcmp-tests: Likewise.
50235         * modules/uninorm/u32-normcoll-tests: Likewise.
50236         * modules/unistdio/u8-asnprintf-tests: Likewise.
50237         * modules/unistdio/u8-vasnprintf-tests: Likewise.
50238         * modules/unistdio/u8-vasprintf-tests: Likewise.
50239         * modules/unistdio/u8-vsnprintf-tests: Likewise.
50240         * modules/unistdio/u8-vsprintf-tests: Likewise.
50241         * modules/unistdio/u16-asnprintf-tests: Likewise.
50242         * modules/unistdio/u16-vasnprintf-tests: Likewise.
50243         * modules/unistdio/u16-vasprintf-tests: Likewise.
50244         * modules/unistdio/u16-vsnprintf-tests: Likewise.
50245         * modules/unistdio/u16-vsprintf-tests: Likewise.
50246         * modules/unistdio/u32-asnprintf-tests: Likewise.
50247         * modules/unistdio/u32-vasnprintf-tests: Likewise.
50248         * modules/unistdio/u32-vasprintf-tests: Likewise.
50249         * modules/unistdio/u32-vsnprintf-tests: Likewise.
50250         * modules/unistdio/u32-vsprintf-tests: Likewise.
50251         * modules/unistdio/ulc-asnprintf-tests: Likewise.
50252         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
50253         * modules/unistdio/ulc-vasprintf-tests: Likewise.
50254         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
50255         * modules/unistdio/ulc-vsprintf-tests: Likewise.
50256         * modules/unistr/u8-check-tests: Likewise.
50257         * modules/unistr/u8-chr-tests: Likewise.
50258         * modules/unistr/u8-cmp-tests: Likewise.
50259         * modules/unistr/u8-cmp2-tests: Likewise.
50260         * modules/unistr/u8-cpy-alloc-tests: Likewise.
50261         * modules/unistr/u8-cpy-tests: Likewise.
50262         * modules/unistr/u8-mblen-tests: Likewise.
50263         * modules/unistr/u8-mbsnlen-tests: Likewise.
50264         * modules/unistr/u8-mbtouc-tests: Likewise.
50265         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
50266         * modules/unistr/u8-mbtoucr-tests: Likewise.
50267         * modules/unistr/u8-move-tests: Likewise.
50268         * modules/unistr/u8-next-tests: Likewise.
50269         * modules/unistr/u8-prev-tests: Likewise.
50270         * modules/unistr/u8-set-tests: Likewise.
50271         * modules/unistr/u8-stpcpy-tests: Likewise.
50272         * modules/unistr/u8-stpncpy-tests: Likewise.
50273         * modules/unistr/u8-strcat-tests: Likewise.
50274         * modules/unistr/u8-strcmp-tests: Likewise.
50275         * modules/unistr/u8-strcoll-tests: Likewise.
50276         * modules/unistr/u8-strcpy-tests: Likewise.
50277         * modules/unistr/u8-strdup-tests: Likewise.
50278         * modules/unistr/u8-strlen-tests: Likewise.
50279         * modules/unistr/u8-strmblen-tests: Likewise.
50280         * modules/unistr/u8-strmbtouc-tests: Likewise.
50281         * modules/unistr/u8-strncat-tests: Likewise.
50282         * modules/unistr/u8-strncmp-tests: Likewise.
50283         * modules/unistr/u8-strncpy-tests: Likewise.
50284         * modules/unistr/u8-strnlen-tests: Likewise.
50285         * modules/unistr/u8-to-u16-tests: Likewise.
50286         * modules/unistr/u8-to-u32-tests: Likewise.
50287         * modules/unistr/u8-uctomb-tests: Likewise.
50288         * modules/unistr/u16-check-tests: Likewise.
50289         * modules/unistr/u16-chr-tests: Likewise.
50290         * modules/unistr/u16-cmp-tests: Likewise.
50291         * modules/unistr/u16-cmp2-tests: Likewise.
50292         * modules/unistr/u16-cpy-alloc-tests: Likewise.
50293         * modules/unistr/u16-cpy-tests: Likewise.
50294         * modules/unistr/u16-mblen-tests: Likewise.
50295         * modules/unistr/u16-mbsnlen-tests: Likewise.
50296         * modules/unistr/u16-mbtouc-tests: Likewise.
50297         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
50298         * modules/unistr/u16-mbtoucr-tests: Likewise.
50299         * modules/unistr/u16-move-tests: Likewise.
50300         * modules/unistr/u16-next-tests: Likewise.
50301         * modules/unistr/u16-prev-tests: Likewise.
50302         * modules/unistr/u16-set-tests: Likewise.
50303         * modules/unistr/u16-stpcpy-tests: Likewise.
50304         * modules/unistr/u16-stpncpy-tests: Likewise.
50305         * modules/unistr/u16-strcat-tests: Likewise.
50306         * modules/unistr/u16-strcmp-tests: Likewise.
50307         * modules/unistr/u16-strcoll-tests: Likewise.
50308         * modules/unistr/u16-strcpy-tests: Likewise.
50309         * modules/unistr/u16-strdup-tests: Likewise.
50310         * modules/unistr/u16-strlen-tests: Likewise.
50311         * modules/unistr/u16-strmblen-tests: Likewise.
50312         * modules/unistr/u16-strmbtouc-tests: Likewise.
50313         * modules/unistr/u16-strncat-tests: Likewise.
50314         * modules/unistr/u16-strncmp-tests: Likewise.
50315         * modules/unistr/u16-strncpy-tests: Likewise.
50316         * modules/unistr/u16-strnlen-tests: Likewise.
50317         * modules/unistr/u16-to-u32-tests: Likewise.
50318         * modules/unistr/u16-to-u8-tests: Likewise.
50319         * modules/unistr/u16-uctomb-tests: Likewise.
50320         * modules/unistr/u32-check-tests: Likewise.
50321         * modules/unistr/u32-chr-tests: Likewise.
50322         * modules/unistr/u32-cmp-tests: Likewise.
50323         * modules/unistr/u32-cmp2-tests: Likewise.
50324         * modules/unistr/u32-cpy-alloc-tests: Likewise.
50325         * modules/unistr/u32-cpy-tests: Likewise.
50326         * modules/unistr/u32-mblen-tests: Likewise.
50327         * modules/unistr/u32-mbsnlen-tests: Likewise.
50328         * modules/unistr/u32-mbtouc-tests: Likewise.
50329         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
50330         * modules/unistr/u32-mbtoucr-tests: Likewise.
50331         * modules/unistr/u32-move-tests: Likewise.
50332         * modules/unistr/u32-next-tests: Likewise.
50333         * modules/unistr/u32-prev-tests: Likewise.
50334         * modules/unistr/u32-set-tests: Likewise.
50335         * modules/unistr/u32-stpcpy-tests: Likewise.
50336         * modules/unistr/u32-stpncpy-tests: Likewise.
50337         * modules/unistr/u32-strcat-tests: Likewise.
50338         * modules/unistr/u32-strcmp-tests: Likewise.
50339         * modules/unistr/u32-strcoll-tests: Likewise.
50340         * modules/unistr/u32-strcpy-tests: Likewise.
50341         * modules/unistr/u32-strdup-tests: Likewise.
50342         * modules/unistr/u32-strlen-tests: Likewise.
50343         * modules/unistr/u32-strmblen-tests: Likewise.
50344         * modules/unistr/u32-strmbtouc-tests: Likewise.
50345         * modules/unistr/u32-strncat-tests: Likewise.
50346         * modules/unistr/u32-strncmp-tests: Likewise.
50347         * modules/unistr/u32-strncpy-tests: Likewise.
50348         * modules/unistr/u32-strnlen-tests: Likewise.
50349         * modules/unistr/u32-to-u16-tests: Likewise.
50350         * modules/unistr/u32-to-u8-tests: Likewise.
50351         * modules/unistr/u32-uctomb-tests: Likewise.
50352         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
50353         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
50354         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
50355         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
50356         * modules/uniwidth/u8-strwidth-tests: Likewise.
50357         * modules/uniwidth/u8-width-tests: Likewise.
50358         * modules/uniwidth/u16-strwidth-tests: Likewise.
50359         * modules/uniwidth/u16-width-tests: Likewise.
50360         * modules/uniwidth/u32-strwidth-tests: Likewise.
50361         * modules/uniwidth/u32-width-tests: Likewise.
50362         * modules/uniwidth/width-tests: Likewise.
50364 2010-05-18  Richard Jones  <rjones@redhat.com>
50366         doc: users.txt: list hivex
50367         * users.txt: Add hivex.
50369 2010-05-18  Richard Jones  <rjones@redhat.com>
50371         doc: users.txt: list febootstrap
50372         * users.txt: Add febootstrap.
50374 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
50376         bootstrap: fix an error when gnulib is not used as a git submodule
50377         * build-aux/bootstrap (gnulib_path): If its length is zero then
50378         assign "gnulib" to it.
50379         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
50381 2010-05-16  Bruno Haible  <bruno@clisp.org>
50383         Avoid autoconf warnings about AM_ICONV.
50384         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
50385         2.64.
50387 2010-05-16  Bruno Haible  <bruno@clisp.org>
50389         absolute-header: Make the macro usable in more situations.
50390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
50391         from gl_ABSOLUTE_HEADER.
50392         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
50394 2010-05-16  James Youngman  <jay@gnu.org>
50396         doc: update users.txt
50397         * users.txt: Add CSSC.
50399 2010-05-16  Jim Meyering  <meyering@redhat.com>
50401         init.sh: fix an error in the previous change; add more comments
50402         * tests/init.sh: Compare exit code in loop against 9, not 2.
50403         Patch by Bruno Haible.
50404         Make the two tests more similar by adding an empty "then" clause.
50405         Add comments.
50407         init.sh: avoid unnecessary shell re-exec
50408         * tests/init.sh: Improve the re-exec-required check to first test the
50409         current shell.  If it passes the test, do not search for a shell that
50410         does pass, and do not re-exec.  This test is particularly contorted to
50411         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
50412         of $(...) evokes a syntax error and causes immediate shell exit with
50413         status 2.  Bruno Haible reported that the re-exec made it impossible
50414         to single-step through any init.sh-using script.
50416 2010-05-16  Bruno Haible  <bruno@clisp.org>
50418         Fix collision between gnulib's and libintl's printf replacements.
50419         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
50420         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
50421         (printf): When using GNU C, map the __printf__ function to rpl_printf
50422         via __asm__. When not using GNU C, define rpl_printf instead of
50423         __printf__.
50424         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
50425         commit.
50426         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
50427         commit.
50428         * m4/asm-underscore.m4: New file.
50429         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
50430         * modules/stdio (Files): Add m4/asm-underscore.m4.
50431         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
50432         Reported by Ben Pfaff.
50434 2010-05-16  Bruno Haible  <bruno@clisp.org>
50436         verify: Avoid skipping the test on openSUSE 11.0.
50437         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
50439 2010-05-13  Bruno Haible  <bruno@clisp.org>
50441         Avoid useless warnings from G++.
50442         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
50443         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
50444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50446 2010-05-11  Jim Meyering  <meyering@redhat.com>
50448         maint.mk: tweak preceding change
50449         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
50450         regexps tighter by anchoring at EOL, and make the new group "shy"
50451         for slightly decreased overhead.
50453 2010-05-11  Eric Blake  <eblake@redhat.com>
50455         maint.mk: gnulib doesn't guarantee NSIG
50456         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
50458 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50460         test-pwrite.c: Remove unused variable declaration.
50461         * tests/test-pwrite.c (main): Remove read_buf declaration.
50463         Remove useless test-pwrite.sh file.
50464         * tests/test-pwrite.sh: Delete file.
50465         * modules/pwrite-tests: Remove references.
50466         Reported by Bruno Haible.
50468 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50470         init.sh: fix a typo
50471         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
50473 2010-05-10  Jim Meyering  <meyering@redhat.com>
50475         maint.mk: avoid using a temporary file in the always-defined-macros check
50476         * top/maint.mk (.re-defmac): Remove rule.
50477         (gl_trap_): Remove definition.
50478         (sc_prohibit_always-defined_macros): Rewrite not to create and
50479         depend on a temporary file.  Instead, depend on GNU grep's ability
50480         to read a list of regular expressions from stdin when given "-f -".
50482 2010-05-09  Bruno Haible  <bruno@clisp.org>
50484         Update to GNU gettext 0.18, part 1.
50485         * m4/gettext.m4: Update to GNU gettext 0.18.
50486         * m4/intl.m4: Likewise.
50487         * m4/po.m4: Likewise.
50488         * modules/gettext (Files): Add m4/fcntl-o.m4.
50489         (configure.ac): Require gettext infrastructure from version 0.18.
50491 2010-05-09  Jim Meyering  <meyering@redhat.com>
50493         init.sh: enable MALLOC_PERTURB_
50494         * tests/init.sh: Enable glibc's malloc-perturbing option.
50496         maint.mk: improve sc_cross_check_PATH_usage_in_tests
50497         With my recent change in init.sh from the two-line form:
50498             -#   : ${srcdir=.}
50499             -#   . "$srcdir/init.sh"; path_prepend_ .
50500             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
50501         I noticed that using the one-line form would cause this test
50502         to fail with a false-positive, or to stop working altogether,
50503         depending on whether help-version changed or all the tests did.
50504         * top/maint.mk (_hv_regex): Remove this definition.
50505         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
50506         (_hv_regex_strong): Use a stronger regex to check for conformance.
50507         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
50508         Give a separate diagnostic for lack of conforming use.
50510         maint.mk: prohibit definition of symbols defined by gnulib
50511         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
50512         definition of symbols defined by gnulib.
50514 2010-05-09  Bruno Haible  <bruno@clisp.org>
50516         acl: Avoid test failure on Cygwin-hosted mingw.
50517         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
50519 2010-05-09  Bruno Haible  <bruno@clisp.org>
50521         error: Use system's fcntl function.
50522         * lib/error.c (fcntl): Undefine.
50524 2010-05-09  Jim Meyering  <meyering@redhat.com>
50526         verify: adjust formatting to be more consistent
50527         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
50528         argument-list '('s, and after one comma.
50530 2010-05-09  Bruno Haible  <bruno@clisp.org>
50532         error: More reliable output on mingw.
50533         * lib/error.c: Include <windows.h>.
50534         (is_open): New function.
50535         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
50536         defined.
50538 2010-05-09  Bruno Haible  <bruno@clisp.org>
50540         vasnprintf: Fix syntax errors in libintl build on mingw.
50541         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
50542         pad_ourselves and prec_ourselves after use.
50544 2010-05-08  Bruno Haible  <bruno@clisp.org>
50546         * lib/config.charset: Update comments for Cygwin 1.7.
50547         * lib/localcharset.c: Likewise.
50549 2010-05-07  Jim Meyering  <meyering@redhat.com>
50551         init.sh: improve comments
50552         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
50553         . "${srcdir=.}/init.sh"; path_prepend_ .
50554         Add a note about path_prepend_ and the alternative of using
50555         TESTS_ENVIRONMENT.
50557 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
50559         exclude: Unescape hashed patterns in wildcard mode.
50560         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
50561         to the hash list.
50562         * tests/test-exclude8.sh: New test case.
50563         * modules/exclude-tests: Add new test.
50565 2010-05-05  Eric Blake  <eblake@redhat.com>
50567         verify: automate tests
50568         * modules/verify-tests: New module.
50569         * tests/test-verify.sh: New file.
50570         * tests/test-verify.c: Guard each negative test with a unique id.
50571         Also avoid warning about unused left hand of comma expressions.
50573 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50575         Further improvements to verify.h, suggested by Eric Blake.
50576         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
50577         the GL_* versions, to avoid collision with OpenGL.
50578         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
50579         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
50580         than testing merely whether it's defined.
50582         Modify verify.h to pacify gcc -Wredundant_decls.
50583         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
50584         These use the prefix "GL_" since they're likely to be useful elsewhere.
50585         We may need to break them out into a different .h file.
50586         (__COUNTER__): Define to 0 if the compiler doesn't support it.
50587         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
50588         of verify_function__.
50590 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50592         Tests for module pwrite.
50593         * modules/pwrite-tests: New file.
50594         * tests/test-pwrite.sh: New file.
50595         * tests/test-pwrite.c: New file.
50597         New module pwrite.
50598         * lib/unistd.in.h (pwrite): New declaration.
50599         * lib/pwrite.c: New file, from glibc with modifications.
50600         * m4/pwrite.m4: New file.
50601         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
50602         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
50603         REPLACE_PWRITE.
50604         * modules/pwrite: New file.
50605         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
50606         REPLACE_PWRITE.
50607         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
50608         * doc/posix-functions/pwrite.texi: Mention the new module.
50610 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50612         pread: Update documentation.
50613         * doc/posix-functions/pread.texi: Mention the 'pread' module.
50615 2010-05-04  Eric Blake  <eblake@redhat.com>
50617         docs: update cygwin progress
50618         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
50619         this bug.
50620         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
50621         Added in cygwin 1.7.2.
50622         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
50623         Likewise.
50624         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
50625         Likewise.
50626         * doc/glibc-functions/dup3.texi (dup3): Likewise.
50627         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50628         * doc/glibc-functions/accept4.texi (accept4): Likewise.
50629         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
50630         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
50631         Mention nproc module.
50632         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
50633         bug in cygwin 1.7.5 addition.
50634         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
50635         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
50636         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
50637         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
50638         1.7.5.
50639         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
50640         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
50641         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
50642         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
50643         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
50644         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
50645         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
50646         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
50647         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
50648         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
50649         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
50650         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
50651         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
50652         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
50653         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
50654         Likewise.
50655         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
50656         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
50657         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
50658         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
50659         Likewise.
50660         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
50661         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
50662         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
50663         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
50664         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
50665         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
50666         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
50667         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
50668         Likewise.
50669         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
50670         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
50671         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
50672         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
50673         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
50674         Likewise.
50675         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
50676         Likewise.
50677         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
50678         Likewise.
50679         * doc/glibc-functions/xdrrec_endofrecord.texi
50680         (xdrrec_endofrecord): Likewise.
50681         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
50682         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
50683         Likewise.
50684         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
50685         Likewise.
50687 2010-05-04  Jim Meyering  <meyering@redhat.com>
50689         gendocs.sh: make its "-s FILE" option more useful
50690         * build-aux/gendocs.sh: When honoring the -s FILE option, update
50691         $PACKAGE to reflect the probably-different basename of "FILE".
50693 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50695         bootstrap: don't ignore download_po_files failure
50696         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
50697         failure.
50699 2010-05-03  Jim Meyering  <meyering@redhat.com>
50701         maint.mk: allow to pass options to gendocs.sh
50702         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
50703         (gendocs_options_): New overridable variable.
50705         gnu-web-doc-update: don't ignore configure or build failure
50706         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
50708         announce-gen: backslash-escape '@'s in --help output
50709         * build-aux/announce-gen: Fix syntax errors.
50711         maint.mk, announce-gen: allow project-specific announcement mail headers
50712         * top/maint.mk (translation_project_): Define default.
50713         (announcement_Cc_, announcement_mail_headers_): Likewise.
50714         (announcement): Invoke announce-gen with new --mail-headers option.
50715         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
50717         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
50718         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
50719         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
50720         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
50721         line in the "err2" output file when running "make check" in verbose
50722         mode (i.e., with set -x enabled).
50724 2010-05-03  Bruno Haible  <bruno@clisp.org>
50726         wctob: Fix for weird platforms.
50727         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
50728         argument value.
50730 2010-05-03  Jim Meyering  <meyering@redhat.com>
50732         maint.mk: prohibit unwarranted use of <strings.h>
50733         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
50734         strings.h in a file that does not also use strcasecmp, strncasecmp,
50735         ffs or ffsll.
50737         maint.mk: remove obsolete comments
50738         * top/maint.mk: Remove stale, commented-out rules.
50740 2010-05-02  Bruno Haible  <bruno@clisp.org>
50742         wcwidth: Declare also when it's aliased.
50743         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
50744         macro.
50746 2010-05-02  Bruno Haible  <bruno@clisp.org>
50748         Fix regression from 2010-04-25.
50749         * gnulib-tool (func_modules_transitive_closure): Check the status of
50750         all modules, not only of the tests that are of the form foo-tests where
50751         foo is a module.
50753 2010-05-02  Bruno Haible  <bruno@clisp.org>
50755         wctob: Work around nasty Cygwin 1.7.2 bug.
50756         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
50757         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
50759 2010-05-01  Bruno Haible  <bruno@clisp.org>
50761         fpurge: Sharper test.
50762         * tests/test-fpurge.c (main): Add one more ftell check.
50763         * modules/fpurge-tests (Depends-on): Add ftell.
50764         Suggested by Eric Blake.
50766 2010-05-01  Bruno Haible  <bruno@clisp.org>
50768         ftello: Another test.
50769         * tests/test-ftello3.c: New file.
50770         * modules/ftello-tests (Files): Add it.
50771         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50772         MOSTLYCLEANFILES.
50774         ftell: Another test.
50775         * tests/test-ftell3.c: New file.
50776         * modules/ftell-tests (Files): Add it.
50777         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50778         MOSTLYCLEANFILES.
50780 2010-05-01  Bruno Haible  <bruno@clisp.org>
50782         ftell, ftello: Work around Solaris bug.
50783         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
50784         * lib/ftello.c: Include stdio-impl.h.
50785         (ftello): On Solaris, when _IOWRT is set, compute the result without
50786         looking at _IOREAD.
50787         * modules/ftello (Files): Add lib/stdio-impl.h.
50788         * doc/posix-functions/ftell.texi: Mention Solaris bug.
50789         * doc/posix-functions/ftello.texi: Likewise.
50790         Reported by Eric Blake.
50792 2010-05-01  Bruno Haible  <bruno@clisp.org>
50794         freading: Adapt to special meaning of _IOREAD flag on Solaris.
50795         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
50796         the _IOWRT flag is also set.
50798 2010-05-01  Bruno Haible  <bruno@clisp.org>
50800         Fix doc about a HP-UX stdio bug.
50801         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
50802         * doc/posix-functions/ftello.texi: Likewise.
50804 2010-05-01  Bruno Haible  <bruno@clisp.org>
50806         lseek test: Fix failure on Solaris.
50807         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
50808         output.
50810 2010-04-30  Jim Meyering  <meyering@redhat.com>
50812         bootstrap: don't ignore failure to generate po*/Makevars
50813         * build-aux/bootstrap (with_gettext): Don't ignore failure
50814         to create po/Makevars or runtime-po/Makevars.
50816 2010-04-29  Eric Blake  <eblake@redhat.com>
50818         headers: relax license to LGPLv2+
50819         * modules/fcntl-h (License): Relax license.
50820         * modules/getopt-posix (License): Likewise.
50821         * modules/locale (License): Likewise.
50822         * modules/math (License): Likewise.
50823         * modules/pty (License): Likewise.
50824         * modules/sched (License): Likewise.
50825         * modules/search (License): Likewise.
50826         * modules/spawn (License): Likewise.
50827         * modules/stdarg (License): Likewise.
50828         * modules/sysexits (License): Likewise.
50830 2010-04-29  Jim Meyering  <meyering@redhat.com>
50832         inttypes: relax license to LGPLv2+
50833         * modules/inttypes (License): Relax license.
50835 2010-04-29  Simon Josefsson  <simon@josefsson.org>
50837         * top/maint.mk (indent): Run twice to produce idempotent results.
50839 2010-04-28  Bruno Haible  <bruno@clisp.org>
50841         getdate: Generate getdate.c in the source directory.
50842         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
50843         MOSTLYCLEANFILES.
50844         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
50846 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
50848         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
50849         is not declared as a const *; avoid warnings in that case.
50851 2010-04-28  Eric Blake  <eblake@redhat.com>
50853         canonicalize-lgpl: avoid compiler warning
50854         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50855         declaration' / 'extraneous semicolon' warning with some compilers.
50856         Reported by Andreas Gruenbacher.
50858 2010-04-28  Jim Meyering  <meyering@redhat.com>
50860         init.sh: ensure a more reliable exit status when exiting via trap
50861         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50862         Inspired by patches from Dmitry V. Levin.
50863         Also trap on signal 3 (SIGQUIT).
50865 2010-04-27  Bruno Haible  <bruno@clisp.org>
50867         Update doc about utimes().
50868         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50869         'utimens' module.
50870         Reported by Andreas Gruenbacher <agruen@suse.de>.
50872 2010-04-27  Eric Blake  <eblake@redhat.com>
50874         full-read, full-write: relax license
50875         * modules/full-read (License): Drop to LGPLv2+.
50876         * modules/full-write (License): Likewise.
50877         * modules/safe-read (License): Likewise.
50878         * modules/safe-write (License): Likewise.
50880         pthread: mention library for linking
50881         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50883 2010-04-27  Jim Meyering  <meyering@redhat.com>
50885         maint.mk: fix a bug introduced in last change
50886         * top/maint.mk (gl_assured_headers_): Now that all names are on
50887         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50888         is not anchored to end of word, it should be adequate.
50890         maint.mk: avoid side-effect in latest syntax-check
50891         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50892         to run commands via $(shell...), and hence to incur cost only when
50893         the new rule is actually run.
50895         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50896         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50897         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50898         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50899         (gl_assured_headers_, az_, AZ_): Define.
50900         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50902 2010-04-26  Jim Meyering  <jim@meyering.net>
50903             Bruno Haible  <bruno@clisp.org>
50905         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50907         Prompted by an exchange with Gilles Espinasse.
50909 2010-04-26  Jim Meyering  <meyering@redhat.com>
50911         git-version-gen: aesthetic tweak
50912         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50913         so that the command remains on a single line.
50915 2010-04-26  Eric Blake  <eblake@redhat.com>
50917         git-version-gen: allow use on EBCDIC hosts
50918         * build-aux/git-version-gen (dirty): Use literal rather than tying
50919         ourselves to ascii.
50920         Reported by Steve Goetze.
50922 2010-04-25  Bruno Haible  <bruno@clisp.org>
50924         netdb: Add support for GNULIB_POSIXCHECK.
50925         * lib/netdb.in.h: Include warn-on-use.h.
50926         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50927         functions are used when GNULIB_POSIXCHECK is defined and the
50928         getaddrinfo module is not in use.
50929         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50930         freeaddrinfo, gai_strerror, getnameinfo are declared.
50931         * modules/netdb (Depends-on): Add warn-on-use.
50932         (Makefile.am): Include warn-on-use.h in netdb.h.
50934 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50936         build: avoid "make check" failure without .git/ directory
50937         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50938         there is no .git/ directory.
50940 2010-04-25  Bruno Haible  <bruno@clisp.org>
50942         ptsname: Fix misuse of ttyname_r.
50943         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50944         of errno.
50946 2010-04-25  Bruno Haible  <bruno@clisp.org>
50948         ttyname_r: Make it work on Solaris 10.
50949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50950         if the system function has the POSIX declaration. Test whether the
50951         function fails if the buffer is less than 128 bytes large.
50952         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50953         system's ttyname_r function. Provide a reasonably large buffer.
50954         * modules/ttyname_r (Depends-on): Add extensions.
50955         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50957 2010-04-25  Bruno Haible  <bruno@clisp.org>
50959         Use the 'extensions' module for some more functions on Solaris.
50960         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50961         module.
50962         * doc/posix-functions/ctime_r.texi: Likewise.
50963         * doc/posix-functions/getgrgid_r.texi: Likewise.
50964         * doc/posix-functions/getgrnam_r.texi: Likewise.
50965         * doc/posix-functions/getpwnam_r.texi: Likewise.
50966         * doc/posix-functions/getpwuid_r.texi: Likewise.
50967         * doc/posix-functions/readdir_r.texi: Likewise.
50968         * doc/posix-functions/sigwait.texi: Likewise.
50969         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50970         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50972 2010-04-25  Bruno Haible  <bruno@clisp.org>
50974         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50975         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50976         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50977         * lib/ttyname_r.c: Include <limits.h>.
50978         (ttyname_r): Define using the system's ttyname_r function, if it exists
50979         and not on Solaris.
50980         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50981         set.
50982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50983         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50984         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50985         Reported by Simon Josefsson.
50987 2010-04-25  Bruno Haible  <bruno@clisp.org>
50989         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50990         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50991         * doc/posix-functions/ctime_r.texi: Likewise.
50992         * doc/posix-functions/getgrgid_r.texi: Likewise.
50993         * doc/posix-functions/getgrnam_r.texi: Likewise.
50994         * doc/posix-functions/getlogin_r.texi: Likewise.
50995         * doc/posix-functions/getpwnam_r.texi: Likewise.
50996         * doc/posix-functions/getpwuid_r.texi: Likewise.
50997         * doc/posix-functions/readdir_r.texi: Likewise.
50998         * doc/posix-functions/sigwait.texi: Likewise.
50999         * doc/posix-functions/ttyname_r.texi: Likewise.
51000         Reported by Simon Josefsson.
51002 2010-04-25  Bruno Haible  <bruno@clisp.org>
51004         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
51005         * gnulib-tool (func_usage): Document that --with-*-tests options apply
51006         also to --create-testdir.
51007         (func_acceptable): Don't consider the status of *-tests modules here.
51008         (func_modules_transitive_closure): Consider it here, before including a
51009         test module.
51010         (func_import, func_create_testdir): Set inc_all_direct_tests,
51011         inc_all_indirect_tests.
51012         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
51013         --create-testdir and --create-megatestdir.
51015 2010-04-25  Bruno Haible  <bruno@clisp.org>
51017         gnulib-tool: Add --without-*-tests options.
51018         * gnulib-tool (func_usage): Document the --without-*-tests options.
51019         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
51020         excl_unportable_tests): New variables.
51021         Fail if they are specified with --import or --update.
51022         (func_acceptable): Respect the excl_*_tests variables.
51023         (func_import): Set the excl_*_tests variables to empty.
51025 2010-04-25  Simon Josefsson  <simon@josefsson.org>
51026             Bruno Haible  <bruno@clisp.org>
51028         Work around a MacOS X 10.4 bug with openpty.
51029         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
51030         * tests/test-openpty.c (main): Close the master side explicitly.
51032 2010-04-25  Bruno Haible  <bruno@clisp.org>
51034         strnlen: Fix a C++ test error on MacOS X and Solaris.
51035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
51036         the function is not declared.
51037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
51038         Simon Josefsson.
51040 2010-04-24  Bruno Haible  <bruno@clisp.org>
51042         Avoid a gcc warning.
51043         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
51044         of correct type for %08lx directive.
51045         Reported by Eric Blake.
51047 2010-04-24  Bruno Haible  <bruno@clisp.org>
51049         vasnprintf: Correct errno value in case of out-of-memory.
51050         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
51051         or sprintf. Use the errno value from SNPRINTF or sprintf.
51052         Reported by Ian Beckwith <ianb@erislabs.net>.
51054 2010-04-24  Bruno Haible  <bruno@clisp.org>
51056         ansi-c++-opt: Find correct compiler when cross-compiling.
51057         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
51058         AC_CHECK_PROGS.
51059         Reported by Simon Josefsson.
51061 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
51063         vc-list-files: Add support for subversion
51064         * build-aux/vc-list-files: Use "svn list" to generate the list of
51065         files controlled by subversion.
51067 2010-04-23  Jim Meyering  <meyering@redhat.com>
51069         vc-list-files tests: convert to use init.sh
51070         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
51071         path_prepend_.
51072         Use Exit, not exit.
51073         Use skip_ rather than open coding it.
51074         Remove trap set-up and compare definitions.
51075         * tests/test-vc-list-files-git.sh: Likewise.
51076         * modules/vc-list-files-tests (Files): Add tests/init.sh.
51078 2010-04-22  Simon Josefsson  <simon@josefsson.org>
51080         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
51081         backup files.
51083 2010-04-21  Simon Josefsson  <simon@josefsson.org>
51085         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
51087 2010-04-20  Eric Blake  <eblake@redhat.com>
51089         tests: be robust to ignored SIGPIPE
51090         * tests/test-select-in.sh: Consume all output.
51091         * tests/test-lseek.sh: Check correct exit status, while avoiding
51092         EPIPE.
51094 2010-04-20  Simon Josefsson  <simon@josefsson.org>
51095             Bruno Haible  <bruno@clisp.org>
51097         visibility: Don't use -fvisibility if it leads to a warning.
51098         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
51099         yes, don't pretend that visibility works if it leads to a warning.
51100         Reported by Mike Gran <spk121@yahoo.com>.
51102 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
51104         * build-aux/bootstrap: Use "git -h" for testing for supported options
51105         instead of "git --help".  The short-form option only shows a summary,
51106         and doesn't layout the full man page.  Grep for the full option name
51107         in the summary, too.
51109 2010-04-19  Bruno Haible  <bruno@clisp.org>
51111         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
51112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
51113         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
51114         mention of RELOCATABLE_STRIP.
51115         Reported by Sylvain Beucler <beuc@beuc.net>.
51117 2010-04-19  Bruno Haible  <bruno@clisp.org>
51119         * lib/diffseq.h: Fix typo in comment.
51120         Reported by Eric Blake.
51122 2010-04-19  Bruno Haible  <bruno@clisp.org>
51124         ioctl: Move autoconf macro to a .m4 file.
51125         * m4/ioctl.m4: New file, extracted from modules/ioctl.
51126         * modules/ioctl (Files): Add it.
51127         (configure.ac): Simply invoke gl_FUNC_IOCTL.
51128         Reported by Ian Beckwith <ianb@erislabs.net>.
51130 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
51131             Bruno Haible  <bruno@clisp.org>
51133         diffseq: Accommodate use-case with abstract arrays.
51134         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
51135         is not defined.
51136         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
51137         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
51139 2010-04-18  Bruno Haible  <bruno@clisp.org>
51141         * doc/posix-headers/stdbool.texi: More precise wording.
51143 2010-04-17  Jim Meyering  <meyering@redhat.com>
51145         maint.mk: use gnu-style indentation in an embedded perl script
51146         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
51147         Rename variable: s/two/last_two_bytes/
51149 2010-04-16  Eric Blake  <eblake@redhat.com>
51151         test-stdbool: skip test that fails with Solaris CC
51152         * tests/test-stdbool.c (f): Skip test that causes compilation
51153         error under buggy C++ compiler.
51154         * lib/stdbool.in.h: Document the limitation.
51155         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
51157         setenv: allow compilation with C++
51158         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
51159         register keyword.
51161         stdint: allow test to pass with C++
51162         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
51164         getopt: allow compilation with C++
51165         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
51166         struct.
51167         * lib/getopt.c (_getopt_internal_r): Use correct type.
51168         Reported by Dagobert Michelson, via Joel E. Denny.
51170 2010-04-16  Bruno Haible  <bruno@clisp.org>
51172         Override netdb.h always.
51173         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
51174         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
51175         Reported by Ludovic Courtès <ludo@gnu.org>.
51177 2010-04-15  Bruno Haible  <bruno@clisp.org>
51179         openpty: Fix mistake from 2010-03-21.
51180         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
51181         Reported by Simon Josefsson.
51183 2010-04-15  Eric Blake  <eblake@redhat.com>
51185         test-forkpty: fix expected signature
51186         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
51187         Reported by Simon Josefsson.
51189 2010-04-15  Jim Meyering  <meyering@redhat.com>
51191         maint.mk: texinfo_suffix_re_: correct the default regexp
51192         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
51194         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
51195         make it configurable via texinfo_suffix_re_.
51197 2010-04-14  Eric Blake  <eblake@redhat.com>
51199         strtok_r: relax license to LGPLv2+
51200         * modules/strtok_r (License): Relax license.
51201         Reported by Matthias Bolte.
51203 2010-04-14  Simon Josefsson  <simon@josefsson.org>
51205         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
51206         version 1.4.4 by default instead of requiring the libgcrypt
51207         version used during build.  This makes it possible to use the
51208         application with older but still binary compatible libgcrypt
51209         versions.
51211 2010-04-13  Eric Blake  <eblake@redhat.com>
51213         getopt-gnu: match recent glibc fixes and posix ruling
51214         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
51215         '+' handling, when requesting extensions.
51216         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
51217         'W;' handling.
51218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
51219         * doc/posix-functions/getopt.texi (getopt): Document this.
51220         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51222         Likewise.
51224         getopt: merge bug fixes from glibc
51225         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
51226         diagnostics.  Honor '+:' correctly.  Reject ';'.
51228         getopt-posix: detect MacOS bug
51229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
51230         optind when missing a required argument.
51231         * doc/posix-functions/getopt.texi (getopt): Document the bug.
51232         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51233         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51234         Likewise.
51236         getopt-posix: avoid spurious failure on Solaris
51237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
51238         an indicator that setting optind=1 is sufficient for reset.
51240         getopt-posix: avoid spurious failure on FreeBSD
51241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
51242         in POSIX mode, since the m4 test uses it.
51244         gnulib-tool: silence warning on BSD sh
51245         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
51247 2010-04-13  Jim Meyering  <meyering@redhat.com>
51249         doc: users.txt: GNU patch now uses gnulib
51250         * users.txt: Add patch.
51252 2010-04-12  Jim Meyering  <meyering@redhat.com>
51254         maint.mk: generate more concise timing data for syntax-check rules
51255         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
51256         " done" from each line that reports a syntax-check test duration.
51258 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
51260         git-version-gen: use "git update-index..." rather than "git status"
51261         * build-aux/git-version-gen: Use git update-index --refresh, not
51262         "git status".  With some versions of git, "git status" would fail
51263         to update the index and result in an unwarranted "-dirty" suffix.
51265 2010-04-11  Jim Meyering  <meyering@redhat.com>
51267         openat: correct formatting (no semantic change)
51268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
51269         Suggested by Bruno Haible.
51271 2010-04-11  Bruno Haible  <bruno@clisp.org>
51273         Stricter declaration checking in testdirs.
51274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51275         If for_tests is true, augment AM_CPPFLAGS to define
51276         GNULIB_STRICT_CHECKING.
51277         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
51278         GNULIB_STRICT_CHECKING is defined, verify that the function is
51279         declared.
51281 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
51282             Bruno Haible  <bruno@clisp.org>
51284         libunistring: Improve configure output.
51285         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
51286         Don't say "consider installing GNU libunistring" when checking again
51287         with libiconv.
51289 2010-04-11  Bruno Haible  <bruno@clisp.org>
51291         libunistring: Correct value of $LTLIBUNISTRING.
51292         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
51293         correct the value of $LTLIBUNISTRING.
51295 2010-04-11  Bruno Haible  <bruno@clisp.org>
51297         havelib: Add static libraries to LIBS in the right order.
51298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
51299         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
51301 2010-04-11  Bruno Haible  <bruno@clisp.org>
51303         libunistring: Detect libunistring also when it depends on libiconv.
51304         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
51305         the second AC_LIB_HAVE_LINKFLAGS invocation.
51307 2010-04-11  James Youngman  <jay@gnu.org>
51309         close-stream: declare local scalars to be "const"
51310         * lib/close-stream.c (close_stream): Make boolean variables const
51311         to document the fact that we set but do not change them.
51313 2010-04-11  Bruno Haible  <bruno@clisp.org>
51315         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
51317 2010-04-11  Jim Meyering  <meyering@redhat.com>
51319         maint.mk: don't include dist-check.mk
51320         * top/maint.mk: Remove bogus include directive.
51322         maint.mk: improve empty-line-at-EOF check
51323         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
51324         solution, rather than tail+Perl-based one.  The latter would read
51325         a few kilobytes from the end of each file, and did not handle empty
51326         files properly.
51328         maint.mk: print the elapsed time for each syntax-check rule
51329         * top/maint.mk (sc_m_rules_): Save start time in a file.
51330         (sc_z_rules_): New rules: remove temp file and print elapsed time.
51331         (local-check): Interpose the .z rules
51333 2010-04-11  Jim Meyering  <meyering@redhat.com>
51335         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
51336         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
51337         empty file with one that ends in an empty line.
51339 2010-04-10  Bruno Haible  <bruno@clisp.org>
51341         mkdir: Make it work on mingw64.
51342         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
51343         * lib/mkdir.c: Update comment.
51344         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
51346 2010-04-10  Bruno Haible  <bruno@clisp.org>
51348         Don't override improved macro from newer autoconf.
51349         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
51350         autoconf >= 2.62.
51351         Reported by Joel E. Denny <jdenny@clemson.edu>.
51353 2010-04-10  Jim Meyering  <meyering@redhat.com>
51355         maint.mk: new syntax-check rule: prohibit empty lines at end of file
51356         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
51358         maint.mk: correct a diagnostic
51359         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
51360         in diagnostic; now use $prohibit.
51362 2010-04-10  Bruno Haible  <address@hidden>
51364         fchownat: Fix a C++ test error on Solaris 8.
51365         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
51366         the function does not exist.
51368 2010-04-10  Bruno Haible  <bruno@clisp.org>
51370         vasnprintf: Add more tests.
51371         * tests/test-vasnprintf-posix.c: Include <errno.h>.
51372         (test_function): Test converting an invalid wide string.
51374         vasnprintf: Correct handling of unconvertible wide string arguments.
51375         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
51376         VASNPRINTF.
51377         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
51378         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
51379         smaller than the expected maximum need for the directive. Set errno to
51380         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
51381         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
51382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
51383         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
51384         * modules/vasnprintf (Files): Add m4/printf.m4.
51385         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51387 2010-04-10  Bruno Haible  <bruno@clisp.org>
51389         vasnprintf: Fix crash in %ls directive.
51390         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
51391         string is passed as argument to %ls, with no precision and no width.
51392         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51394 2010-04-10  Bruno Haible  <bruno@clisp.org>
51396         vasnprintf: Fix multiple test failures on mingw.
51397         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
51398         _snprintf, or snwprintf, not _snwprintf.
51400 2010-04-10  Bruno Haible  <bruno@clisp.org>
51402         write: Fix a C++ test error on mingw.
51403         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
51405 2010-04-10  Bruno Haible  <bruno@clisp.org>
51407         vasnprintf test: Reduce code duplication.
51408         * tests/test-vasnprintf.c (test_function): New function, extracted from
51409         test_vasnprintf.
51410         (test_vasnprintf, test_asnprintf): Invoke it.
51412 2010-04-10  Bruno Haible  <bruno@clisp.org>
51414         strnlen: Fix warning in C++ mode on MacOS X.
51415         * lib/string.in.h (strnlen): Use the modern idiom.
51416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
51417         defining strnlen as a macro already in <config.h>.
51418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51419         REPLACE_STRNLEN.
51420         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
51421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51423 2010-04-08  James Youngman  <jay@gnu.org>
51425         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
51426         the example.
51428 2010-04-09  Jim Meyering  <meyering@redhat.com>
51430         maint.mk: print better diagnostic when there is no $(_hv_file)
51431         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
51432         announce that when $(_hv_file) (aka help-version) does not exist.
51434         init.sh: run tr in the "C" locale to avoid multibyte interpretation
51435         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
51436         not try to interpret its random input bytes.  Jarno Rajahalme reported
51437         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
51438         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
51439         (mktempd_): Likewise, just in case.
51441         ftruncate: add two years to projected module removal date: 2012
51442         * m4/ftruncate.m4: Adjust comments.
51444         ftruncate: mark module as obsolete; even MinGW provides it, now
51445         * modules/ftruncate (Status): Obsolete.
51446         (Notice): Say that.
51447         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
51448         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
51450 2010-04-08  Bruno Haible  <bruno@clisp.org>
51452         Fix side effects from tests-related modules.
51453         * modules/dprintf-posix (Comment): New section.
51454         * modules/fprintf-posix (Comment): Likewise.
51455         * modules/obstack-printf-posix (Comment): Likewise.
51456         * modules/printf-posix (Comment): Likewise.
51457         * modules/snprintf-posix (Comment): Likewise.
51458         * modules/sprintf-posix (Comment): Likewise.
51459         * modules/vasnprintf-posix (Comment): Likewise.
51460         * modules/vasprintf-posix (Comment): Likewise.
51461         * modules/vdprintf-posix (Comment): Likewise.
51462         * modules/vfprintf-posix (Comment): Likewise.
51463         * modules/vprintf-posix (Comment): Likewise.
51464         * modules/vsnprintf-posix (Comment): Likewise.
51465         * modules/vsprintf-posix (Comment): Likewise.
51466         * modules/xprintf-posix (Comment): Likewise.
51467         * modules/xvasprintf-posix (Comment): Likewise.
51468         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
51469         * modules/floorf-tests (Depends-on): Likewise.
51470         * modules/round-tests (Depends-on): Likewise.
51471         * modules/roundf-tests (Depends-on): Likewise.
51472         * modules/trunc-tests (Depends-on): Likewise.
51473         * modules/truncf-tests (Depends-on): Likewise.
51474         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
51475         'fprintf-posix' module is not present.
51476         * tests/test-floorf2.c (check): Likewise.
51477         * tests/test-trunc2.c (check): Likewise.
51478         * tests/test-truncf2.c (check): Likewise.
51479         * tests/test-round2.c (equal): Likewise.
51480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51482 2010-04-07  Karl Berry  <karl@gnu.org>
51484         * config/srclist.txt,
51485         * config/srclistvars.sh,
51486         * config/srclist-update: doc fixes.
51488 2010-04-07  Jim Meyering  <meyering@redhat.com>
51490         maint.mk: add a PATH crosschecking syntax-check rule
51491         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
51492         Useful if you use a test like the one in help-version (coreutils,
51493         diffutils, grep, gzip) that ensures $(VERSION) matches what is
51494         printed by prog --version.
51496 2010-04-06  Bruno Haible  <bruno@clisp.org>
51498         Fix link error on mingw.
51499         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
51500         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
51502 2010-04-06  Bruno Haible  <bruno@clisp.org>
51504         Assume rmdir exists.
51505         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
51507 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
51509         doc: update users.txt
51510         * users.txt: Add gcal.
51512 2010-04-06  Jim Meyering  <meyering@redhat.com>
51514         init.sh: simply unset TMPDIR rather than risking env -i
51515         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
51516         although it probably works fine on all Unix-based systems, some
51517         systems (Cygwin?) cannot tolerate a totally cleared environment.
51518         Suggestion from Eric Blake.
51520 2010-04-06  Jim Meyering  <meyering@redhat.com>
51522         init.sh: portability fix: use env's POSIX-specified -i option not -u
51523         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
51524         than unportable env -u.  Solaris 5.11's env lacks support for -u.
51526 2010-04-05  Bruno Haible  <bruno@clisp.org>
51528         btowc: Work around Cygwin 1.7.2 bug.
51529         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
51530         does not map NUL to 0.
51531         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
51533 2010-04-05  Bruno Haible  <bruno@clisp.org>
51535         Make the multithread modules work on Cygwin 1.7.2.
51536         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
51537         imported symbols can be declared weak, so that it returns "no" on
51538         Cygwin 1.7.2.
51540 2010-04-05  Bruno Haible  <bruno@clisp.org>
51542         Use the module 'strncat'.
51543         * modules/unistr/u8-strncat (Depends-on): Add strncat.
51545         Tests for module 'strncat'.
51546         * modules/strncat-tests: New file.
51547         * tests/test-strncat.c: New file.
51549         New module 'strncat'.
51550         * lib/string.in.h (strncat): New declaration.
51551         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
51552         * m4/strncat.m4: New file, based on m4/memchr.m4.
51553         * modules/strncat: New file.
51554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
51555         is declared.
51556         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
51557         REPLACE_STRNCAT.
51558         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
51559         REPLACE_STRNCAT.
51560         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
51561         module.
51562         * tests/test-string-c++.cc: Check signature of strncat.
51564 2010-04-05  Jim Meyering  <meyering@redhat.com>
51566         xstrtoumax-tests: convert to use init.sh
51567         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
51568         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51569         Use Exit, not exit.
51570         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51572         xstrtoimax-tests: convert to use init.sh
51573         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
51574         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51575         Use Exit, not exit.
51576         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51578 2010-04-05  Bruno Haible  <bruno@clisp.org>
51580         sys_socket: Avoid #define replacements in C++ mode.
51581         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
51582         warning to the function if possible, rather than #defining the symbol
51583         to a dysfunctional alias.
51585 2010-04-05  Bruno Haible  <bruno@clisp.org>
51587         fseeko: Fix C++ test error on mingw.
51588         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
51589         gl_FUNC_FSEEKO.
51590         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
51591         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
51592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
51593         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
51595 2010-04-05  Bruno Haible  <bruno@clisp.org>
51597         duplocale: Improve test output.
51598         * tests/test-duplocale.c (main): Print reason for skipped test.
51600 2010-04-05  Bruno Haible  <bruno@clisp.org>
51602         Assume rmdir exists.
51603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
51604         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
51606 2010-04-05  Bruno Haible  <bruno@clisp.org>
51608         Fix link error on Solaris 8 with cc.
51609         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
51611 2010-04-05  Bruno Haible  <bruno@clisp.org>
51613         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51614         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
51616 2010-04-05  Bruno Haible  <bruno@clisp.org>
51618         vasprintf: Update documentation.
51619         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
51621 2010-04-05  Bruno Haible  <bruno@clisp.org>
51623         ptsname: Improve test.
51624         * tests/test-ptsname.c (main): Also try the various master names of BSD
51625         systems.
51627 2010-04-05  Bruno Haible  <bruno@clisp.org>
51629         memchr: Avoid a possible C++ test error.
51630         * lib/string.in.h (memchr): Provide declaration if function is missing.
51631         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
51632         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
51633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
51634         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
51636 2010-04-05  Bruno Haible  <bruno@clisp.org>
51638         strtok_r: Improve idiom.
51639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
51640         AC_LIBOBJ is used.
51642 2010-04-05  Bruno Haible  <bruno@clisp.org>
51644         strdup: Improve idiom.
51645         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
51646         AC_LIBOBJ is used.
51647         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
51648         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
51649         when AC_LIBOBJ is used.
51651 2010-04-05  Bruno Haible  <bruno@clisp.org>
51653         mbsinit, mbrtowc, wcrtomb: Improve idioms.
51654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
51655         don't set REPLACE_MBSINIT to 1.
51656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
51657         don't set REPLACE_MBRTOWC to 1.
51658         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
51659         exist, don't set REPLACE_MBSRTOWCS to 1.
51660         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
51661         exist, don't set REPLACE_MBSNRTOWCS to 1.
51662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
51663         don't set REPLACE_WCRTOMB to 1.
51664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
51665         exist, don't set REPLACE_WCSRTOMBS to 1.
51666         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
51667         exist, don't set REPLACE_WCSNRTOMBS to 1.
51669 2010-04-05  Bruno Haible  <bruno@clisp.org>
51671         ldexpl: Improve idiom.
51672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
51673         make sure to set HAVE_DECL_LDEXPL to 0.
51675 2010-04-05  Jim Meyering  <meyering@redhat.com>
51677         xstrtol-tests: convert to use init.sh
51678         * modules/xstrtol-tests (Files): Add tests/init.sh.
51679         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51680         Use Exit, not exit.
51681         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51683         atexit-tests: convert to use init.sh
51684         * modules/atexit-tests (Files): Add tests/init.sh.
51685         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51686         Use Exit, not exit.
51687         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51689         init.sh: fix typo
51690         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
51692         init.sh: make it easier for a test script to write to the tty, ...
51693         when using automake's parallel-tests mode.
51694         * tests/init.sh (stderr_fileno_): Define overridable variable.
51695         (warn_): New function, to use it.
51696         (fail_, skip_, framework_failure_): Use warn_.
51698 2010-04-04  Bruno Haible  <bruno@clisp.org>
51700         btowc: Avoid warning.
51701         * lib/btowc.c: Include <stdlib.h>.
51702         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
51704 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51705             Bruno Haible  <bruno@clisp.org>
51707         wchar: Port to NetBSD 1.5.
51708         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
51709         * lib/wctype.in.h (WEOF): Likewise.
51711 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51712             Bruno Haible  <bruno@clisp.org>
51714         Port extended stdio to NetBSD 1.5.
51715         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
51716         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
51717         older.
51719 2010-04-04  Bruno Haible  <bruno@clisp.org>
51721         string: Remove unused substitution.
51722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51723         HAVE_DECL_STRERROR.
51724         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
51726 2010-04-04  Bruno Haible  <bruno@clisp.org>
51728         strtod: Avoid a possible C++ test error.
51729         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
51730         set REPLACE_STRTOD.
51732 2010-04-04  Bruno Haible  <bruno@clisp.org>
51734         strerror: Update documentation.
51735         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
51737 2010-04-04  Bruno Haible  <bruno@clisp.org>
51739         stdio: Fix some C++ test errors on Solaris 8 with GCC.
51740         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
51741         _GL_CXXALIAS_SYS_CAST.
51743 2010-04-04  Bruno Haible  <bruno@clisp.org>
51745         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51746         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
51747         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
51748         REPLACE_FREXPL to 1.
51749         * doc/posix-functions/frexpl.texi: Update documentation.
51751 2010-04-04  Bruno Haible  <bruno@clisp.org>
51753         math: Fix some C++ test errors on Solaris 8 and Cygwin.
51754         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
51756 2010-04-04  Bruno Haible  <bruno@clisp.org>
51758         Implement nanosleep for native Windows.
51759         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
51761 2010-04-04  Bruno Haible  <bruno@clisp.org>
51763         math: Fix some C++ test errors on Solaris 8.
51764         * lib/math.in.h (truncf, trunc): Use simpler idiom.
51766 2010-04-04  Bruno Haible  <bruno@clisp.org>
51768         math: Fix some C++ test errors on Cygwin.
51769         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
51770         truncl): Provide declaration if the system does not have it.
51771         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
51772         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
51773         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
51774         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
51775         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
51776         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
51777         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
51778         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
51779         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
51780         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
51781         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
51782         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
51783         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
51784         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
51785         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
51786         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
51787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
51788         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51789         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51790         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
51791         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51792         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51794 2010-04-04  Bruno Haible  <bruno@clisp.org>
51796         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
51797         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51798         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51799         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51800         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51801         * m4/isinf.m4 (gl_ISINF): Likewise.
51802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51804 2010-04-04  Bruno Haible  <bruno@clisp.org>
51806         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
51807         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51809 2010-04-04  Bruno Haible  <bruno@clisp.org>
51811         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
51812         * modules/tmpfile (configure.ac): Update.
51814         tmpfile: Fix C++ test error on mingw.
51815         * lib/stdio.in.h (tmpfile): New declaration.
51816         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
51817         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
51818         * modules/tmpfile (Depends-on): Add stdio.
51819         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51820         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
51821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
51822         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
51823         REPLACE_TMPFILE.
51824         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
51826 2010-04-04  Bruno Haible  <bruno@clisp.org>
51828         ioctl: Fix C++ test error on mingw.
51829         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
51830         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
51831         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
51833 2010-04-03  Bruno Haible  <bruno@clisp.org>
51835         wcwidth: Fix C++ test error on mingw.
51836         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
51837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
51838         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
51840 2010-04-03  Bruno Haible  <bruno@clisp.org>
51842         nanosleep: Fix C++ test error on mingw.
51843         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
51844         * lib/time.in.h (nanosleep): Use modern idiom.
51845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
51846         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
51847         REPLACE_NANOSLEEP to 1.
51848         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
51849         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51851 2010-04-03  Bruno Haible  <bruno@clisp.org>
51853         strptime: Fix C++ test error on mingw.
51854         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51855         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51856         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51857         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51859         not REPLACE_STRPTIME.
51860         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51861         REPLACE_STRPTIME.
51863 2010-04-03  Bruno Haible  <bruno@clisp.org>
51865         timegm: Fix C++ test error on mingw.
51866         * lib/time.in.h (timegm): Use modern idiom.
51867         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51868         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51870         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51872 2010-04-03  Bruno Haible  <bruno@clisp.org>
51874         timegm: Assume declaration if function exists.
51875         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51876         if it exists. Don't clobber ac_cv_func_timegm.
51878 2010-04-03  Bruno Haible  <bruno@clisp.org>
51880         time_r: Fix C++ test error on mingw.
51881         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51882         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51883         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51885         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51887 2010-04-03  Bruno Haible  <bruno@clisp.org>
51889         time_r: Minor updates.
51890         * modules/time_r (Description): Mention the provided functions.
51891         * lib/time_r.c: Don't include <string.h>.
51892         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51893         * doc/posix-functions/localtime_r.texi: Likewise.
51895 2010-04-03  Bruno Haible  <bruno@clisp.org>
51897         time: Fix regression introduced on 2010-03-08.
51898         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51899         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51901 2010-04-03  Jim Meyering  <meyering@redhat.com>
51903         maint.mk: don't silently disable project-specific syntax-check rules
51904         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51905         that they need to convert their project-specific syntax-check rules
51906         to use the new _sc_search_regexp.
51908 2010-04-03  Bruno Haible  <bruno@clisp.org>
51910         fchdir: Fix regression introduced on 2010-03-08.
51911         * lib/unistd.in.h (fchdir): Fix declaration.
51912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51914         REPLACE_FCHDIR.
51915         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51916         REPLACE_FCHDIR.
51918 2010-04-03  Bruno Haible  <bruno@clisp.org>
51920         getpagesize: Fix C++ test error on mingw.
51921         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51922         system does not declare the function.
51923         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51924         declared.
51925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51926         HAVE_DECL_GETPAGESIZE.
51927         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51929 2010-04-03  Bruno Haible  <bruno@clisp.org>
51931         stdio: Make C++ tests work on mingw.
51932         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51933         does not declare the function.
51935 2010-04-03  Bruno Haible  <bruno@clisp.org>
51937         ftello: Fix C++ test error on mingw.
51938         * lib/stdio.in.h (ftello): Use modern idiom.
51939         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51940         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51941         is missing and that it needs to be replaced.
51942         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51944         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51946 2010-04-03  Bruno Haible  <bruno@clisp.org>
51948         fseeko: Fix C++ test error on mingw.
51949         * lib/stdio.in.h (fseeko): Use modern idiom.
51950         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51952         is missing and that it needs to be replaced.
51953         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51955         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51957 2010-04-03  Bruno Haible  <bruno@clisp.org>
51959         mkstemp: Fix C++ test error on mingw.
51960         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51962         function is missing and that it needs to be replaced.
51963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51964         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51966 2010-04-03  Bruno Haible  <bruno@clisp.org>
51968         stpncpy: Fix C++ test error on mingw.
51969         * lib/string.in.h (stpncpy): Use modern idiom.
51970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51971         function is missing and that it needs to be replaced.
51972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51973         REPLACE_STPNCPY.
51974         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51976 2010-04-03  Bruno Haible  <bruno@clisp.org>
51978         sys_stat: Fix C++ test error on mingw.
51979         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51980         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51982 2010-04-03  Bruno Haible  <bruno@clisp.org>
51984         pty: Update doc.
51985         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51987 2010-04-03  Bruno Haible  <bruno@clisp.org>
51989         unistd: Fix C++ test error on mingw.
51990         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51992 2010-04-03  Bruno Haible  <bruno@clisp.org>
51994         Update doc regarding mingw.
51995         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51996         * doc/glibc-functions/login_tty.texi: Likewise.
51997         * doc/glibc-functions/forkpty.texi: Likewise.
51999 2010-04-03  Bruno Haible  <bruno@clisp.org>
52001         stdlib: Avoid compilation failure of c-strtold on mingw.
52002         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
52004 2010-04-03  Bruno Haible  <bruno@clisp.org>
52006         locale: Make C++ tests work on Cygwin and mingw.
52007         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
52008         cannot provide the function.
52009         Reported by Simon Josefsson.
52011 2010-04-03  Bruno Haible  <bruno@clisp.org>
52013         localename: Port to MacOS X 10.6.
52014         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
52015         memory layout of the locales in MacOS X 10.6 as well.
52016         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
52018 2010-04-02  Bruno Haible  <bruno@clisp.org>
52020         gnulib-tool: Ensure that long-running tests are executed last.
52021         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
52022         running tests after the one for the other tests.
52024 2010-04-02  Bruno Haible  <bruno@clisp.org>
52026         gnulib-tool: Ensure the tests in the main directory are executed first.
52027         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
52028         start with the current directory.
52030 2010-04-02  Bruno Haible  <bruno@clisp.org>
52032         Tests for module 'havelib', moved here from GNU gettext.
52033         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
52034         modifications.
52035         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
52036         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
52037         with modifications.
52038         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
52039         modifications.
52040         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
52041         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
52042         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
52043         with modifications.
52044         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
52045         with modifications.
52046         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
52047         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
52048         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
52049         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
52050         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
52051         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
52052         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
52053         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
52054         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
52055         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
52056         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
52057         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
52058         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
52059         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
52060         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
52061         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
52062         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
52063         with modifications.
52064         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
52065         with modifications.
52066         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
52067         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
52068         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
52069         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
52070         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
52071         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
52072         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
52073         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
52074         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
52075         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
52076         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
52077         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
52078         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
52079         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
52080         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
52081         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
52082         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
52083         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
52084         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
52085         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
52086         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
52087         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
52088         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
52089         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
52090         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
52091         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
52092         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
52093         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
52094         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
52095         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
52096         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
52097         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
52098         * tests/havelib/rpathx/rpathx.c: New file, from
52099         gettext/autoconf-lib-link.
52100         * tests/havelib/rpathx/Makefile.am: New file, from
52101         gettext/autoconf-lib-link.
52102         * tests/havelib/rpathx/configure.ac: New file, from
52103         gettext/autoconf-lib-link with modifications.
52104         * tests/havelib/rpathy/rpathy.c: New file, from
52105         gettext/autoconf-lib-link.
52106         * tests/havelib/rpathy/Makefile.am: New file, from
52107         gettext/autoconf-lib-link.
52108         * tests/havelib/rpathy/configure.ac: New file, from
52109         gettext/autoconf-lib-link with modifications.
52110         * tests/havelib/rpathz/rpathz.c: New file, from
52111         gettext/autoconf-lib-link.
52112         * tests/havelib/rpathz/Makefile.am: New file, from
52113         gettext/autoconf-lib-link.
52114         * tests/havelib/rpathz/configure.ac: New file, from
52115         gettext/autoconf-lib-link with modifications.
52116         * tests/havelib/rpathlx/usex.c: New file, from
52117         gettext/autoconf-lib-link.
52118         * tests/havelib/rpathlx/Makefile.am: New file, from
52119         gettext/autoconf-lib-link.
52120         * tests/havelib/rpathlx/configure.ac: New file, from
52121         gettext/autoconf-lib-link with modifications.
52122         * tests/havelib/rpathly/usey.c: New file, from
52123         gettext/autoconf-lib-link.
52124         * tests/havelib/rpathly/Makefile.am: New file, from
52125         gettext/autoconf-lib-link.
52126         * tests/havelib/rpathly/configure.ac: New file, from
52127         gettext/autoconf-lib-link with modifications.
52128         * tests/havelib/rpathlz/usez.c: New file, from
52129         gettext/autoconf-lib-link.
52130         * tests/havelib/rpathlz/Makefile.am: New file, from
52131         gettext/autoconf-lib-link.
52132         * tests/havelib/rpathlz/configure.ac: New file, from
52133         gettext/autoconf-lib-link with modifications.
52134         * tests/havelib/rpathlyx/usey.c: New file, from
52135         gettext/autoconf-lib-link.
52136         * tests/havelib/rpathlyx/Makefile.am: New file, from
52137         gettext/autoconf-lib-link.
52138         * tests/havelib/rpathlyx/configure.ac: New file, from
52139         gettext/autoconf-lib-link with modifications.
52140         * tests/havelib/rpathlzyx/usez.c: New file, from
52141         gettext/autoconf-lib-link.
52142         * tests/havelib/rpathlzyx/Makefile.am: New file, from
52143         gettext/autoconf-lib-link.
52144         * tests/havelib/rpathlzyx/configure.ac: New file, from
52145         gettext/autoconf-lib-link with modifications.
52146         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
52147         with modifications.
52149 2010-04-02  Bruno Haible  <bruno@clisp.org>
52151         gnulib-tool: Create distributed built sources also for the tests.
52152         * gnulib-tool (func_create_testdir): Also generate distributed built
52153         sources in the tests directory.
52155 2010-04-02  Bruno Haible  <bruno@clisp.org>
52157         gnulib-tool: Obey user's environment variables.
52158         * gnulib-tool (func_create_testdir): When creating built sources,
52159         respect the environment variables for autoconf, automake, etc. given by
52160         the user.
52162 2010-04-02  Bruno Haible  <bruno@clisp.org>
52164         gnulib-tool: Provide the value of --m4-base to modules.
52165         * gnulib-tool (func_import, func_create_testdir): Emit a definition
52166         of gl_m4_base.
52168 2010-04-02  Eric Blake  <eblake@redhat.com>
52170         maint.mk: fix some fallout
52171         * NEWS: Document the incompatible change, and its effect on cfg.mk.
52172         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
52174 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52176         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
52177         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
52178         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
52179         (sc_cast_of_x_alloc_return_value): Likewise.
52180         (sc_cast_of_alloca_return_value): Likewise.
52181         (sc_space_tab): Likewise.
52182         (sc_prohibit_atoi_atof): Likewise.
52183         (sc_prohibit_magic_number_exit): Likewise.
52184         (sc_error_exit_success): Likewise.
52185         (sc_file_system): Likewise.
52186         (sc_prohibit_have_config_h): Likewise.
52187         (sc_require_config_h): Likewise.
52188         (sc_prohibit_HAVE_MBRTOWC): Likewise.
52189         (sc_obsolete_symbols): Likewise.
52190         (sc_changelog): Likewise.
52191         (sc_program_name): Likewise.
52192         (sc_the_the): Likewise.
52193         (sc_trailing_blank): Likewise.
52194         (sc_two_space_separator_in_usage): Likewise.
52195         (sc_useless_cpp_parens): Likewise.
52196         (sc_GPL_version): Likewise.
52197         (sc_GFDL_version): Likewise.
52198         (sc_texinfo_acronym): Likewise.
52199         (sc_prohibit_cvs_keyword): Likewise.
52200         (sc_prohibit_stat_st_blocks): Likewise.
52201         (sc_prohibit_S_IS_definition): Likewise.
52202         (sc_redundant_const): Likewise.
52203         (sc_makefile_TAB_only_indentation): Likewise.
52204         (sc_m4_quote_check): Likewise.
52205         (sc_makefile_path_separator_check): Likewise.
52206         (sc_copyright_check): Likewise.
52207         (sc_Wundef_boolean): Likewise.
52208         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
52210         maint.mk: match 0 or more whitespace-before-function-call '('
52211         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
52212         that have zero or two-and-more spaces between the function name
52213         and the open parenthesis.
52214         (sc_error_message_warn_fatal): Likewise.
52215         (sc_error_message_uppercase): Likewise.
52216         (sc_error_message_period): Likewise.
52218 2010-03-31  Eric Blake  <eblake@redhat.com>
52220         maint.mk: check for [ as well as test
52221         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
52222         Based on a libvirt report by Matthias Bolte.
52224         gnumakefile: don't squelch _version output
52225         * top/GNUmakefile (_version): Create one-shot dependency rather
52226         than using $(shell) when version must be regenerated.
52227         (_autoreconf): Run verbosely, by default.
52229         sys_time: avoid compiler warnings
52230         * lib/sys_time.in.h (includes): Ensure gcc pragma is
52231         unconditional, fixing regression from 2010-03-29.
52232         Reported by Simon Josefsson.
52234 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52236         maint.mk: s/_header_without_use/_sc_header_without_use/
52237         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
52238         (sc_prohibit_assert_without_use): Use the new name.
52239         (sc_prohibit_close_stream_without_use): Likewise.
52240         (sc_prohibit_getopt_without_use): Likewise.
52241         (sc_prohibit_quotearg_without_use): Likewise.
52242         (sc_prohibit_quote_without_use): Likewise.
52243         (sc_prohibit_long_options_without_use): Likewise.
52244         (sc_prohibit_inttostr_without_use): Likewise.
52245         (sc_prohibit_ignore_value_without_use): Likewise.
52246         (sc_prohibit_error_without_use): Likewise.
52247         (sc_prohibit_xalloc_without_use): Likewise.
52248         (sc_prohibit_hash_without_use): Likewise.
52249         (sc_prohibit_hash_pjw_without_use): Likewise.
52250         (sc_prohibit_safe_read_without_use): Likewise.
52251         (sc_prohibit_argmatch_without_use): Likewise.
52252         (sc_prohibit_canonicalize_without_use): Likewise.
52253         (sc_prohibit_root_dev_ino_without_use): Likewise.
52254         (sc_prohibit_openat_without_use): Likewise.
52255         (sc_prohibit_c_ctype_without_use): Likewise.
52256         (sc_prohibit_signal_without_use): Likewise.
52257         (sc_prohibit_intprops_without_use): Likewise.
52259 2010-03-30  Eric Blake  <eblake@redhat.com>
52261         maint: improve module indicators
52262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
52263         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
52264         columns, and avoid extra macro expansion.
52266         fdopendir: work around FreeBSD bug
52267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
52268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
52269         * modules/dirent (Makefile.am): Substitute it.
52270         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
52271         declaration.
52272         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
52273         fix.
52274         Reported by Christian Weisgerber <naddy@mips.inka.de>.
52276 2010-03-29  Bruno Haible  <bruno@clisp.org>
52278         Emit #pragma system_header after the inclusion guard, not before.
52279         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
52280         guard that spans the entire file, not before. This enables an
52281         optimization in GCC's preprocessor.
52282         * lib/ctype.in.h: Likewise.
52283         * lib/dirent.in.h: Likewise.
52284         * lib/errno.in.h: Likewise.
52285         * lib/float.in.h: Likewise.
52286         * lib/getopt.in.h: Likewise.
52287         * lib/iconv.in.h: Likewise.
52288         * lib/langinfo.in.h: Likewise.
52289         * lib/locale.in.h: Likewise.
52290         * lib/math.in.h: Likewise.
52291         * lib/netdb.in.h: Likewise.
52292         * lib/netinet_in.in.h: Likewise.
52293         * lib/pty.in.h: Likewise.
52294         * lib/sched.in.h: Likewise.
52295         * lib/se-selinux.in.h: Likewise.
52296         * lib/search.in.h: Likewise.
52297         * lib/spawn.in.h: Likewise.
52298         * lib/stdarg.in.h: Likewise.
52299         * lib/stdint.in.h: Likewise.
52300         * lib/string.in.h: Likewise.
52301         * lib/strings.in.h: Likewise.
52302         * lib/sys_file.in.h: Likewise.
52303         * lib/sys_ioctl.in.h: Likewise.
52304         * lib/sys_time.in.h: Likewise.
52305         * lib/sys_times.in.h: Likewise.
52306         * lib/sys_utsname.in.h: Likewise.
52307         * lib/sys_wait.in.h: Likewise.
52308         * lib/sysexits.in.h: Likewise.
52309         * lib/wctype.in.h: Likewise.
52311 2010-03-28  James Youngman  <jay@gnu.org>
52313         save-cwd: don't leak a file descriptor when the caller execs.
52314         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
52315         saved file descriptor.
52316         * modules/save-cwd (Depends-on): Depend on cloexec.
52318 2010-03-29  Bruno Haible  <bruno@clisp.org>
52320         Remove vestiges of fts-lgpl module.
52321         * lib/fts_.h: Assume GNULIB_FTS is 1.
52322         * lib/fts.c: Likewise.
52323         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52325 2010-03-28  Bruno Haible  <bruno@clisp.org>
52327         Fix definition of tests witness macro.
52328         * gnulib-tool (func_import): Fix definition of witness macro.
52330 2010-03-28  Bruno Haible  <bruno@clisp.org>
52332         Fix ioctl's protoype on glibc systems.
52333         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
52334         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
52335         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
52336         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
52337         signature. If not, arrange to replace the ioctl function.
52338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
52339         REPLACE_IOCTL.
52340         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
52341         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
52342         Reported by Ludovic Courtès <ludo@gnu.org>.
52344 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
52346         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
52347         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
52348         made it so grep -r --include=GLOB* ... did not work.
52350 2010-03-26  Jim Meyering  <meyering@redhat.com>
52351             Eric Blake  <eblake@redhat.com>
52353         maint.mk: prohibit use of test's -o and -a operators
52354         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
52356 2010-03-28  Bruno Haible  <bruno@clisp.org>
52358         Remove unused GNULIB_XYZ macro definitions.
52359         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
52360         invocation.
52362 2010-03-28  Bruno Haible  <bruno@clisp.org>
52364         Mark privileged tests modules.
52365         * modules/idpriv-drop-tests (Status): New section.
52366         * modules/idpriv-droptemp-tests (Status): New section.
52368 2010-03-28  Bruno Haible  <bruno@clisp.org>
52370         Split C++ tests into separate tests modules.
52371         * modules/dirent-c++-tests: New file, extracted from
52372         modules/dirent-tests.
52373         * modules/dirent-tests: Depend on it.
52374         * modules/fcntl-h-c++-tests: New file, extracted from
52375         modules/fcntl-h-tests.
52376         * modules/fcntl-h-tests: Depend on it.
52377         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
52378         * modules/glob-tests: Depend on it.
52379         * modules/iconv-h-c++-tests: New file, extracted from
52380         modules/iconv-h-tests.
52381         * modules/iconv-h-tests: Depend on it.
52382         * modules/langinfo-c++-tests: New file, extracted from
52383         modules/langinfo-tests.
52384         * modules/langinfo-tests: Depend on it.
52385         * modules/locale-c++-tests: New file, extracted from
52386         modules/locale-tests.
52387         * modules/locale-tests: Depend on it.
52388         * modules/math-c++-tests: New file, extracted from modules/math-tests.
52389         * modules/math-tests: Depend on it.
52390         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
52391         * modules/pty-tests: Depend on it.
52392         * modules/search-c++-tests: New file, extracted from
52393         modules/search-tests.
52394         * modules/search-tests: Depend on it.
52395         * modules/signal-c++-tests: New file, extracted from
52396         modules/signal-tests.
52397         * modules/signal-tests: Depend on it.
52398         * modules/spawn-c++-tests: New file, extracted from
52399         modules/spawn-tests.
52400         * modules/spawn-tests: Depend on it.
52401         * modules/stdio-c++-tests: New file, extracted from
52402         modules/stdio-tests.
52403         * modules/stdio-tests: Depend on it.
52404         * modules/stdlib-c++-tests: New file, extracted from
52405         modules/stdlib-tests.
52406         * modules/stdlib-tests: Depend on it.
52407         * modules/string-c++-tests: New file, extracted from
52408         modules/string-tests.
52409         * modules/string-tests: Depend on it.
52410         * modules/sys_ioctl-c++-tests: New file, extracted from
52411         modules/sys_ioctl-tests.
52412         * modules/sys_ioctl-tests: Depend on it.
52413         * modules/sys_select-c++-tests: New file, extracted from
52414         modules/sys_select-tests.
52415         * modules/sys_select-tests: Depend on it.
52416         * modules/sys_socket-c++-tests: New file, extracted from
52417         modules/sys_socket-tests.
52418         * modules/sys_socket-tests: Depend on it.
52419         * modules/sys_stat-c++-tests: New file, extracted from
52420         modules/sys_stat-tests.
52421         * modules/sys_stat-tests: Depend on it.
52422         * modules/sys_time-c++-tests: New file, extracted from
52423         modules/sys_time-tests.
52424         * modules/sys_time-tests: Depend on it.
52425         * modules/time-c++-tests: New file, extracted from modules/time-tests.
52426         * modules/time-tests: Depend on it.
52427         * modules/unistd-c++-tests: New file, extracted from
52428         modules/unistd-tests.
52429         * modules/unistd-tests: Depend on it.
52430         * modules/wchar-c++-tests: New file, extracted from
52431         modules/wchar-tests.
52432         * modules/wchar-tests: Depend on it.
52433         * modules/wctype-c++-tests: New file, extracted from
52434         modules/wctype-tests.
52435         * modules/wctype-tests: Depend on it.
52436         Reported by Simon Josefsson.
52438 2010-03-28  Bruno Haible  <bruno@clisp.org>
52440         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
52441         * gnulib-tool (func_exists_module): New function, extracted from
52442         func_verify_module.
52443         (func_verify_module): Use it.
52444         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
52445         'foo' only if 'foo' exists.
52446         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
52447         module.
52449 2010-03-28  Bruno Haible  <bruno@clisp.org>
52451         gnulib-tool: Add support for special categories of tests.
52452         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
52453         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
52454         (func_usage): Document them.
52455         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
52456         inc_unportable_tests, inc_all_tests): New variables.
52457         (func_acceptable): Consider these variables.
52458         (func_modules_transitive_closure): Make it work when the 'Status' field
52459         consists of multiple words.
52460         (func_import): Store and restore the values of inc_cxx_tests,
52461         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
52462         inc_all_tests in gnulib-comp.m4.
52463         (func_create_testdir): Set inc_all_tests to true.
52464         * doc/gnulib.texi (Extra tests modules): New section.
52465         Suggested by Jim Meyering.
52467 2010-03-28  Bruno Haible  <bruno@clisp.org>
52469         ansi-c++-opt: Allow turning off the C++ build by default.
52470         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
52471         gl_CXX_CHOICE_DEFAULT_NO is defined.
52472         Requested by Eric Blake.
52474 2010-03-28  Bruno Haible  <bruno@clisp.org>
52476         unistd: Avoid #define replacements in C++ mode.
52477         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
52478         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
52479         setsockopt, shutdown, select): In C++, attach a warning to the function
52480         if possible, rather than #defining the symbol to a dysfunctional alias.
52481         Reported by John W. Eaton <jwe@gnu.org>.
52483 2010-03-28  Bruno Haible  <bruno@clisp.org>
52485         Fix link errors on mingw.
52486         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
52487         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
52488         $(LIBSOCKET).
52489         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
52490         $(LIBSOCKET).
52492 2010-03-28  Bruno Haible  <bruno@clisp.org>
52493             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52495         lib-ignore: Determine different options for different compilers.
52496         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
52497         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
52498         Add comments.
52499         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
52500         * NEWS: Mention the change.
52502 2010-03-27  Bruno Haible  <bruno@clisp.org>
52504         Remove unused GNULIB_XYZ macro definitions.
52505         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52506         * modules/fseek (configure.ac): Likewise.
52507         * modules/ioctl (configure.ac): Likewise.
52508         * modules/open (configure.ac): Likewise.
52509         * modules/stdlib-safer (configure.ac): Likewise.
52511 2010-03-27  Bruno Haible  <bruno@clisp.org>
52513         Add a remark about certain modules.
52514         * modules/malloc (Comment): New section.
52515         * modules/realloc (Comment): Likewise.
52516         * modules/sigpipe (Comment): Likewise.
52518 2010-03-27  Bruno Haible  <bruno@clisp.org>
52520         Resolve conflict between the two kinds of module indicators.
52521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
52522         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
52523         * modules/canonicalize (configure.ac): Invoke
52524         gl_MODULE_INDICATOR_FOR_TESTS.
52525         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
52526         GNULIB_XYZ.
52527         * tests/test-dirent-c++.cc: Likewise.
52528         * tests/test-dirent-safer.c: Likewise.
52529         * tests/test-dup2.c: Likewise.
52530         * tests/test-fchdir.c: Likewise.
52531         * tests/test-fcntl-h-c++.cc: Likewise.
52532         * tests/test-getopt.c: Likewise.
52533         * tests/test-getopt.h: Likewise.
52534         * tests/test-langinfo-c++.cc: Likewise.
52535         * tests/test-locale-c++.cc: Likewise.
52536         * tests/test-math-c++.cc: Likewise.
52537         * tests/test-pty-c++.cc: Likewise.
52538         * tests/test-search-c++.cc: Likewise.
52539         * tests/test-signal-c++.cc: Likewise.
52540         * tests/test-spawn-c++.cc: Likewise.
52541         * tests/test-stdio-c++.cc: Likewise.
52542         * tests/test-stdlib-c++.cc: Likewise.
52543         * tests/test-string-c++.cc: Likewise.
52544         * tests/test-sys_ioctl-c++.cc: Likewise.
52545         * tests/test-sys_select-c++.cc: Likewise.
52546         * tests/test-sys_socket-c++.cc: Likewise.
52547         * tests/test-sys_stat-c++.cc: Likewise.
52548         * tests/test-sys_time-c++.cc: Likewise.
52549         * tests/test-time-c++.cc: Likewise.
52550         * tests/test-unistd-c++.cc: Likewise.
52551         * tests/test-wchar-c++.cc: Likewise.
52552         * tests/uninorm/test-u8-nfc.c: Likewise.
52553         * tests/uninorm/test-u8-nfd.c: Likewise.
52554         * tests/uninorm/test-u8-nfkc.c: Likewise.
52555         * tests/uninorm/test-u8-nfkd.c: Likewise.
52556         * tests/uninorm/test-u16-nfc.c: Likewise.
52557         * tests/uninorm/test-u16-nfd.c: Likewise.
52558         * tests/uninorm/test-u16-nfkc.c: Likewise.
52559         * tests/uninorm/test-u16-nfkd.c: Likewise.
52560         * tests/uninorm/test-u32-nfc.c: Likewise.
52561         * tests/uninorm/test-u32-nfc-big.c: Likewise.
52562         * tests/uninorm/test-u32-nfd.c: Likewise.
52563         * tests/uninorm/test-u32-nfd-big.c: Likewise.
52564         * tests/uninorm/test-u32-nfkc.c: Likewise.
52565         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
52566         * tests/uninorm/test-u32-nfkd.c: Likewise.
52567         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
52568         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52570 2010-03-27  Bruno Haible  <bruno@clisp.org>
52572         Distinguish two kinds of module indicators.
52573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
52574         gl_MODULE_INDICATOR.
52575         (gl_MODULE_INDICATOR): New macro.
52576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52577         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
52578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52579         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52580         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52581         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52582         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52583         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52584         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52585         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52586         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52587         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52590         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52592         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52595         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52596         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52597         * modules/cloexec (configure.ac): Likewise.
52598         * modules/getopt-gnu (configure.ac): Likewise.
52599         * modules/uninorm/u8-normalize (configure.ac): Likewise.
52600         * modules/uninorm/u16-normalize (configure.ac): Likewise.
52601         * modules/uninorm/u32-normalize (configure.ac): Likewise.
52602         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
52604 2010-03-27  Bruno Haible  <bruno@clisp.org>
52606         New module description field 'Comment'.
52607         * gnulib-tool: New option --extract-comment.
52608         (func_usage): Document it.
52609         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
52610         (func_get_comment): New function.
52611         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
52613 2010-03-27  Bruno Haible  <bruno@clisp.org>
52615         Addendum to 2010-02-07 commit.
52616         * gnulib-tool (func_usage): Document --extract-applicability option.
52618 2010-03-27  Bruno Haible  <bruno@clisp.org>
52620         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
52621         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
52622         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
52623         rather than link errors.
52625 2010-03-27  Bruno Haible  <bruno@clisp.org>
52627         Avoid side effects from tests-related modules on the compilation of lib.
52628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
52629         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
52630         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
52631         parameter. Emit into AM_CPPFLAGS a definition of the designated C
52632         macro.
52633         (func_import): Define a witness macro. Assign it a value that depends
52634         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
52635         tests-related modules.
52636         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
52637         Reported by Jim Meyering.
52639 2010-03-27  Bruno Haible  <bruno@clisp.org>
52641         Factorize common .m4 code.
52642         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
52643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
52644         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
52645         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
52646         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52647         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
52648         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
52649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52652         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
52653         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52654         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52655         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52656         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52657         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
52658         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52659         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52661         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
52662         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
52663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52664         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52665         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52666         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52667         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52668         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
52669         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
52670         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
52671         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52672         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52673         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52675 2010-03-27  Bruno Haible  <bruno@clisp.org>
52677         Fix a compilation error on Cygwin with g++ >= 4.3.
52678         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
52679         if it is undefined or if we alias it to chmod.
52680         (lstat): Don't warn about the use of this function if it is undefined
52681         or if we alias it to stat.
52682         Reported by Simon Josefsson.
52684 2010-03-27  Bruno Haible  <bruno@clisp.org>
52686         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
52687         * modules/getlogin (configure.ac): Update.
52689         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
52690         * modules/getlogin_r (configure.ac): Update.
52692         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
52693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
52694         * modules/inet_ntop (configure.ac): Update.
52696         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
52697         * modules/inet_pton (configure.ac): Update.
52699         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
52700         * modules/mbslen (configure.ac): Update.
52702         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
52703         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
52704         * modules/forkpty (configure.ac): Update.
52705         * modules/openpty (configure.ac): Update.
52707 2010-03-26  Simon Josefsson  <simon@josefsson.org>
52709         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
52710         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
52712 2010-03-25  Eric Blake  <eblake@redhat.com>
52714         maint: use pragma consistently across replacement headers
52715         * lib/ctype.in.h (system_header): Hoist for consistent placement.
52716         * lib/dirent.in.h (system_header): Likewise.
52717         * lib/errno.in.h (system_header): Likewise.
52718         * lib/float.in.h (system_header): Likewise.
52719         * lib/getopt.in.h (system_header): Likewise.
52720         * lib/iconv.in.h (system_header): Likewise.
52721         * lib/inttypes.in.h (system_header): Likewise.
52722         * lib/langinfo.in.h (system_header): Likewise.
52723         * lib/locale.in.h (system_header): Likewise.
52724         * lib/math.in.h (system_header): Likewise.
52725         * lib/netdb.in.h (system_header): Likewise.
52726         * lib/netinet_in.in.h (system_header): Likewise.
52727         * lib/pty.in.h (system_header): Likewise.
52728         * lib/sched.in.h (system_header): Likewise.
52729         * lib/se-selinux.in.h (system_header): Likewise.
52730         * lib/search.in.h (system_header): Likewise.
52731         * lib/spawn.in.h (system_header): Likewise.
52732         * lib/stdarg.in.h (system_header): Likewise.
52733         * lib/stdint.in.h (system_header): Likewise.
52734         * lib/string.in.h (system_header): Likewise.
52735         * lib/strings.in.h (system_header): Likewise.
52736         * lib/sys_file.in.h (system_header): Likewise.
52737         * lib/sys_ioctl.in.h (system_header): Likewise.
52738         * lib/sys_socket.in.h (system_header): Likewise.
52739         * lib/sys_times.in.h (system_header): Likewise.
52740         * lib/sys_utsname.in.h (system_header): Likewise.
52741         * lib/sys_wait.in.h (system_header): Likewise.
52742         * lib/sysexits.in.h (system_header): Likewise.
52743         * lib/unistd.in.h (system_header): Likewise.
52744         * lib/wctype.in.h (system_header): Likewise.
52746         arpa/inet: fix mingw compilation warning
52747         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
52748         Reported by Matthew Bolte.
52750 2010-03-25  Bruno Haible  <bruno@clisp.org>
52752         Avoid collision between gnulib wrapper and libintl wrapper.
52753         * lib/printf.c (printf): Don't define if a printf wrapper is already
52754         defined in intl/printf.c.
52755         Reported by Michel Boaventura <michel@michelboaventura.com>.
52757 2010-03-25  Bruno Haible  <bruno@clisp.org>
52759         Use ANSI C.
52760         * lib/readutmp.h (getutent): Provide ANSI C prototype.
52762 2010-03-25  Bruno Haible  <bruno@clisp.org>
52764         Minor formatting changes.
52765         * lib/acosl.c: Insert space before function argument list.
52766         * lib/argz.c: Likewise.
52767         * lib/asinl.c: Likewise.
52768         * lib/expl.c: Likewise.
52769         * lib/gen-uni-tables.c: Likewise.
52770         * lib/gettext.h: Likewise.
52771         * lib/glthread/lock.h: Likewise.
52772         * lib/tanl.c: Likewise.
52773         * lib/uniname/uniname.c: Likewise.
52774         * tests/test-idpriv-drop.c: Likewise.
52775         * tests/test-idpriv-droptemp.c: Likewise.
52776         * tests/test-lock.c: Likewise.
52777         * tests/test-tls.c: Likewise.
52778         * lib/argp-help.c: Insert space before function-like macro argument
52779         list.
52780         * lib/memcmp.c: Likewise.
52781         * tests/test-base64.c: Likewise.
52782         * lib/localename.c: Insert space before sizeof's argument list.
52783         * lib/safe-alloc.h: Likewise.
52784         * lib/file-set.h: Insert space before macro argument list.
52785         * tests/test-argp.c: Likewise.
52786         * lib/argp-namefrob.h: Insert space before function parameter list.
52787         * lib/getaddrinfo.c: Likewise.
52788         * lib/netdb.in.h: Likewise.
52789         * lib/parse-duration.h: Likewise.
52790         * lib/parse-duration.c: Likewise.
52791         * lib/poll.c: Likewise.
52792         * lib/select.c: Likewise.
52793         * lib/trim.h: Likewise.
52794         * tests/test-usleep.c: Likewise.
52795         * lib/ldexpl.c: Insert space before function parameter list and before
52796         function argument list.
52797         * lib/logl.c: Likewise.
52798         * lib/sqrtl.c: Likewise.
52799         * lib/trim.c: Likewise.
52800         * lib/cosl.c: Use GNU style indentation. Insert space before function
52801         argument list.
52802         * lib/sinl.c: Likewise.
52803         * lib/tsearch.c: Insert space after 'for'.
52804         Reported by Jim Meyering.
52806 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
52808         * maint.mk (sc_Wundef_boolean): Check for the presence of the
52809         config header before grepping, as it's not present before
52810         autoreconf/configure are run.  Reported by Simon Josefsson.
52812 2010-03-23  Bruno Haible  <bruno@clisp.org>
52814         pt_chown: Make it work with automake < 1.11.
52815         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
52816         Reported by Simon Josefsson.
52818 2010-03-23  Bruno Haible  <bruno@clisp.org>
52820         pt_chown: Don't depend on GPLed modules.
52821         * lib/pt_chown.c: Don't include idpriv.h.
52822         (main): Don't drop privileges.
52823         * modules/pt_chown (Depends-on): Remove idpriv-drop.
52824         Reported by Simon Josefsson.
52826 2010-03-24  Simon Josefsson  <simon@josefsson.org>
52828         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
52829         suggestions from karl@freefriends.org (Karl Berry).
52831 2010-03-22  Eric Blake  <eblake@redhat.com>
52833         gethostname: further tweaks
52834         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
52835         are overriding gethostname.
52836         Suggested by Bruno Haible.
52838 2010-03-21  Bruno Haible  <bruno@clisp.org>
52840         Fix comments.
52841         * lib/forkpty.c (rpl_forkpty): Fix comment.
52842         * lib/openpty.c (rpl_openpty): Likewise.
52843         Reported by Eric Blake.
52845 2010-03-22  Eric Blake  <eblake@redhat.com>
52847         gethostname: fix build on mingw
52848         * lib/unistd.in.h (includes): Work around fact that mingw
52849         <winsock2.h> re-includes <unistd.h>, by avoiding any
52850         redeclarations if we are being included by <winsock2.h>.
52851         Reported by Matthias Bolte.
52853 2010-03-21  Bruno Haible  <bruno@clisp.org>
52855         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52856         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52857         modifications.
52858         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52859         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52860         provide the replacement.
52861         * modules/forkpty (Depends-on): Add openpty, login_tty.
52862         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52863         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52864         * doc/glibc-functions/forkpty.texi: More supported platforms.
52865         * config/srclist.txt: Add forkpty.c (commented).
52867 2010-03-21  Bruno Haible  <bruno@clisp.org>
52869         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52870         (Makefile.am): Verify that PTY_LIB is defined.
52872         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52874 2010-03-21  Bruno Haible  <bruno@clisp.org>
52876         Tests for module 'login_tty'.
52877         * modules/login_tty-tests: New file.
52878         * tests/test-login_tty.c: New file.
52880         New module 'login_tty'.
52881         * lib/login_tty.c: New file.
52882         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52883         * modules/login_tty: New file.
52884         * doc/glibc-functions/login_tty.texi: Mention the new module.
52886 2010-03-21  Bruno Haible  <bruno@clisp.org>
52888         login_tty: Documentation.
52889         * doc/glibc-functions/login_tty.texi: New file.
52890         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52892 2010-03-21  Bruno Haible  <bruno@clisp.org>
52894         pty: Consistent macro naming.
52895         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52896         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52897         * modules/pty (configure.ac): Update.
52899 2010-03-21  Bruno Haible  <bruno@clisp.org>
52901         Tests for openpty: Make stricter.
52902         * tests/test-openpty.c (main): Add test of canonical processing and
52903         erase.
52904         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52906         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52907         * lib/openpty.c (openpty): New replacement function.
52908         * lib/pty.in.h: Include <termios.h>.
52909         (openpty): Update declaration. Add comments.
52910         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52911         is not declared, arrange to provide the replacement. Check for _getpty
52912         and posix_openpt.
52913         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52914         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52915         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52916         * modules/pty-tests (test_pty_c___LDADD): New variable.
52917         * doc/glibc-functions/openpty.texi: More supported platforms.
52919 2010-03-21  Bruno Haible  <bruno@clisp.org>
52921         setenv: Tweaks.
52922         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52923         the test program.
52924         * doc/posix-functions/setenv.texi: Update platforms list.
52926 2010-03-21  Bruno Haible  <bruno@clisp.org>
52928         New module 'unlockpt'.
52929         * lib/unlockpt.c: New file, from glibc with modifications.
52930         * m4/unlockpt.m4: New file.
52931         * modules/unlockpt: New file.
52932         * lib/stdlib.in.h (unlockpt): New declaration.
52933         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52934         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52935         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52936         HAVE_UNLOCKPT.
52937         * doc/posix-functions/unlockpt.texi: Mention the new module.
52938         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52939         * config/srclist.txt: Add unlockpt.c (commented).
52941 2010-03-21  Jim Meyering  <meyering@redhat.com>
52943         maint.mk: prohibit inclusion of "intprops.h" without use
52944         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52946 2010-03-21  Bruno Haible  <bruno@clisp.org>
52948         New module 'grantpt'.
52949         * lib/grantpt.c: New file, from glibc with modifications.
52950         * m4/grantpt.m4: New file.
52951         * modules/grantpt: New file.
52952         * lib/stdlib.in.h (grantpt): New declaration.
52953         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52954         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52955         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52956         HAVE_GRANTPT.
52957         * doc/posix-functions/grantpt.texi: Mention the new module.
52958         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52959         * config/srclist.txt: Add grantpt.c (commented).
52961 2010-03-21  Bruno Haible  <bruno@clisp.org>
52963         New module 'pt_chown'.
52964         * lib/pt_chown.c: New file, from glibc with modifications.
52965         * lib/pty-private.h: New file, from glibc with modifications.
52966         * modules/pt_chown: New file.
52967         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52969 2010-03-21  Bruno Haible  <bruno@clisp.org>
52971         Tests for module 'ptsname'.
52972         * modules/ptsname-tests: New file.
52973         * tests/test-ptsname.c: New file.
52975         New module 'ptsname'.
52976         * lib/ptsname.c: New file, from glibc with modifications.
52977         * m4/ptsname.m4: New file.
52978         * modules/ptsname: New file.
52979         * lib/stdlib.in.h (ptsname): New declaration.
52980         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52981         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52982         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52983         HAVE_PTSNAME.
52984         * doc/posix-functions/ptsname.texi: Mention the new module.
52985         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52986         * config/srclist.txt: Add ptsname.c (commented).
52988 2010-03-21  Bruno Haible  <bruno@clisp.org>
52990         Tests for module 'ttyname_r'.
52991         * modules/ttyname_r-tests: New file.
52992         * tests/test-ttyname_r.c: New file.
52994         New module 'ttyname_r'.
52995         * lib/ttyname_r.c: New file.
52996         * m4/ttyname_r.m4: New file.
52997         * modules/ttyname_r: New file.
52998         * lib/unistd.in.h (ttyname_r): New declaration.
52999         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
53000         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
53001         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
53002         HAVE_TTYNAME_R.
53003         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
53004         * doc/posix-functions/ttyname_r.texi: Mention the new module.
53006 2010-03-20  Bruno Haible  <bruno@clisp.org>
53008         signal: Undefine macro definitions in C++ mode.
53009         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
53010         sigfillset): Undefine macro definitions from the system header in C++
53011         mode.
53012         Reported by John W. Eaton <jwe@gnu.org>.
53014 2010-03-20  Bruno Haible  <bruno@clisp.org>
53016         Ensure no #include statements inside extern "C" { ... }.
53017         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
53018         contain #include statements.
53019         * lib/time.in.h: Likewise.
53021 2010-03-20  Bruno Haible  <bruno@clisp.org>
53023         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
53024         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
53025         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
53026         Reported by John W. Eaton <jwe@gnu.org>.
53028 2010-03-20  Bruno Haible  <bruno@clisp.org>
53030         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
53031         Reported by Jim Meyering.
53033 2010-03-20  Bruno Haible  <bruno@clisp.org>
53035         pipe: Set errno upon failure.
53036         * lib/pipe.h: Specify that when -1 is returned, errno is set.
53037         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
53038         errno value in error message.
53040 2010-03-20  Bruno Haible  <bruno@clisp.org>
53041             Jim Meyering  <meyering@redhat.com>
53043         lchown: Avoid "unused variable" warning.
53044         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
53046 2010-03-20  Bruno Haible  <bruno@clisp.org>
53048         Work around unlink() bug on MacOS X 10.5.6.
53049         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
53050         attempting to unlink a parent directory.
53051         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
53052         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
53053         activate for the replacement function.
53054         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
53056 2010-03-20  Bruno Haible  <bruno@clisp.org>
53058         Fix link errors on Solaris 8.
53059         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
53060         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
53062 2010-03-19  Jim Meyering  <meyering@redhat.com>
53064         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
53065         The _LIBC implementation of build_range_exp correctly honors the
53066         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
53067         However, the non-_LIBC implementation would ignore that syntax-bit
53068         flag and return REG_ERANGE unconditionally.
53069         This change makes it honor that flag.
53070         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
53071         Make two pointer parameters "const".
53072         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
53073         (parse_bracket_exp): Update caller.
53075         regex.m4: correct the reversed range endpoint ([b-a]) test
53076         * m4/regex.m4: When requiring that [b-a] evoke failure,
53077         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
53078         test pass once again for x86-based systems.
53080 2010-03-19  Bruno Haible  <bruno@clisp.org>
53082         scandir: Fix link error on Solaris 8.
53083         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
53084         macros.
53086 2010-03-19  Bruno Haible  <bruno@clisp.org>
53088         getusershell: Fix documentation.
53089         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
53090         module.
53091         * doc/glibc-functions/setusershell.texi: Likewise.
53093         getusershell: Provide declaration, missing on Solaris 9.
53094         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
53095         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
53096         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
53097         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
53098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53099         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
53100         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
53101         HAVE_GETUSERSHELL.
53102         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
53104 2010-03-19  Bruno Haible  <bruno@clisp.org>
53106         wctype: Provide iswblank function.
53107         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
53108         exists and is fine.
53109         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
53110         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
53111         * tests/test-wctype.c (main): Re-enable the iswblank tests.
53112         * doc/posix-functions/iswblank.texi: Update.
53114 2010-03-19  Bruno Haible  <bruno@clisp.org>
53116         Tests of module 'pty' in C++ mode.
53117         * modules/pty-tests: New file.
53118         * tests/test-pty-c++.cc: New file.
53119         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53121 2010-03-19  Eric Blake  <eblake@redhat.com>
53123         logb: fix documentation
53124         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
53125         1.5 declaration bug.
53127         forkpty, openpty: prefer glibc's const-safe prototype
53128         * lib/forkpty.c (rpl_forkpty): New file.
53129         * lib/openpty.c (rpl_openpty): Likewise.
53130         * modules/forkpty (Files): Distribute it.
53131         * modules/openpty (Files): Likewise.
53132         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
53133         check...
53134         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
53135         replacement for non-const BSD signature.
53136         * modules/pty (Makefile.am): Substitute witnesses.
53137         * lib/pty.in.h (forkpty, openpty): Declare replacements.
53138         * tests/test-forkpty.c: Update signature check.
53139         * tests/test-openpty.c: Likewise.
53140         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
53141         * doc/glibc-functions/openpty.texi (openpty): Likewise.
53143         forkpty, openpty: split functions into new modules
53144         * modules/pty (Makefile.am): Substitute new witnesses.
53145         (Libraries): Move library detection...
53146         * modules/forkpty: ...into new module.
53147         * modules/openpty: Another new module.
53148         * modules/pty-tests: Rename and split...
53149         * modules/forkpty-tests: ...to this...
53150         * modules/openpty-tests: ...and this.
53151         * tests/test-pty.c: Rename and split...
53152         * tests/test-forkpty.c: ...to this...
53153         * tests/test-openpty.c: ...and this.
53154         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
53155         (gl_PTY): Split library searching...
53156         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
53157         (gl_FORKPTY, gl_OPENPTY): New macros.
53158         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
53159         * NEWS: Mention the split.
53160         * MODULES.html.sh (Misc): Document the modules.
53161         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
53162         * doc/glibc-functions/openpty.texi (openpty): Likewise.
53164         pty: improve replacement header
53165         * lib/pty.in.h: New file.
53166         * modules/pty (Files): Ship it.
53167         (Makefile.am): Always build replacement.
53168         * m4/pty.m4: Rename...
53169         * m4/pty_h.m4: ...to this.
53170         (gl_PTY): Modernize setting of witness macros; update check of
53171         forkpty to take proper advantage of cache.
53172         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
53174         getopt: avoid compiler warning
53175         * lib/getopt.c (attribute_hidden): Remove unused macro.
53177 2010-03-18  Bruno Haible  <bruno@clisp.org>
53179         Fix link errors on Solaris 8.
53180         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
53181         * modules/search-tests (test_search_c___LDADD): Likewise.
53182         * modules/signal-tests (test_signal_c___LDADD): Likewise.
53183         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
53184         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
53185         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
53186         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
53187         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
53188         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
53190 2010-03-18  Bruno Haible  <bruno@clisp.org>
53192         Fix bug introduced on 2010-03-14.
53193         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
53194         (gl_SPAWN_H): Require it.
53195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
53196         Reported by Simon Josefsson.
53198 2010-03-18  Bruno Haible  <bruno@clisp.org>
53200         Fix typo introduced on 2009-12-31.
53201         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
53202         posix_spawn_file_actions_adddup2.
53204 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
53205         and Eric Blake  <eblake@redhat.com>
53207         test-vc-list-files-git: make more robust
53208         * tests/test-vc-list-files-git.sh: Unset problematic environment
53209         variables.  Chain commands together.
53211 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
53213         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
53214         `AC_CHECK_DECL' invocation.
53216 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
53218         * lib/inttostr.c (inttostr): Make sure the invocation of verify
53219         appears before executable statements. Suggested by Petr Sumbera
53220         <Petr.Sumbera@Sun.COM>.
53222 2010-03-14  Bruno Haible  <bruno@clisp.org>
53224         * tests/test-flock.c (test_exclusive): Comment out a test that causes
53225         portability problems. Instead use a simpler test.
53226         (main): Check that invalid arguments are rejected only on Linux.
53228 2010-03-14  Bruno Haible  <bruno@clisp.org>
53230         Fix bug introduced on 2009-12-31.
53231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
53232         gl_PREREQ_SYS_H_WINSOCK2 always.
53233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
53234         SYS_SOCKET_H variable.
53235         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
53236         Update comments.
53237         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
53238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53241         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
53243 2010-03-14  Bruno Haible  <bruno@clisp.org>
53245         Fix values returned by sinl, cosl.
53246         * lib/trigl.h: Add specification comments.
53247         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
53248         that combines the values from the precomputed table with the values of
53249         the Chebyshev polynomials.
53251 2010-03-14  Bruno Haible  <bruno@clisp.org>
53253         Fix compilation error when modules 'posix_spawn[p]' are not used.
53254         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
53255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
53257 2010-03-14  Bruno Haible  <bruno@clisp.org>
53259         Fix compilation error on mingw when module 'time_r' is not used.
53260         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
53261         is 1.
53262         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
53263         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53264         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
53265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
53267 2010-03-14  Bruno Haible  <bruno@clisp.org>
53269         Fix compilation error with Sun C.
53270         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
53271         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
53272         instead of GCC specific ULONG_LONG_MAX.
53273         * lib/xstrtoll.c: Likewise.
53274         * lib/xstrtoull.c: Likewise.
53276 2010-03-13  Bruno Haible  <bruno@clisp.org>
53278         Allow the user to disable C++ code and tests.
53279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
53280         (gl_PROG_ANSI_CXX): Require it.
53282 2010-03-13  Bruno Haible  <bruno@clisp.org>
53284         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
53285         cases.
53287 2010-03-13  Bruno Haible  <bruno@clisp.org>
53289         Test that gnulib does not break the standard C++ headers.
53290         * tests/test-locale-c++2.cc: New file.
53291         * modules/locale-tests (Files): Add it.
53292         (Makefile.am): Compile it for test-locale-c++.
53293         * tests/test-math-c++2.cc: New file.
53294         * modules/math-tests (Files): Add it.
53295         (Makefile.am): Compile it for test-math-c++.
53296         * tests/test-signal-c++2.cc: New file.
53297         * modules/signal-tests (Files): Add it.
53298         (Makefile.am): Compile it for test-signal-c++.
53299         * tests/test-stdio-c++2.cc: New file.
53300         * modules/stdio-tests (Files): Add it.
53301         (Makefile.am): Compile it for test-stdio-c++.
53302         * tests/test-stdlib-c++2.cc: New file.
53303         * modules/stdlib-tests (Files): Add it.
53304         (Makefile.am): Compile it for test-stdlib-c++.
53305         * tests/test-string-c++2.cc: New file.
53306         * modules/string-tests (Files): Add it.
53307         (Makefile.am): Compile it for test-string-c++.
53308         * tests/test-time-c++2.cc: New file.
53309         * modules/time-tests (Files): Add it.
53310         (Makefile.am): Compile it for test-time-c++.
53311         Reported by John W. Eaton <jwe@gnu.org>.
53313 2010-03-13  Bruno Haible  <bruno@clisp.org>
53315         * gnulib-tool (func_usage): Clarify which options are available for
53316         --create-testdir and --create-megatestdir.
53318 2010-03-13  Bruno Haible  <bruno@clisp.org>
53320         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
53321         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
53322         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
53323         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
53324         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
53325         when appropriate.
53326         Reported by Jim Meyering.
53328 2010-03-12  Simon Josefsson  <simon@josefsson.org>
53330         * gnulib-tool (func_import): Explain origin of code.
53332 2010-03-12  Bruno Haible  <bruno@clisp.org>
53334         Fix problem with automake's definition of CXXLINK.
53335         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
53336         Reported by Simon Josefsson and Ludovic Courtès.
53338 2010-03-12  Bruno Haible  <bruno@clisp.org>
53340         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
53341         stable releases.
53343 2010-03-11  Bruno Haible  <bruno@clisp.org>
53345         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
53346         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
53347         whether the system provides one variant or multiple variants of the
53348         function.
53349         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
53350         C++ compilers.
53351         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
53352         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
53353         Reported by Jim Meyering.
53355 2010-03-09  Simon Josefsson  <simon@josefsson.org>
53357         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
53359 2010-03-08  Bruno Haible  <bruno@clisp.org>
53361         gnulib-tool: Add support for --libtool in --create-testdir.
53362         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
53363         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
53365 2010-03-08  Eric Blake  <eblake@redhat.com>
53367         gnulib-tool.texi: mention possibility of git submodule
53368         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
53369         submodules.
53370         * doc/.gitignore: Ignore another generated file.
53372 2010-03-08  Karl Berry  <karl@gnu.org>
53374         * doc/gnulib-tool.texi (VCS Issues): Mention third option
53375         of committing gnulib files while skipping others.
53377 2010-03-07  Bruno Haible  <bruno@clisp.org>
53379         Tests of module 'wctype' in C++ mode.
53380         * tests/test-wctype-c++.cc: New file.
53381         * modules/wctype-tests (Files): Add it and tests/signature.h.
53382         (Depends-on): Add ansi-c++-opt.
53383         (Makefile.am): Arrange to compile and run test-wctype-c++.
53385         Tests of module 'wchar' in C++ mode.
53386         * tests/test-wchar-c++.cc: New file.
53387         * modules/wchar-tests (Files): Add it and tests/signature.h.
53388         (Depends-on): Add ansi-c++-opt.
53389         (Makefile.am): Arrange to compile and run test-wchar-c++.
53390         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
53391         gl_MODULE_INDICATOR.
53393         Tests of module 'unistd' in C++ mode.
53394         * tests/test-unistd-c++.cc: New file.
53395         * modules/unistd-tests (Files): Add it and tests/signature.h.
53396         (Depends-on): Add ansi-c++-opt.
53397         (Makefile.am): Arrange to compile and run test-unistd-c++.
53398         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
53399         gl_MODULE_INDICATOR.
53401         Tests of module 'time' in C++ mode.
53402         * tests/test-time-c++.cc: New file.
53403         * modules/time-tests (Files): Add it and tests/signature.h.
53404         (Depends-on): Add ansi-c++-opt.
53405         (Makefile.am): Arrange to compile and run test-time-c++.
53406         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53408         Tests of module 'sys_time' in C++ mode.
53409         * tests/test-sys_time-c++.cc: New file.
53410         * modules/sys_time-tests (Files): Add it and tests/signature.h.
53411         (Depends-on): Add ansi-c++-opt.
53412         (Makefile.am): Arrange to compile and run test-sys_time-c++.
53413         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
53414         gl_MODULE_INDICATOR.
53416         Tests of module 'sys_stat' in C++ mode.
53417         * tests/test-sys_stat-c++.cc: New file.
53418         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
53419         (Depends-on): Add ansi-c++-opt.
53420         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
53421         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
53422         gl_MODULE_INDICATOR.
53424         Tests of module 'sys_socket' in C++ mode.
53425         * tests/test-sys_socket-c++.cc: New file.
53426         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
53427         (Depends-on): Add ansi-c++-opt.
53428         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
53429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
53430         gl_MODULE_INDICATOR.
53432         Tests of module 'sys_select' in C++ mode.
53433         * tests/test-sys_select-c++.cc: New file.
53434         * modules/sys_select-tests (Files): Add it and tests/signature.h.
53435         (Depends-on): Add ansi-c++-opt.
53436         (Makefile.am): Arrange to compile and run test-sys_select-c++.
53437         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
53438         gl_MODULE_INDICATOR.
53440         Tests of module 'sys_ioctl' in C++ mode.
53441         * tests/test-sys_ioctl-c++.cc: New file.
53442         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
53443         (Depends-on): Add ansi-c++-opt.
53444         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
53445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
53446         gl_MODULE_INDICATOR.
53448         Tests of module 'string' in C++ mode.
53449         * tests/test-string-c++.cc: New file.
53450         * modules/string-tests (Files): Add it and tests/signature.h.
53451         (Depends-on): Add ansi-c++-opt.
53452         (Makefile.am): Arrange to compile and run test-string-c++.
53453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
53454         gl_MODULE_INDICATOR.
53456         Tests of module 'stdlib' in C++ mode.
53457         * tests/test-stdlib-c++.cc: New file.
53458         * modules/stdlib-tests (Files): Add it and tests/signature.h.
53459         (Depends-on): Add ansi-c++-opt.
53460         (Makefile.am): Arrange to compile and run test-stdlib-c++.
53461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
53462         gl_MODULE_INDICATOR.
53464         Tests of module 'stdio' in C++ mode.
53465         * tests/test-stdio-c++.cc: New file.
53466         * modules/stdio-tests (Files): Add it and tests/signature.h.
53467         (Depends-on): Add ansi-c++-opt.
53468         (Makefile.am): Arrange to compile and run test-stdio-c++.
53469         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
53470         gl_MODULE_INDICATOR.
53472         Tests of module 'spawn' in C++ mode.
53473         * tests/test-spawn-c++.cc: New file.
53474         * modules/spawn-tests (Files): Add it and tests/signature.h.
53475         (Depends-on): Add ansi-c++-opt.
53476         (Makefile.am): Arrange to compile and run test-spawn-c++.
53477         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
53478         gl_MODULE_INDICATOR.
53480         Tests of module 'signal' in C++ mode.
53481         * tests/test-signal-c++.cc: New file.
53482         * modules/signal-tests (Files): Add it and tests/signature.h.
53483         (Depends-on): Add ansi-c++-opt.
53484         (Makefile.am): Arrange to compile and run test-signal-c++.
53485         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
53486         gl_MODULE_INDICATOR.
53488         Tests of module 'search' in C++ mode.
53489         * tests/test-search-c++.cc: New file.
53490         * modules/search-tests (Files): Add it and tests/signature.h.
53491         (Depends-on): Add ansi-c++-opt.
53492         (Makefile.am): Arrange to compile and run test-search-c++.
53493         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
53494         gl_MODULE_INDICATOR.
53496         Tests of module 'math' in C++ mode.
53497         * tests/test-math-c++.cc: New file.
53498         * modules/math-tests (Files): Add it and tests/signature.h.
53499         (Depends-on): Add ansi-c++-opt.
53500         (Makefile.am): Arrange to compile and run test-math-c++.
53501         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53503         Tests of module 'locale' in C++ mode.
53504         * tests/test-locale-c++.cc: New file.
53505         * modules/locale-tests (Files): Add it and tests/signature.h.
53506         (Depends-on): Add ansi-c++-opt.
53507         (Makefile.am): Arrange to compile and run test-locale-c++.
53508         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
53509         gl_MODULE_INDICATOR.
53511         Tests of module 'langinfo' in C++ mode.
53512         * tests/test-langinfo-c++.cc: New file.
53513         * modules/langinfo-tests (Files): Add it and tests/signature.h.
53514         (Depends-on): Add ansi-c++-opt.
53515         (Makefile.am): Arrange to compile and run test-langinfo-c++.
53516         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
53517         gl_MODULE_INDICATOR.
53519         Tests of module 'iconv-h' in C++ mode.
53520         * tests/test-iconv-h-c++.cc: New file.
53521         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
53522         (Depends-on): Add ansi-c++-opt.
53523         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
53525         Tests of module 'glob' in C++ mode.
53526         * tests/test-glob-c++.cc: New file.
53527         * modules/glob-tests (Files): Add it.
53528         (Depends-on): Add ansi-c++-opt.
53529         (Makefile.am): Arrange to compile and run test-glob-c++.
53531         Tests of module 'fcntl-h' in C++ mode.
53532         * tests/test-fcntl-h-c++.cc: New file.
53533         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
53534         (Depends-on): Add ansi-c++-opt.
53535         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
53536         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
53537         gl_MODULE_INDICATOR.
53539         Tests of module 'dirent' in C++ mode.
53540         * tests/test-dirent-c++.cc: New file.
53541         * modules/dirent-tests (Files): Add it and tests/signature.h.
53542         (Depends-on): Add ansi-c++-opt.
53543         (Makefile.am): Arrange to compile and run test-dirent-c++.
53544         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
53545         gl_MODULE_INDICATOR.
53547         New module 'ansi-c++-opt'.
53548         * modules/ansi-c++-opt: New file.
53549         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
53551         Document C++ namespace mode.
53552         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
53554         wctype: Avoid #define replacements in C++ mode.
53555         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
53556         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
53557         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
53558         In C++, define a namespaced alias symbol.
53559         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
53560         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
53561         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
53562         rule.
53564         wchar: Avoid #define replacements in C++ mode.
53565         * lib/wchar.in.h: Include c++defs.h.
53566         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
53567         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
53568         symbol.
53569         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
53570         * modules/wchar (Depends-on): Add c++defs.
53571         (Makefile.am): Update wchar.h rule.
53573         unistd: Avoid #define replacements in C++ mode.
53574         * lib/unistd.in.h: Include c++defs.h.
53575         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
53576         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
53577         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
53578         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
53579         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
53580         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
53581         symbol.
53582         (environ): Update.
53583         * modules/unistd (Depends-on): Add c++defs.
53584         (Makefile.am): Update unistd.h rule.
53586         time: Avoid #define replacements in C++ mode.
53587         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
53588         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
53589         define a namespaced alias symbol.
53590         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
53591         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
53592         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
53593         * modules/time (Depends-on): Add c++defs, warn-on-use.
53594         (Makefile.am): Update time.h rule.
53595         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53596         * modules/nanosleep (configure.ac): Likewise.
53597         * modules/strptime (configure.ac): Likewise.
53598         * modules/timegm (configure.ac): Likewise.
53600         sys_time: Avoid #define replacements in C++ mode.
53601         * lib/sys_time.in.h: Include c++defs.h.
53602         (gettimeofday): In C++, define a namespaced alias symbol.
53603         * modules/sys_time (Depends-on): Add c++defs.
53604         (Makefile.am): Update sys/time.h rule.
53606         sys_stat: Avoid #define replacements in C++ mode.
53607         * lib/sys_stat.in.h: Include c++defs.h.
53608         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
53609         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
53610         namespaced alias symbol.
53611         In C++, define a namespaced alias symbol.
53612         * modules/sys_stat (Depends-on): Add c++defs.
53613         (Makefile.am): Update sys/stat.h rule.
53615         sys_socket: Avoid #define replacements in C++ mode.
53616         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
53617         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
53618         definitions also when the system has a <sys/socket.h>.
53619         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53620         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
53621         In C++, define a namespaced alias symbol.
53622         * modules/sys_socket (Depends-on): Add c++defs.
53623         (Makefile.am): Update sys/socket.h rule.
53625         sys_select: Avoid #define replacements in C++ mode.
53626         * lib/sys_select.in.h: Include c++defs.h. Enable the function
53627         definitions also when the system has a <sys/select.h>.
53628         (select): In C++, define a namespaced alias symbol.
53629         * modules/sys_select (Depends-on): Add c++defs.
53630         (Makefile.am): Update sys/select.h rule.
53632         sys_ioctl: Avoid #define replacements in C++ mode.
53633         * lib/sys_ioctl.in.h: Include c++defs.h.
53634         (ioctl): In C++, define a namespaced alias symbol.
53635         * modules/sys_ioctl (Depends-on): Add c++defs.
53636         (Makefile.am): Update sys/ioctl.h rule.
53638         string: Avoid #define replacements in C++ mode.
53639         * lib/string.in.h: Include c++defs.h.
53640         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
53641         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
53642         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
53643         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
53644         strsignal, strverscmp): In C++, define a namespaced alias symbol.
53645         * modules/string (Depends-on): Add c++defs.
53646         (Makefile.am): Update string.h rule.
53648         stdlib: Avoid #define replacements in C++ mode.
53649         * lib/stdlib.in.h: Include c++defs.h.
53650         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
53651         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
53652         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
53653         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
53654         symbol.
53655         * modules/stdlib (Depends-on): Add c++defs.
53656         (Makefile.am): Update stdlib.h rule.
53658         stdio: Avoid #define replacements in C++ mode.
53659         * lib/stdio.in.h: Include c++defs.h.
53660         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
53661         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
53662         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
53663         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
53664         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
53665         namespaced alias symbol.
53666         * modules/stdio (Depends-on): Add c++defs.
53667         (Makefile.am): Update stdio.h rule.
53669         spawn: Avoid #define replacements in C++ mode.
53670         * lib/spawn.in.h: Include c++defs.h.
53671         (posix_spawn, posix_spawnp, posix_spawnattr_init,
53672         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
53673         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
53674         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
53675         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
53676         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
53677         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
53678         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
53679         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
53680         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
53681         In C++, define a namespaced alias symbol.
53682         * modules/spawn (Depends-on): Add c++defs.
53683         (Makefile.am): Update spawn.h rule.
53685         signal: Avoid #define replacements in C++ mode.
53686         * lib/signal.in.h: Include c++defs.h.
53687         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
53688         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
53689         namespaced alias symbol.
53690         * modules/signal (Depends-on): Add c++defs.
53691         (Makefile.am): Update signal.h rule.
53693         search: Avoid #define replacements in C++ mode.
53694         * lib/search.in.h: Include c++defs.h.
53695         (_gl_search_compar_fn, _gl_search_action_fn): New types.
53696         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
53697         symbol.
53698         * modules/search (Depends-on): Add c++defs.
53699         (Makefile.am): Update search.h rule.
53701         math: Avoid #define replacements in C++ mode.
53702         * lib/math.in.h: Include c++defs.h.
53703         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
53704         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
53705         trunc, truncl): In C++, define a namespaced alias symbol.
53706         * modules/math (Depends-on): Add c++defs.
53707         (Makefile.am): Update math.h rule.
53709         locale: Avoid #define replacements in C++ mode.
53710         * lib/locale.in.h: Include c++defs.h.
53711         (duplocale): In C++, define a namespaced alias symbol.
53712         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
53713         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
53714         * modules/locale (Depends-on): Add c++defs.
53715         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
53717         langinfo: Avoid #define replacements in C++ mode.
53718         * lib/langinfo.in.h: Include c++defs.h.
53719         (nl_langinfo): In C++, define a namespaced alias symbol.
53720         * modules/langinfo (Depends-on): Add c++defs.
53721         (Makefile.am): Update langinfo.h rule.
53723         iconv-h: Avoid #define replacements in C++ mode.
53724         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
53725         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
53726         symbol.
53727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53728         whenever iconv is present.
53729         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
53730         (Makefile.am): Update iconv.h rule.
53732         glob: Avoid #define replacements in C++ mode.
53733         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
53734         (_gl_glob_errfunc_fn): New type.
53735         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
53736         symbol.
53737         * modules/glob (Depends-on): Add c++defs, warn-on-use.
53738         (Makefile.am): Update glob.h rule.
53740         fcntl-h: Avoid #define replacements in C++ mode.
53741         * lib/fcntl.in.h: Include c++defs.h.
53742         (fcntl, open, openat): In C++, define a namespaced alias symbol.
53743         * modules/fcntl-h (Depends-on): Add c++defs.
53744         (Makefile.am): Update fcntl.h rule.
53746         dirent: Avoid #define replacements in C++ mode.
53747         * lib/dirent.in.h: Include c++defs.h.
53748         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
53749         namespaced alias symbol.
53750         (dirfd): Update declaration.
53751         * modules/dirent (Depends-on): Add c++defs.
53752         (Makefile.am): Update dirent.h rule.
53754         ctype: Make it usable in C++ code.
53755         * lib/ctype.in.h: Include c++defs.h.
53756         (isblank): Declare as extern "C".
53757         * modules/ctype (Depends-on): Add c++defs.
53758         (Makefile.am): Update ctype.h rule.
53760         New module 'c++defs'.
53761         * modules/c++defs: New file.
53762         * build-aux/c++defs.h: New file.
53763         Reported by John W. Eaton <jwe@gnu.org>.
53765 2010-03-07  Bruno Haible  <bruno@clisp.org>
53767         logb: Provide missing declaration for Cygwin.
53768         * lib/math.in.h (logb): New declaration.
53769         * m4/logb.m4: New file.
53770         * modules/logb (Files): Add m4/logb.m4.
53771         (Depends-on): Add math.
53772         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
53773         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
53774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
53775         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
53776         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
53778 2010-03-07  Bruno Haible  <bruno@clisp.org>
53780         Fix test-cond link error.
53781         * tests/test-cond.c: Include <stdio.h>.
53783 2010-03-07  Bruno Haible  <bruno@clisp.org>
53785         Fix test-dirent-safer link error.
53786         * modules/dirent-safer-tests (Makefile.am): Define
53787         test_dirent_safer_LDADD.
53789 2010-03-07  Bruno Haible  <bruno@clisp.org>
53791         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
53792         among default module list.
53794 2010-03-07  Bruno Haible  <bruno@clisp.org>
53796         Fix link error on platforms with GNU libiconv.
53797         * modules/unistr/u8-strcoll-tests (Makefile): Define
53798         test_u8_strcoll_LDADD.
53799         * modules/unistr/u16-strcoll-tests (Makefile): Define
53800         test_u16_strcoll_LDADD.
53801         * modules/unistr/u32-strcoll-tests (Makefile): Define
53802         test_u32_strcoll_LDADD.
53804 2010-03-07  Bruno Haible  <bruno@clisp.org>
53806         Use POSIX declarations for socket functions.
53807         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
53808         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
53809         rpl_sendto): Change declaration to match POSIX.
53810         * lib/connect.c (rpl_connect): Likewise.
53811         * lib/accept.c (rpl_accept): Likewise.
53812         * lib/bind.c (rpl_bind): Likewise.
53813         * lib/getpeername.c (rpl_getpeername): Likewise.
53814         * lib/getsockname.c (rpl_getsockname): Likewise.
53815         * lib/recv.c (rpl_recv): Likewise.
53816         * lib/send.c (rpl_send): Likewise.
53817         * lib/recvfrom.c (rpl_recvfrom): Likewise.
53818         * lib/sendto.c (rpl_sendto): Likewise.
53820 2010-03-06  Bruno Haible  <bruno@clisp.org>
53822         Clarify access, euidaccess, faccessat.
53823         * doc/posix-functions/faccessat.texi: Mention security problem under
53824         "Other problems", not "Portability problems".
53825         * doc/posix-functions/access.texi: Likewise. Mention a related security
53826         problem.
53827         * doc/glibc-functions/euidaccess.texi: Mention security problems.
53828         * lib/euidaccess.c: Add comments about platforms.
53829         * lib/unistd.in.h (access, euidaccess): Add warnings.
53831 2010-03-07  Bruno Haible  <bruno@clisp.org>
53833         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
53834         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
53835         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53836         (POSIX_SPAWN_USEVFORK): Define in a way that works when
53837         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53838         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
53839         declare when POSIX_SPAWN_SETSCHEDULER is zero.
53840         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53841         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
53842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
53843         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
53844         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
53845         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
53846         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
53847         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
53848         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
53849         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53850         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53851         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53852         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53853         Likewise.
53854         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53855         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53856         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53857         Likewise.
53858         * tests/test-spawn.c (main): Make it work when
53859         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53861 2010-03-07  Bruno Haible  <bruno@clisp.org>
53863         Fix incorrect Makefile.am generation in German locale.
53864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53865         Execute sed command with character range in C locale.
53867 2010-03-06  Bruno Haible  <bruno@clisp.org>
53869         Tests for module 'iconv-h'.
53870         * modules/iconv-h-tests: New file.
53871         * tests/test-iconv-h.c: New file.
53873         New module 'iconv-h'.
53874         * modules/iconv-h: New file.
53875         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53876         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53877         (configure.ac): Remove gl_ICONV_H.
53878         (Makefile.am): Remove rule for iconv.h.
53880 2010-03-06  Bruno Haible  <bruno@clisp.org>
53882         More consistent naming of *.m4 files.
53883         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53884         * modules/wctype (Files): Update.
53886         More consistent naming of *.m4 files.
53887         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53888         * modules/wchar (Files): Update.
53890 2010-03-06  Jim Meyering  <meyering@redhat.com>
53892         euidaccess: relax license to LGPLv2+
53893         * modules/euidaccess (License): Relax to LGPLv2+.
53895 2010-03-06  Bruno Haible  <bruno@clisp.org>
53897         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53898         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53899         (Makefile.am): Augment lib_SOURCES instead.
53901 2010-03-04  Jim Meyering  <meyering@redhat.com>
53903         utime: remove obsolete module
53904         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53905         unnecessary for years, and has been marked as obsolete for 10 months.
53906         * modules/utime: Remove file.
53907         * lib/utime.c: Remove file.
53908         * m4/utime.m4: Remove file.
53909         * m4/utimes-null.m4: Remove file.
53910         * doc/posix-functions/utime.texi (utime): Remove reference to
53911         the module.  Move the sole "fixed by gnulib" item into the
53912         "problems not fixed by Gnulib" list.
53913         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53915 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53917         * modules/exit (License): Relax license to LGPLv2+.
53918         (Status): Mark as obsolete.
53919         * NEWS: Mention deprecated 'exit' module.
53920         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53921         of now obsolete 'exit'.
53923 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925         fts-lgpl: remove unused module
53926         * modules/fts-lgpl: Remove.
53927         * MODULES.html.sh (func_all_modules): Adjust.
53928         * check-module (find_included_lib_files): Adjust.
53929         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53931 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53933         copy-acl: enhance Solaris ACL error handling
53934         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53935         * lib/set-mode-acl.c (qset_acl): Likewise.
53937 2010-03-02  Bruno Haible  <bruno@clisp.org>
53939         spawn: Don't override the system defined values on FreeBSD 8.
53940         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53941         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53942         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53943         if HAVE_POSIX_SPAWN is 1.
53944         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53946 2010-03-01  Bruno Haible  <bruno@clisp.org>
53948         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53949         regarding Automake.
53951 2010-02-25  Bruno Haible  <bruno@clisp.org>
53953         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53954         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53955         setting, not afterwards.
53956         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53958 2010-02-24  Eric Blake  <eblake@redhat.com>
53960         bootstrap, git-version-gen: use timestamp
53961         * build-aux/git-version-gen (scriptversion): Force UTC.
53962         * build-aux/bootstrap (scriptversion): New variable.
53964         bootstrap: allow older git
53965         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53966         older than 1.6.4.  Requested by the libvirt project.
53968 2010-02-23  Eric Blake  <eblake@redhat.com>
53970         warn-on-use: work with old autoconf
53971         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53972         AS_VAR semantics of autoconf 2.60.
53973         Reported by Bruno Haible.
53975         bootstrap: improve some comments
53976         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53977         clarification comments.
53979         gettimeofday: provide correct function
53980         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53981         when replacement is declared, otherwise provide gettimeofday.
53982         Reported by Michael Goffioul.
53984 2010-02-23  Jim Meyering  <meyering@redhat.com>
53986         lib-ignore: relax license to "unlimited", not LGPLv2+
53987         * modules/lib-ignore (License): Relax to "unlimited".
53989 2010-02-23  Jim Meyering  <meyering@redhat.com>
53991         lib-ignore: relax license to LGPLv2+
53992         * modules/lib-ignore (License): Relax to LGPLv2+.
53994 2010-02-22  Eric Blake  <eblake@redhat.com>
53996         lseek: avoid bash 3.2 broken pipe bug
53997         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53998         warning from bash 3.2.
53999         Reported by Ben Pfaff, with analysis from Bruno Haible.
54001         bootstrap: support non-FSF copyright holder
54002         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
54003         bootstrap.conf override of COPYRIGHT_HOLDER.
54004         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
54006         bootstrap: interoperate with gettext 0.14.1
54007         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
54009         bootstrap: allow for alternate submodule location
54010         * build-aux/bootstrap (gnulib_path): New variable; use instead of
54011         hardcoding submodule location.
54012         (gnulib_mk): Allow direct use of Makefile.am.
54014         bootstrap: use GNULIB_SRCDIR to reduce disk usage
54015         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
54016         rather than reconfiguring where the submodule points.
54018         gettimeofday: restore support for platforms that lack function
54019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
54020         replacement if function is missing.
54021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
54022         * modules/sys_time (Makefile.am): Substitute it.
54023         * lib/sys_time.in.h (gettimeofday): Check it.
54024         Reported by Michael Goffioul.
54026 2010-02-21  Bruno Haible  <bruno@clisp.org>
54028         * lib/stdio.in.h (obstack_printf): Fix typo.
54030 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
54032         vc-list-files: use bzr ls's -R option
54033         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
54034         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
54036 2010-02-21  Jim Meyering  <meyering@redhat.com>
54038         init.sh: fix EXEEXT shims to work also for names like test-prog
54039         * tests/init.sh: Re-exec a better shell, when needed.
54040         If the current shell lacks support for posix $(...), an init.sh-using
54041         test will now try to find a shell that supports that.  If EXEEXT is
54042         nonempty, we also require support for hyphen-in-alias-name and shell
54043         substitutions like ${var#glob}.  Failure to find such a shell results
54044         in a skipped test.
54046 2010-02-21  Bruno Haible  <bruno@clisp.org>
54048         Really work around "broken pipe" error message from bash 3.2.
54049         * gnulib-tool (func_reset_sigpipe): Remove function.
54050         (echo): In bash 3.2, define to a function that uses printf.
54051         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
54053 2010-02-20  Bruno Haible  <bruno@clisp.org>
54055         Restore support for automake 1.9.6 with autoconf 2.61.
54056         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
54057         Reported by James Youngman <jay@gnu.org>.
54059 2010-02-20  Bruno Haible  <bruno@clisp.org>
54061         Improve *printf warning condition.
54062         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
54063         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
54064         and the function is overridden due to SIGPIPE emulation.
54066 2010-02-20  Bruno Haible  <bruno@clisp.org>
54068         * lib/stdio.in.h: Tweak comments.
54070 2010-02-19  Bruno Haible  <bruno@clisp.org>
54072         Make it easier to find modules. New gnulib-tool option '--find'.
54073         * gnulib-tool: New option --find.
54074         (func_usage): Document it.
54075         (func_sanitize_modulelist): New function, extracted from
54076         func_all_modules.
54077         (func_all_modules): Invoke it.
54078         * doc/gnulib-tool.texi (Which modules?): New node.
54080 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
54082         * lib/sys_select.in.h: Provide select replacement even if
54083         sys/select.h exists on a system, for Interix.
54085 2010-02-18  Jim Meyering  <meyering@redhat.com>
54087         init.sh: don't use $(...) just yet
54088         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
54089         to accommodate e.g., Solaris' /bin/sh.
54091 2010-02-17  Bruno Haible  <bruno@clisp.org>
54093         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
54094         Reported by Ludovic Courtès <ludo@gnu.org>.
54096 2010-02-16  Simon Josefsson  <simon@josefsson.org>
54098         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
54099         linking with -lintl.
54101 2010-02-17  Simon Josefsson  <simon@josefsson.org>
54103         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
54104         if not provided by the system's netdb.h.  Reported by
54105         ludo@gnu.org (Ludovic Courtès).
54107 2010-02-15  Jim Meyering  <meyering@redhat.com>
54109         init.sh: improve portability and efficiency
54110         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
54111         "dummy" in a for loop.
54112         Use '!', not '^' to select the complement of a character set used
54113         in a "case" statement.
54114         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
54115         Suggestions from Eric Blake.
54117         init.sh: automatically accommodate programs with the .exe suffix
54118         Automatically arrange for an invocation of "prog" to execute the
54119         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
54120         may use the simpler "prog", yet still work when built on a system
54121         that requires specifying the added suffix.
54122         Do this by constructing a function named "prog" that invokes
54123         "prog.exe" for each .exe file in selected directories.
54124         * tests/init.sh (find_exe_basenames_): New function.
54125         (create_exe_shim_functions_): New function.
54126         (path_prepend_): Use it.
54128         maint.mk: mark syntax-check sc_*.m rules as .PHONY
54129         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
54130         "make -t syntax-check" doesn't create a ton of sc_*.m files.
54132 2010-02-14  Jim Meyering  <meyering@redhat.com>
54134         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
54135         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
54136         (sc_prohibit_hash_pjw_without_use): New rule.
54138         maint.mk: allow the default upload destination dir to be overridden
54139         * top/maint.mk (upload_dest_dir_): Define with a default that
54140         preserves the status quo.
54141         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
54142         Reported by Peter Simons.
54144         maint.mk: prohibit inclusion of "hash.h" without_use
54145         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
54147 2010-02-10  Jim Meyering  <meyering@redhat.com>
54149         maint.mk: prohibit inclusion of "ignore-value.h" without_use
54150         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
54152 2010-02-09  Eric Blake  <ebb9@byu.net>
54153         and Bruno Haible  <bruno@clisp.org>
54155         obstack-printf-posix: ensure declaration
54156         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
54157         extracted from gl_FUNC_OBSTACK_PRINTF.
54158         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
54159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54160         Likewise.
54161         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
54162         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
54163         0.
54165 2010-02-08  Bruno Haible  <bruno@clisp.org>
54167         gnulib-tool: Fix typo in 2010-02-07 commit.
54168         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
54169         Reported by Eric Blake.
54171 2010-02-07  Bruno Haible  <bruno@clisp.org>
54173         gnulib-tool: Fix up caching patches.
54174         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
54175         option --no-cache. Use associative arrays when supported by the shell.
54176         (sed_comments): New variable.
54177         (modcache): Renamed from do_cache.
54178         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
54179         abbreviate unnecessarily.
54180         (have_associative): New variable.
54181         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
54182         way also for ksh and zsh.
54183         (func_init_sed_convert_to_cache_statements): New function, extracted
54184         from func_cache_lookup_module. Add support for associative arrays.
54185         Don't set the c_MODULE_cached variable here. Ignore all lines before
54186         the first field header. Remove only the final newline, not all trailing
54187         newlines. Support empty fields correctly. Limit the use of 'eval' to
54188         assignments.
54189         (func_get_description, func_get_status, func_get_notice,
54190         func_get_applicability, func_get_filelist, func_get_dependencies,
54191         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
54192         func_get_automake_snippet, func_get_include_directive,
54193         func_get_link_directive, func_get_license, func_get_maintainer):
54194         Update documentation. List the unoptimized code first. Add support for
54195         associative arrays. Limit the use of 'eval' to assignments.
54196         (func_get_applicability): Undo stylistic pessimisations.
54197         (func_get_automake_snippet, func_get_include_directive): Reduce code
54198         duplication.
54199         (func_modules_transitive_closure, func_modules_add_dummy,
54200         func_modules_notice, func_modules_to_filelist, func_add_file,
54201         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
54202         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
54203         func_create_testdir, func_create_megatestdir): Update documentation.
54205 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54207         * gnulib-tool (func_cache_lookup_module): Store the module name
54208         belonging to the cache variable; error out if two different
54209         module names map to the same cache variable name.
54211 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54213         gnulib-tool: Make caching optional.
54214         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
54215         Update matching short versions of --no-changelog.
54216         (func_usage): Update.
54217         (sed_extract_cache_prog): Renamed from ...
54218         (sed_extract_prog): ... this; revert to old extraction script.
54219         (func_get_description, func_get_status)
54220         (func_get_notice, func_get_applicability, func_get_filelist)
54221         (func_get_dependencies, func_get_autoconf_early_snippet)
54222         (func_get_autoconf_snippet, func_get_automake_snippet)
54223         (func_get_include_directive, func_get_link_directive)
54224         (func_get_license, func_get_maintainer): If $do_cache is false,
54225         use old, non-caching extraction scripts.
54226         Suggestion by Bruno Haible.
54228 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54230         gnulib-tool: cache module metainformation.
54231         * gnulib-tool (sed_extract_prog): Match newline before each
54232         header, and rewrite header to a shell variable suffix.
54233         (func_cache_var, func_cache_lookup_module): New functions,
54234         to turn a module name into a cache variable prefix, and to
54235         look up and cache module metainformation.
54236         (func_get_description, func_get_status)
54237         (func_get_notice, func_get_applicability, func_get_filelist)
54238         (func_get_dependencies, func_get_autoconf_early_snippet)
54239         (func_get_autoconf_snippet, func_get_automake_snippet)
54240         (func_get_include_directive, func_get_link_directive)
54241         (func_get_license, func_get_maintainer): Use
54242         func_cache_lookup_module.
54244 2010-02-07  Bruno Haible  <bruno@clisp.org>
54246         fnctl: Fix missing dependency.
54247         * modules/fcntl (Depends-on): Add getdtablesize.
54248         Reported by John W. Eaton <jwe@gnu.org>.
54250 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54252         Argp: fix recognition of short alias options.
54254         * lib/argp-parse.c (convert_options): Fix improper use of
54255         `|' between character values.
54256         * tests/test-argp.c (group1_option): New alias option
54257         --read (-r).
54258         (group1_parser): Special handling for 'r'.
54259         (test15): New test case.
54260         (test_fun): Add test15.
54261         * tests/test-argp-2.sh: Update expected --help and --usage
54262         outputs.
54264 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54266         * tests/test-argp.c: Fix indentation.
54268 2010-02-04  Eric Blake  <ebb9@byu.net>
54270         gettimeofday: expose type of second argument
54271         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
54272         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
54273         * tests/test-gettimeofday.c: Use it to silence warning.
54274         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
54275         the issue.
54277 2010-02-03  Jim Meyering  <meyering@redhat.com>
54279         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
54280         * lib/regcomp.c (TYPE_SIGNED): Define.
54281         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
54283         regcomp.c: avoid a new -Wshadow warning
54284         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
54286 2010-02-01  Jim Meyering  <meyering@redhat.com>
54288         removing useless parentheses in cpp #define directives
54289         For motivation, see commit c0221df4, "define STREQ(a,b)
54290         consistently, removing useless parentheses"
54291         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
54292         * lib/mountlist.c (MNT_IGNORE): Likewise.
54293         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
54295 2010-02-01  Eric Blake  <ebb9@byu.net>
54297         sys_time: use link-warning
54298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
54299         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
54300         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
54301         * modules/sys_time (Depends-on): Add warn-on-use.
54302         (Makefile.am): Always build replacement.
54303         (configure.ac): Update substitutions.
54304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
54305         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
54306         bother with SYS_TIME_H.
54307         * modules/gettimeofday (configure.ac): Declare indicator.
54308         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
54309         in use.
54311         closein-tests: silence compiler warning
54312         * tests/test-closein.c (main): Ignore fread result.
54313         * modules/closein-tests (Depends-on): Add ignore-value.
54315         tests: silence warning about system return
54316         * tests/test-areadlink-with-size.c (main): Ignore system result.
54317         * tests/test-areadlink.c (main): Likewise.
54318         * tests/test-areadlinkat-with-size.c (main): Likewise.
54319         * tests/test-areadlinkat.c (main): Likewise.
54320         * tests/test-canonicalize-lgpl.c (main): Likewise.
54321         * tests/test-canonicalize.c (main): Likewise.
54322         * tests/test-chown.c (main): Likewise.
54323         * tests/test-fchownat.c (main): Likewise.
54324         * tests/test-fdutimensat.c (main): Likewise.
54325         * tests/test-fstatat.c (main): Likewise.
54326         * tests/test-futimens.c (main): Likewise.
54327         * tests/test-lchown.c (main): Likewise.
54328         * tests/test-link.c (main): Likewise.
54329         * tests/test-linkat.c (main): Likewise.
54330         * tests/test-lstat.c (main): Likewise.
54331         * tests/test-mkdir.c (main): Likewise.
54332         * tests/test-mkdirat.c (main): Likewise.
54333         * tests/test-mkfifo.c (main): Likewise.
54334         * tests/test-mkfifoat.c (main): Likewise.
54335         * tests/test-mknod.c (main): Likewise.
54336         * tests/test-readlink.c (main): Likewise.
54337         * tests/test-remove.c (main): Likewise.
54338         * tests/test-rename.c (main): Likewise.
54339         * tests/test-renameat.c (main): Likewise.
54340         * tests/test-rmdir.c (main): Likewise.
54341         * tests/test-symlink.c (main): Likewise.
54342         * tests/test-symlinkat.c (main): Likewise.
54343         * tests/test-unlink.c (main): Likewise.
54344         * tests/test-unlinkat.c (main): Likewise.
54345         * tests/test-utimens.c (main): Likewise.
54346         * tests/test-utimensat.c (main): Likewise.
54347         * modules/areadlink-tests (Depends-on): Add ignore-value.
54348         * modules/areadlink-with-size-tests (Depends-on): Likewise.
54349         * modules/areadlinkat-tests (Depends-on): Likewise.
54350         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
54351         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54352         * modules/canonicalize-tests (Depends-on): Likewise.
54353         * modules/chown-tests (Depends-on): Likewise.
54354         * modules/fdutimensat-tests (Depends-on): Likewise.
54355         * modules/futimens-tests (Depends-on): Likewise.
54356         * modules/lchown-tests (Depends-on): Likewise.
54357         * modules/link-tests (Depends-on): Likewise.
54358         * modules/linkat-tests (Depends-on): Likewise.
54359         * modules/lstat-tests (Depends-on): Likewise.
54360         * modules/mkdir-tests (Depends-on): Likewise.
54361         * modules/mkfifo-tests (Depends-on): Likewise.
54362         * modules/mkfifoat-tests (Depends-on): Likewise.
54363         * modules/mknod-tests (Depends-on): Likewise.
54364         * modules/openat-tests (Depends-on): Likewise.
54365         * modules/readlink-tests (Depends-on): Likewise.
54366         * modules/remove-tests (Depends-on): Likewise.
54367         * modules/rename-tests (Depends-on): Likewise.
54368         * modules/renameat-tests (Depends-on): Likewise.
54369         * modules/rmdir-tests (Depends-on): Likewise.
54370         * modules/symlink-tests (Depends-on): Likewise.
54371         * modules/symlinkat-tests (Depends-on): Likewise.
54372         * modules/unlink-tests (Depends-on): Likewise.
54373         * modules/utimens-tests (Depends-on): Likewise.
54374         * modules/utimensat-tests (Depends-on): Likewise.
54376 2010-01-31  Bruno Haible  <bruno@clisp.org>
54378         Perform the same test for many <math.h> functions.
54379         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
54380         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
54381         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
54382         of gl_MATHFUNC.
54383         * modules/acos (configure.ac): Likewise.
54384         * modules/asin (configure.ac): Likewise.
54385         * modules/atan (configure.ac): Likewise.
54386         * modules/atan2 (configure.ac): Likewise.
54387         * modules/cbrt (configure.ac): Likewise.
54388         * modules/copysign (configure.ac): Likewise.
54389         * modules/cos (configure.ac): Likewise.
54390         * modules/cosh (configure.ac): Likewise.
54391         * modules/erf (configure.ac): Likewise.
54392         * modules/erfc (configure.ac): Likewise.
54393         * modules/exp (configure.ac): Likewise.
54394         * modules/fmod (configure.ac): Likewise.
54395         * modules/hypot (configure.ac): Likewise.
54396         * modules/j0 (configure.ac): Likewise.
54397         * modules/j1 (configure.ac): Likewise.
54398         * modules/jn (configure.ac): Likewise.
54399         * modules/lgamma (configure.ac): Likewise.
54400         * modules/log (configure.ac): Likewise.
54401         * modules/log10 (configure.ac): Likewise.
54402         * modules/log1p (configure.ac): Likewise.
54403         * modules/pow (configure.ac): Likewise.
54404         * modules/remainder (configure.ac): Likewise.
54405         * modules/sin (configure.ac): Likewise.
54406         * modules/sinh (configure.ac): Likewise.
54407         * modules/tan (configure.ac): Likewise.
54408         * modules/tanh (configure.ac): Likewise.
54409         * modules/y0 (configure.ac): Likewise.
54410         * modules/y1 (configure.ac): Likewise.
54411         * modules/yn (configure.ac): Likewise.
54412         Suggested by Paolo Bonzini.
54414 2010-01-31  Bruno Haible  <bruno@clisp.org>
54416         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
54418 2010-01-31  Bruno Haible  <bruno@clisp.org>
54420         Work around getdelim() bug on FreeBSD 8.0.
54421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
54422         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
54423         not work.
54424         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
54425         is 1.
54426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
54427         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
54428         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
54429         a non-zero size.
54430         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
54432 2010-01-31  Bruno Haible  <bruno@clisp.org>
54434         Work around getline() bug on FreeBSD 8.0.
54435         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
54436         and a non-zero size.
54437         * tests/test-getline.c (main): Likewise.
54438         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
54439         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
54441 2010-01-28  Eric Blake  <ebb9@byu.net>
54443         regex: fix build failure
54444         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
54445         platforms.
54447 2010-01-28  Jim Meyering  <meyering@redhat.com>
54449         regex: do not ignore memory allocation failure
54450         * lib/regex_internal.c (create_cd_newstate): Detect
54451         re_node_set_init_copy failure.   Extracted from glibc commit
54452         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54454         regex: sync more white-space changes from libc
54455         * lib/regex_internal.c: White-space only changes.
54456         * lib/regexec.c: Likewise.
54458         regex: add many uses of __attribute_warn_unused_result__
54459         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
54460         * lib/regexec.c: Likewise.
54461         Extracted from a messy glibc commit.
54463         regcomp.c: spelling and merge-artifact from glibc
54464         * lib/regcomp.c: Merge remainder of glibc's
54465         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54467         regcomp.c: sync white-space changes from glibc
54468         * lib/regcomp.c: Merge to accommodate white space
54469         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54471         regcomp.c: do not ignore internal return values
54472         * lib/regcomp.c: Do not ignore internal return values.
54473         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
54474         but without its white-space changes and spelling fixes.
54476         regex_internal.h: define __attribute_warn_unused_result__
54477         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
54479         maint: add a syntax-check rule to check for vulnerable Makefile.in
54480         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
54482 2010-01-27  Jim Meyering  <meyering@redhat.com>
54484         ncftpput-ftp: clean up spaces
54485         * build-aux/ncftpput-ftp: Make Copyright line consistent.
54486         Remove trailing blanks.
54488 2010-01-27  Simon Josefsson  <simon@josefsson.org>
54490         * build-aux/git-version-gen: Fix copyright statement.
54491         * build-aux/gnupload: Likewise.
54492         * tests/test-arcfour.c: Likewise.
54493         * tests/test-arctwo.c: Likewise.
54494         * tests/test-count-one-bits.c: Likewise.
54495         * tests/test-crc.c: Likewise.
54496         * tests/test-des.c: Likewise.
54497         * tests/test-gc-arcfour.c: Likewise.
54498         * tests/test-gc-arctwo.c: Likewise.
54499         * tests/test-gc-des.c: Likewise.
54500         * tests/test-gc-hmac-md5.c: Likewise.
54501         * tests/test-gc-hmac-sha1.c: Likewise.
54502         * tests/test-gc-md2.c: Likewise.
54503         * tests/test-gc-md4.c: Likewise.
54504         * tests/test-gc-md5.c: Likewise.
54505         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54506         * tests/test-gc-rijndael.c: Likewise.
54507         * tests/test-gc-sha1.c: Likewise.
54508         * tests/test-gc.c: Likewise.
54509         * tests/test-gethostname.c: Likewise.
54510         * tests/test-gettimeofday.c: Likewise.
54511         * tests/test-hash.c: Likewise.
54512         * tests/test-hmac-md5.c: Likewise.
54513         * tests/test-hmac-sha1.c: Likewise.
54514         * tests/test-md2.c: Likewise.
54515         * tests/test-md4.c: Likewise.
54516         * tests/test-md5.c: Likewise.
54517         * tests/test-memchr.c: Likewise.
54518         * tests/test-memchr2.c: Likewise.
54519         * tests/test-memcmp.c: Likewise.
54520         * tests/test-memmem.c: Likewise.
54521         * tests/test-memrchr.c: Likewise.
54522         * tests/test-rawmemchr.c: Likewise.
54523         * tests/test-read-file.c: Likewise.
54524         * tests/test-rijndael.c: Likewise.
54525         * tests/test-sockets.c: Likewise.
54526         * tests/test-strchrnul.c: Likewise.
54527         * tests/test-strstr.c: Likewise.
54528         * tests/test-strtod.c: Likewise.
54529         * build-aux/ncftpput-ftp: Likewise.
54531 2010-01-26  Eric Blake  <ebb9@byu.net>
54533         ignore-value: update recommended header name
54534         * modules/ignore-value (Include): Only use <> for headers that
54535         exist in glibc.
54537 2010-01-26  Jim Meyering  <meyering@redhat.com>
54539         test-userspec.c: avoid compiler warnings
54540         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
54541         and "initialization discards qualifiers..." warnings.
54542         Put the first "uid" in its own scope, and make char* members "const".
54544 2010-01-25  Bruno Haible  <bruno@clisp.org>
54546         gnulib-tool: Make warning diagnostics consistent.
54547         * gnulib-tool (func_warning): New function.
54548         Use it everywhere where gnulib-tool produces output to stderr and it is
54549         not a fatal error.
54551 2010-01-25  Bruno Haible  <bruno@clisp.org>
54553         Fix test dependencies.
54554         * modules/xstrtol-tests (Depends-on): Add inttypes.
54555         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
54557 2010-01-25  Pádraig Brady  <P@draigBrady.com>
54559         syntax-check: detect incorrect boolean macro values in config.h
54560         * modules/maintainer-makefile (configure.ac): Parameterize the location
54561         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
54562         The logic is from Eric Blake and the location indicated by Jim Meyering.
54563         Note the more natural CONFIG_HEADER name is prohibited by automake
54564         for backwards compatibility reasons.
54565         * top/maint.mk (sc_Wundef_boolean): New rule.
54567 2010-01-25  Jim Meyering  <meyering@redhat.com>
54569         bootstrap: detect MacOS 10.6's shasum, too
54570         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
54571         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
54573 2010-01-23  Jim Meyering  <meyering@redhat.com>
54575         xstrtoll: new module
54576         * modules/xstrtoll: New file.
54577         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
54578         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
54579         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
54580         ./configure fails if you use this module and lack "long long".
54581         * modules/xstrtoll-tests: New module.
54582         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
54583         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
54584         new init.sh-based test framework.
54586 2010-01-24  Bruno Haible  <bruno@clisp.org>
54588         Tests for module 'yn'.
54589         * modules/yn-tests: New file.
54590         * tests/test-yn.c: New file.
54592         Tests for module 'y1'.
54593         * modules/y1-tests: New file.
54594         * tests/test-y1.c: New file.
54596         Tests for module 'y0'.
54597         * modules/y0-tests: New file.
54598         * tests/test-y0.c: New file.
54600         Tests for module 'tanh'.
54601         * modules/tanh-tests: New file.
54602         * tests/test-tanh.c: New file.
54604         Tests for module 'tan'.
54605         * modules/tan-tests: New file.
54606         * tests/test-tan.c: New file.
54608         Tests for module 'sqrt'.
54609         * modules/sqrt-tests: New file.
54610         * tests/test-sqrt.c: New file.
54612         Tests for module 'sinh'.
54613         * modules/sinh-tests: New file.
54614         * tests/test-sinh.c: New file.
54616         Tests for module 'sin'.
54617         * modules/sin-tests: New file.
54618         * tests/test-sin.c: New file.
54620         Tests for module 'rint'.
54621         * modules/rint-tests: New file.
54622         * tests/test-rint.c: New file.
54624         Tests for module 'remainder'.
54625         * modules/remainder-tests: New file.
54626         * tests/test-remainder.c: New file.
54628         Tests for module 'pow'.
54629         * modules/pow-tests: New file.
54630         * tests/test-pow.c: New file.
54632         Tests for module 'nextafter'.
54633         * modules/nextafter-tests: New file.
54634         * tests/test-nextafter.c: New file.
54636         Tests for module 'modf'.
54637         * modules/modf-tests: New file.
54638         * tests/test-modf.c: New file.
54640         Tests for module 'logb'.
54641         * modules/logb-tests: New file.
54642         * tests/test-logb.c: New file.
54644         Tests for module 'log1p'.
54645         * modules/log1p-tests: New file.
54646         * tests/test-log1p.c: New file.
54648         Tests for module 'log10'.
54649         * modules/log10-tests: New file.
54650         * tests/test-log10.c: New file.
54652         Tests for module 'log'.
54653         * modules/log-tests: New file.
54654         * tests/test-log.c: New file.
54656         Tests for module 'lgamma'.
54657         * modules/lgamma-tests: New file.
54658         * tests/test-lgamma.c: New file.
54660         Tests for module 'ldexp'.
54661         * modules/ldexp-tests: New file.
54662         * tests/test-ldexp.c: New file.
54664         Tests for module 'jn'.
54665         * modules/jn-tests: New file.
54666         * tests/test-jn.c: New file.
54668         Tests for module 'j1'.
54669         * modules/j1-tests: New file.
54670         * tests/test-j1.c: New file.
54672         Tests for module 'j0'.
54673         * modules/j0-tests: New file.
54674         * tests/test-j0.c: New file.
54676         Tests for module 'hypot'.
54677         * modules/hypot-tests: New file.
54678         * tests/test-hypot.c: New file.
54680         Tests for module 'fmod'.
54681         * modules/fmod-tests: New file.
54682         * tests/test-fmod.c: New file.
54684         Tests for module 'fabs'.
54685         * modules/fabs-tests: New file.
54686         * tests/test-fabs.c: New file.
54688         Tests for module 'exp'.
54689         * modules/exp-tests: New file.
54690         * tests/test-exp.c: New file.
54692         Tests for module 'erfc'.
54693         * modules/erfc-tests: New file.
54694         * tests/test-erfc.c: New file.
54696         Tests for module 'erf'.
54697         * modules/erf-tests: New file.
54698         * tests/test-erf.c: New file.
54700         Tests for module 'cosh'.
54701         * modules/cosh-tests: New file.
54702         * tests/test-cosh.c: New file.
54704         Tests for module 'cos'.
54705         * modules/cos-tests: New file.
54706         * tests/test-cos.c: New file.
54708         Tests for module 'copysign'.
54709         * modules/copysign-tests: New file.
54710         * tests/test-copysign.c: New file.
54712         Tests for module 'cbrt'.
54713         * modules/cbrt-tests: New file.
54714         * tests/test-cbrt.c: New file.
54716         Tests for module 'atan2'.
54717         * modules/atan2-tests: New file.
54718         * tests/test-atan2.c: New file.
54720         Tests for module 'atan'.
54721         * modules/atan-tests: New file.
54722         * tests/test-atan.c: New file.
54724         Tests for module 'asin'.
54725         * modules/asin-tests: New file.
54726         * tests/test-asin.c: New file.
54728         Tests for module 'acos'.
54729         * modules/acos-tests: New file.
54730         * tests/test-acos.c: New file.
54732 2010-01-24  Bruno Haible  <bruno@clisp.org>
54734         Fix tests for common <math.h> functions.
54735         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
54736         code snippet that references the function pointer, rather than merely
54737         calling the function. Substitute the FUNC_LIBM variable.
54738         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
54739         * modules/acos (configure.ac): Likewise.
54740         * modules/asin (configure.ac): Likewise.
54741         * modules/atan (configure.ac): Likewise.
54742         * modules/atan2 (configure.ac): Likewise.
54743         * modules/cbrt (configure.ac): Likewise.
54744         * modules/copysign (configure.ac): Likewise.
54745         * modules/cos (configure.ac): Likewise.
54746         * modules/cosh (configure.ac): Likewise.
54747         * modules/erf (configure.ac): Likewise.
54748         * modules/erfc (configure.ac): Likewise.
54749         * modules/exp (configure.ac): Likewise.
54750         * modules/fabs (configure.ac): Likewise.
54751         * modules/fmod (configure.ac): Likewise.
54752         * modules/hypot (configure.ac): Likewise.
54753         * modules/j0 (configure.ac): Likewise.
54754         * modules/j1 (configure.ac): Likewise.
54755         * modules/jn (configure.ac): Likewise.
54756         * modules/ldexp (configure.ac): Likewise.
54757         * modules/lgamma (configure.ac): Likewise.
54758         * modules/log (configure.ac): Likewise.
54759         * modules/log10 (configure.ac): Likewise.
54760         * modules/log1p (configure.ac): Likewise.
54761         * modules/logb (configure.ac): Likewise.
54762         * modules/modf (configure.ac): Likewise.
54763         * modules/nextafter (configure.ac): Likewise.
54764         * modules/pow (configure.ac): Likewise.
54765         * modules/remainder (configure.ac): Likewise.
54766         * modules/rint (configure.ac): Likewise.
54767         * modules/sin (configure.ac): Likewise.
54768         * modules/sinh (configure.ac): Likewise.
54769         * modules/tan (configure.ac): Likewise.
54770         * modules/tanh (configure.ac): Likewise.
54771         * modules/y0 (configure.ac): Likewise.
54772         * modules/y1 (configure.ac): Likewise.
54773         * modules/yn (configure.ac): Likewise.
54775 2010-01-24  Bruno Haible  <bruno@clisp.org>
54777         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
54778         * tests/test-acosl.c (x): New variable.
54779         (main): Store argument in x and fetch it from x.
54780         * tests/test-asinl.c (x): New variable.
54781         (main): Store argument in x and fetch it from x.
54782         * tests/test-atanl.c (x): New variable.
54783         (main): Store argument in x and fetch it from x.
54784         * tests/test-cosl.c (x): New variable.
54785         (main): Store argument in x and fetch it from x.
54786         * tests/test-expl.c (x): New variable.
54787         (main): Store argument in x and fetch it from x.
54788         * tests/test-logl.c (x): New variable.
54789         (main): Store argument in x and fetch it from x.
54790         * tests/test-sinl.c (x): New variable.
54791         (main): Store argument in x and fetch it from x.
54792         * tests/test-sqrtl.c (x): New variable.
54793         (main): Store argument in x and fetch it from x.
54794         * tests/test-tanl.c (x): New variable.
54795         (main): Store argument in x and fetch it from x.
54797 2010-01-24  Bruno Haible  <bruno@clisp.org>
54799         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
54800         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
54801         assignments to the initial TESTS_ENVIRONMENT.
54802         * doc/gnulib.texi (Unit test modules): Document it.
54803         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
54804         TESTS_ENVIRONMENT.
54805         * modules/btowc-tests (Makefile.am): Likewise.
54806         * modules/c-stack-tests (Makefile.am): Likewise.
54807         * modules/c-strcase-tests (Makefile.am): Likewise.
54808         * modules/copy-file-tests (Makefile.am): Likewise.
54809         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
54810         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
54811         * modules/mbrtowc-tests (Makefile.am): Likewise.
54812         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54813         * modules/mbscasestr-tests (Makefile.am): Likewise.
54814         * modules/mbschr-tests (Makefile.am): Likewise.
54815         * modules/mbscspn-tests (Makefile.am): Likewise.
54816         * modules/mbsinit-tests (Makefile.am): Likewise.
54817         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54818         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
54819         * modules/mbspbrk-tests (Makefile.am): Likewise.
54820         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54821         * modules/mbsrchr-tests (Makefile.am): Likewise.
54822         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
54823         * modules/mbsspn-tests (Makefile.am): Likewise.
54824         * modules/mbsstr-tests (Makefile.am): Likewise.
54825         * modules/nl_langinfo-tests (Makefile.am): Likewise.
54826         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
54827         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54828         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54829         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54830         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54831         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
54832         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54833         * modules/wcrtomb-tests (Makefile.am): Likewise.
54834         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
54835         * modules/wcsrtombs-tests (Makefile.am): Likewise.
54836         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
54837         assignments from TESTS_ENVIRONMENT.
54838         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
54839         augmentation.
54840         * modules/argp-version-etc-tests (Makefile.am): Likewise.
54841         * modules/atexit-tests (Makefile.am): Likewise.
54842         * modules/binary-io-tests (Makefile.am): Likewise.
54843         * modules/closein-tests (Makefile.am): Likewise.
54844         * modules/dprintf-posix-tests (Makefile.am): Likewise.
54845         * modules/exclude-tests (Makefile.am): Likewise.
54846         * modules/fflush-tests (Makefile.am): Likewise.
54847         * modules/fpending-tests (Makefile.am): Likewise.
54848         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54849         * modules/freadahead-tests (Makefile.am): Likewise.
54850         * modules/freadptr-tests (Makefile.am): Likewise.
54851         * modules/freadseek-tests (Makefile.am): Likewise.
54852         * modules/fseek-tests (Makefile.am): Likewise.
54853         * modules/fseeko-tests (Makefile.am): Likewise.
54854         * modules/ftell-tests (Makefile.am): Likewise.
54855         * modules/ftello-tests (Makefile.am): Likewise.
54856         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54857         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54858         * modules/lseek-tests (Makefile.am): Likewise.
54859         * modules/parse-duration-tests (Makefile.am): Likewise.
54860         * modules/perror-tests (Makefile.am): Likewise.
54861         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54862         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54863         * modules/pipe-tests (Makefile.am): Likewise.
54864         * modules/pread-tests (Makefile.am): Likewise.
54865         * modules/printf-posix-tests (Makefile.am): Likewise.
54866         * modules/select-tests (Makefile.am): Likewise.
54867         * modules/sigpipe-tests (Makefile.am): Likewise.
54868         * modules/tsearch-tests (Makefile.am): Likewise.
54869         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54870         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54871         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54872         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54873         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54874         * modules/version-etc-tests (Makefile.am): Likewise.
54875         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54876         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54877         * modules/xalloc-die-tests (Makefile.am): Likewise.
54878         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54879         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54880         * modules/xstrtol-tests (Makefile.am): Likewise.
54881         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54882         * modules/yesno-tests (Makefile.am): Likewise.
54883         Suggested by Jim Meyering.
54885 2010-01-24  Bruno Haible  <bruno@clisp.org>
54887         More documentation.
54888         * doc/gnulib.texi (Writing modules): New chapter.
54889         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54890         the new chapter.
54892 2010-01-24  Jim Meyering  <meyering@redhat.com>
54894         maint.mk: do not prepend "./" after filtering
54895         * top/maint.mk (_prepend_srcdir_prefix): New variable
54896         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54897         "./" when $(srcdir) is ".".
54899         define STREQ(a,b) consistently, removing useless parentheses
54900         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54901         since the only risk is that "a" or "b" contains an unparenthesized
54902         comma, but if either did that, STREQ would have 3 or more arguments.
54903         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54904         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54905         * lib/hash-triple.c (STREQ): Likewise.
54906         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54907         * lib/getugroups.c (STREQ): Likewise.
54909 2010-01-23  Jim Meyering  <meyering@redhat.com>
54911         maint.mk: fix syntax-check in a non-srcdir build directory
54912         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54913         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54915 2010-01-22  Jim Meyering  <meyering@redhat.com>
54917         userspec: add unit tests
54918         * tests/test-userspec.c: New file.
54919         * modules/userspec-tests: Likewise.
54921 2010-01-21  Jim Meyering  <meyering@redhat.com>
54923         maint.mk: handle source file names containing "." robustly
54924         * top/maint.mk (_dot_escaped_srcdir): Define.
54925         (VC_LIST): Use it in LHS of sed substitution.
54927 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54929         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54930         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54931         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54932         from a non-srcdir build.
54934 2010-01-20  Eric Blake  <ebb9@byu.net>
54936         warn-on-use: use instead of link-warning
54937         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54938         * modules/unistd (Depends-on, Makefile.am): Likewise.
54939         * modules/arpa_inet (Depends-on): Replace link-warning with
54940         warn-on-use.
54941         (Makefile.am): Update rules accordingly.
54942         * modules/ctype (Depends-on, Makefile.am): Likewise.
54943         * modules/dirent (Depends-on, Makefile.am): Likewise.
54944         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54945         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54946         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54947         * modules/locale (Depends-on, Makefile.am): Likewise.
54948         * modules/math (Depends-on, Makefile.am): Likewise.
54949         * modules/search (Depends-on, Makefile.am): Likewise.
54950         * modules/signal (Depends-on, Makefile.am): Likewise.
54951         * modules/spawn (Depends-on, Makefile.am): Likewise.
54952         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54953         * modules/string (Depends-on, Makefile.am): Likewise.
54954         * modules/strings (Depends-on, Makefile.am): Likewise.
54955         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54956         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54957         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54958         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54959         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54960         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54961         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54962         * modules/wchar (Depends-on, Makefile.am): Likewise.
54963         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54964         should be poisoned.
54965         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54966         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54967         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54968         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54970         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54971         * m4/math_h.m4 (gl_MATH_H): Likewise.
54972         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54973         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54974         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54975         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54976         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54978         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54979         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54985         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54986         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54988         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54989         GL_LINK_WARNING.
54990         * lib/ctype.in.h: Likewise.
54991         * lib/dirent.in.h: Likewise.
54992         * lib/fcntl.in.h: Likewise.
54993         * lib/inttypes.in.h: Likewise.
54994         * lib/langinfo.in.h: Likewise.
54995         * lib/locale.in.h: Likewise.
54996         * lib/math.in.h: Likewise.
54997         * lib/search.in.h: Likewise.
54998         * lib/signal.in.h: Likewise.
54999         * lib/spawn.in.h: Likewise.
55000         * lib/stdio.in.h: Likewise.
55001         * lib/stdlib.in.h: Likewise.
55002         * lib/string.in.h: Likewise.
55003         * lib/strings.in.h: Likewise.
55004         * lib/sys_file.in.h: Likewise.
55005         * lib/sys_ioctl.in.h: Likewise.
55006         * lib/sys_select.in.h: Likewise.
55007         * lib/sys_socket.in.h: Likewise.
55008         * lib/sys_stat.in.h: Likewise.
55009         * lib/sys_times.in.h: Likewise.
55010         * lib/sys_utsname.in.h: Likewise.
55011         * lib/unistd.in.h: Likewise.
55012         * lib/wchar.in.h: Likewise.
55014 2010-01-20  Bruno Haible  <bruno@clisp.org>
55016         Avoid duplicate -lm.
55017         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
55018         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
55019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
55020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
55021         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
55022         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
55023         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
55024         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
55025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
55026         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
55027         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
55028         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
55029         Reported by Paolo Bonzini.
55031 2010-01-19  Bruno Haible  <bruno@clisp.org>
55033         langinfo, nl_langinfo: Relicense under LGPLv2+.
55034         * modules/langinfo (License): Change to LGPLv2+.
55035         * modules/nl_langinfo (License): Likewise.
55036         Patch by David Lutterkort <lutter@redhat.com>.
55038 2010-01-19  Bruno Haible  <bruno@clisp.org>
55040         Avoid compilation error with cc on OSF/1 5.1.
55041         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
55042         statement, not before.
55043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55045 2010-01-18  Bruno Haible  <bruno@clisp.org>
55047         Avoid a link error due to the __printf__ symbol.
55048         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
55049         and 2.6.x.
55050         (__format__, __printf__): Remove definitions.
55051         * lib/argp-fmtstream.h: Likewise.
55052         * lib/argp.h: Likewise.
55053         * lib/error.h: Likewise.
55054         * lib/vasnprintf.h: Likewise.
55055         * lib/xprintf.h: Likewise.
55056         * lib/xvasprintf.h: Likewise.
55057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55059 2010-01-18  Bruno Haible  <bruno@clisp.org>
55061         Tests for module 'tanl'.
55062         * modules/tanl-tests: New file.
55063         * tests/test-tanl.c: New file.
55065         Tests for module 'sqrtl'.
55066         * modules/sqrtl-tests: New file.
55067         * tests/test-sqrtl.c: New file.
55069         Tests for module 'sinl'.
55070         * modules/sinl-tests: New file.
55071         * tests/test-sinl.c: New file.
55073         Tests for module 'logl'.
55074         * modules/logl-tests: New file.
55075         * tests/test-logl.c: New file.
55077         Tests for module 'expl'.
55078         * modules/expl-tests: New file.
55079         * tests/test-expl.c: New file.
55081         Tests for module 'cosl'.
55082         * modules/cosl-tests: New file.
55083         * tests/test-cosl.c: New file.
55085         Tests for module 'atanl'.
55086         * modules/atanl-tests: New file.
55087         * tests/test-atanl.c: New file.
55089         Tests for module 'asinl'.
55090         * modules/asinl-tests: New file.
55091         * tests/test-asinl.c: New file.
55093         Tests for module 'acosl'.
55094         * modules/acosl-tests: New file.
55095         * tests/test-acosl.c: New file.
55097         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
55098         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
55099         tanl): Use the standard gnulib idiom.
55100         * lib/cosl.c: Don't include trigl.c and sincosl.c.
55101         * lib/sinl.c: Likewise.
55102         * lib/tanl.c: Don't include trigl.c.
55103         (kernel_tanl): Make static.
55104         * lib/sincosl.c: Include trigl.h first.
55105         * lib/trigl.c: Likewise.
55106         * m4/acosl.m4: New file.
55107         * m4/asinl.m4: New file.
55108         * m4/atanl.m4: New file.
55109         * m4/cosl.m4: New file.
55110         * m4/expl.m4: New file.
55111         * m4/logl.m4: New file.
55112         * m4/sinl.m4: New file.
55113         * m4/sqrtl.m4: New file.
55114         * m4/tanl.m4: New file.
55115         * m4/mathl.m4: Remove file.
55116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
55117         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
55118         Don't initialize GNULIB_MATHL.
55119         * modules/acosl: New file.
55120         * modules/asinl: New file.
55121         * modules/atanl: New file.
55122         * modules/cosl: New file.
55123         * modules/expl: New file.
55124         * modules/logl: New file.
55125         * modules/sinl: New file.
55126         * modules/sqrtl: New file.
55127         * modules/tanl: New file.
55128         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
55129         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
55130         substitute GNULIB_MATHL.
55131         * modules/mathl: Rewritten.
55132         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
55133         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
55134         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
55135         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
55136         * doc/posix-functions/expl.texi: Mention the 'expl' module.
55137         * doc/posix-functions/logl.texi: Mention the 'logl' module.
55138         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
55139         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
55140         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
55142 2010-01-18  Bruno Haible  <bruno@clisp.org>
55144         sqrt: Make gl_FUNC_SQRT requirable.
55145         * m4/sqrt.m4: New file.
55146         * modules/sqrt (Files): Add it.
55147         (configure.ac): Invoke gl_FUNC_SQRT.
55149 2010-01-18  Bruno Haible  <bruno@clisp.org>
55151         New modules for common <math.h> functions.
55152         * m4/mathfunc.m4: New file.
55153         * modules/acos: New file.
55154         * modules/asin: New file.
55155         * modules/atan: New file.
55156         * modules/atan2: New file.
55157         * modules/cbrt: New file.
55158         * modules/copysign: New file.
55159         * modules/cos: New file.
55160         * modules/cosh: New file.
55161         * modules/erf: New file.
55162         * modules/erfc: New file.
55163         * modules/exp: New file.
55164         * modules/fabs: New file.
55165         * modules/fmod: New file.
55166         * modules/hypot: New file.
55167         * modules/j0: New file.
55168         * modules/j1: New file.
55169         * modules/jn: New file.
55170         * modules/ldexp: New file.
55171         * modules/lgamma: New file.
55172         * modules/log: New file.
55173         * modules/log10: New file.
55174         * modules/log1p: New file.
55175         * modules/logb: New file.
55176         * modules/modf: New file.
55177         * modules/nextafter: New file.
55178         * modules/pow: New file.
55179         * modules/remainder: New file.
55180         * modules/rint: New file.
55181         * modules/sin: New file.
55182         * modules/sinh: New file.
55183         * modules/sqrt: New file.
55184         * modules/tan: New file.
55185         * modules/tanh: New file.
55186         * modules/y0: New file.
55187         * modules/y1: New file.
55188         * modules/yn: New file.
55189         * doc/posix-functions/acos.texi: Mention the 'acos' module.
55190         * doc/posix-functions/asin.texi: Mention the 'asin' module.
55191         * doc/posix-functions/atan.texi: Mention the 'atan' module.
55192         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
55193         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
55194         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
55195         * doc/posix-functions/cos.texi: Mention the 'cos' module.
55196         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
55197         * doc/posix-functions/erf.texi: Mention the 'erf' module.
55198         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
55199         * doc/posix-functions/exp.texi: Mention the 'exp' module.
55200         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
55201         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
55202         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
55203         * doc/posix-functions/j0.texi: Mention the 'j0' module.
55204         * doc/posix-functions/j1.texi: Mention the 'j1' module.
55205         * doc/posix-functions/jn.texi: Mention the 'jn' module.
55206         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
55207         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
55208         * doc/posix-functions/log.texi: Mention the 'log' module.
55209         * doc/posix-functions/log10.texi: Mention the 'log10' module.
55210         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
55211         * doc/posix-functions/logb.texi: Mention the 'logb' module.
55212         * doc/posix-functions/modf.texi: Mention the 'modf' module.
55213         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
55214         * doc/posix-functions/pow.texi: Mention the 'pow' module.
55215         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
55216         * doc/posix-functions/rint.texi: Mention the 'rint' module.
55217         * doc/posix-functions/sin.texi: Mention the 'sin' module.
55218         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
55219         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
55220         * doc/posix-functions/tan.texi: Mention the 'tan' module.
55221         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
55222         * doc/posix-functions/y0.texi: Mention the 'y0' module.
55223         * doc/posix-functions/y1.texi: Mention the 'y1' module.
55224         * doc/posix-functions/yn.texi: Mention the 'yn' module.
55226 2010-01-18  Jim Meyering  <meyering@redhat.com>
55228         ignore-value: relax license to LGPLv2+
55229         * modules/ignore-value (License): Relax to LGPLv2+.
55231         getdate: don't leak when TZ contains two or more '"'s
55232         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
55233         double quote in TZ after the first one.
55235         readtokens: do not leak internal token_lengths buffer
55236         * lib/readtokens.c (readtokens): Free the local, lengths,
55237         when the supplied "token_lengths" parameter is NULL.
55239 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55241         Fix a couple of missing LIBTHREAD link failures on AIX.
55242         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
55243         $(LIBTHREAD).
55244         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
55246         Link test-poll against INET_PTON_LIB.
55247         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
55248         for inet_pton on Solaris 10.
55250 2010-01-17  Bruno Haible  <bruno@clisp.org>
55252         unistdio/*-sprintf: Fix typo in module description.
55253         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
55254         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
55255         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
55256         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
55257         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
55258         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
55259         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
55260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55262 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55264         gnulib-tool: fix filelist for AIX, HP-UX ksh.
55265         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
55266         variables in shell case patterns, for AIX and HP-UX ksh.
55268         Split large sed scripts, for HP-UX sed.
55269         * modules/stdio: Split sed scripts around 50 sed commands,
55270         to avoid HP-UX limit of 99 commands, in the near future.
55271         * modules/string: Likewise.
55272         * modules/unistd: Likewise.
55274         gnulib-tool: avoid writing in the current directory.
55275         * gnulib-tool (func_emit_lib_Makefile_am)
55276         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
55277         not in the current directory, so concurrent gnulib-tool
55278         instances do not interfere.
55280 2010-01-16  Jim Meyering  <meyering@redhat.com>
55282         doc: update users.txt
55283         * users.txt: Add grep.
55284         (diffutils, gzip): Update URLs.
55286 2010-01-12  Bruno Haible  <bruno@clisp.org>
55288         posix_spawn: Avoid test failure on Cygwin.
55289         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
55290         characters.
55291         Reported by Simon Josefsson.
55293 2010-01-12  Bruno Haible  <bruno@clisp.org>
55295         * tests/test-cond.c (main): When skipping the test, show the reason.
55297 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55299         * lib/striconv.c (str_cd_iconv): Avoid if before free.
55301 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55303         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
55304         VC_LIST_ALWAYS_EXCLUDE_REGEX.
55306 2010-01-12  Eric Blake  <ebb9@byu.net>
55308         build: guarantee AS_VAR_IF
55309         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
55310         (gl_AS_VAR_IF): Move...
55311         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
55312         Reported by Simon Josefsson.
55314 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55316         * lib/stdio.in.h: Fix typo.
55318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55320         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
55321         libgpg-error.
55323 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55325         * tests/test-xalloc-die.sh: Use $EXEEXT.
55327 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55328             Bruno Haible  <bruno@clisp.org>
55330         getlogin, getlogin_r: Avoid test failure.
55331         * tests/test-getlogin.c: Include <stdio.h>.
55332         (main): Skip the test when the function fails because stdin is not a
55333         tty.
55334         * tests/test-getlogin_r.c: Include <stdio.h>.
55335         (main): Skip the test when the function fails because stdin is not a
55336         tty.
55338 2010-01-11  Eric Blake  <ebb9@byu.net>
55340         tests: avoid more large file warnings
55341         * tests/test-fflush.c: Avoid warning about ftell use.
55342         * tests/test-fseek.c: Avoid warning about fseek use.
55344 2010-01-10  Bruno Haible  <bruno@clisp.org>
55346         nproc: Work better on Linux when /proc and /sys are not mounted.
55347         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
55348         as lower bound when, on glibc/Linux systems,
55349         sysconf (_SC_NPROCESSORS_CONF) returns 1.
55350         Suggested by Pádraig Brady <P@draigbrady.com>.
55351         Reported by Dmitry V. Levin <ldv@altlinux.org>.
55353         nproc: Refactor.
55354         * lib/nproc.c (num_processors_via_affinity_mask): New function,
55355         extracted from num_processors.
55356         (num_processors): Call it.
55358 2010-01-11  Jim Meyering  <meyering@redhat.com>
55360         utimecmp: avoid new warning from upcoming gcc-4.5.0
55361         * lib/utimecmp.c (BILLION): Define using #define rather than an
55362         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
55364 2010-01-11  Eric Blake  <ebb9@byu.net>
55366         math: add portability warnings for classification macros
55367         * modules/math (Depends-on): Add warn-on-use.
55368         (Makefile.am): Provide new substitutions.
55369         * m4/math_h.m4 (gl_MATH_H): Require inline.
55370         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
55371         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
55372         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
55373         implement warnings.
55375         unistd: warn on use of environ without module
55376         * modules/unistd (Depends-on): Add warn-on-use.
55377         (Makefile.am): Provide new substitutions.
55378         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
55379         * lib/unistd.in.h (environ): Wrap with a warning helper function.
55381         stdio: warn on suspicious uses
55382         * modules/stdio (Depends-on): Add warn-on-use.
55383         (Makefile.am): Provide new substitutions.
55384         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
55385         fseeko.
55386         * lib/stdio.in.h (gets): Always warn on use.
55387         (fseek, ftell): Adjust when warnings are issued, and honor
55388         _GL_NO_LARGE_FILES as a way to silence the warning.
55389         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
55390         any warning about large file offsets.
55391         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
55392         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
55393         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
55394         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
55395         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
55396         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
55397         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
55398         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
55400         warn-on-use: new module
55401         * modules/warn-on-use: New file.
55402         * build-aux/warn-on-use.h: Likewise.
55403         * m4/warn-on-use.m4: Likewise.
55404         * MODULES.html.sh (Support for building): Mention it.
55406 2010-01-10  Bruno Haible  <bruno@clisp.org>
55408         Tests for module 'unistr/u32-strdup'.
55409         * modules/unistr/u32-strdup-tests: New file.
55410         * tests/unistr/test-u32-strdup.c: New file.
55412         Tests for module 'unistr/u16-strdup'.
55413         * modules/unistr/u16-strdup-tests: New file.
55414         * tests/unistr/test-u16-strdup.c: New file.
55416         Tests for module 'unistr/u8-strdup'.
55417         * modules/unistr/u8-strdup-tests: New file.
55418         * tests/unistr/test-u8-strdup.c: New file.
55419         * tests/unistr/test-strdup.h: New file.
55421         Tests for module 'unistr/u32-strncmp'.
55422         * modules/unistr/u32-strncmp-tests: New file.
55423         * tests/unistr/test-u32-strncmp.c: New file.
55425         Tests for module 'unistr/u16-strncmp'.
55426         * modules/unistr/u16-strncmp-tests: New file.
55427         * tests/unistr/test-u16-strncmp.c: New file.
55429         Tests for module 'unistr/u8-strncmp'.
55430         * modules/unistr/u8-strncmp-tests: New file.
55431         * tests/unistr/test-u8-strncmp.c: New file.
55432         * tests/unistr/test-strncmp.h: New file.
55434         Tests for module 'unistr/u32-strcoll'.
55435         * modules/unistr/u32-strcoll-tests: New file.
55436         * tests/unistr/test-u32-strcoll.c: New file.
55438         Tests for module 'unistr/u16-strcoll'.
55439         * modules/unistr/u16-strcoll-tests: New file.
55440         * tests/unistr/test-u16-strcoll.c: New file.
55442         Tests for module 'unistr/u8-strcoll'.
55443         * modules/unistr/u8-strcoll-tests: New file.
55444         * tests/unistr/test-u8-strcoll.c: New file.
55446         Tests for module 'unistr/u32-strcmp'.
55447         * modules/unistr/u32-strcmp-tests: New file.
55448         * tests/unistr/test-u32-strcmp.c: New file.
55449         * tests/unistr/test-u32-strcmp.h: New file.
55451         Tests for module 'unistr/u16-strcmp'.
55452         * modules/unistr/u16-strcmp-tests: New file.
55453         * tests/unistr/test-u16-strcmp.c: New file.
55454         * tests/unistr/test-u16-strcmp.h: New file.
55456         Tests for module 'unistr/u8-strcmp'.
55457         * modules/unistr/u8-strcmp-tests: New file.
55458         * tests/unistr/test-u8-strcmp.c: New file.
55459         * tests/unistr/test-u8-strcmp.h: New file.
55460         * tests/unistr/test-strcmp.h: New file.
55462         Tests for module 'unistr/u32-strncat'.
55463         * modules/unistr/u32-strncat-tests: New file.
55464         * tests/unistr/test-u32-strncat.c: New file.
55466         Tests for module 'unistr/u16-strncat'.
55467         * modules/unistr/u16-strncat-tests: New file.
55468         * tests/unistr/test-u16-strncat.c: New file.
55470         Tests for module 'unistr/u8-strncat'.
55471         * modules/unistr/u8-strncat-tests: New file.
55472         * tests/unistr/test-u8-strncat.c: New file.
55473         * tests/unistr/test-strncat.h: New file.
55475         Tests for module 'unistr/u32-strcat'.
55476         * modules/unistr/u32-strcat-tests: New file.
55477         * tests/unistr/test-u32-strcat.c: New file.
55479         Tests for module 'unistr/u16-strcat'.
55480         * modules/unistr/u16-strcat-tests: New file.
55481         * tests/unistr/test-u16-strcat.c: New file.
55483         Tests for module 'unistr/u8-strcat'.
55484         * modules/unistr/u8-strcat-tests: New file.
55485         * tests/unistr/test-u8-strcat.c: New file.
55486         * tests/unistr/test-strcat.h: New file.
55488         Tests for module 'unistr/u32-stpncpy'.
55489         * modules/unistr/u32-stpncpy-tests: New file.
55490         * tests/unistr/test-u32-stpncpy.c: New file.
55492         Tests for module 'unistr/u16-stpncpy'.
55493         * modules/unistr/u16-stpncpy-tests: New file.
55494         * tests/unistr/test-u16-stpncpy.c: New file.
55496         Tests for module 'unistr/u8-stpncpy'.
55497         * modules/unistr/u8-stpncpy-tests: New file.
55498         * tests/unistr/test-u8-stpncpy.c: New file.
55499         * tests/unistr/test-stpncpy.h: New file.
55501         Tests for module 'unistr/u32-strncpy'.
55502         * modules/unistr/u32-strncpy-tests: New file.
55503         * tests/unistr/test-u32-strncpy.c: New file.
55505         Tests for module 'unistr/u16-strncpy'.
55506         * modules/unistr/u16-strncpy-tests: New file.
55507         * tests/unistr/test-u16-strncpy.c: New file.
55509         Tests for module 'unistr/u8-strncpy'.
55510         * modules/unistr/u8-strncpy-tests: New file.
55511         * tests/unistr/test-u8-strncpy.c: New file.
55512         * tests/unistr/test-strncpy.h: New file.
55514         Tests for module 'unistr/u32-stpcpy'.
55515         * modules/unistr/u32-stpcpy-tests: New file.
55516         * tests/unistr/test-u32-stpcpy.c: New file.
55518         Tests for module 'unistr/u16-stpcpy'.
55519         * modules/unistr/u16-stpcpy-tests: New file.
55520         * tests/unistr/test-u16-stpcpy.c: New file.
55522         Tests for module 'unistr/u8-stpcpy'.
55523         * modules/unistr/u8-stpcpy-tests: New file.
55524         * tests/unistr/test-u8-stpcpy.c: New file.
55525         * tests/unistr/test-stpcpy.h: New file.
55527         Tests for module 'unistr/u32-strcpy'.
55528         * modules/unistr/u32-strcpy-tests: New file.
55529         * tests/unistr/test-u32-strcpy.c: New file.
55531         Tests for module 'unistr/u16-strcpy'.
55532         * modules/unistr/u16-strcpy-tests: New file.
55533         * tests/unistr/test-u16-strcpy.c: New file.
55535         Tests for module 'unistr/u8-strcpy'.
55536         * modules/unistr/u8-strcpy-tests: New file.
55537         * tests/unistr/test-u8-strcpy.c: New file.
55538         * tests/unistr/test-strcpy.h: New file.
55540         Tests for module 'unistr/u32-strnlen'.
55541         * modules/unistr/u32-strnlen-tests: New file.
55542         * tests/unistr/test-u32-strnlen.c: New file.
55544         Tests for module 'unistr/u16-strnlen'.
55545         * modules/unistr/u16-strnlen-tests: New file.
55546         * tests/unistr/test-u16-strnlen.c: New file.
55548         Tests for module 'unistr/u8-strnlen'.
55549         * modules/unistr/u8-strnlen-tests: New file.
55550         * tests/unistr/test-u8-strnlen.c: New file.
55551         * tests/unistr/test-strnlen.h: New file.
55553         Tests for module 'unistr/u32-strlen'.
55554         * modules/unistr/u32-strlen-tests: New file.
55555         * tests/unistr/test-u32-strlen.c: New file.
55557         Tests for module 'unistr/u16-strlen'.
55558         * modules/unistr/u16-strlen-tests: New file.
55559         * tests/unistr/test-u16-strlen.c: New file.
55561         Tests for module 'unistr/u8-strlen'.
55562         * modules/unistr/u8-strlen-tests: New file.
55563         * tests/unistr/test-u8-strlen.c: New file.
55565         Tests for module 'unistr/u32-prev'.
55566         * modules/unistr/u32-prev-tests: New file.
55567         * tests/unistr/test-u32-prev.c: New file.
55569         Tests for module 'unistr/u16-prev'.
55570         * modules/unistr/u16-prev-tests: New file.
55571         * tests/unistr/test-u16-prev.c: New file.
55573         Tests for module 'unistr/u8-prev'.
55574         * modules/unistr/u8-prev-tests: New file.
55575         * tests/unistr/test-u8-prev.c: New file.
55577         Tests for module 'unistr/u32-next'.
55578         * modules/unistr/u32-next-tests: New file.
55579         * tests/unistr/test-u32-next.c: New file.
55581         Tests for module 'unistr/u16-next'.
55582         * modules/unistr/u16-next-tests: New file.
55583         * tests/unistr/test-u16-next.c: New file.
55585         Tests for module 'unistr/u8-next'.
55586         * modules/unistr/u8-next-tests: New file.
55587         * tests/unistr/test-u8-next.c: New file.
55589         Tests for module 'unistr/u32-strmbtouc'.
55590         * modules/unistr/u32-strmbtouc-tests: New file.
55591         * tests/unistr/test-u32-strmbtouc.c: New file.
55593         Tests for module 'unistr/u16-strmbtouc'.
55594         * modules/unistr/u16-strmbtouc-tests: New file.
55595         * tests/unistr/test-u16-strmbtouc.c: New file.
55597         Tests for module 'unistr/u8-strmbtouc'.
55598         * modules/unistr/u8-strmbtouc-tests: New file.
55599         * tests/unistr/test-u8-strmbtouc.c: New file.
55601         Tests for module 'unistr/u32-strmblen'.
55602         * modules/unistr/u32-strmblen-tests: New file.
55603         * tests/unistr/test-u32-strmblen.c: New file.
55605         Tests for module 'unistr/u16-strmblen'.
55606         * modules/unistr/u16-strmblen-tests: New file.
55607         * tests/unistr/test-u16-strmblen.c: New file.
55609         Tests for module 'unistr/u8-strmblen'.
55610         * modules/unistr/u8-strmblen-tests: New file.
55611         * tests/unistr/test-u8-strmblen.c: New file.
55613         Tests for module 'unistr/u32-cpy-alloc'.
55614         * modules/unistr/u32-cpy-alloc-tests: New file.
55615         * tests/unistr/test-u32-cpy-alloc.c: New file.
55617         Tests for module 'unistr/u16-cpy-alloc'.
55618         * modules/unistr/u16-cpy-alloc-tests: New file.
55619         * tests/unistr/test-u16-cpy-alloc.c: New file.
55621         Tests for module 'unistr/u8-cpy-alloc'.
55622         * modules/unistr/u8-cpy-alloc-tests: New file.
55623         * tests/unistr/test-u8-cpy-alloc.c: New file.
55624         * tests/unistr/test-cpy-alloc.h: New file.
55626         Tests for module 'unistr/u32-mbsnlen'.
55627         * modules/unistr/u32-mbsnlen-tests: New file.
55628         * tests/unistr/test-u32-mbsnlen.c: New file.
55630         Tests for module 'unistr/u16-mbsnlen'.
55631         * modules/unistr/u16-mbsnlen-tests: New file.
55632         * tests/unistr/test-u16-mbsnlen.c: New file.
55634         Tests for module 'unistr/u8-mbsnlen'.
55635         * modules/unistr/u8-mbsnlen-tests: New file.
55636         * tests/unistr/test-u8-mbsnlen.c: New file.
55638         Tests for module 'unistr/u32-chr'.
55639         * modules/unistr/u32-chr-tests: New file.
55640         * tests/unistr/test-u32-chr.c: New file.
55642         Tests for module 'unistr/u16-chr'.
55643         * modules/unistr/u16-chr-tests: New file.
55644         * tests/unistr/test-u16-chr.c: New file.
55646         Tests for module 'unistr/u8-chr'.
55647         * modules/unistr/u8-chr-tests: New file.
55648         * tests/unistr/test-u8-chr.c: New file.
55649         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
55651         Tests for module 'unistr/u32-cmp2'.
55652         * modules/unistr/u32-cmp2-tests: New file.
55653         * tests/unistr/test-u32-cmp2.c: New file.
55655         Tests for module 'unistr/u16-cmp2'.
55656         * modules/unistr/u16-cmp2-tests: New file.
55657         * tests/unistr/test-u16-cmp2.c: New file.
55659         Tests for module 'unistr/u8-cmp2'.
55660         * modules/unistr/u8-cmp2-tests: New file.
55661         * tests/unistr/test-u8-cmp2.c: New file.
55662         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
55664         Tests for module 'unistr/u32-cmp'.
55665         * modules/unistr/u32-cmp-tests: New file.
55666         * tests/unistr/test-u32-cmp.c: New file.
55668         Tests for module 'unistr/u16-cmp'.
55669         * modules/unistr/u16-cmp-tests: New file.
55670         * tests/unistr/test-u16-cmp.c: New file.
55672         Tests for module 'unistr/u8-cmp'.
55673         * modules/unistr/u8-cmp-tests: New file.
55674         * tests/unistr/test-u8-cmp.c: New file.
55675         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
55677         Tests for module 'unistr/u32-set'.
55678         * modules/unistr/u32-set-tests: New file.
55679         * tests/unistr/test-u32-set.c: New file.
55681         Tests for module 'unistr/u16-set'.
55682         * modules/unistr/u16-set-tests: New file.
55683         * tests/unistr/test-u16-set.c: New file.
55685         Tests for module 'unistr/u8-set'.
55686         * modules/unistr/u8-set-tests: New file.
55687         * tests/unistr/test-u8-set.c: New file.
55688         * tests/unistr/test-set.h: New file.
55690         Tests for module 'unistr/u32-move'.
55691         * modules/unistr/u32-move-tests: New file.
55692         * tests/unistr/test-u32-move.c: New file.
55694         Tests for module 'unistr/u16-move'.
55695         * modules/unistr/u16-move-tests: New file.
55696         * tests/unistr/test-u16-move.c: New file.
55698         Tests for module 'unistr/u8-move'.
55699         * modules/unistr/u8-move-tests: New file.
55700         * tests/unistr/test-u8-move.c: New file.
55701         * tests/unistr/test-move.h: New file.
55703         Tests for module 'unistr/u32-cpy'.
55704         * modules/unistr/u32-cpy-tests: New file.
55705         * tests/unistr/test-u32-cpy.c: New file.
55707         Tests for module 'unistr/u16-cpy'.
55708         * modules/unistr/u16-cpy-tests: New file.
55709         * tests/unistr/test-u16-cpy.c: New file.
55711         Tests for module 'unistr/u8-cpy'.
55712         * modules/unistr/u8-cpy-tests: New file.
55713         * tests/unistr/test-u8-cpy.c: New file.
55714         * tests/unistr/test-cpy.h: New file.
55716 2010-01-09  Bruno Haible  <bruno@clisp.org>
55718         Tests for module 'unistr/u32-uctomb'.
55719         * modules/unistr/u32-uctomb-tests: New file.
55720         * tests/unistr/test-u32-uctomb.c: New file.
55722         Tests for module 'unistr/u16-uctomb'.
55723         * modules/unistr/u16-uctomb-tests: New file.
55724         * tests/unistr/test-u16-uctomb.c: New file.
55726         Tests for module 'unistr/u8-uctomb'.
55727         * modules/unistr/u8-uctomb-tests: New file.
55728         * tests/unistr/test-u8-uctomb.c: New file.
55730         Tests for module 'unistr/u32-mbtoucr'.
55731         * modules/unistr/u32-mbtoucr-tests: New file.
55732         * tests/unistr/test-u32-mbtoucr.c: New file.
55734         Tests for module 'unistr/u16-mbtoucr'.
55735         * modules/unistr/u16-mbtoucr-tests: New file.
55736         * tests/unistr/test-u16-mbtoucr.c: New file.
55738         Tests for module 'unistr/u8-mbtoucr'.
55739         * modules/unistr/u8-mbtoucr-tests: New file.
55740         * tests/unistr/test-u8-mbtoucr.c: New file.
55742         Tests for module 'unistr/u32-mbtouc'.
55743         * modules/unistr/u32-mbtouc-tests: New file.
55744         * tests/unistr/test-u32-mbtouc.c: New file.
55746         Tests for module 'unistr/u16-mbtouc'.
55747         * modules/unistr/u16-mbtouc-tests: New file.
55748         * tests/unistr/test-u16-mbtouc.c: New file.
55750         Tests for module 'unistr/u8-mbtouc'.
55751         * modules/unistr/u8-mbtouc-tests: New file.
55752         * tests/unistr/test-u8-mbtouc.c: New file.
55754         Tests for module 'unistr/u32-mbtouc-unsafe'.
55755         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
55756         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
55757         * tests/unistr/test-u32-mbtouc.h: New file.
55759         Tests for module 'unistr/u16-mbtouc-unsafe'.
55760         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
55761         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
55762         * tests/unistr/test-u16-mbtouc.h: New file.
55764         Tests for module 'unistr/u8-mbtouc-unsafe'.
55765         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
55766         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
55767         * tests/unistr/test-u8-mbtouc.h: New file.
55769         Tests for module 'unistr/u32-mblen'.
55770         * modules/unistr/u32-mblen-tests: New file.
55771         * tests/unistr/test-u32-mblen.c: New file.
55773         Tests for module 'unistr/u16-mblen'.
55774         * modules/unistr/u16-mblen-tests: New file.
55775         * tests/unistr/test-u16-mblen.c: New file.
55777         Tests for module 'unistr/u8-mblen'.
55778         * modules/unistr/u8-mblen-tests: New file.
55779         * tests/unistr/test-u8-mblen.c: New file.
55781         Tests for module 'unistr/u32-to-u16'.
55782         * modules/unistr/u32-to-u16-tests: New file.
55783         * tests/unistr/test-u32-to-u16.c: New file.
55785         Tests for module 'unistr/u32-to-u8'.
55786         * modules/unistr/u32-to-u8-tests: New file.
55787         * tests/unistr/test-u32-to-u8.c: New file.
55789         Tests for module 'unistr/u16-to-u32'.
55790         * modules/unistr/u16-to-u32-tests: New file.
55791         * tests/unistr/test-u16-to-u32.c: New file.
55793         Tests for module 'unistr/u16-to-u8'.
55794         * modules/unistr/u16-to-u8-tests: New file.
55795         * tests/unistr/test-u16-to-u8.c: New file.
55797         Tests for module 'unistr/u8-to-u32'.
55798         * modules/unistr/u8-to-u32-tests: New file.
55799         * tests/unistr/test-u8-to-u32.c: New file.
55801         Tests for module 'unistr/u8-to-u16'.
55802         * modules/unistr/u8-to-u16-tests: New file.
55803         * tests/unistr/test-u8-to-u16.c: New file.
55805         Tests for module 'unistr/u32-check'.
55806         * modules/unistr/u32-check-tests: New file.
55807         * tests/unistr/test-u32-check.c: New file.
55809         Tests for module 'unistr/u16-check'.
55810         * modules/unistr/u16-check-tests: New file.
55811         * tests/unistr/test-u16-check.c: New file.
55813         Tests for module 'unistr/u8-check'.
55814         * modules/unistr/u8-check-tests: New file.
55815         * tests/unistr/test-u8-check.c: New file.
55817         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
55818         (category_equals): New function.
55819         (main): Add more tests.
55820         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
55822         * tests/unictype/test-bidi_byname.c (main): Add more tests.
55824 2010-01-10  Bruno Haible  <bruno@clisp.org>
55826         unistr/u*-strcoll: Try harder to distinguish different strings.
55827         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
55828         compare s1 and s2 to see if they are different.
55830 2010-01-10  Bruno Haible  <bruno@clisp.org>
55832         unistr/u*-stpncpy: Fix the return value.
55833         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
55834         description of the return value consistent with stpncpy in glibc.
55835         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
55836         written non-NUL unit.
55838 2010-01-10  Bruno Haible  <bruno@clisp.org>
55840         unistr/u*-next: Add missing dependencies.
55841         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
55842         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
55843         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
55845 2010-01-10  Bruno Haible  <bruno@clisp.org>
55847         unistr/u8-mbsnlen: Fix return value for incomplete character.
55848         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
55849         u8_mblen.
55850         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55851         Remove unistr/u8-mblen.
55852         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55853         u16_mblen.
55854         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55855         Remove unistr/u16-mblen.
55857 2010-01-10  Bruno Haible  <bruno@clisp.org>
55859         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55860         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55861         Reported by Brian Gough <bjg@gnu.org> and
55862         Chris Clayton <chris2553@googlemail.com> via
55863         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55865 2010-01-09  Bruno Haible  <bruno@clisp.org>
55867         unistr/u16-to-u32: Reject invalid input.
55868         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55869         u16_mbtouc.
55870         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55871         Remove unistr/u16-mbtouc.
55873         unistr/u16-to-u8: Reject invalid input.
55874         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55875         u16_mbtouc.
55876         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55877         Remove unistr/u16-mbtouc.
55879         unistr/u8-to-u32: Reject invalid input.
55880         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55881         u8_mbtouc.
55882         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55883         Remove unistr/u8-mbtouc.
55885         unistr/u8-to-u16: Reject invalid input.
55886         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55887         u8_mbtouc.
55888         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55889         Remove unistr/u8-mbtouc.
55891 2010-01-09  Bruno Haible  <bruno@clisp.org>
55893         Tests for module 'getlogin'.
55894         * modules/getlogin-tests: New file.
55895         * tests/test-getlogin.c: New file.
55897         New module 'getlogin'.
55898         * lib/unistd.in.h (getlogin): New declaration.
55899         * lib/getlogin.c: New file.
55900         * m4/getlogin.m4: New file.
55901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55902         HAVE_GETLOGIN.
55903         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55904         HAVE_GETLOGIN.
55905         * modules/getlogin: New file.
55906         * doc/posix-functions/getlogin.texi: Mention the new module.
55907         Reported by John W. Eaton <jwe@gnu.org>.
55909 2010-01-09  Bruno Haible  <bruno@clisp.org>
55911         getlogin_r: Support for native Windows.
55912         * lib/getlogin_r.c: Include <windows.h>
55913         (getlogin_r): Implement for native Windows.
55914         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55915         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55916         via John W. Eaton <jwe@gnu.org>.
55918 2010-01-09  Bruno Haible  <bruno@clisp.org>
55920         getlogin_r: Small fixes.
55921         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55922         succeeds.
55923         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55924         before testing whether getlogin_r is declared. No need to set
55925         HAVE_DECL_GETLOGIN_R to 1.
55926         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55928 2010-01-09  Bruno Haible  <bruno@clisp.org>
55930         * lib/unistd.in.h (getlogin_r): Add comment.
55932 2010-01-09  Bruno Haible  <bruno@clisp.org>
55934         Tests for module 'getlogin_r'.
55935         * modules/getlogin_r-tests: New file.
55936         * tests/test-getlogin_r.c: New file.
55938 2010-01-09  Jim Meyering  <meyering@redhat.com>
55940         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55941         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55942         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55944 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55946         * lib/dup2.c (rpl_dup2): Improve comment.
55948 2010-01-08  Eric Blake  <ebb9@byu.net>
55950         maint.mk: allow packages to add makefile @@ exceptions
55951         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55952         (sc_makefile_check): Rename...
55953         (sc_makefile_at_at_check): ...to this, and use hook.
55955         dup2: work around mingw bug
55956         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55957         Reported by Simon Josefsson.
55959 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55961         glob: Fix C++ compilation.
55962         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55963         C++.
55965 2010-01-07  Bruno Haible  <bruno@clisp.org>
55967         Fix indentation of wctype.in.h, broken since 2007-01-06.
55968         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55970 2010-01-07  Bruno Haible  <bruno@clisp.org>
55972         mbslen: Avoid collision with system function.
55973         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55974         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55975         * m4/mbslen.m4: New file.
55976         * modules/mbslen (Files): Add it.
55977         (configure.ac): Invoke gl_MBSLEN.
55978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55979         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55980         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55981         via Ian Beckwith <ianb@erislabs.net>.
55983 2010-01-07  Bruno Haible  <bruno@clisp.org>
55985         dirent: Document the last fix.
55986         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55988 2010-01-07  Bruno Haible  <bruno@clisp.org>
55990         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55991         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55992         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55993         va_list are defined.
55994         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55995         Reported by Eric Blake.
55997 2010-01-07  Bruno Haible  <bruno@clisp.org>
55999         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
56000         * modules/xlist (Depends-on): Add 'list',
56001         * modules/xoset (Depends-on): Add 'oset'.
56002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56004 2010-01-07  Bruno Haible  <bruno@clisp.org>
56006         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
56007         * doc/posix-functions/strncasecmp.texi: Likewise.
56009 2010-01-07  Bruno Haible  <bruno@clisp.org>
56011         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
56013 2010-01-07  John W. Eaton  <jwe@octave.org>
56015         wctype: allow C++ use
56016         * lib/wctype.in.h: Add extern "C" block for C++.
56018 2010-01-06  Eric Blake  <ebb9@byu.net>
56020         maint.mk: detect incorrect GFDL usage
56021         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
56023 2010-01-06  Jim Meyering  <meyering@redhat.com>
56024         and Eric Blake  <ebb9@byu.net>
56026         maint.mk: ignore multi-line copyright in NEWS
56027         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
56029 2010-01-06  Eric Blake  <ebb9@byu.net>
56031         select: add missing dependency
56032         * modules/select-tests (Depends-on): Move sockets dependency...
56033         * modules/select (Depends-on): ...here.
56034         Reported by Ian Beckwith.
56036         doc: regenerate INSTALL
56037         * doc/INSTALL: Reflect recent autoconf update.
56038         * doc/INSTALL.ISO: Likewise.
56039         * doc/INSTALL.UTF-8: Likewise.
56041         pread: fix compilation on glibc
56042         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
56043         Reported by Ralf Wildenhues.
56045         dirent: fix test failure
56046         * lib/dirent.in.h (includes): Guarantee ino_t.
56047         Reported by Ralf Wildenhues.
56049 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
56051         linkat, renameat: avoid bad free
56052         * lib/at-func2.c (at_func2): Fix typo.
56053         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
56055 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56057         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
56058         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
56059         to avoid failure of symlink test later.
56061 2010-01-06  Eric Blake  <ebb9@byu.net>
56063         stdio, unistd: guarantee ssize_t
56064         * lib/unistd.in.h (includes): Ensure that types required by POSIX
56065         2008 are exposed when needed.
56066         * lib/stdio.in.h (includes): Likewise.
56067         Reported by Ralf Wildenhues.
56069 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
56071         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
56072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
56073         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
56075 2010-01-06  Jim Meyering  <meyering@redhat.com>
56077         readtokens: this module *does* require xalloc.h
56078         It uses only functions that were omitted by the old syntax-check rule.
56079         * lib/readtokens.c: Include "xalloc.h" once again.
56080         * modules/readtokens (Depends-on): Add xalloc.
56081         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
56083 2010-01-05  Eric Blake  <ebb9@byu.net>
56085         maint: support 'make announcement' from a VPATH build
56086         * top/maint.mk (announcement): Look for correct NEWS file.
56088 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
56090         utimens (fdutimens): ignore a negative FD, per contract
56091         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
56092         when we have a valid file descriptor.  Otherwise, using a brand
56093         new glibc (with just-patched futimens that now fails with EBADF)
56094         would cause this function to fail with ENOSYS.
56095         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
56096         See also http://bugzilla.redhat.com/552320.
56098 2010-01-05  Eric Blake  <ebb9@byu.net>
56100         strcase: document what it provides
56101         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
56102         gnulib module.
56103         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
56104         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
56106 2010-01-05  Jim Meyering  <meyering@redhat.com>
56108         maint: remove useless inclusions of "xalloc.h"
56109         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
56110         * lib/readtokens.c: Likewise.
56111         * lib/same.c: Likewise.
56112         * modules/getloadavg (Depends-on): Remove xalloc.
56113         * modules/readtokens: Likewise.
56114         * modules/same: Likewise.
56116         maint.mk: include 4 more function names in alloca.h-checking regexp
56117         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
56118         regexp.  Before, we would give a false-positive (saying alloca.h
56119         is included unnecessarily) when the only uses involved omitted symbols.
56121         xalloc.h: use consistent formatting
56122         * lib/xalloc.h: Move declarations to start in the first column.
56124 2010-01-05  Eric Blake  <ebb9@byu.net>
56126         mkdir: avoid xalloc
56127         * lib/mkdir.c (includes): Drop unused header.
56128         Reported by John W. Eaton.
56130 2010-01-04  Jim Meyering  <meyering@redhat.com>
56132         nl_langinfo: avoid configure-time syntax error
56133         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
56134         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
56135         the empty string.  Don't let that provoke a shell syntax error.
56137         regcomp, regexec, fnmatch: avoid array bounds read error
56138         * lib/regcomp.c (build_equiv_class): From glibc:
56139         Use only the low 24 bits of a findidx return value as an index
56140         into the weights array.  Patch by Ulrich Drepper:
56141         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
56142         * lib/regexec.c (check_node_accept_bytes): Likewise.
56143         * lib/fnmatch_loop.c (FCT): Likewise.
56145         regcomp: skip collseq lookup when there are no rules
56146         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
56147         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
56149         regcomp: recognize ill-formed { } expressions
56150         * lib/regcomp.c (parse_dup_op): From glibc:
56151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
56153         regcomp: fix typo in comment
56154         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
56155         s/satisfy/satisfies/.
56157         regcomp: sync from glibc: remove dead store
56158         * lib/regcomp.c (duplicate_node_closure): Remove useless
56159         search_duplicated_node call and dead store.
56161         regcomp: sync from glibc; always use nl_langinfo
56162         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
56163         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
56164         * modules/regex (Depends-on): Add nl_langinfo.
56166 2010-01-04  Eric Blake  <ebb9@byu.net>
56168         fdopendir: fix configure test
56169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
56171 2010-01-01  Bruno Haible  <bruno@clisp.org>
56173         wchar: Remove unused configure check.
56174         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
56176 2010-01-01  Eric Blake  <ebb9@byu.net>
56178         headers: make check of system header explicit
56179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
56180         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
56181         ourselves.
56182         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
56186         internals.
56187         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
56188         missing.
56189         Suggested by Bruno Haible.
56191 2010-01-01  Jim Meyering  <meyering@redhat.com>
56193         ChangeLog: tweak to eliminate unnecessary copyright line
56194         * ChangeLog: Remove a copyright line that was mistakenly updated
56195         by today's update-copyright run.  Reported by Eric Blake.
56197         test-update-copyright: don't let envvar setting cause test failure
56198         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56200 2010-01-01  Bruno Haible  <bruno@clisp.org>
56202         localename: Avoid gcc warning.
56203         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
56204         function if it is not used.
56206 2010-01-01  Jim Meyering  <meyering@redhat.com>
56208         update nearly all FSF copyright year lists to include 2010
56209         Use the same procedure as for 2009, outlined in
56210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
56212         version-etc: set COPYRIGHT_YEAR to 2010
56213         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
56215 2009-12-31  Eric Blake  <ebb9@byu.net>
56217         doc: correct availability of cygwin 1.5.x getopt
56218         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
56219         variables.
56220         * doc/posix-functions/opterr.texi (opterr): Likewise.
56221         * doc/posix-functions/optind.texi (optind): Likewise.
56222         * doc/posix-functions/optopt.texi (optopt): Likewise.
56223         * doc/posix-functions/tzname.texi (tzname): Likewise.
56225         openat: update maintainer
56226         * modules/openat (Maintainer): Add myself.
56228         utimens: avoid shadowing warning
56229         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
56230         buffers into one, to avoid shadowing, as well as avoiding a
56231         redundant stat.
56232         Reported by Jim Meyering.
56234         test-dup2: avoid compiler warning
56235         * tests/test-dup2.c (is_inheritable): Only define if used.
56237 2010-01-01  Bruno Haible  <bruno@clisp.org>
56239         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
56240         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
56241         defined, use wctomb instead of wcrtomb.
56243 2010-01-01  Bruno Haible  <bruno@clisp.org>
56245         iconv: Reject native Solaris iconv.
56246         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
56247         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
56249 2009-12-31  Bruno Haible  <bruno@clisp.org>
56251         * tests/test-signal.c (main): Remove test of 'SIG'.
56253 2009-12-31  Bruno Haible  <bruno@clisp.org>
56255         spawn: Fix incomplete fix.
56256         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56257         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56258         warnings for GNULIB_POSIXCHECK again.
56259         Reported by Eric Blake.
56261 2009-12-31  Bruno Haible  <bruno@clisp.org>
56263         Avoid namespace pollution on glibc systems.
56264         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
56265         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
56266         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
56267         glibc systems.
56269 2009-12-31  Bruno Haible  <bruno@clisp.org>
56271         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
56272         (gl_REPLACE_WCHAR_H): Turn into a no-op.
56273         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
56274         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56275         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56277         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56279 2009-12-31  Bruno Haible  <bruno@clisp.org>
56281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
56282         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
56283         afterwards.
56285 2009-12-31  Bruno Haible  <bruno@clisp.org>
56287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
56288         SYS_UTSNAME_H.
56290 2009-12-31  Bruno Haible  <bruno@clisp.org>
56292         spawn: Fix misapplied patch.
56293         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56294         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56295         warnings for GNULIB_POSIXCHECK.
56297 2009-12-31  Bruno Haible  <bruno@clisp.org>
56299         times: Update after sys_times changed.
56300         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
56301         * modules/times (Files): Add it.
56302         (configure.ac): Invoke gl_FUNC_TIMES.
56304 2009-12-31  Bruno Haible  <bruno@clisp.org>
56306         Use AC_C_INLINE where necessary.
56307         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
56308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56310         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56311         * m4/mbfile.m4 (gl_MBFILE): Likewise.
56312         * m4/mbiter.m4 (gl_MBITER): Likewise.
56313         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56314         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
56315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
56316         * modules/u64 (configure.ac): Likewise.
56318 2009-12-31  Bruno Haible  <bruno@clisp.org>
56320         Use AC_C_INLINE instead of module 'inline' where possible.
56321         * modules/inline (Description): Clarify purpose.
56322         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
56323         * modules/count-one-bits (Depends-on): Remove inline.
56324         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
56325         * modules/openat (Depends-on): Remove inline.
56326         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
56327         instead of depending on module 'inline'.
56328         * modules/filevercmp (Depends-on, configure.ac): Likewise.
56329         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
56330         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
56331         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
56332         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
56333         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
56334         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
56335         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
56336         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
56337         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
56338         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
56339         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
56340         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
56341         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
56342         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
56343         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
56344         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
56345         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
56346         Likewise.
56347         * modules/unictype/property-ascii-hex-digit (Depends-on,
56348         configure.ac): Likewise.
56349         * modules/unictype/property-bidi-arabic-digit (Depends-on,
56350         configure.ac): Likewise.
56351         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
56352         configure.ac): Likewise.
56353         * modules/unictype/property-bidi-block-separator (Depends-on,
56354         configure.ac): Likewise.
56355         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
56356         configure.ac): Likewise.
56357         * modules/unictype/property-bidi-common-separator (Depends-on,
56358         configure.ac): Likewise.
56359         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
56360         Likewise.
56361         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
56362         configure.ac): Likewise.
56363         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
56364         configure.ac): Likewise.
56365         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
56366         configure.ac): Likewise.
56367         * modules/unictype/property-bidi-european-digit (Depends-on,
56368         configure.ac): Likewise.
56369         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
56370         configure.ac): Likewise.
56371         * modules/unictype/property-bidi-left-to-right (Depends-on,
56372         configure.ac): Likewise.
56373         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
56374         configure.ac): Likewise.
56375         * modules/unictype/property-bidi-other-neutral (Depends-on,
56376         configure.ac): Likewise.
56377         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
56378         Likewise.
56379         * modules/unictype/property-bidi-segment-separator (Depends-on,
56380         configure.ac): Likewise.
56381         * modules/unictype/property-bidi-whitespace (Depends-on,
56382         configure.ac): Likewise.
56383         * modules/unictype/property-combining (Depends-on, configure.ac):
56384         Likewise.
56385         * modules/unictype/property-composite (Depends-on, configure.ac):
56386         Likewise.
56387         * modules/unictype/property-currency-symbol (Depends-on,
56388         configure.ac): Likewise.
56389         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
56390         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
56391         Likewise.
56392         * modules/unictype/property-default-ignorable-code-point (Depends-on,
56393         configure.ac): Likewise.
56394         * modules/unictype/property-deprecated (Depends-on, configure.ac):
56395         Likewise.
56396         * modules/unictype/property-diacritic (Depends-on, configure.ac):
56397         Likewise.
56398         * modules/unictype/property-extender (Depends-on, configure.ac):
56399         Likewise.
56400         * modules/unictype/property-format-control (Depends-on, configure.ac):
56401         Likewise.
56402         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
56403         Likewise.
56404         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
56405         Likewise.
56406         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
56407         Likewise.
56408         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
56409         Likewise.
56410         * modules/unictype/property-hyphen (Depends-on, configure.ac):
56411         Likewise.
56412         * modules/unictype/property-id-continue (Depends-on, configure.ac):
56413         Likewise.
56414         * modules/unictype/property-id-start (Depends-on, configure.ac):
56415         Likewise.
56416         * modules/unictype/property-ideographic (Depends-on, configure.ac):
56417         Likewise.
56418         * modules/unictype/property-ids-binary-operator (Depends-on,
56419         configure.ac): Likewise.
56420         * modules/unictype/property-ids-trinary-operator (Depends-on,
56421         configure.ac): Likewise.
56422         * modules/unictype/property-ignorable-control (Depends-on,
56423         configure.ac): Likewise.
56424         * modules/unictype/property-iso-control (Depends-on, configure.ac):
56425         Likewise.
56426         * modules/unictype/property-join-control (Depends-on, configure.ac):
56427         Likewise.
56428         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
56429         Likewise.
56430         * modules/unictype/property-line-separator (Depends-on, configure.ac):
56431         Likewise.
56432         * modules/unictype/property-logical-order-exception (Depends-on,
56433         configure.ac): Likewise.
56434         * modules/unictype/property-lowercase (Depends-on, configure.ac):
56435         Likewise.
56436         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
56437         * modules/unictype/property-non-break (Depends-on, configure.ac):
56438         Likewise.
56439         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
56440         Likewise.
56441         * modules/unictype/property-numeric (Depends-on, configure.ac):
56442         Likewise.
56443         * modules/unictype/property-other-alphabetic (Depends-on,
56444         configure.ac): Likewise.
56445         * modules/unictype/property-other-default-ignorable-code-point
56446         (Depends-on, configure.ac): Likewise.
56447         * modules/unictype/property-other-grapheme-extend (Depends-on,
56448         configure.ac): Likewise.
56449         * modules/unictype/property-other-id-continue (Depends-on,
56450         configure.ac): Likewise.
56451         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
56452         Likewise.
56453         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
56454         Likewise.
56455         * modules/unictype/property-other-math (Depends-on, configure.ac):
56456         Likewise.
56457         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
56458         Likewise.
56459         * modules/unictype/property-paired-punctuation (Depends-on,
56460         configure.ac): Likewise.
56461         * modules/unictype/property-paragraph-separator (Depends-on,
56462         configure.ac): Likewise.
56463         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
56464         Likewise.
56465         * modules/unictype/property-pattern-white-space (Depends-on,
56466         configure.ac): Likewise.
56467         * modules/unictype/property-private-use (Depends-on, configure.ac):
56468         Likewise.
56469         * modules/unictype/property-punctuation (Depends-on, configure.ac):
56470         Likewise.
56471         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
56472         Likewise.
56473         * modules/unictype/property-radical (Depends-on, configure.ac):
56474         Likewise.
56475         * modules/unictype/property-sentence-terminal (Depends-on,
56476         configure.ac): Likewise.
56477         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
56478         Likewise.
56479         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
56480         * modules/unictype/property-terminal-punctuation (Depends-on,
56481         configure.ac): Likewise.
56482         * modules/unictype/property-titlecase (Depends-on, configure.ac):
56483         Likewise.
56484         * modules/unictype/property-unassigned-code-value (Depends-on,
56485         configure.ac): Likewise.
56486         * modules/unictype/property-unified-ideograph (Depends-on,
56487         configure.ac): Likewise.
56488         * modules/unictype/property-uppercase (Depends-on, configure.ac):
56489         Likewise.
56490         * modules/unictype/property-variation-selector (Depends-on,
56491         configure.ac): Likewise.
56492         * modules/unictype/property-white-space (Depends-on, configure.ac):
56493         Likewise.
56494         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
56495         Likewise.
56496         * modules/unictype/property-xid-start (Depends-on, configure.ac):
56497         Likewise.
56498         * modules/unictype/property-zero-width (Depends-on, configure.ac):
56499         Likewise.
56500         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
56501         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
56502         Likewise.
56504 2009-12-31  Bruno Haible  <bruno@clisp.org>
56506         Remove unnecessary AC_C_INLINE invocation.
56507         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
56508         since 2009-08-21.
56510 2009-12-31  Jim Meyering  <meyering@redhat.com>
56512         maint.mk: don't require explicit gpg_key_ID in cfg.mk
56513         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
56514         With this change, we can all remove the gpg_key_ID = ... definition
56515         from our respective cfg.mk files.
56517         maint.mk: create announcement template in ~/, not in /tmp
56518         * top/maint.mk (emit_upload_commands): Adjust.
56519         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
56520         Remove temporary file, .ci-msg.
56522 2009-12-31  Eric Blake  <ebb9@byu.net>
56524         link-warning: always build headers with link warnings
56525         * modules/arpa_inet (Makefile.am): Always build replacement
56526         header.
56527         * modules/ctype (Makefile.am): Likewise.
56528         * modules/dirent (Makefile.am): Likewise.
56529         * modules/inttypes (Makefile.am): Likewise.
56530         * modules/langinfo (Makefile.am): Likewise.
56531         * modules/locale (Makefile.am): Likewise.
56532         * modules/spawn (Makefile.am): Likewise.
56533         * modules/sys_file (Makefile.am): Likewise.
56534         * modules/sys_ioctl (Makefile.am): Likewise.
56535         * modules/sys_select (Makefile.am): Likewise.
56536         * modules/sys_socket (Makefile.am): Likewise.
56537         * modules/sys_times (Makefile.am): Likewise.
56538         * modules/sys_utsname (Makefile.am): Likewise.
56539         * modules/sys_wait (Makefile.am): Likewise.
56540         * modules/wchar (Makefile.am): Likewise.
56541         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
56542         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
56543         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
56544         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
56545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
56546         Likewise.
56547         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56548         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56549         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
56550         Likewise.
56551         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
56552         Likewise.
56553         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
56555         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
56556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56557         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56559         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56560         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
56561         (gl_WCHAR_H_DEFAULTS): Likewise.
56563 2009-12-31  Eric Blake  <ebb9@byu.net>
56565         signal, spawn: use link warnings
56566         * lib/signal.in.h (sigset_t): Make unconditional.
56567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
56568         (sigpending, sigprocmask, sigaction): Add link warnings.
56569         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
56570         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
56571         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
56572         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
56573         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
56574         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
56575         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
56576         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
56577         (posix_spawn_file_actions_destroy)
56578         (posix_spawn_file_actions_addopen)
56579         (posix_spawn_file_actions_addclose)
56580         (posix_spawn_file_actions_adddup2): Likewise.
56581         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
56582         * tests/test-signal.c (main): Enhance test.
56584         spawn: improve wrapper support
56585         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
56586         (gl_SPAWN_H_DEFAULTS): New defaults.
56587         * modules/spawn (Makefile.am): Substitute them.
56588         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
56589         Only declare if missing or broken.
56591         sys_times, sys_utsname: use include_next
56592         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
56593         header.
56594         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
56595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56596         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56597         * modules/sys_times (Depends-on): Add include_next.
56598         (Makefile.am): Substitute additional values.
56599         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56600         * lib/sys_times.in.h (includes): Include native header, if
56601         available.
56602         * lib/sys_utsname.in.h (includes): Likewise.
56603         * tests/test-sys_times.c (main): Enhance test.
56605         fdutimensat: revert prior patch
56606         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
56607         utimens.h.
56608         Reported by Bruno Haible.
56610 2009-12-30  Eric Blake  <ebb9@byu.net>
56612         sys_wait: drop link-warning dependency
56613         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
56614         link-warning efforts.
56615         * lib/sys_wait.in.h: Likewise.
56617         fdutimensat: remove bogus dependency
56618         * modules/fdutimensat (Depends-on): Drop inline.
56620         unistd: fix typo
56621         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
56623 2009-12-30  Bruno Haible  <bruno@clisp.org>
56625         Fix compilation error with Solaris cc.
56626         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
56627         * lib/unicase/u16-is-invariant.c: Likewise.
56628         * lib/unicase/u32-is-invariant.c: Likewise.
56629         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56631 2009-12-30  Bruno Haible  <bruno@clisp.org>
56633         Fix test crash.
56634         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
56635         locales.
56636         Reported by Simon Josefsson <simon@josefsson.org>.
56638 2009-12-30  Bruno Haible  <bruno@clisp.org>
56640         Fix compilation error on most platforms.
56641         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
56642         Reported by Simon Josefsson <simon@josefsson.org>
56643         and Nelson H. F. Beebe <beebe@math.utah.edu>.
56645 2009-12-30  Eric Blake  <ebb9@byu.net>
56647         futimens, utimensat: work around ntfs-3g bug
56648         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
56649         a ctime bug is present, and expand workaround to cover ntfs-3g.
56650         * lib/utimens.c (fdutimens, lutimens): Likewise.
56651         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
56652         (validate_timespec): Adjust return value.
56653         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
56654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56655         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
56657 2009-12-29  Eric Blake  <ebb9@byu.net>
56659         link-warning: make usage consistent
56660         * modules/ctype (Depends-on): Add link-warning.
56661         (Makefile.am): Update rules accordingly.
56662         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56663         * modules/locale (Depends-on, Makefile.am): Likewise.
56664         * modules/sys_file (Makefile.am): Likewise.
56665         * modules/getopt-posix (Makefile.am): Delete unused link warning
56666         efforts.
56667         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
56668         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
56669         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
56670         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
56672         stdio: remove unused variables
56673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
56674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
56675         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
56677         tests: test more substitute headers
56678         * modules/ctype-tests: New file.
56679         * modules/dirent-tests: Likewise.
56680         * modules/spawn-tests: Likewise.
56681         * modules/sys_file-tests: Likewise.
56682         * modules/sys_ioctl-tests: Likewise.
56683         * modules/sys_wait-tests: Likewise.
56684         * tests/test-ctype.c: Likewise.
56685         * tests/test-dirent.c: Likewise.
56686         * tests/test-spawn.c: Likewise.
56687         * tests/test-sys_file.c: Likewise.
56688         * tests/test-sys_ioctl.c: Likewise.
56689         * tests/test-sys_wait.c: Likewise.
56690         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
56691         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
56692         whether or not flock is in use.
56694         tests: remove License section from module
56695         * modules/arpa_inet-tests: Remove unneeded section.
56696         * modules/byteswap-tests: Likewise.
56697         * modules/ceilf-tests: Likewise.
56698         * modules/ceill-tests: Likewise.
56699         * modules/crypto/des-tests: Likewise.
56700         * modules/crypto/gc-arcfour-tests: Likewise.
56701         * modules/crypto/gc-arctwo-tests: Likewise.
56702         * modules/crypto/gc-des-tests: Likewise.
56703         * modules/crypto/gc-hmac-md5-tests: Likewise.
56704         * modules/crypto/gc-hmac-sha1-tests: Likewise.
56705         * modules/crypto/gc-md2-tests: Likewise.
56706         * modules/crypto/gc-md4-tests: Likewise.
56707         * modules/crypto/gc-md5-tests: Likewise.
56708         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
56709         * modules/crypto/gc-rijndael-tests: Likewise.
56710         * modules/crypto/gc-sha1-tests: Likewise.
56711         * modules/crypto/gc-tests: Likewise.
56712         * modules/crypto/md2-tests: Likewise.
56713         * modules/crypto/md4-tests: Likewise.
56714         * modules/fcntl-h-tests: Likewise.
56715         * modules/floorf-tests: Likewise.
56716         * modules/floorl-tests: Likewise.
56717         * modules/frexp-nolibm-tests: Likewise.
56718         * modules/frexp-tests: Likewise.
56719         * modules/frexpl-nolibm-tests: Likewise.
56720         * modules/frexpl-tests: Likewise.
56721         * modules/getaddrinfo-tests: Likewise.
56722         * modules/inttypes-tests: Likewise.
56723         * modules/isfinite-tests: Likewise.
56724         * modules/isinf-tests: Likewise.
56725         * modules/ldexpl-tests: Likewise.
56726         * modules/locale-tests: Likewise.
56727         * modules/math-tests: Likewise.
56728         * modules/netdb-tests: Likewise.
56729         * modules/netinet_in-tests: Likewise.
56730         * modules/printf-frexp-tests: Likewise.
56731         * modules/printf-frexpl-tests: Likewise.
56732         * modules/priv-set-tests: Likewise.
56733         * modules/random_r-tests: Likewise.
56734         * modules/round-tests: Likewise.
56735         * modules/roundf-tests: Likewise.
56736         * modules/roundl-tests: Likewise.
56737         * modules/search-tests: Likewise.
56738         * modules/select-tests: Likewise.
56739         * modules/signal-tests: Likewise.
56740         * modules/stdbool-tests: Likewise.
56741         * modules/stddef-tests: Likewise.
56742         * modules/stdint-tests: Likewise.
56743         * modules/stdio-tests: Likewise.
56744         * modules/stdlib-tests: Likewise.
56745         * modules/string-tests: Likewise.
56746         * modules/strings-tests: Likewise.
56747         * modules/sys_select-tests: Likewise.
56748         * modules/sys_socket-tests: Likewise.
56749         * modules/sys_stat-tests: Likewise.
56750         * modules/sys_time-tests: Likewise.
56751         * modules/sys_utsname-tests: Likewise.
56752         * modules/sysexits-tests: Likewise.
56753         * modules/time-tests: Likewise.
56754         * modules/trunc-tests: Likewise.
56755         * modules/truncf-tests: Likewise.
56756         * modules/truncl-tests: Likewise.
56757         * modules/tsearch-tests: Likewise.
56758         * modules/unistd-tests: Likewise.
56759         * modules/wchar-tests: Likewise.
56760         * modules/wctype-tests: Likewise.
56762         tests: fix license on several tests
56763         * tests/test-des.c: Update to GPLv3+.
56764         * tests/test-flock.c: Likewise.
56765         * tests/test-fsync.c: Likewise.
56766         * tests/test-futimens.h: Likewise.
56767         * tests/test-gc-arcfour.c: Likewise.
56768         * tests/test-gc-arctwo.c: Likewise.
56769         * tests/test-gc-des.c: Likewise.
56770         * tests/test-gc-hmac-md5.c: Likewise.
56771         * tests/test-gc-hmac-sha1.c: Likewise.
56772         * tests/test-gc-md2.c: Likewise.
56773         * tests/test-gc-md4.c: Likewise.
56774         * tests/test-gc-md5.c: Likewise.
56775         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56776         * tests/test-gc-rijndael.c: Likewise.
56777         * tests/test-gc-sha1.c: Likewise.
56778         * tests/test-gc.c: Likewise.
56779         * tests/test-getcwd.c: Likewise.
56780         * tests/test-link.c: Likewise.
56781         * tests/test-link.h: Likewise.
56782         * tests/test-lutimens.h: Likewise.
56783         * tests/test-md2.c: Likewise.
56784         * tests/test-md4.c: Likewise.
56785         * tests/test-mkdir.h: Likewise.
56786         * tests/test-rename.c: Likewise.
56787         * tests/test-rename.h: Likewise.
56788         * tests/test-safe-alloc.c: Likewise.
56789         * tests/test-utimens-common.h: Likewise.
56790         * tests/test-utimens.h: Likewise.
56792         maint: sync license texts
56793         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
56794         * doc/gpl-3.0.texi: Revert copyright year update.
56795         * doc/lgpl-3.0.texi: Likewise.
56797 2009-12-29  Jim Meyering  <meyering@redhat.com>
56799         update nearly all FSF copyright year lists to include 2009
56800         The files named by the following are exempted:
56801             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
56802               test -f "$dst" && { echo "$dst"; continue; }
56803               test -d "$dst" || continue
56804               echo "$dst"/$(basename "$src")
56805             done > exempt
56806             git ls-files tests/unictype >> exempt
56807         In the remaining files, convert to all-interval notation if
56808         - there is already at least one year interval like 2000-2003
56809         - the file is maintained by me
56810         - the file is in lib/uni*/, where that style already prevails
56811         Otherwise, use update-copyright's default.
56813 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56814         and Eric Blake  <ebb9@byu.net>
56816         tests: don't require debug system() to pass
56817         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
56818         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56819         * tests/test-unlink.h (test_unlink_func): Likewise.
56820         * tests/test-fstatat.c (main): ...into callers.
56821         * tests/test-lstat.c (main): Likewise.
56822         * tests/test-rmdir.c (main): Likewise.
56823         * tests/test-unlink.c (main): Likewise.
56824         * tests/test-unlinkat.c (main): Likewise.
56825         * tests/test-areadlink-with-size.c (main): Don't require a
56826         debug-only system call to pass, aiding cross-testing to mingw.
56827         * tests/test-areadlink.c (main): Likewise.
56828         * tests/test-areadlinkat-with-size.c (main): Likewise.
56829         * tests/test-areadlinkat.c (main): Likewise.
56830         * tests/test-canonicalize-lgpl.c (main): Likewise.
56831         * tests/test-canonicalize.c (main): Likewise.
56832         * tests/test-chown.c (main): Likewise.
56833         * tests/test-fchownat.c (main): Likewise.
56834         * tests/test-lchown.c (main): Likewise.
56835         * tests/test-fdutimensat.c (main): Likewise.
56836         * tests/test-futimens.c (main): Likewise.
56837         * tests/test-link.c (main): Likewise.
56838         * tests/test-linkat.c (main): Likewise.
56839         * tests/test-mkdir.c (main): Likewise.
56840         * tests/test-mkdirat.c (main): Likewise.
56841         * tests/test-mkfifo.c (main): Likewise.
56842         * tests/test-mkfifoat.c (main): Likewise.
56843         * tests/test-mknod.c (main): Likewise.
56844         * tests/test-readlink.c (main): Likewise.
56845         * tests/test-remove.c (main): Likewise.
56846         * tests/test-rename.c (main): Likewise.
56847         * tests/test-renameat.c (main): Likewise.
56848         * tests/test-symlink.c (main): Likewise.
56849         * tests/test-symlinkat.c (main): Likewise.
56850         * tests/test-utimens.c (main): Likewise.
56851         * tests/test-utimensat.c (main): Likewise.
56853 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56855         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56856         on $(UNUSED_PARAMETER_H) to avoid build failure.
56858 2009-12-28  Jim Meyering  <meyering@redhat.com>
56860         update-copyright: you may specify a max. line length other than 72
56861         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56863         maint: use consistent FSF copyright line syntax
56864         * lib/posixtm.c: Add missing comma in FSF copyright line.
56865         * lib/posixtm.h: Likewise.
56866         * lib/getugroups.c: Add missing ", Inc.".
56868         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56869         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56870         FSF copyright line.  Remove trailing blanks.
56872 2009-12-28  Eric Blake  <ebb9@byu.net>
56874         test-dup2: reduce dependencies
56875         * modules/cloexec (Configure.ac): Set witness.
56876         * modules/dup2-tests (Depends-on): Drop cloexec.
56877         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56878         not present.
56879         Suggested by Bruno Haible.
56881 2009-12-26  Bruno Haible  <bruno@clisp.org>
56883         Remove an unneeded dependency.
56884         * modules/fseterr (Depends-on): Remove dup2.
56886 2009-12-26  Eric Blake  <ebb9@byu.net>
56888         tests: use macros.h in more places
56889         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56890         (ASSERT_STREAM): Provide default of stderr.
56891         * tests/test-dirent-safer.c: Include macros.h, using alternate
56892         stream for assertions.
56893         * tests/test-dup-safer.c: Likewise.
56894         * tests/test-freopen-safer.c: Likewise.
56895         * tests/test-getopt.c: Likewise.
56896         * tests/test-openat-safer.c: Likewise.
56897         * tests/test-pipe.c: Likewise.
56898         * tests/test-popen-safer.c: Likewise.
56899         * modules/dirent-safer-tests (Files): Include macros.h.
56900         * modules/unistd-safer-tests (Files): Likewise.
56901         * modules/freopen-safer-tests (Files): Likewise.
56902         * modules/getopt-posix-tests (Files): Likewise.
56903         * modules/openat-safer-tests (Files): Likewise.
56904         * modules/pipe-tests (Files): Likewise.
56906 2009-12-26  Bruno Haible  <bruno@clisp.org>
56908         javacomp-script: Portability fix.
56909         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56910         that it also works on Solaris.
56912 2009-12-26  Bruno Haible  <bruno@clisp.org>
56914         localename: Fix storage allocation of gl_locale_name_thread's result.
56915         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56916         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56917         all platforms that have 'uselocale'.
56918         (gl_locale_name_thread_unsafe): New function, extracted from
56919         gl_locale_name_thread.
56920         (gl_locale_name_thread): Call struniq on all platforms that have
56921         'uselocale'.
56922         * tests/test-localename.c (test_locale_name_thread): Check that the
56923         resulting strings are permanently allocated.
56924         * modules/localename-tests (Depends-on): Add strdup.
56926 2009-12-26  Bruno Haible  <bruno@clisp.org>
56928         * tests/test-localename.c (categories): Fill in the strings.
56930 2009-12-26  Jim Meyering  <meyering@redhat.com>
56932         isdir: complete the removal of m4/isdir.m4
56933         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56935         isdir: clean up, since at least grep still uses it
56936         * lib/isdir.c: Include "isdir.h".
56937         (S_ISDIR): Remove now-unneeded definition.
56938         * modules/isdir (Files): Add lib/isdir.h.
56939         * lib/isdir.h: New file, with declaration.
56940         * m4/isdir.m4: Remove file -- unneeded.
56942 2009-12-25  Bruno Haible  <bruno@clisp.org>
56944         selinux-h: Make generated .h files standalone.
56945         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56946         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56947         * lib/se-selinux.in.h: Likewise.
56948         * modules/selinux-h (Depends-on): Add unused-parameter.
56949         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56950         selinux/selinux.h and selinux/context.h.
56951         Suggested by Eric Blake.
56953 2009-12-25  Bruno Haible  <bruno@clisp.org>
56955         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56956         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56957         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56958         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56959         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56961 2009-12-24  Bruno Haible  <bruno@clisp.org>
56963         openat: Fix warning.
56964         * lib/openat-proc.c: Include <unistd.h>.
56966 2009-12-24  Bruno Haible  <bruno@clisp.org>
56968         New module 'unused-parameter'.
56969         * build-aux/unused-parameter.h: New file, extracted from earlier
56970         gnulib-common.m4.
56971         * modules/unused-parameter: New file.
56972         * lib/unistr.h: Include unused-parameter.h.
56973         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56974         _GL_UNUSED.
56975         * modules/unistr/base (Depends-on): Add unused-parameter.
56977 2009-12-24  Bruno Haible  <bruno@clisp.org>
56979         Add missing dependencies to 'extensions' module.
56980         * m4/extensions.m4: Add comment.
56981         * modules/accept4 (Depends-on): Add extensions.
56982         * modules/dup3 (Depends-on): Likewise.
56983         * modules/fcntl (Depends-on): Likewise.
56984         * modules/futimens (Depends-on): Likewise.
56985         * modules/mknod (Depends-on): Likewise.
56986         * modules/pipe2 (Depends-on): Likewise.
56987         * modules/stat-time (Depends-on): Likewise.
56988         * modules/strcasestr-simple (Depends-on): Likewise.
56989         * modules/strsignal (Depends-on): Likewise.
56990         * modules/utimensat (Depends-on): Likewise.
56991         * modules/localcharset (Depends-on): Likewise. Needed because of
56992         gl_FCNTL_O_FLAGS.
56993         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56994         AC_TYPE_MBSTATE_T.
56995         * modules/wcsnrtombs (Depends-on): Likewise.
56996         * modules/wcsrtombs (Depends-on): Likewise.
56998 2009-12-24  Bruno Haible  <bruno@clisp.org>
57000         binary-io: Avoid gcc warning due to SET_BINARY.
57001         * lib/binary-io.h (SET_BINARY): Cast the result to void.
57002         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
57004 2009-12-24  Bruno Haible  <bruno@clisp.org>
57006         Avoid future namespace pollution on glibc systems.
57007         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
57008         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
57009         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
57010         glibc systems.
57012 2009-12-24  Bruno Haible  <bruno@clisp.org>
57014         Refactor common macros used in tests.
57015         * tests/macros.h: New file.
57016         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
57017         and/or <stdlib.h>, if appropriate.
57018         (ASSERT, SIZEOF): Remove macros.
57019         * tests/test-areadlink-with-size.c: Likewise.
57020         * tests/test-areadlinkat.c: Likewise.
57021         * tests/test-areadlinkat-with-size.c: Likewise.
57022         * tests/test-argmatch.c: Likewise.
57023         * tests/test-argv-iter.c: Likewise.
57024         * tests/test-array-mergesort.c: Likewise.
57025         * tests/test-array_list.c: Likewise.
57026         * tests/test-array_oset.c: Likewise.
57027         * tests/test-avltree_list.c: Likewise.
57028         * tests/test-avltree_oset.c: Likewise.
57029         * tests/test-avltreehash_list.c: Likewise.
57030         * tests/test-base64.c: Likewise.
57031         * tests/test-binary-io.c: Likewise.
57032         * tests/test-bitrotate.c: Likewise.
57033         * tests/test-btowc.c: Likewise.
57034         * tests/test-byteswap.c: Likewise.
57035         * tests/test-c-ctype.c: Likewise.
57036         * tests/test-c-stack.c: Likewise.
57037         * tests/test-c-strcasecmp.c: Likewise.
57038         * tests/test-c-strcasestr.c: Likewise.
57039         * tests/test-c-strncasecmp.c: Likewise.
57040         * tests/test-c-strstr.c: Likewise.
57041         * tests/test-canonicalize-lgpl.c: Likewise.
57042         * tests/test-canonicalize.c: Likewise.
57043         * tests/test-carray_list.c: Likewise.
57044         * tests/test-ceilf1.c: Likewise.
57045         * tests/test-ceilf2.c: Likewise.
57046         * tests/test-ceill.c: Likewise.
57047         * tests/test-chown.c: Likewise.
57048         * tests/test-cloexec.c: Likewise.
57049         * tests/test-copy-acl.c: Likewise.
57050         * tests/test-copy-file.c: Likewise.
57051         * tests/test-count-one-bits.c: Likewise.
57052         * tests/test-dprintf-posix.c: Likewise.
57053         * tests/test-dup2.c: Likewise.
57054         * tests/test-dup3.c: Likewise.
57055         * tests/test-duplocale.c: Likewise.
57056         * tests/test-fbufmode.c: Likewise.
57057         * tests/test-fchdir.c: Likewise.
57058         * tests/test-fchownat.c: Likewise.
57059         * tests/test-fcntl-safer.c: Likewise.
57060         * tests/test-fcntl.c: Likewise.
57061         * tests/test-fdopendir.c: Likewise.
57062         * tests/test-fdutimensat.c: Likewise.
57063         * tests/test-fflush2.c: Likewise.
57064         * tests/test-file-has-acl.c: Likewise.
57065         * tests/test-filevercmp.c: Likewise.
57066         * tests/test-flock.c: Likewise.
57067         * tests/test-floorf1.c: Likewise.
57068         * tests/test-floorf2.c: Likewise.
57069         * tests/test-floorl.c: Likewise.
57070         * tests/test-fnmatch.c: Likewise.
57071         * tests/test-fopen.h: Likewise.
57072         * tests/test-fpending.c: Likewise.
57073         * tests/test-fprintf-posix.c: Likewise.
57074         * tests/test-fpurge.c: Likewise.
57075         * tests/test-freadable.c: Likewise.
57076         * tests/test-freadahead.c: Likewise.
57077         * tests/test-freading.c: Likewise.
57078         * tests/test-freadptr.c: Likewise.
57079         * tests/test-freadptr2.c: Likewise.
57080         * tests/test-freadseek.c: Likewise.
57081         * tests/test-freopen.c: Likewise.
57082         * tests/test-frexp.c: Likewise.
57083         * tests/test-frexpl.c: Likewise.
57084         * tests/test-fseek.c: Likewise.
57085         * tests/test-fseeko.c: Likewise.
57086         * tests/test-fstatat.c: Likewise.
57087         * tests/test-fstrcmp.c: Likewise.
57088         * tests/test-fsync.c: Likewise.
57089         * tests/test-ftell.c: Likewise.
57090         * tests/test-ftello.c: Likewise.
57091         * tests/test-func.c: Likewise.
57092         * tests/test-futimens.c: Likewise.
57093         * tests/test-fwritable.c: Likewise.
57094         * tests/test-fwriting.c: Likewise.
57095         * tests/test-getcwd.c: Likewise.
57096         * tests/test-getdate.c: Likewise.
57097         * tests/test-getdelim.c: Likewise.
57098         * tests/test-getdtablesize.c: Likewise.
57099         * tests/test-getgroups.c: Likewise.
57100         * tests/test-getline.c: Likewise.
57101         * tests/test-getndelim2.c: Likewise.
57102         * tests/test-glob.c: Likewise.
57103         * tests/test-hash.c: Likewise.
57104         * tests/test-i-ring.c: Likewise.
57105         * tests/test-iconv-utf.c: Likewise.
57106         * tests/test-iconv.c: Likewise.
57107         * tests/test-idpriv-drop.c: Likewise.
57108         * tests/test-idpriv-droptemp.c: Likewise.
57109         * tests/test-inet_ntop.c: Likewise.
57110         * tests/test-inet_pton.c: Likewise.
57111         * tests/test-isblank.c: Likewise.
57112         * tests/test-isfinite.c: Likewise.
57113         * tests/test-isinf.c: Likewise.
57114         * tests/test-isnan.c: Likewise.
57115         * tests/test-isnand.h: Likewise.
57116         * tests/test-isnanf.h: Likewise.
57117         * tests/test-isnanl.h: Likewise.
57118         * tests/test-lchown.c: Likewise.
57119         * tests/test-ldexpl.c: Likewise.
57120         * tests/test-link.c: Likewise.
57121         * tests/test-linkat.c: Likewise.
57122         * tests/test-linked_list.c: Likewise.
57123         * tests/test-linkedhash_list.c: Likewise.
57124         * tests/test-localename.c: Likewise.
57125         * tests/test-lseek.c: Likewise.
57126         * tests/test-lstat.c: Likewise.
57127         * tests/test-mbmemcasecmp.c: Likewise.
57128         * tests/test-mbmemcasecoll.c: Likewise.
57129         * tests/test-mbrtowc.c: Likewise.
57130         * tests/test-mbscasecmp.c: Likewise.
57131         * tests/test-mbscasestr1.c: Likewise.
57132         * tests/test-mbscasestr2.c: Likewise.
57133         * tests/test-mbscasestr3.c: Likewise.
57134         * tests/test-mbscasestr4.c: Likewise.
57135         * tests/test-mbschr.c: Likewise.
57136         * tests/test-mbscspn.c: Likewise.
57137         * tests/test-mbsinit.c: Likewise.
57138         * tests/test-mbsncasecmp.c: Likewise.
57139         * tests/test-mbsnrtowcs.c: Likewise.
57140         * tests/test-mbspbrk.c: Likewise.
57141         * tests/test-mbspcasecmp.c: Likewise.
57142         * tests/test-mbsrchr.c: Likewise.
57143         * tests/test-mbsrtowcs.c: Likewise.
57144         * tests/test-mbsspn.c: Likewise.
57145         * tests/test-mbsstr1.c: Likewise.
57146         * tests/test-mbsstr2.c: Likewise.
57147         * tests/test-mbsstr3.c: Likewise.
57148         * tests/test-memchr.c: Likewise.
57149         * tests/test-memchr2.c: Likewise.
57150         * tests/test-memcmp.c: Likewise.
57151         * tests/test-memmem.c: Likewise.
57152         * tests/test-memrchr.c: Likewise.
57153         * tests/test-mkdir.c: Likewise.
57154         * tests/test-mkdirat.c: Likewise.
57155         * tests/test-mkfifo.c: Likewise.
57156         * tests/test-mkfifoat.c: Likewise.
57157         * tests/test-mknod.c: Likewise.
57158         * tests/test-nanosleep.c: Likewise.
57159         * tests/test-nl_langinfo.c: Likewise.
57160         * tests/test-obstack-printf.c: Likewise.
57161         * tests/test-open.c: Likewise.
57162         * tests/test-openat.c: Likewise.
57163         * tests/test-pipe-filter-gi1.c: Likewise.
57164         * tests/test-pipe-filter-gi2-main.c: Likewise.
57165         * tests/test-pipe-filter-ii1.c: Likewise.
57166         * tests/test-pipe-filter-ii2-main.c: Likewise.
57167         * tests/test-pipe2.c: Likewise.
57168         * tests/test-popen.h: Likewise.
57169         * tests/test-posixtm.c: Likewise.
57170         * tests/test-pread.c: Likewise.
57171         * tests/test-printf-frexp.c: Likewise.
57172         * tests/test-printf-frexpl.c: Likewise.
57173         * tests/test-printf-posix.c: Likewise.
57174         * tests/test-priv-set.c: Likewise.
57175         * tests/test-quotearg.c: Likewise.
57176         * tests/test-random_r.c: Likewise.
57177         * tests/test-rawmemchr.c: Likewise.
57178         * tests/test-rbtree_list.c: Likewise.
57179         * tests/test-rbtree_oset.c: Likewise.
57180         * tests/test-rbtreehash_list.c: Likewise.
57181         * tests/test-readlink.c: Likewise.
57182         * tests/test-remove.c: Likewise.
57183         * tests/test-rename.c: Likewise.
57184         * tests/test-renameat.c: Likewise.
57185         * tests/test-rmdir.c: Likewise.
57186         * tests/test-round1.c: Likewise.
57187         * tests/test-roundf1.c: Likewise.
57188         * tests/test-roundl.c: Likewise.
57189         * tests/test-safe-alloc.c: Likewise.
57190         * tests/test-sameacls.c: Likewise.
57191         * tests/test-set-mode-acl.c: Likewise.
57192         * tests/test-setenv.c: Likewise.
57193         * tests/test-sigaction.c: Likewise.
57194         * tests/test-signbit.c: Likewise.
57195         * tests/test-sleep.c: Likewise.
57196         * tests/test-snprintf-posix.c: Likewise.
57197         * tests/test-snprintf.c: Likewise.
57198         * tests/test-sprintf-posix.c: Likewise.
57199         * tests/test-stat-time.c: Likewise.
57200         * tests/test-stat.c: Likewise.
57201         * tests/test-strcasestr.c: Likewise.
57202         * tests/test-strchrnul.c: Likewise.
57203         * tests/test-strerror.c: Likewise.
57204         * tests/test-striconv.c: Likewise.
57205         * tests/test-striconveh.c: Likewise.
57206         * tests/test-striconveha.c: Likewise.
57207         * tests/test-strsignal.c: Likewise.
57208         * tests/test-strstr.c: Likewise.
57209         * tests/test-strtod.c: Likewise.
57210         * tests/test-strverscmp.c: Likewise.
57211         * tests/test-symlink.c: Likewise.
57212         * tests/test-symlinkat.c: Likewise.
57213         * tests/test-trunc1.c: Likewise.
57214         * tests/test-trunc2.c: Likewise.
57215         * tests/test-truncf1.c: Likewise.
57216         * tests/test-truncf2.c: Likewise.
57217         * tests/test-truncl.c: Likewise.
57218         * tests/test-uname.c: Likewise.
57219         * tests/test-unlink.c: Likewise.
57220         * tests/test-unlinkat.c: Likewise.
57221         * tests/test-unsetenv.c: Likewise.
57222         * tests/test-usleep.c: Likewise.
57223         * tests/test-utimens.c: Likewise.
57224         * tests/test-utimensat.c: Likewise.
57225         * tests/test-vasnprintf-posix.c: Likewise.
57226         * tests/test-vasnprintf-posix2.c: Likewise.
57227         * tests/test-vasnprintf.c: Likewise.
57228         * tests/test-vasprintf-posix.c: Likewise.
57229         * tests/test-vasprintf.c: Likewise.
57230         * tests/test-vdprintf-posix.c: Likewise.
57231         * tests/test-vfprintf-posix.c: Likewise.
57232         * tests/test-vprintf-posix.c: Likewise.
57233         * tests/test-vsnprintf-posix.c: Likewise.
57234         * tests/test-vsnprintf.c: Likewise.
57235         * tests/test-vsprintf-posix.c: Likewise.
57236         * tests/test-wcrtomb.c: Likewise.
57237         * tests/test-wcsnrtombs.c: Likewise.
57238         * tests/test-wcsrtombs.c: Likewise.
57239         * tests/test-wctype.c: Likewise.
57240         * tests/test-wcwidth.c: Likewise.
57241         * tests/test-xfprintf-posix.c: Likewise.
57242         * tests/test-xmemdup0.c: Likewise.
57243         * tests/test-xprintf-posix.c: Likewise.
57244         * tests/test-xvasprintf.c: Likewise.
57245         * tests/unicase/test-locale-language.c: Likewise.
57246         * tests/unicase/test-mapping-part1.h: Likewise.
57247         * tests/unicase/test-predicate-part1.h: Likewise.
57248         * tests/unicase/test-u8-casecmp.c: Likewise.
57249         * tests/unicase/test-u8-casecoll.c: Likewise.
57250         * tests/unicase/test-u8-casefold.c: Likewise.
57251         * tests/unicase/test-u8-is-cased.c: Likewise.
57252         * tests/unicase/test-u8-is-casefolded.c: Likewise.
57253         * tests/unicase/test-u8-is-lowercase.c: Likewise.
57254         * tests/unicase/test-u8-is-titlecase.c: Likewise.
57255         * tests/unicase/test-u8-is-uppercase.c: Likewise.
57256         * tests/unicase/test-u8-tolower.c: Likewise.
57257         * tests/unicase/test-u8-totitle.c: Likewise.
57258         * tests/unicase/test-u8-toupper.c: Likewise.
57259         * tests/unicase/test-u16-casecmp.c: Likewise.
57260         * tests/unicase/test-u16-casecoll.c: Likewise.
57261         * tests/unicase/test-u16-casefold.c: Likewise.
57262         * tests/unicase/test-u16-is-cased.c: Likewise.
57263         * tests/unicase/test-u16-is-casefolded.c: Likewise.
57264         * tests/unicase/test-u16-is-lowercase.c: Likewise.
57265         * tests/unicase/test-u16-is-titlecase.c: Likewise.
57266         * tests/unicase/test-u16-is-uppercase.c: Likewise.
57267         * tests/unicase/test-u16-tolower.c: Likewise.
57268         * tests/unicase/test-u16-totitle.c: Likewise.
57269         * tests/unicase/test-u16-toupper.c: Likewise.
57270         * tests/unicase/test-u32-casecmp.c: Likewise.
57271         * tests/unicase/test-u32-casecoll.c: Likewise.
57272         * tests/unicase/test-u32-casefold.c: Likewise.
57273         * tests/unicase/test-u32-is-cased.c: Likewise.
57274         * tests/unicase/test-u32-is-casefolded.c: Likewise.
57275         * tests/unicase/test-u32-is-lowercase.c: Likewise.
57276         * tests/unicase/test-u32-is-titlecase.c: Likewise.
57277         * tests/unicase/test-u32-is-uppercase.c: Likewise.
57278         * tests/unicase/test-u32-tolower.c: Likewise.
57279         * tests/unicase/test-u32-totitle.c: Likewise.
57280         * tests/unicase/test-u32-toupper.c: Likewise.
57281         * tests/unicase/test-ulc-casecmp.c: Likewise.
57282         * tests/unicase/test-ulc-casecoll.c: Likewise.
57283         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57284         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57285         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57286         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57287         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57288         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57292         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57293         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57294         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57295         * tests/unictype/test-bidi_byname.c: Likewise.
57296         * tests/unictype/test-bidi_name.c: Likewise.
57297         * tests/unictype/test-bidi_of.c: Likewise.
57298         * tests/unictype/test-bidi_test.c: Likewise.
57299         * tests/unictype/test-block_list.c: Likewise.
57300         * tests/unictype/test-block_of.c: Likewise.
57301         * tests/unictype/test-block_test.c: Likewise.
57302         * tests/unictype/test-categ_and.c: Likewise.
57303         * tests/unictype/test-categ_and_not.c: Likewise.
57304         * tests/unictype/test-categ_byname.c: Likewise.
57305         * tests/unictype/test-categ_name.c: Likewise.
57306         * tests/unictype/test-categ_none.c: Likewise.
57307         * tests/unictype/test-categ_of.c: Likewise.
57308         * tests/unictype/test-categ_or.c: Likewise.
57309         * tests/unictype/test-categ_test_withtable.c: Likewise.
57310         * tests/unictype/test-combining.c: Likewise.
57311         * tests/unictype/test-decdigit.c: Likewise.
57312         * tests/unictype/test-digit.c: Likewise.
57313         * tests/unictype/test-mirror.c: Likewise.
57314         * tests/unictype/test-numeric.c: Likewise.
57315         * tests/unictype/test-pr_byname.c: Likewise.
57316         * tests/unictype/test-pr_test.c: Likewise.
57317         * tests/unictype/test-predicate-part1.h: Likewise.
57318         * tests/unictype/test-scripts.c: Likewise.
57319         * tests/unictype/test-sy_c_ident.c: Likewise.
57320         * tests/unictype/test-sy_java_ident.c: Likewise.
57321         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
57322         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
57323         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
57324         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
57325         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
57326         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
57327         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
57328         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
57329         * tests/uninorm/test-canonical-decomposition.c: Likewise.
57330         * tests/uninorm/test-compat-decomposition.c: Likewise.
57331         * tests/uninorm/test-composition.c: Likewise.
57332         * tests/uninorm/test-decomposing-form.c: Likewise.
57333         * tests/uninorm/test-decomposition.c: Likewise.
57334         * tests/uninorm/test-u8-nfc.c: Likewise.
57335         * tests/uninorm/test-u8-nfd.c: Likewise.
57336         * tests/uninorm/test-u8-nfkc.c: Likewise.
57337         * tests/uninorm/test-u8-nfkd.c: Likewise.
57338         * tests/uninorm/test-u8-normcmp.c: Likewise.
57339         * tests/uninorm/test-u8-normcoll.c: Likewise.
57340         * tests/uninorm/test-u16-nfc.c: Likewise.
57341         * tests/uninorm/test-u16-nfd.c: Likewise.
57342         * tests/uninorm/test-u16-nfkc.c: Likewise.
57343         * tests/uninorm/test-u16-nfkd.c: Likewise.
57344         * tests/uninorm/test-u16-normcmp.c: Likewise.
57345         * tests/uninorm/test-u16-normcoll.c: Likewise.
57346         * tests/uninorm/test-u32-nfc.c: Likewise.
57347         * tests/uninorm/test-u32-nfd.c: Likewise.
57348         * tests/uninorm/test-u32-nfkc.c: Likewise.
57349         * tests/uninorm/test-u32-nfkd.c: Likewise.
57350         * tests/uninorm/test-u32-normalize-big.c: Likewise.
57351         * tests/uninorm/test-u32-normcmp.c: Likewise.
57352         * tests/uninorm/test-u32-normcoll.c: Likewise.
57353         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
57354         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57355         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57356         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57357         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57358         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57359         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57360         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57361         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57362         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57363         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57364         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57365         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57366         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57367         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57368         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57369         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57370         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57371         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57372         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57373         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57374         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57375         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57376         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57377         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57378         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57379         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57380         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57381         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57382         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
57383         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
57384         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
57385         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
57386         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57387         * tests/uniwidth/test-u8-width.c: Likewise.
57388         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57389         * tests/uniwidth/test-u16-width.c: Likewise.
57390         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57391         * tests/uniwidth/test-u32-width.c: Likewise.
57392         * tests/uniwidth/test-uc_width.c: Likewise.
57393         * tests/uniwidth/test-uc_width2.c: Likewise.
57394         * modules/acl-tests (Files): Add tests/macros.h.
57395         * modules/areadlink-tests (Files): Likewise.
57396         * modules/areadlink-with-size-tests (Files): Likewise.
57397         * modules/areadlinkat-tests (Files): Likewise.
57398         * modules/areadlinkat-with-size-tests (Files): Likewise.
57399         * modules/argmatch-tests (Files): Likewise.
57400         * modules/argv-iter-tests (Files): Likewise.
57401         * modules/array-list-tests (Files): Likewise.
57402         * modules/array-mergesort-tests (Files): Likewise.
57403         * modules/array-oset-tests (Files): Likewise.
57404         * modules/avltree-list-tests (Files): Likewise.
57405         * modules/avltree-oset-tests (Files): Likewise.
57406         * modules/avltreehash-list-tests (Files): Likewise.
57407         * modules/base64-tests (Files): Likewise.
57408         * modules/binary-io-tests (Files): Likewise.
57409         * modules/bitrotate-tests (Files): Likewise.
57410         * modules/btowc-tests (Files): Likewise.
57411         * modules/byteswap-tests (Files): Likewise.
57412         * modules/c-ctype-tests (Files): Likewise.
57413         * modules/c-stack-tests (Files): Likewise.
57414         * modules/c-strcase-tests (Files): Likewise.
57415         * modules/c-strcasestr-tests (Files): Likewise.
57416         * modules/c-strstr-tests (Files): Likewise.
57417         * modules/canonicalize-lgpl-tests (Files): Likewise.
57418         * modules/canonicalize-tests (Files): Likewise.
57419         * modules/carray-list-tests (Files): Likewise.
57420         * modules/ceilf-tests (Files): Likewise.
57421         * modules/ceill-tests (Files): Likewise.
57422         * modules/chown-tests (Files): Likewise.
57423         * modules/cloexec-tests (Files): Likewise.
57424         * modules/copy-file-tests (Files): Likewise.
57425         * modules/count-one-bits-tests (Files): Likewise.
57426         * modules/dprintf-posix-tests (Files): Likewise.
57427         * modules/dup2-tests (Files): Likewise.
57428         * modules/dup3-tests (Files): Likewise.
57429         * modules/duplocale-tests (Files): Likewise.
57430         * modules/fbufmode-tests (Files): Likewise.
57431         * modules/fchdir-tests (Files): Likewise.
57432         * modules/fcntl-safer-tests (Files): Likewise.
57433         * modules/fcntl-tests (Files): Likewise.
57434         * modules/fdopendir-tests (Files): Likewise.
57435         * modules/fdutimensat-tests (Files): Likewise.
57436         * modules/fflush-tests (Files): Likewise.
57437         * modules/filevercmp-tests (Files): Likewise.
57438         * modules/flock-tests (Files): Likewise.
57439         * modules/floorf-tests (Files): Likewise.
57440         * modules/floorl-tests (Files): Likewise.
57441         * modules/fnmatch-tests (Files): Likewise.
57442         * modules/fopen-safer-tests (Files): Likewise.
57443         * modules/fopen-tests (Files): Likewise.
57444         * modules/fpending-tests (Files): Likewise.
57445         * modules/fprintf-posix-tests (Files): Likewise.
57446         * modules/fpurge-tests (Files): Likewise.
57447         * modules/freadable-tests (Files): Likewise.
57448         * modules/freadahead-tests (Files): Likewise.
57449         * modules/freading-tests (Files): Likewise.
57450         * modules/freadptr-tests (Files): Likewise.
57451         * modules/freadseek-tests (Files): Likewise.
57452         * modules/freopen-tests (Files): Likewise.
57453         * modules/frexp-nolibm-tests (Files): Likewise.
57454         * modules/frexp-tests (Files): Likewise.
57455         * modules/frexpl-nolibm-tests (Files): Likewise.
57456         * modules/frexpl-tests (Files): Likewise.
57457         * modules/fseek-tests (Files): Likewise.
57458         * modules/fseeko-tests (Files): Likewise.
57459         * modules/fstrcmp-tests (Files): Likewise.
57460         * modules/fsync-tests (Files): Likewise.
57461         * modules/ftell-tests (Files): Likewise.
57462         * modules/ftello-tests (Files): Likewise.
57463         * modules/func-tests (Files): Likewise.
57464         * modules/futimens-tests (Files): Likewise.
57465         * modules/fwritable-tests (Files): Likewise.
57466         * modules/fwriting-tests (Files): Likewise.
57467         * modules/getcwd-tests (Files): Likewise.
57468         * modules/getdate-tests (Files): Likewise.
57469         * modules/getdelim-tests (Files): Likewise.
57470         * modules/getdtablesize-tests (Files): Likewise.
57471         * modules/getgroups-tests (Files): Likewise.
57472         * modules/getline-tests (Files): Likewise.
57473         * modules/getndelim2-tests (Files): Likewise.
57474         * modules/glob-tests (Files): Likewise.
57475         * modules/hash-tests (Files): Likewise.
57476         * modules/i-ring-tests (Files): Likewise.
57477         * modules/iconv-tests (Files): Likewise.
57478         * modules/iconv_open-utf-tests (Files): Likewise.
57479         * modules/idpriv-drop-tests (Files): Likewise.
57480         * modules/idpriv-droptemp-tests (Files): Likewise.
57481         * modules/inet_ntop-tests (Files): Likewise.
57482         * modules/inet_pton-tests (Files): Likewise.
57483         * modules/isblank-tests (Files): Likewise.
57484         * modules/isfinite-tests (Files): Likewise.
57485         * modules/isinf-tests (Files): Likewise.
57486         * modules/isnan-tests (Files): Likewise.
57487         * modules/isnand-nolibm-tests (Files): Likewise.
57488         * modules/isnand-tests (Files): Likewise.
57489         * modules/isnanf-nolibm-tests (Files): Likewise.
57490         * modules/isnanf-tests (Files): Likewise.
57491         * modules/isnanl-nolibm-tests (Files): Likewise.
57492         * modules/isnanl-tests (Files): Likewise.
57493         * modules/lchown-tests (Files): Likewise.
57494         * modules/ldexpl-tests (Files): Likewise.
57495         * modules/link-tests (Files): Likewise.
57496         * modules/linkat-tests (Files): Likewise.
57497         * modules/linked-list-tests (Files): Likewise.
57498         * modules/linkedhash-list-tests (Files): Likewise.
57499         * modules/localename-tests (Files): Likewise.
57500         * modules/lseek-tests (Files): Likewise.
57501         * modules/lstat-tests (Files): Likewise.
57502         * modules/mbmemcasecmp-tests (Files): Likewise.
57503         * modules/mbmemcasecoll-tests (Files): Likewise.
57504         * modules/mbrtowc-tests (Files): Likewise.
57505         * modules/mbscasecmp-tests (Files): Likewise.
57506         * modules/mbscasestr-tests (Files): Likewise.
57507         * modules/mbschr-tests (Files): Likewise.
57508         * modules/mbscspn-tests (Files): Likewise.
57509         * modules/mbsinit-tests (Files): Likewise.
57510         * modules/mbsncasecmp-tests (Files): Likewise.
57511         * modules/mbsnrtowcs-tests (Files): Likewise.
57512         * modules/mbspbrk-tests (Files): Likewise.
57513         * modules/mbspcasecmp-tests (Files): Likewise.
57514         * modules/mbsrchr-tests (Files): Likewise.
57515         * modules/mbsrtowcs-tests (Files): Likewise.
57516         * modules/mbsspn-tests (Files): Likewise.
57517         * modules/mbsstr-tests (Files): Likewise.
57518         * modules/memchr-tests (Files): Likewise.
57519         * modules/memchr2-tests (Files): Likewise.
57520         * modules/memcmp-tests (Files): Likewise.
57521         * modules/memmem-tests (Files): Likewise.
57522         * modules/memrchr-tests (Files): Likewise.
57523         * modules/mkdir-tests (Files): Likewise.
57524         * modules/mkfifo-tests (Files): Likewise.
57525         * modules/mkfifoat-tests (Files): Likewise.
57526         * modules/mknod-tests (Files): Likewise.
57527         * modules/nanosleep-tests (Files): Likewise.
57528         * modules/nl_langinfo-tests (Files): Likewise.
57529         * modules/obstack-printf-tests (Files): Likewise.
57530         * modules/open-tests (Files): Likewise.
57531         * modules/openat-tests (Files): Likewise.
57532         * modules/pipe-filter-gi-tests (Files): Likewise.
57533         * modules/pipe-filter-ii-tests (Files): Likewise.
57534         * modules/pipe2-tests (Files): Likewise.
57535         * modules/popen-safer-tests (Files): Likewise.
57536         * modules/popen-tests (Files): Likewise.
57537         * modules/posixtm-tests (Files): Likewise.
57538         * modules/pread-tests (Files): Likewise.
57539         * modules/printf-frexp-tests (Files): Likewise.
57540         * modules/printf-frexpl-tests (Files): Likewise.
57541         * modules/printf-posix-tests (Files): Likewise.
57542         * modules/priv-set-tests (Files): Likewise.
57543         * modules/quotearg-tests (Files): Likewise.
57544         * modules/random_r-tests (Files): Likewise.
57545         * modules/rawmemchr-tests (Files): Likewise.
57546         * modules/rbtree-list-tests (Files): Likewise.
57547         * modules/rbtree-oset-tests (Files): Likewise.
57548         * modules/rbtreehash-list-tests (Files): Likewise.
57549         * modules/readlink-tests (Files): Likewise.
57550         * modules/remove-tests (Files): Likewise.
57551         * modules/rename-tests (Files): Likewise.
57552         * modules/renameat-tests (Files): Likewise.
57553         * modules/rmdir-tests (Files): Likewise.
57554         * modules/round-tests (Files): Likewise.
57555         * modules/roundf-tests (Files): Likewise.
57556         * modules/roundl-tests (Files): Likewise.
57557         * modules/safe-alloc-tests (Files): Likewise.
57558         * modules/setenv-tests (Files): Likewise.
57559         * modules/sigaction-tests (Files): Likewise.
57560         * modules/signbit-tests (Files): Likewise.
57561         * modules/sleep-tests (Files): Likewise.
57562         * modules/snprintf-posix-tests (Files): Likewise.
57563         * modules/snprintf-tests (Files): Likewise.
57564         * modules/sprintf-posix-tests (Files): Likewise.
57565         * modules/stat-tests (Files): Likewise.
57566         * modules/stat-time-tests (Files): Likewise.
57567         * modules/strcasestr-tests (Files): Likewise.
57568         * modules/strchrnul-tests (Files): Likewise.
57569         * modules/strerror-tests (Files): Likewise.
57570         * modules/striconv-tests (Files): Likewise.
57571         * modules/striconveh-tests (Files): Likewise.
57572         * modules/striconveha-tests (Files): Likewise.
57573         * modules/strsignal-tests (Files): Likewise.
57574         * modules/strstr-tests (Files): Likewise.
57575         * modules/strtod-tests (Files): Likewise.
57576         * modules/strverscmp-tests (Files): Likewise.
57577         * modules/symlink-tests (Files): Likewise.
57578         * modules/symlinkat-tests (Files): Likewise.
57579         * modules/trunc-tests (Files): Likewise.
57580         * modules/truncf-tests (Files): Likewise.
57581         * modules/truncl-tests (Files): Likewise.
57582         * modules/uname-tests (Files): Likewise.
57583         * modules/unicase/cased-tests (Files): Likewise.
57584         * modules/unicase/ignorable-tests (Files): Likewise.
57585         * modules/unicase/locale-language-tests (Files): Likewise.
57586         * modules/unicase/tolower-tests (Files): Likewise.
57587         * modules/unicase/totitle-tests (Files): Likewise.
57588         * modules/unicase/toupper-tests (Files): Likewise.
57589         * modules/unicase/u8-casecmp-tests (Files): Likewise.
57590         * modules/unicase/u8-casecoll-tests (Files): Likewise.
57591         * modules/unicase/u8-casefold-tests (Files): Likewise.
57592         * modules/unicase/u8-is-cased-tests (Files): Likewise.
57593         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
57594         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
57595         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
57596         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
57597         * modules/unicase/u8-tolower-tests (Files): Likewise.
57598         * modules/unicase/u8-totitle-tests (Files): Likewise.
57599         * modules/unicase/u8-toupper-tests (Files): Likewise.
57600         * modules/unicase/u16-casecmp-tests (Files): Likewise.
57601         * modules/unicase/u16-casecoll-tests (Files): Likewise.
57602         * modules/unicase/u16-casefold-tests (Files): Likewise.
57603         * modules/unicase/u16-is-cased-tests (Files): Likewise.
57604         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
57605         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
57606         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
57607         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
57608         * modules/unicase/u16-tolower-tests (Files): Likewise.
57609         * modules/unicase/u16-totitle-tests (Files): Likewise.
57610         * modules/unicase/u16-toupper-tests (Files): Likewise.
57611         * modules/unicase/u32-casecmp-tests (Files): Likewise.
57612         * modules/unicase/u32-casecoll-tests (Files): Likewise.
57613         * modules/unicase/u32-casefold-tests (Files): Likewise.
57614         * modules/unicase/u32-is-cased-tests (Files): Likewise.
57615         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
57616         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
57617         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
57618         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
57619         * modules/unicase/u32-tolower-tests (Files): Likewise.
57620         * modules/unicase/u32-totitle-tests (Files): Likewise.
57621         * modules/unicase/u32-toupper-tests (Files): Likewise.
57622         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
57623         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
57624         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
57625         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
57626         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
57627         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
57628         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
57629         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
57630         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
57631         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
57632         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
57633         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
57634         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
57635         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
57636         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
57637         * modules/unictype/bidicategory-name-tests (Files): Likewise.
57638         * modules/unictype/bidicategory-of-tests (Files): Likewise.
57639         * modules/unictype/bidicategory-test-tests (Files): Likewise.
57640         * modules/unictype/block-list-tests (Files): Likewise.
57641         * modules/unictype/block-of-tests (Files): Likewise.
57642         * modules/unictype/block-test-tests (Files): Likewise.
57643         * modules/unictype/category-C-tests (Files): Likewise.
57644         * modules/unictype/category-Cc-tests (Files): Likewise.
57645         * modules/unictype/category-Cf-tests (Files): Likewise.
57646         * modules/unictype/category-Cn-tests (Files): Likewise.
57647         * modules/unictype/category-Co-tests (Files): Likewise.
57648         * modules/unictype/category-Cs-tests (Files): Likewise.
57649         * modules/unictype/category-L-tests (Files): Likewise.
57650         * modules/unictype/category-Ll-tests (Files): Likewise.
57651         * modules/unictype/category-Lm-tests (Files): Likewise.
57652         * modules/unictype/category-Lo-tests (Files): Likewise.
57653         * modules/unictype/category-Lt-tests (Files): Likewise.
57654         * modules/unictype/category-Lu-tests (Files): Likewise.
57655         * modules/unictype/category-M-tests (Files): Likewise.
57656         * modules/unictype/category-Mc-tests (Files): Likewise.
57657         * modules/unictype/category-Me-tests (Files): Likewise.
57658         * modules/unictype/category-Mn-tests (Files): Likewise.
57659         * modules/unictype/category-N-tests (Files): Likewise.
57660         * modules/unictype/category-Nd-tests (Files): Likewise.
57661         * modules/unictype/category-Nl-tests (Files): Likewise.
57662         * modules/unictype/category-No-tests (Files): Likewise.
57663         * modules/unictype/category-P-tests (Files): Likewise.
57664         * modules/unictype/category-Pc-tests (Files): Likewise.
57665         * modules/unictype/category-Pd-tests (Files): Likewise.
57666         * modules/unictype/category-Pe-tests (Files): Likewise.
57667         * modules/unictype/category-Pf-tests (Files): Likewise.
57668         * modules/unictype/category-Pi-tests (Files): Likewise.
57669         * modules/unictype/category-Po-tests (Files): Likewise.
57670         * modules/unictype/category-Ps-tests (Files): Likewise.
57671         * modules/unictype/category-S-tests (Files): Likewise.
57672         * modules/unictype/category-Sc-tests (Files): Likewise.
57673         * modules/unictype/category-Sk-tests (Files): Likewise.
57674         * modules/unictype/category-Sm-tests (Files): Likewise.
57675         * modules/unictype/category-So-tests (Files): Likewise.
57676         * modules/unictype/category-Z-tests (Files): Likewise.
57677         * modules/unictype/category-Zl-tests (Files): Likewise.
57678         * modules/unictype/category-Zp-tests (Files): Likewise.
57679         * modules/unictype/category-Zs-tests (Files): Likewise.
57680         * modules/unictype/category-and-not-tests (Files): Likewise.
57681         * modules/unictype/category-and-tests (Files): Likewise.
57682         * modules/unictype/category-byname-tests (Files): Likewise.
57683         * modules/unictype/category-name-tests (Files): Likewise.
57684         * modules/unictype/category-none-tests (Files): Likewise.
57685         * modules/unictype/category-of-tests (Files): Likewise.
57686         * modules/unictype/category-or-tests (Files): Likewise.
57687         * modules/unictype/category-test-withtable-tests (Files): Likewise.
57688         * modules/unictype/combining-class-tests (Files): Likewise.
57689         * modules/unictype/ctype-alnum-tests (Files): Likewise.
57690         * modules/unictype/ctype-alpha-tests (Files): Likewise.
57691         * modules/unictype/ctype-blank-tests (Files): Likewise.
57692         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
57693         * modules/unictype/ctype-digit-tests (Files): Likewise.
57694         * modules/unictype/ctype-graph-tests (Files): Likewise.
57695         * modules/unictype/ctype-lower-tests (Files): Likewise.
57696         * modules/unictype/ctype-print-tests (Files): Likewise.
57697         * modules/unictype/ctype-punct-tests (Files): Likewise.
57698         * modules/unictype/ctype-space-tests (Files): Likewise.
57699         * modules/unictype/ctype-upper-tests (Files): Likewise.
57700         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
57701         * modules/unictype/decimal-digit-tests (Files): Likewise.
57702         * modules/unictype/digit-tests (Files): Likewise.
57703         * modules/unictype/mirror-tests (Files): Likewise.
57704         * modules/unictype/numeric-tests (Files): Likewise.
57705         * modules/unictype/property-alphabetic-tests (Files): Likewise.
57706         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
57707         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
57708         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
57709         Likewise.
57710         * modules/unictype/property-bidi-block-separator-tests (Files):
57711         Likewise.
57712         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
57713         Likewise.
57714         * modules/unictype/property-bidi-common-separator-tests (Files):
57715         Likewise.
57716         * modules/unictype/property-bidi-control-tests (Files): Likewise.
57717         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
57718         Likewise.
57719         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
57720         Likewise.
57721         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
57722         Likewise.
57723         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
57724         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
57725         Likewise.
57726         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
57727         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
57728         Likewise.
57729         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
57730         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
57731         * modules/unictype/property-bidi-segment-separator-tests (Files):
57732         Likewise.
57733         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
57734         * modules/unictype/property-byname-tests (Files): Likewise.
57735         * modules/unictype/property-combining-tests (Files): Likewise.
57736         * modules/unictype/property-composite-tests (Files): Likewise.
57737         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
57738         * modules/unictype/property-dash-tests (Files): Likewise.
57739         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
57740         * modules/unictype/property-default-ignorable-code-point-tests (Files):
57741         Likewise.
57742         * modules/unictype/property-deprecated-tests (Files): Likewise.
57743         * modules/unictype/property-diacritic-tests (Files): Likewise.
57744         * modules/unictype/property-extender-tests (Files): Likewise.
57745         * modules/unictype/property-format-control-tests (Files): Likewise.
57746         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
57747         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
57748         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
57749         * modules/unictype/property-hex-digit-tests (Files): Likewise.
57750         * modules/unictype/property-hyphen-tests (Files): Likewise.
57751         * modules/unictype/property-id-continue-tests (Files): Likewise.
57752         * modules/unictype/property-id-start-tests (Files): Likewise.
57753         * modules/unictype/property-ideographic-tests (Files): Likewise.
57754         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
57755         * modules/unictype/property-ids-trinary-operator-tests (Files):
57756         Likewise.
57757         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
57758         * modules/unictype/property-iso-control-tests (Files): Likewise.
57759         * modules/unictype/property-join-control-tests (Files): Likewise.
57760         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
57761         * modules/unictype/property-line-separator-tests (Files): Likewise.
57762         * modules/unictype/property-logical-order-exception-tests (Files):
57763         Likewise.
57764         * modules/unictype/property-lowercase-tests (Files): Likewise.
57765         * modules/unictype/property-math-tests (Files): Likewise.
57766         * modules/unictype/property-non-break-tests (Files): Likewise.
57767         * modules/unictype/property-not-a-character-tests (Files): Likewise.
57768         * modules/unictype/property-numeric-tests (Files): Likewise.
57769         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
57770         * modules/unictype/property-other-default-ignorable-code-point-tests
57771         (Files): Likewise.
57772         * modules/unictype/property-other-grapheme-extend-tests (Files):
57773         Likewise.
57774         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
57775         * modules/unictype/property-other-id-start-tests (Files): Likewise.
57776         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
57777         * modules/unictype/property-other-math-tests (Files): Likewise.
57778         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
57779         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
57780         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
57781         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
57782         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
57783         * modules/unictype/property-private-use-tests (Files): Likewise.
57784         * modules/unictype/property-punctuation-tests (Files): Likewise.
57785         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
57786         * modules/unictype/property-radical-tests (Files): Likewise.
57787         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
57788         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
57789         * modules/unictype/property-space-tests (Files): Likewise.
57790         * modules/unictype/property-terminal-punctuation-tests (Files):
57791         Likewise.
57792         * modules/unictype/property-test-tests (Files): Likewise.
57793         * modules/unictype/property-titlecase-tests (Files): Likewise.
57794         * modules/unictype/property-unassigned-code-value-tests (Files):
57795         Likewise.
57796         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
57797         * modules/unictype/property-uppercase-tests (Files): Likewise.
57798         * modules/unictype/property-variation-selector-tests (Files): Likewise.
57799         * modules/unictype/property-white-space-tests (Files): Likewise.
57800         * modules/unictype/property-xid-continue-tests (Files): Likewise.
57801         * modules/unictype/property-xid-start-tests (Files): Likewise.
57802         * modules/unictype/property-zero-width-tests (Files): Likewise.
57803         * modules/unictype/scripts-tests (Files): Likewise.
57804         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
57805         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
57806         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
57807         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
57808         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
57809         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
57810         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
57811         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
57812         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
57813         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
57814         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
57815         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
57816         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
57817         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
57818         * modules/uninorm/composition-tests (Files): Likewise.
57819         * modules/uninorm/decomposing-form-tests (Files): Likewise.
57820         * modules/uninorm/decomposition-tests (Files): Likewise.
57821         * modules/uninorm/filter-tests (Files): Likewise.
57822         * modules/uninorm/nfc-tests (Files): Likewise.
57823         * modules/uninorm/nfd-tests (Files): Likewise.
57824         * modules/uninorm/nfkc-tests (Files): Likewise.
57825         * modules/uninorm/nfkd-tests (Files): Likewise.
57826         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
57827         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
57828         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
57829         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
57830         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
57831         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
57832         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
57833         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
57834         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
57835         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
57836         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
57837         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
57838         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
57839         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
57840         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
57841         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
57842         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
57843         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
57844         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
57845         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
57846         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
57847         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
57848         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
57849         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57850         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57851         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57852         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57853         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57854         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57855         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57856         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57857         * modules/uniwidth/u8-width-tests (Files): Likewise.
57858         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57859         * modules/uniwidth/u16-width-tests (Files): Likewise.
57860         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57861         * modules/uniwidth/u32-width-tests (Files): Likewise.
57862         * modules/uniwidth/width-tests (Files): Likewise.
57863         * modules/unlink-tests (Files): Likewise.
57864         * modules/unsetenv-tests (Files): Likewise.
57865         * modules/usleep-tests (Files): Likewise.
57866         * modules/utimens-tests (Files): Likewise.
57867         * modules/utimensat-tests (Files): Likewise.
57868         * modules/vasnprintf-posix-tests (Files): Likewise.
57869         * modules/vasnprintf-tests (Files): Likewise.
57870         * modules/vasprintf-posix-tests (Files): Likewise.
57871         * modules/vasprintf-tests (Files): Likewise.
57872         * modules/vdprintf-posix-tests (Files): Likewise.
57873         * modules/vfprintf-posix-tests (Files): Likewise.
57874         * modules/vprintf-posix-tests (Files): Likewise.
57875         * modules/vsnprintf-posix-tests (Files): Likewise.
57876         * modules/vsnprintf-tests (Files): Likewise.
57877         * modules/vsprintf-posix-tests (Files): Likewise.
57878         * modules/wcrtomb-tests (Files): Likewise.
57879         * modules/wcsnrtombs-tests (Files): Likewise.
57880         * modules/wcsrtombs-tests (Files): Likewise.
57881         * modules/wctype-tests (Files): Likewise.
57882         * modules/wcwidth-tests (Files): Likewise.
57883         * modules/xmemdup0-tests (Files): Likewise.
57884         * modules/xprintf-posix-tests (Files): Likewise.
57885         * modules/xvasprintf-tests (Files): Likewise.
57887 2009-12-24  Eric Blake  <ebb9@byu.net>
57889         test-nanosleep: fix typo
57890         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57891         patch.
57892         Reported by Bruno Haible.
57894 2009-12-24  Bruno Haible  <bruno@clisp.org>
57896         Reduce namespace pollution on glibc systems.
57897         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57898         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57899         systems.
57900         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57901         <getopt.h> on glibc systems.
57902         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57903         systems.
57904         * lib/fcntl.c: Include <unistd.h> here instead.
57906 2009-12-24  Bruno Haible  <bruno@clisp.org>
57908         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57910 2009-12-24  Eric Blake  <ebb9@byu.net>
57912         tests: add signature checks
57913         * tests/signature.h (SIGNATURE_CHECK): New file.
57914         * modules/atexit-tests (Files): Use it.
57915         * modules/btowc-tests (Files): Likewise.
57916         * modules/canonicalize-lgpl-tests (Files): Likewise.
57917         * modules/ceilf-tests (Files): Likewise.
57918         * modules/ceill-tests (Files): Likewise.
57919         * modules/chown-tests (Files): Likewise.
57920         * modules/dprintf-posix-tests (Files): Likewise.
57921         * modules/dup2-tests (Files): Likewise.
57922         * modules/dup3-tests (Files): Likewise.
57923         * modules/duplocale-tests (Files): Likewise.
57924         * modules/fchdir-tests (Files): Likewise.
57925         * modules/fcntl-tests (Files): Likewise.
57926         * modules/fdopendir-tests (Files): Likewise.
57927         * modules/fflush-tests (Files): Likewise.
57928         * modules/flock-tests (Files): Likewise.
57929         * modules/floorf-tests (Files): Likewise.
57930         * modules/floorl-tests (Files): Likewise.
57931         * modules/fnmatch-tests (Files): Likewise.
57932         * modules/fopen-tests (Files): Likewise.
57933         * modules/fprintf-posix-tests (Files): Likewise.
57934         * modules/freopen-tests (Files): Likewise.
57935         * modules/frexp-nolibm-tests (Files): Likewise.
57936         * modules/frexp-tests (Files): Likewise.
57937         * modules/frexpl-nolibm-tests (Files): Likewise.
57938         * modules/frexpl-tests (Files): Likewise.
57939         * modules/fseek-tests (Files): Likewise.
57940         * modules/fseeko-tests (Files): Likewise.
57941         * modules/fsync-tests (Files): Likewise.
57942         * modules/ftell-tests (Files): Likewise.
57943         * modules/ftello-tests (Files): Likewise.
57944         * modules/futimens-tests (Files): Likewise.
57945         * modules/getaddrinfo-tests (Files): Likewise.
57946         * modules/getcwd-tests (Files): Likewise.
57947         * modules/getdelim-tests (Files): Likewise.
57948         * modules/getdtablesize-tests (Files): Likewise.
57949         * modules/getgroups-tests (Files): Likewise.
57950         * modules/gethostname-tests (Files): Likewise.
57951         * modules/getline-tests (Files): Likewise.
57952         * modules/getopt-posix-tests (Files): Likewise.
57953         * modules/gettimeofday-tests (Files): Likewise.
57954         * modules/glob-tests (Files): Likewise.
57955         * modules/iconv-tests (Files): Likewise.
57956         * modules/inet_ntop-tests (Files): Likewise.
57957         * modules/inet_pton-tests (Files): Likewise.
57958         * modules/isblank-tests (Files): Likewise.
57959         * modules/lchown-tests (Files): Likewise.
57960         * modules/ldexpl-tests (Files): Likewise.
57961         * modules/link-tests (Files): Likewise.
57962         * modules/linkat-tests (Files): Likewise.
57963         * modules/lseek-tests (Files): Likewise.
57964         * modules/lstat-tests (Files): Likewise.
57965         * modules/mbrtowc-tests (Files): Likewise.
57966         * modules/mbsinit-tests (Files): Likewise.
57967         * modules/mbsnrtowcs-tests (Files): Likewise.
57968         * modules/mbsrtowcs-tests (Files): Likewise.
57969         * modules/memchr-tests (Files): Likewise.
57970         * modules/memcmp-tests (Files): Likewise.
57971         * modules/memmem-tests (Files): Likewise.
57972         * modules/memrchr-tests (Files): Likewise.
57973         * modules/mkdir-tests (Files): Likewise.
57974         * modules/mkfifo-tests (Files): Likewise.
57975         * modules/mkfifoat-tests (Files): Likewise.
57976         * modules/mknod-tests (Files): Likewise.
57977         * modules/nanosleep-tests (Files): Likewise.
57978         * modules/nl_langinfo-tests (Files): Likewise.
57979         * modules/obstack-printf-tests (Files): Likewise.
57980         * modules/open-tests (Files): Likewise.
57981         * modules/openat-tests (Files): Likewise.
57982         * modules/perror-tests (Files): Likewise.
57983         * modules/pipe2-tests (Files): Likewise.
57984         * modules/poll-tests (Files): Likewise.
57985         * modules/popen-tests (Files): Likewise.
57986         * modules/posix_spawn-tests (Files): Likewise.
57987         * modules/posix_spawnp-tests (Files): Likewise.
57988         * modules/pread-tests (Files): Likewise.
57989         * modules/printf-posix-tests (Files): Likewise.
57990         * modules/pty-tests (Files): Likewise.
57991         * modules/random_r-tests (Files): Likewise.
57992         * modules/rawmemchr-tests (Files): Likewise.
57993         * modules/readlink-tests (Files): Likewise.
57994         * modules/remove-tests (Files): Likewise.
57995         * modules/rename-tests (Files): Likewise.
57996         * modules/renameat-tests (Files): Likewise.
57997         * modules/rmdir-tests (Files): Likewise.
57998         * modules/round-tests (Files): Likewise.
57999         * modules/roundf-tests (Files): Likewise.
58000         * modules/roundl-tests (Files): Likewise.
58001         * modules/select-tests (Files): Likewise.
58002         * modules/setenv-tests (Files): Likewise.
58003         * modules/sigaction-tests (Files): Likewise.
58004         * modules/sleep-tests (Files): Likewise.
58005         * modules/snprintf-posix-tests (Files): Likewise.
58006         * modules/snprintf-tests (Files): Likewise.
58007         * modules/sprintf-posix-tests (Files): Likewise.
58008         * modules/stat-tests (Files): Likewise.
58009         * modules/strcasestr-tests (Files): Likewise.
58010         * modules/strchrnul-tests (Files): Likewise.
58011         * modules/strerror-tests (Files): Likewise.
58012         * modules/strsignal-tests (Files): Likewise.
58013         * modules/strstr-tests (Files): Likewise.
58014         * modules/strtod-tests (Files): Likewise.
58015         * modules/strverscmp-tests (Files): Likewise.
58016         * modules/symlink-tests (Files): Likewise.
58017         * modules/symlinkat-tests (Files): Likewise.
58018         * modules/times-tests (Files): Likewise.
58019         * modules/trunc-tests (Files): Likewise.
58020         * modules/truncf-tests (Files): Likewise.
58021         * modules/truncl-tests (Files): Likewise.
58022         * modules/tsearch-tests (Files): Likewise.
58023         * modules/uname-tests (Files): Likewise.
58024         * modules/unlink-tests (Files): Likewise.
58025         * modules/unsetenv-tests (Files): Likewise.
58026         * modules/usleep-tests (Files): Likewise.
58027         * modules/utimensat-tests (Files): Likewise.
58028         * modules/vasprintf-tests (Files): Likewise.
58029         * modules/vdprintf-posix-tests (Files): Likewise.
58030         * modules/vfprintf-posix-tests (Files): Likewise.
58031         * modules/vprintf-posix-tests (Files): Likewise.
58032         * modules/vsnprintf-posix-tests (Files): Likewise.
58033         * modules/vsnprintf-tests (Files): Likewise.
58034         * modules/vsprintf-posix-tests (Files): Likewise.
58035         * modules/wcrtomb-tests (Files): Likewise.
58036         * modules/wcsnrtombs-tests (Files): Likewise.
58037         * modules/wcsrtombs-tests (Files): Likewise.
58038         * modules/wcwidth-tests (Files): Likewise.
58039         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
58040         * tests/test-isinf.c (isinf): Likewise.
58041         * tests/test-isnan.c (isnan): Likewise.
58042         * tests/test-signbit.c (signbit): Likewise.
58043         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
58044         declaration, either as macro or with correct signature.
58045         (select): Ensure function under test is declared with correct
58046         signature in correct header.
58047         * tests/test-atexit.c (atexit): Likewise.
58048         * tests/test-btowc.c (btowc): Likewise.
58049         * tests/test-canonicalize-lgpl.c (realpath)
58050         (canonicalize_file_name): Likewise.
58051         * tests/test-ceilf1.c (ceilf): Likewise.
58052         * tests/test-ceill.c (ceill): Likewise.
58053         * tests/test-chown.c (chown): Likewise.
58054         * tests/test-dprintf-posix.c (dprintf): Likewise.
58055         * tests/test-dup2.c (dup2): Likewise.
58056         * tests/test-dup3.c (dup3): Likewise.
58057         * tests/test-duplocale.c (duplocale): Likewise.
58058         * tests/test-fchdir.c (fchdir): Likewise.
58059         * tests/test-fchownat.c (fchownat): Likewise.
58060         * tests/test-fcntl.c (fcntl): Likewise.
58061         * tests/test-fdopendir.c (fdopendir): Likewise.
58062         * tests/test-fflush.c (fflush): Likewise.
58063         * tests/test-flock.c (flock): Likewise.
58064         * tests/test-floorf1.c (floorf): Likewise.
58065         * tests/test-floorl.c (floorl): Likewise.
58066         * tests/test-fnmatch.c (fnmatch): Likewise.
58067         * tests/test-fopen.c (fopen): Likewise.
58068         * tests/test-fprintf-posix.c (fprintf): Likewise.
58069         * tests/test-freopen.c (freopen): Likewise.
58070         * tests/test-frexp.c (frexp): Likewise.
58071         * tests/test-frexpl.c (frexpl): Likewise.
58072         * tests/test-fseek.c (fseek): Likewise.
58073         * tests/test-fseeko.c (fseeko): Likewise.
58074         * tests/test-fstatat.c (fstatat): Likewise.
58075         * tests/test-fsync.c (fsync): Likewise.
58076         * tests/test-ftell.c (ftell): Likewise.
58077         * tests/test-ftello.c (ftello): Likewise.
58078         * tests/test-futimens.c (futimens): Likewise.
58079         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
58080         (gai_strerror): Likewise.
58081         * tests/test-getcwd.c (getcwd): Likewise.
58082         * tests/test-getdelim.c (getdelim): Likewise.
58083         * tests/test-getdtablesize.c (getdtablesize): Likewise.
58084         * tests/test-getgroups.c (getgroups): Likewise.
58085         * tests/test-gethostname.c (gethostname): Likewise.
58086         * tests/test-getline.c (getline): Likewise.
58087         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
58088         Likewise.
58089         * tests/test-gettimeofday.c (gettimeofday): Likewise.
58090         * tests/test-glob.c (glob, globfree): Likewise.
58091         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
58092         * tests/test-inet_ntop.c (inet_ntop): Likewise.
58093         * tests/test-inet_pton.c (inet_pton): Likewise.
58094         * tests/test-isblank.c (isblank): Likewise.
58095         * tests/test-lchown.c (lchown): Likewise.
58096         * tests/test-ldexpl.c (ldexpl): Likewise.
58097         * tests/test-link.c (link): Likewise.
58098         * tests/test-linkat.c (linkat): Likewise.
58099         * tests/test-lseek.c (lseek): Likewise.
58100         * tests/test-lstat.c (lstat): Likewise.
58101         * tests/test-mbrtowc.c (mbrtowc): Likewise.
58102         * tests/test-mbsinit.c (mbsinit): Likewise.
58103         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
58104         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
58105         * tests/test-memchr.c (memchr): Likewise.
58106         * tests/test-memcmp.c (memcmp): Likewise.
58107         * tests/test-memmem.c (memmem): Likewise.
58108         * tests/test-memrchr.c (memrchr): Likewise.
58109         * tests/test-mkdir.c (mkdir): Likewise.
58110         * tests/test-mkdirat.c (mkdirat): Likewise.
58111         * tests/test-mkfifo.c (mkfifo): Likewise.
58112         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
58113         * tests/test-mknod.c (mknod): Likewise.
58114         * tests/test-nanosleep.c (nanosleep): Likewise.
58115         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
58116         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
58117         Likewise.
58118         * tests/test-open.c (open): Likewise.
58119         * tests/test-openat.c (openat): Likewise.
58120         * tests/test-perror.c (perror): Likewise.
58121         * tests/test-pipe2.c (pipe2): Likewise.
58122         * tests/test-poll.c (poll): Likewise.
58123         * tests/test-popen.c (popen, pclose): Likewise.
58124         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
58125         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
58126         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
58127         (posix_spawn_file_actions_destroy)
58128         (posix_spawn_file_actions_addclose)
58129         (posix_spawn_file_actions_addopen)
58130         (posix_spawn_file_actions_adddup2): Likewise.
58131         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
58132         * tests/test-pread.c (pread): Likewise.
58133         * tests/test-printf-posix.c (printf): Likewise.
58134         * tests/test-pty.c (openpty, forkpty): Likewise.
58135         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
58136         (random_r): Likewise.
58137         * tests/test-rawmemchr.c (rawmemchr): Likewise.
58138         * tests/test-readlink.c (readlink): Likewise.
58139         * tests/test-remove.c (remove): Likewise.
58140         * tests/test-rename.c (rename): Likewise.
58141         * tests/test-renameat.c (renameat): Likewise.
58142         * tests/test-rmdir.c (rmdir): Likewise.
58143         * tests/test-round1.c (round): Likewise.
58144         * tests/test-roundf1.c (roundf): Likewise.
58145         * tests/test-roundl.c (roundl): Likewise.
58146         * tests/test-setenv.c (setenv): Likewise.
58147         * tests/test-sigaction.c (sigaction): Likewise.
58148         * tests/test-sleep.c (sleep): Likewise.
58149         * tests/test-snprintf.c (snprintf): Likewise.
58150         * tests/test-sprintf-posix.c (sprintf): Likewise.
58151         * tests/test-stat.c (stat): Likewise.
58152         * tests/test-stpncpy.c (stpncpy): Likewise.
58153         * tests/test-strcasestr.c (strcasestr): Likewise.
58154         * tests/test-strchrnul.c (strchrnul): Likewise.
58155         * tests/test-strerror.c (strerror): Likewise.
58156         * tests/test-strsignal.c (strsignal): Likewise.
58157         * tests/test-strstr.c (strstr): Likewise.
58158         * tests/test-strtod.c (strtod): Likewise.
58159         * tests/test-strverscmp.c (strverscmp): Likewise.
58160         * tests/test-symlink.c (symlink): Likewise.
58161         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
58162         * tests/test-times.c (times): Likewise.
58163         * tests/test-trunc1.c (trunc): Likewise.
58164         * tests/test-truncf1.c (truncf): Likewise.
58165         * tests/test-truncl.c (truncl): Likewise.
58166         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
58167         Likewise.
58168         * tests/test-uname.c (uname): Likewise.
58169         * tests/test-unlink.c (unlink): Likewise.
58170         * tests/test-unlinkat.c (unlinkat): Likewise.
58171         * tests/test-unsetenv.c (unsetenv): Likewise.
58172         * tests/test-usleep.c (usleep): Likewise.
58173         * tests/test-utimensat.c (utimensat): Likewise.
58174         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
58175         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
58176         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
58177         * tests/test-vprintf-posix.c (vprintf): Likewise.
58178         * tests/test-vsnprintf.c (vsnprintf): Likewise.
58179         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
58180         * tests/test-wcrtomb.c (wcrtomb): Likewise.
58181         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
58182         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
58183         * tests/test-wcwidth.c (wcwidth): Likewise.
58185         build: pull in conditional headers during GNULIB_POSIXCHECK
58186         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
58187         definitions from any conditionally-included headers.
58188         * lib/stdlib.in.h (includes): Likewise.
58189         * lib/unistd.in.h (includes): Likewise.
58191 2009-12-24  Bruno Haible  <bruno@clisp.org>
58193         * tests/test-argv-iter.c: Include header file being tested immediately
58194         after config.h.
58195         * tests/test-base64.c: Likewise.
58196         * tests/test-flock.c: Likewise.
58197         * tests/test-fsync.c: Likewise.
58198         * tests/test-getdate.c: Likewise.
58199         * tests/test-getndelim2.c: Likewise.
58200         * tests/test-isfinite.c: Likewise.
58201         * tests/test-isinf.c: Likewise.
58202         * tests/test-strerror.c: Likewise.
58203         * tests/test-strsignal.c: Likewise.
58205 2009-12-23  Eric Blake  <ebb9@byu.net>
58207         unistd: work around cygwin bug
58208         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
58209         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
58210         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58212 2009-12-23  Bruno Haible  <bruno@clisp.org>
58214         localename: More tests.
58215         * tests/test-localename.c (SIZEOF): New macro.
58216         (categories): New variable.
58217         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
58218         test_locale_name_default): Add test w.r.t. thread locale.
58219         (test_locale_name_thread): New function.
58220         (main): Invoke it.
58222         localename: Make aware of thread locale.
58223         * lib/localename.h (gl_locale_name_thread): New declaration.
58224         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
58225         behaviour with respect to thread locale.
58226         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
58227         <langinfo.h>, glthread/lock.h.
58228         (SIZE_BITS): New macro.
58229         (string_hash): New function.
58230         (struct hash_node): New type.
58231         (HASH_TABLE_SIZE): New macro.
58232         (struniq_hash_table, struniq_lock): New variables.
58233         (struniq): New function.
58234         (gl_locale_name_thread): New function.
58235         (gl_locale_name): Invoke it.
58236         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
58237         * modules/localename (Depends-on): Add lock.
58238         Reported by Mike Gran <spk121@yahoo.com>.
58240 2009-12-23  Eric Blake  <ebb9@byu.net>
58242         va-args: new module
58243         * modules/va-args: New file.
58244         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
58245         * MODULES.html.sh (Core language properties): Mention it.
58247         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
58248         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
58249         named alias for __attribute__((__unused__)).
58250         * lib/chown.c: Update client.
58251         * lib/fchmodat.c: Likewise.
58252         * lib/fts.c: Likewise.
58253         * lib/getdate.y: Likewise.
58254         * lib/getgroups.c: Likewise.
58255         * lib/getopt.c: Likewise.
58256         * lib/getugroups.c: Likewise.
58257         * lib/mkdir.c: Likewise.
58258         * lib/mkfifo.c: Likewise.
58259         * lib/mkfifoat.c: Likewise.
58260         * lib/mknod.c: Likewise.
58261         * lib/mknodat.c: Likewise.
58262         * lib/readlink.c: Likewise.
58263         * lib/se-context.in.h: Likewise.
58264         * lib/se-selinux.in.h: Likewise.
58265         * lib/sockets.c: Likewise.
58266         * lib/symlink.c: Likewise.
58267         * lib/symlinkat.c: Likewise.
58268         * lib/unicodeio.c: Likewise.
58269         * lib/unistr.h: Likewise.
58270         * tests/test-areadlink.c: Likewise.
58271         * tests/test-areadlinkat.c: Likewise.
58272         * tests/test-filenamecat.c: Likewise.
58273         * tests/test-fseeko.c: Likewise.
58274         * tests/test-ftello.c: Likewise.
58275         * tests/test-getdate.c: Likewise.
58276         * tests/test-getgroups.c: Likewise.
58277         * tests/test-gethostname.c: Likewise.
58278         * tests/test-quotearg.c: Likewise.
58279         * tests/test-version-etc.c: Likewise.
58280         * tests/test-xalloc-die.c: Likewise.
58281         * tests/test-xfprintf-posix.c: Likewise.
58282         * tests/test-xprintf-posix.c: Likewise.
58283         * tests/test-xvasprintf.c: Likewise.
58285         tests: avoid compiler warnings
58286         * tests/test-fcntl.c (main): Delete unused parameters.
58287         * tests/test-freopen-safer.c (main): Likewise.
58288         * tests/test-xalloc-die.c (main): Mark unused parameters.
58289         * tests/test-fseeko.c (main): Likewise.
58290         * tests/test-ftello.c (main): Likewise.
58291         * tests/test-nanosleep.c (main): Avoid declaration warning.
58292         * tests/test-sleep.c (main): Likewise.
58293         * tests/test-unsetenv.c (main): Silence warning about string
58294         literal.
58295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
58297 2009-12-23  Bruno Haible  <bruno@clisp.org>
58299         * tests/test-localename.c (test_locale_name): New function, extracted
58300         from main. Also test mixed situations.
58301         (test_locale_name_posix, test_locale_name_environ,
58302         test_locale_name_default): New functions.
58303         (main): Invoke them all.
58304         * modules/localename-tests (configure.ac): Test for newlocale.
58306 2009-12-23  Bruno Haible  <bruno@clisp.org>
58308         unistd: Ensure getcwd gets declared before being overridden.
58309         * lib/unistd.in.h: Conditionally include <io.h>.
58311 2009-12-22  Bruno Haible  <bruno@clisp.org>
58313         wchar: Diagnose broken combination of glibc and gcc versions and flags.
58314         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
58315         (gl_WCHAR_H): Invoke it.
58316         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
58317         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
58318         Reported by Karl Berry <karl@freefriends.org>.
58320 2009-12-22  Eric Blake  <ebb9@byu.net>
58322         math, unistd: avoid redundant includes
58323         * lib/math.in.h (isnan): No need to re-include <math.h>.
58324         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
58326         getsubopt: work around cygwin bug
58327         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
58328         avoid conflicting with system getsubopt.
58329         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
58330         bug.
58332         getopt: synchronize from glibc
58333         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
58334         parameter order.  Adjust all callers.
58335         (_getopt_internal_r, main): Adjust quoting in error messages.
58336         Drop considerations for outdated POSIX 1003.2 error message.
58337         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
58338         callers.
58339         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
58341         test-getopt: test stderr behavior
58342         * modules/getopt-posix-tests (Depends-on): Add dup2.
58343         * tests/test-getopt.c (ASSERT): Avoid stderr.
58344         (main): Move stderr to a temporary file.
58345         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
58346         Instead, add parameter to inform caller if output occurred.
58347         (test_getopt): Adjust all existing tests to expect silence, and
58348         add new tests of leading ":".
58349         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58350         glibc shortcomings with leading "-:" or "+:" in optstring.
58351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58352         Likewise.
58353         * doc/posix-functions/getopt.texi (getopt): Likewise.
58355         test-getopt: enhance test
58356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
58357         supports optind=0.
58358         * tests/test-getopt.c (OPTIND_MIN): Move...
58359         * tests/test-getopt.h (OPTIND_MIN): ...here.
58360         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
58361         Require that optind=0 works, since modern BSD supports it in
58362         addition to optreset, and since coreutils expects it.
58363         (test_getopt_long_only): New test.
58364         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58365         glibc shortcomings with 'W;', and enforcement of optind=0.
58366         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58367         Likewise.
58369 2009-12-21  Bruno Haible  <bruno@clisp.org>
58371         localename: Improvements for MacOS X and Cygwin.
58372         * lib/localename.h (gl_locale_name_environ): New declaration.
58373         * lib/localename.c (gl_locale_name_environ): New function, extracted from
58374         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
58375         (gl_locale_name_posix): Invoke it.
58376         (gl_locale_name_default): Add comments. Use Windows native API also on
58377         Cygwin.
58379 2009-12-21  Bruno Haible  <bruno@clisp.org>
58381         Update list of Win32 locale ids.
58382         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
58383         (LANG_SAMI): Renamed from LANG_SAAMI.
58384         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
58385         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
58386         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
58387         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
58388         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
58389         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
58390         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
58391         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
58392         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
58393         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
58394         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
58395         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
58396         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
58397         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
58398         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
58399         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
58400         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
58401         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
58402         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
58403         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
58404         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
58405         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
58406         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
58407         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
58408         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
58409         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
58410         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
58411         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
58412         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
58413         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
58414         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
58415         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
58416         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
58417         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
58418         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
58419         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
58420         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
58421         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
58422         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
58423         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
58424         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
58425         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
58426         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
58427         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
58428         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
58429         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
58430         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
58431         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
58432         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
58433         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
58434         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
58435         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
58436         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
58437         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
58438         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
58439         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
58440         Add more languages and countries for Sami, Sorbian. Add more countries
58441         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
58442         for Pashto. Change country for Syriac, Tswana.
58444 2009-12-21  Eric Blake  <ebb9@byu.net>
58446         test-utimens: avoid spurious failure
58447         * tests/test-chown.h (nap): Factor...
58448         * tests/nap.h: ...into new file.
58449         * tests/test-lchown.h (nap): Avoid duplication.
58450         * tests/test-utimens-common.h (nap): Use shared implementation,
58451         necessary on file systems with 1-second resolution.
58452         * modules/chown-tests (Files): Include new file.
58453         * modules/fdutimensat-tests (Files): Likewise.
58454         * modules/futimens-tests (Files): Likewise.
58455         * modules/lchown-tests (Files): Likewise.
58456         * modules/openat-tests (Files): Likewise.
58457         * modules/utimens-tests (Files): Likewise.
58458         * modules/utimensat-tests (Files): Likewise.
58460 2009-12-19  Eric Blake  <ebb9@byu.net>
58462         futimens, utimensat: work around Linux bug
58463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
58464         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58465         * lib/utimensat.c (rpl_utimensat): Work around it.
58466         * lib/futimens.c (rpl_futimens): Adjust comment.
58468         utimens: work around Linux ctime bug
58469         * lib/utimens.c (detect_ctime_bug): New helper function.
58470         (update_timespec): Differentiate between workaround needed for
58471         this bug vs. what is needed for systems that lack utimensat.
58472         (fdutimens, lutimens): Work around bug.
58474         utimens: check for ctime update
58475         * tests/test-utimens-common.h (check_ctime): Define.
58476         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
58477         * tests/test-futimens.h (test_futimens): Likewise.
58478         * tests/test-lutimens.h (test_lutimens): Likewise.
58479         * doc/posix-functions/futimens.texi (futimens): Document the bug.
58480         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58482 2009-12-19  Bruno Haible  <bruno@clisp.org>
58484         dprintf-posix: Check against memory leak fixed on 2009-12-15.
58485         * tests/test-dprintf-posix2.sh: New file.
58486         * tests/test-dprintf-posix2.c: New file.
58487         * modules/dprintf-posix-tests (Files): Add them.
58488         (configure.ac): Check for getrlimit and setrlimit.
58489         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58491 2009-12-19  Bruno Haible  <bruno@clisp.org>
58493         fprintf-posix: Check against memory leak fixed on 2009-12-15.
58494         * tests/test-fprintf-posix3.sh: New file.
58495         * tests/test-fprintf-posix3.c: New file.
58496         * modules/fprintf-posix-tests (Files): Add them.
58497         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58499 2009-12-19  Eric Blake  <ebb9@byu.net>
58501         dirfd: fix prototype
58502         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
58503         * lib/dirfd.c (dirfd): Likewise.
58505         canonicalize: reduce memory usage
58506         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
58507         allocation to size.
58508         Reported by Solar Designer <solar@openwall.com>.
58510 2009-12-19  Bruno Haible  <bruno@clisp.org>
58512         New module attribute 'Applicability'.
58513         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
58514         * gnulib-tool: New option --extract-applicability.
58515         (func_usage): Document it.
58516         (sed_extract_prog): Recognize it.
58517         (func_get_applicability): New function.
58518         (func_import): Generalize handling of 'link-warning' module.
58519         * modules/link-warning (Applicability): New section.
58520         * modules/arg-nonnull (Applicability): New section.
58521         Repoted by Simon Josefsson <simon@josefsson.org>.
58523 2009-12-19  Bruno Haible  <bruno@clisp.org>
58525         fflush: tweak
58526         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
58527         * lib/fseeko.c (rpl_fseeko): Likewise.
58529 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
58531         * lib/gl_list.h: Fix typo in comment.
58533 2009-12-16  Eric Blake  <ebb9@byu.net>
58535         fcntl: use to simplify other modules
58536         * modules/cloexec (Depends-on): Add fcntl.
58537         * modules/fchdir (Depends-on): Likewise.
58538         * modules/fd-safer-flag (Depends-on): Likewise.
58539         * modules/unistd-safer (Depends-on): Likewise.
58540         * modules/dup3 (configure.ac): Set module indicator.
58541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
58542         missing.
58543         * lib/fchdir.c (_gl_register_dup): Fix comment.
58544         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
58545         * lib/dup-safer.c (dup_safer): Likewise.
58546         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
58547         * lib/dup3.c (dup3): Likewise.
58548         * tests/test-fchdir.c (main): Enhance test.
58549         Fixes a dup_cloexec bug reported by Ondřej Vašík.
58551         fcntl: port portions of fcntl to mingw
58552         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
58553         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
58554         replacement for mingw.
58555         * modules/fcntl (Description): Update.
58556         (Depends-on): Add dup2.
58557         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
58558         * modules/fcntl-h (Makefile.am): Substitute it.
58559         * lib/fcntl.in.h (fcntl): Update declaration.
58560         (F_DUPFD, F_GETFD): New macros, when needed.
58561         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58562         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
58563         * tests/test-fcntl.c (check_flags, main): Enhance test for items
58564         we now guarantee.
58566         fcntl: work around cygwin bug in F_DUPFD
58567         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
58568         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
58569         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
58570         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
58571         * doc/posix-functions/fcntl.texi (fcntl): Document it.
58573         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
58574         * modules/fcntl (Files): List new files.
58575         (configure.ac): Run a test.
58576         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
58577         * lib/fcntl.c (rpl_fcntl): Likewise.
58578         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
58579         (gl_FCNTL_H): Always replace fcntl.h.
58580         * modules/fcntl-h (Makefile.am): Substitute witnesses.
58581         * lib/fcntl.in.h (fcntl): Declare replacement.
58582         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
58583         needed, plus a witness.
58584         * doc/posix-functions/fcntl.texi (fcntl): Document this.
58585         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
58586         * tests/test-fcntl.c: New file.
58587         * modules/fcntl-tests: Likewise.
58589         binary-io: avoid potential compilation warning
58590         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
58591         directives.
58593         fflush: avoid compilation error on NetBSD
58594         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
58595         between off_t and fpos_t, since the latter is sometimes a struct.
58596         * lib/fseeko.c (rpl_fseeko): Likewise.
58597         Reported by Alexander Nasonov <alnsn@yandex.ru>.
58599 2009-12-15  Eric Blake  <ebb9@byu.net>
58601         fcntl-h, stdio, sys_ioctl: fix declarations
58602         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
58603         function must not take arguments.
58604         * lib/sys_ioctl.in.h (ioctl): Likewise.
58605         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
58606         (open): Add a link warning.
58608 2009-12-15  Jim Meyering  <meyering@redhat.com>
58610         areadlink, areadlink-with-size: relax license to LGPLv2+
58611         * modules/areadlink (License): Relax to LGPLv2+.
58612         * modules/areadlink-with-size (License): Likewise.
58614 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
58615             Bruno Haible  <bruno@clisp.org>
58617         *printf: Fix memory leak.
58618         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
58619         * lib/vfprintf.c (vfprintf): Likewise.
58620         * lib/dprintf.c (dprintf): Likewise.
58621         * lib/vdprintf.c (vdprintf): Likewise.
58623 2009-12-14  Eric Blake  <ebb9@byu.net>
58625         accept4: adjust module dependencies
58626         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
58628         utimens: one more try at avoiding compiler warning
58629         * lib/utimens.c (lutimens): Lower scope of result.
58631 2009-12-13  Bruno Haible  <bruno@clisp.org>
58633         Move the malloc checking from module 'list' to new module 'xlist'.
58634         * modules/xlist: New file.
58635         * lib/gl_xlist.h: New file.
58636         * lib/gl_xlist.c: New file.
58637         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
58638         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
58639         gl_list_add_last, gl_list_add_before, gl_list_add_after,
58640         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
58641         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
58642         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
58643         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
58644         gl_sortedlist_nx_add): New declarations.
58645         (struct gl_list_implementation): Rename and change methods accordingly.
58646         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
58647         (gl_list_nx_create): Renamed from gl_list_create.
58648         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58649         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58650         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58651         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58652         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58653         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58654         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58655         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58656         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
58657         gl_list_create_empty.
58658         (gl_list_nx_create): Renamed from gl_list_create.
58659         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58660         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58661         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58662         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58663         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58664         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58665         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58666         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58667         * lib/gl_array_list.c: Don't include xalloc.h.
58668         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
58669         NULL upon out-of-memory.
58670         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
58671         out-of-memory.
58672         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
58673         Change return type to 'int'.
58674         (gl_array_nx_set_at): Renamed from gl_array_set_at.
58675         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58676         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
58677         upon out-of-memory.
58678         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
58679         upon out-of-memory.
58680         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
58681         upon out-of-memory.
58682         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
58683         upon out-of-memory.
58684         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
58685         out-of-memory.
58686         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
58687         Update.
58688         (gl_array_list_implementation): Update.
58689         * lib/gl_carray_list.c: Don't include xalloc.h.
58690         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
58691         Return NULL upon out-of-memory.
58692         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
58693         out-of-memory.
58694         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
58695         Change return type to 'int'.
58696         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
58697         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58698         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
58699         upon out-of-memory.
58700         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
58701         upon out-of-memory.
58702         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
58703         out-of-memory.
58704         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
58705         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
58706         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
58707         Update.
58708         (gl_carray_list_implementation): Update.
58709         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
58710         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
58711         gl_linked_create_empty. Return NULL upon out-of-memory.
58712         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
58713         out-of-memory.
58714         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
58715         Change return type to 'int'. Return -1 upon out-of-memory.
58716         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
58717         out-of-memory.
58718         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
58719         upon out-of-memory.
58720         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
58721         upon out-of-memory.
58722         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
58723         NULL upon out-of-memory.
58724         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
58725         upon out-of-memory.
58726         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
58727         out-of-memory.
58728         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
58729         Update.
58730         * lib/gl_linked_list.c: Don't include xalloc.h.
58731         (gl_linked_list_implementation): Update.
58732         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
58733         (add_to_bucket): Change return type to 'int'.
58734         (gl_linkedhash_list_implementation): Update.
58735         * lib/gl_anytree_list1.h (free_subtree): New function.
58736         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
58737         gl_tree_create_empty. Return NULL upon out-of-memory.
58738         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
58739         Change return type to 'int'. Return -1 upon out-of-memory.
58740         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
58741         out-of-memory.
58742         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
58743         (gl_tree_remove_node): New function, moved here from
58744         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
58745         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
58746         Update.
58747         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
58748         malloc, not xmalloc. Return NULL upon out-of-memory.
58749         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58750         out-of-memory.
58751         (gl_tree_remove_node_from_tree): New function, extracted from
58752         gl_tree_remove_node.
58753         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58754         upon out-of-memory.
58755         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58756         out-of-memory.
58757         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58758         upon out-of-memory.
58759         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58760         upon out-of-memory.
58761         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58762         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
58763         not xmalloc. Return NULL upon out-of-memory.
58764         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58765         out-of-memory.
58766         (gl_tree_remove_node_from_tree): New function, extracted from
58767         gl_tree_remove_node.
58768         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58769         upon out-of-memory.
58770         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58771         out-of-memory.
58772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58773         upon out-of-memory.
58774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58775         upon out-of-memory.
58776         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58777         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
58778         gl_anytree_list1.h before gl_anyavltree_list2.h.
58779         (gl_avltree_list_implementation): Update.
58780         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
58781         gl_anytree_list1.h before gl_anyavltree_list2.h.
58782         (gl_rbtree_list_implementation): Update.
58783         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
58784         Change return type to 'int'. Return -1 upon out-of-memory. Use
58785         __builtin_expect.
58786         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
58787         (gl_avltreehash_list_implementation): Update.
58788         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
58789         (gl_rbtreehash_list_implementation): Update.
58790         * modules/array-list (Depends-on): Remove xalloc.
58791         * modules/carray-list (Depends-on): Likewise.
58792         * modules/linked-list (Depends-on): Likewise.
58793         * modules/linkedhash-list (Depends-on): Likewise.
58794         * modules/avltree-list (Depends-on): Likewise.
58795         * modules/rbtree-list (Depends-on): Likewise.
58796         * modules/avltreehash-list (Depends-on): Likewise.
58797         * modules/rbtreehash-list (Depends-on): Likewise.
58799         * modules/xsublist: New file.
58800         * lib/gl_xsublist.h: New file.
58801         * lib/gl_xsublist.c: New file.
58802         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
58803         (gl_sublist_nx_create): New declaration.
58804         * lib/gl_sublist.c: Don't include xalloc.h.
58805         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
58806         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
58807         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
58808         Change return type to 'int'. Return -1 upon out-of-memory.
58809         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
58810         upon out-of-memory.
58811         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
58812         NULL upon out-of-memory.
58813         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
58814         upon out-of-memory.
58815         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
58816         NULL upon out-of-memory.
58817         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
58818         NULL upon out-of-memory.
58819         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
58820         upon out-of-memory.
58821         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
58822         (gl_sublist_list_implementation): Update.
58823         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
58824         upon out-of-memory.
58825         * modules/sublist (Depends-on): Remove xalloc.
58827         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
58828         * tests/test-carray_list.c: Likewise.
58829         * tests/test-linked_list.c: Likewise.
58830         * tests/test-linkedhash_list.c: Likewise.
58831         * tests/test-avltree_list.c: Likewise.
58832         * tests/test-rbtree_list.c: Likewise.
58833         * tests/test-avltreehash_list.c: Likewise.
58834         * tests/test-rbtreehash_list.c: Likewise.
58835         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
58836         * modules/carray-list-tests (Makefile.am): Likewise.
58837         * modules/linked-list-tests (Makefile.am): Likewise.
58838         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58839         * modules/avltree-list-tests (Makefile.am): Likewise.
58840         * modules/rbtree-list-tests (Makefile.am): Likewise.
58841         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58842         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58844         * NEWS: Mention the changes.
58846         * lib/clean-temp.c: Include gl_xlist.h.
58847         * modules/clean-temp (Depends-on): Add xlist.
58849         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58850         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58852         * tests/test-array_oset.c: Include gl_xlist.h.
58853         * modules/array-oset-tests (Depends-on): Add xlist.
58855         Reported by José E. Marchesi <jemarch@gnu.org>.
58857 2009-12-13  Bruno Haible  <bruno@clisp.org>
58859         Move the malloc checking from module 'oset' to new module 'xoset'.
58860         * modules/xoset: New file.
58861         * lib/gl_xoset.h: New file.
58862         * lib/gl_xoset.c: New file.
58863         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58864         declarations.
58865         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58866         (struct gl_oset_implementation): Rename and change methods accordingly.
58867         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58868         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58869         'int'. Mark as __warn_unused_result__.
58870         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58871         gl_oset_create_empty.
58872         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58873         'int'.
58874         * lib/gl_array_oset.c: Don't include xalloc.h.
58875         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58876         malloc, not xmalloc.
58877         (grow): Change return type to 'int'. Don't call xalloc_die.
58878         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58879         to 'int'.
58880         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58881         'int'.
58882         (gl_array_oset_implementation): Update.
58883         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58884         gl_tree_create_empty.
58885         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58886         'int'.
58887         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58888         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58889         xmalloc.
58890         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58891         not xmalloc.
58892         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58893         xmalloc.
58894         (gl_avltree_oset_implementation): Update.
58895         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58896         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58897         xmalloc.
58898         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58899         not xmalloc.
58900         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58901         xmalloc.
58902         (gl_rbtree_oset_implementation): Update.
58903         * modules/array-oset (Depends-on): Remove xalloc.
58904         * modules/avltree-oset (Depends-on): Likewise.
58905         * modules/rbtree-oset (Depends-on): Likewise.
58906         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58907         * tests/test-avltree_oset.c: Likewise.
58908         * tests/test-rbtree_oset.c: Likewise.
58909         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58910         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58911         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58912         * NEWS: Mention the change.
58914 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58916         maint.mk: allow a project to override release-prep commands
58917         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58918         commands into a new rule.
58919         (release-prep): New rule.
58920         (release-prep-hook): New overridable variable.
58922 2009-12-13  Bruno Haible  <bruno@clisp.org>
58924         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58926 2009-12-13  Jim Meyering  <meyering@redhat.com>
58928         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58929         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58931 2009-12-12  Bruno Haible  <bruno@clisp.org>
58933         duplocale: Tweak.
58934         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58936 2009-12-12  Karl Berry  <karl@gnu.org>
58938         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58940 2009-12-12  Bruno Haible  <bruno@clisp.org>
58942         * m4/po.m4: Undo incorrect untabification.
58944 2009-12-12  Bruno Haible  <bruno@clisp.org>
58946         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58947         * modules/c-strtod (Depends-on): Add locale.
58948         * modules/c-strtold (Depends-on): Likewise.
58950 2009-12-12  Bruno Haible  <bruno@clisp.org>
58952         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58954 2009-12-11  Eric Blake  <ebb9@byu.net>
58956         setenv: relax requirement in light of POSIX ruling
58957         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58958         not NULL.
58959         * tests/test-setenv.c (main): Relax test.
58960         * tests/test-unsetenv.c (main): Likewise.
58961         * doc/posix-functions/setenv.texi (setenv): Document this.
58962         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58964 2009-12-11  Bruno Haible  <bruno@clisp.org>
58966         New module 'fd-safer-flag'.
58967         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58968         * lib/dup-safer.c (dup_safer_flag): Remove function.
58969         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58970         * lib/fd-safer.c (fd_safer_flag): Remove function.
58971         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58972         * modules/cloexec (configure.ac): Drop indicator macro.
58973         * modules/fd-safer-flag: New file.
58974         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58975         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58976         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58978 2009-12-11  Bruno Haible  <bruno@clisp.org>
58980         Tests for module 'nl_langinfo'.
58981         * modules/nl_langinfo-tests: New file.
58982         * tests/test-nl_langinfo.sh: New file.
58983         * tests/test-nl_langinfo.c: New file.
58985         New module 'nl_langinfo'.
58986         * lib/nl_langinfo.c: New file.
58987         * m4/nl_langinfo.m4: New file.
58988         * modules/nl_langinfo: New file.
58989         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58991 2009-12-11  Bruno Haible  <bruno@clisp.org>
58993         Tests for module 'langinfo'.
58994         * modules/langinfo-tests: New file.
58995         * tests/test-langinfo.c: New file.
58997         New module 'langinfo'.
58998         * lib/langinfo.in.h: New file.
58999         * m4/langinfo_h.m4: New file.
59000         * modules/langinfo: New file.
59001         * doc/posix-headers/langinfo.texi: Mention the new module.
59003 2009-12-11  Bruno Haible  <bruno@clisp.org>
59005         * lib/config.charset: Untabify.
59007 2009-12-11  Bruno Haible  <bruno@clisp.org>
59009         * modules/unistd-safer (configure.ac): Drop indicator macro.
59011 2009-12-11  Bruno Haible  <bruno@clisp.org>
59013         Move pipe2-safer code to its own file.
59014         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
59015         * lib/pipe-safer.c (pipe2_safer): Remove function.
59016         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
59017         (Makefile.am): Add it to lib_SOURCES.
59019 2009-12-10  Bruno Haible  <bruno@clisp.org>
59021         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
59023 2009-12-10  Bruno Haible  <bruno@clisp.org>
59025         Declare which arguments expect non-NULL values, for GCC and clang.
59026         * build-aux/arg-nonnull.h: New file.
59027         * modules/arg-nonnull: New file.
59028         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
59029         (inet_ntop, inet_pton): Use it.
59030         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
59031         (closedir, dirfd, opendir, scandir, alphasort): Use it.
59032         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
59033         (open, openat): Use it.
59034         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
59035         (fnmatch): Use it.
59036         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
59037         (getopt, getopt_long, getopt_long_only): Use it.
59038         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
59039         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
59040         Use it.
59041         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
59042         (iconv_open): Use it.
59043         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
59044         (strtoimax, strtoumax): Use it.
59045         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
59046         (duplocale): Use it.
59047         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
59048         (frexp, frexpl): Use it.
59049         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
59050         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
59051         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
59052         (tsearch, tfind, tdelete, twalk): Use it.
59053         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
59054         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
59055         sigpending): Use it.
59056         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
59057         (posix_spawn, posix_spawnp, posix_spawnattr_init,
59058         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
59059         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
59060         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
59061         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
59062         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
59063         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
59064         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
59065         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
59066         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
59067         Use it.
59068         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
59069         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
59070         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
59071         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
59072         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
59073         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
59074         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
59075         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
59076         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
59077         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
59078         strtoull, unsetenv): Use it.
59079         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
59080         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
59081         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
59082         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
59083         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
59084         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
59085         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
59086         (strcasecmp, strncasecmp): Use it.
59087         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
59088         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
59089         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
59090         rpl_setsockopt): Use it.
59091         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
59092         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
59093         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
59094         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
59095         (gettimeofday): Use it.
59096         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
59097         (times): Use it.
59098         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
59099         (uname): Use it.
59100         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
59101         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
59102         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
59103         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
59104         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
59105         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
59106         unlinkat, write): Use it.
59107         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
59108         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
59109         * lib/argv-iter.h: Include arg-nonnull.h.
59110         (_ATTRIBUTE_NONNULL_): Remove macro.
59111         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
59112         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
59113         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
59114         optimization.
59115         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
59116         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
59117         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
59118         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
59119         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
59120         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
59121         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
59122         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
59123         * modules/arpa_inet (Depends-on): Add arg-nonnull.
59124         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
59125         * modules/dirent (Depends-on): Add arg-nonnull.
59126         (Makefile.am): Insert arg-nonnull.h into dirent.h.
59127         * modules/fcntl-h (Depends-on): Add arg-nonnull.
59128         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
59129         * modules/fnmatch (Depends-on): Add arg-nonnull.
59130         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
59131         * modules/getopt-posix (Depends-on): Add arg-nonnull.
59132         (Makefile.am): Insert arg-nonnull.h into getopt.h.
59133         * modules/glob (Depends-on): Add arg-nonnull.
59134         (Makefile.am): Insert arg-nonnull.h into glob.h.
59135         * modules/iconv_open (Depends-on): Add arg-nonnull.
59136         (Makefile.am): Insert arg-nonnull.h into iconv.h.
59137         * modules/inttypes (Depends-on): Add arg-nonnull.
59138         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
59139         * modules/locale (Depends-on): Add arg-nonnull.
59140         (Makefile.am): Insert arg-nonnull.h into locale.h.
59141         * modules/math (Depends-on): Add arg-nonnull.
59142         (Makefile.am): Insert arg-nonnull.h into math.h.
59143         * modules/netdb (Depends-on): Add arg-nonnull.
59144         (Makefile.am): Insert arg-nonnull.h into netdb.h.
59145         * modules/search (Depends-on): Add arg-nonnull.
59146         (Makefile.am): Insert arg-nonnull.h into search.h.
59147         * modules/signal (Depends-on): Add arg-nonnull.
59148         (Makefile.am): Insert arg-nonnull.h into signal.h.
59149         * modules/spawn (Depends-on): Add arg-nonnull.
59150         (Makefile.am): Insert arg-nonnull.h into spawn.h.
59151         * modules/stdio (Depends-on): Add arg-nonnull.
59152         (Makefile.am): Insert arg-nonnull.h into stdio.h.
59153         * modules/stdlib (Depends-on): Add arg-nonnull.
59154         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
59155         * modules/string (Depends-on): Add arg-nonnull.
59156         (Makefile.am): Insert arg-nonnull.h into string.h.
59157         * modules/strings (Depends-on): Add arg-nonnull.
59158         (Makefile.am): Insert arg-nonnull.h into strings.h.
59159         * modules/sys_socket (Depends-on): Add arg-nonnull.
59160         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
59161         * modules/sys_stat (Depends-on): Add arg-nonnull.
59162         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
59163         * modules/sys_time (Depends-on): Add arg-nonnull.
59164         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
59165         * modules/sys_times (Depends-on): Add arg-nonnull.
59166         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
59167         * modules/sys_utsname (Depends-on): Add arg-nonnull.
59168         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
59169         * modules/time (Depends-on): Add arg-nonnull.
59170         (Makefile.am): Insert arg-nonnull.h into time.h.
59171         * modules/unistd (Depends-on): Add arg-nonnull.
59172         (Makefile.am): Insert arg-nonnull.h into unistd.h.
59173         * modules/wchar (Depends-on): Add arg-nonnull.
59174         (Makefile.am): Insert arg-nonnull.h into wchar.h.
59175         * modules/argv-iter (Depends-on): Add arg-nonnull.
59176         * tests/test-canonicalize.c (null_ptr): New function.
59177         (main): Use it.
59178         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
59179         (main): Use it.
59180         * tests/test-memmem.c (null_ptr): New function.
59181         (main): Use it.
59182         Reported by Jim Meyering.
59184 2009-12-10  Bruno Haible  <bruno@clisp.org>
59186         Use spaces for indentation, not tabs.
59187         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
59188         * m4/*.m4: Untabify.
59189         * build-aux/*.h: Untabify.
59190         * tests/**/*.[hc]: Untabify.
59191         * README: New section "Indent with spaces, not TABs", based on
59192         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
59193         * NEWS: Mention the change.
59195 2009-12-10  Bruno Haible  <bruno@clisp.org>
59197         pty test: Fix link error.
59198         * modules/pty-tests (Makefile.am): Add the default LDADD value to
59199         test_pty_LDADD.
59201 2009-12-07  Simon Josefsson  <simon@josefsson.org>
59203         * modules/pty: New file.
59204         * modules/pty-tests: New file.
59205         * m4/pty.m4: New file.
59206         * tests/test-pty.c: New file.
59207         * doc/glibc-headers/pty.texi: Modified.
59208         * doc/glibc-functions/forkpty.texi: Modified.
59209         * doc/glibc-functions/openpty.texi: Modified.
59211 2009-12-10  Bruno Haible  <bruno@clisp.org>
59213         Avoid syntax error in C++ mode.
59214         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
59216 2009-12-10  Bruno Haible  <bruno@clisp.org>
59218         Use sed with option -e.
59219         * gnulib-tool (func_version, func_emit_copyright_notice,
59220         func_emit_initmacro_end, func_import, func_create_testdir): Pass
59221         option -e to sed.
59222         * modules/link-warning (Makefile.am): Likewise.
59224 2009-12-10  Jim Meyering  <meyering@redhat.com>
59226         mgetgroups: do not write bytes beyond end of malloc'd buffer
59227         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
59228         username, we call getgroups with a one-element-shorter buffer,
59229         but still told it the length was original, max_n_groups.
59231 2009-12-09  Eric Blake  <ebb9@byu.net>
59233         cloexec: relax license
59234         * modules/cloexec (Maintainer): Add myself.
59235         (License): Use LGPL, not GPL.
59237         link-warning: optimize generation
59238         * modules/link-warning (Makefile.am): Reduce process usage.
59240 2009-12-09  Bruno Haible  <bruno@clisp.org>
59242         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
59243         workaround was added on 2009-11-17.
59245 2009-12-09  Jim Meyering  <meyering@redhat.com>
59246             Bruno Haible  <bruno@clisp.org>
59248         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
59249         * modules/link-warning (Makefile.am): Make the comment-removing sed
59250         command more robust in the face of bootstrap-prepended comment lines.
59252 2009-12-09  Bruno Haible  <bruno@clisp.org>
59254         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
59255         most one group.
59257 2009-12-09  Simon Josefsson  <simon@josefsson.org>
59258             Bruno Haible  <bruno@clisp.org>
59260         * build-aux/link-warning.h: Add copyright notice.
59261         * modules/link-warning (Makefile.am): Generate link-warning.h from
59262         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
59263         * NEWS: Mention change in link-warning module.
59264         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
59265         * modules/dirent (Makefile.am): Add dependency to dirent.h.
59266         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
59267         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
59268         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
59269         * modules/math (Makefile.am): Add dependency to math.h.
59270         * modules/search (Makefile.am): Add dependency to search.h.
59271         * modules/signal (Makefile.am): Add dependency to signal.h.
59272         * modules/spawn (Makefile.am): Add dependency to spawn.h.
59273         * modules/stdio (Makefile.am): Add dependency to stdio.h.
59274         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
59275         * modules/string (Makefile.am): Add dependency to string.h.
59276         * modules/strings (Makefile.am): Add dependency to strings.h.
59277         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
59278         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
59279         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
59280         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
59281         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
59282         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
59283         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
59284         * modules/unistd (Makefile.am): Add dependency to unistd.h.
59285         * modules/wchar (Makefile.am): Add dependency to wchar.h.
59287 2009-12-09  Bruno Haible  <bruno@clisp.org>
59289         fchdir: Optimize away rpl_fstat when possible.
59290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
59291         REPLACE_OPEN_DIRECTORY.
59292         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
59294 2009-12-09  Bruno Haible  <bruno@clisp.org>
59296         * lib/fchdir.c: Update comment.
59298 2009-12-09  Bruno Haible  <bruno@clisp.org>
59300         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
59302 2009-12-08  Eric Blake  <ebb9@byu.net>
59304         fchdir: avoid memory leak on re-registration.
59305         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
59307 2009-12-08  Jim Meyering  <meyering@redhat.com>
59309         init.sh: avoid Solaris 10 /bin/sh portability problem
59310         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
59311         sourced script:
59312           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
59313           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
59314           bar
59315         tests/init.sh relied on that, accepting a --set-path=DIR argument,
59316         and two tests used that idiom.
59317         * tests/init.sh: Update suggested usage comments.
59318         (path_prepend_): New function, to be used in place
59319         of the --src-path=DIR option.
59320         (setup_): Move PATH-prepending code into path_prepend_.
59321         * tests/test-pread.sh: Adapt to new usage.
59322         * tests/test-xalloc-die.sh: Likewise.
59324 2009-12-08  Simon Josefsson  <simon@josefsson.org>
59326         * doc/gnulib.texi (Glibc pty.h): Add.
59327         * doc/glibc-functions/forkpty.texi: Add.
59328         * doc/glibc-functions/openpty.texi: Add.
59329         Suggested by Bruno Haible.
59331 2009-12-08  Eric Blake  <ebb9@byu.net>
59333         fchdir: fix logic bugs
59334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
59335         * tests/test-fchdir.c (main): Enhance test.
59336         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
59337         is in use.
59339         dup2: fix logic bugs
59340         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
59341         REPLACE_DUP2 to decide when rpl_dup2 is needed.
59342         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
59343         exists.
59344         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
59346 2009-12-07  Eric Blake  <ebb9@byu.net>
59348         unlink: fix m4 detection
59349         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
59351         unistd-safer: add unit test
59352         * modules/unistd-safer-tests: New file.
59353         * tests/test-dup-safer.c: Likewise.
59354         * tests/test-cloexec.c (setmode): Avoid compiler warning.
59355         * tests/test-dup2.c (setmode): Likewise.
59356         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
59358         cloexec: preserve text vs. binary across dup_cloexec
59359         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
59360         mode.
59361         * modules/dup2-tests (Depends-on): Add binary-io.
59362         * modules/cloexec-tests (Depends-on): Likewise.
59363         * tests/test-dup2.c (setmode, is_mode): New helpers.
59364         (main): Add tests that translation mode is preserved.
59365         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
59366         Reported by Bruno Haible.
59368         mgetgroups: reduce duplicate listings
59369         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
59370         resulting array.
59371         * tests/test-chown.h (test_chown): Simplify client.
59372         * tests/test-lchown.h (test_lchown): Likewise.
59374 2009-12-06  Bruno Haible  <bruno@clisp.org>
59376         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
59377         value.
59379 2009-12-06  Bruno Haible  <bruno@clisp.org>
59381         * lib/progname.c: Include stdio.h, stdlib.h.
59382         (set_program_name): Reject a NULL argument.
59384 2009-12-05  Eric Blake  <ebb9@byu.net>
59386         pipe2-safer: new module
59387         * modules/pipe2-safer: New file.
59388         * lib/unistd-safer.h (pipe2_safer): New prototype.
59389         * lib/unistd--.h (pipe2): New wrapper.
59390         * lib/pipe-safer.c (pipe2_safer): New function.
59391         * modules/pipe (Depends-on): Add pipe2-safer.
59392         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
59394         stdlib-safer: preserve cloexec flag for mkostemp[s]
59395         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
59396         fd_safer_flag.
59398         unistd-safer: allow preservation of cloexec status via flag
59399         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
59400         prototypes.
59401         * lib/dup-safer.c (dup_safer_flag): New function.
59402         * lib/fd-safer.c (fd_safer_flag): Likewise.
59403         * modules/cloexec (configure.ac): Set witness.
59405         test-dup2: enhance test
59406         * modules/dup2-tests (Depends-on): Add cloexec.
59407         * tests/test-dup2.c (main): Enhance test.
59409         cloexec: add dup_cloexec
59410         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
59411         header and comments.
59412         * lib/cloexec.c (set_cloexec_flag): Add comments.
59413         (dup_cloexec): New function, with mingw implementation borrowed
59414         from...
59415         * lib/w32spawn.h (dup_noinherit): ...here.
59416         * modules/execute (Depends-on): Add cloexec.
59417         * modules/pipe (Depends-on): Likewise.
59418         * modules/cloexec (Depends-on): Add dup2.
59419         * modules/cloexec-tests (Files): New file.
59420         * tests/test-cloexec.c: Likewise.
59422         test-xalloc-die: fix test for mingw
59423         * modules/xalloc-die-tests (Files): Add tests/init.sh.
59424         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
59425         directory and .exe suffix off argv[0] output.
59427         test-fseeko: fix test for mingw
59428         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
59429         than undefining fseek, so test will pass on mingw.
59431 2009-12-05  Bruno Haible  <bruno@clisp.org>
59433         * lib/progname.h (set_program_name): Clarify specification.
59434         * lib/progname.c (set_program_name): Likewise.
59435         Reported by Jim Meyering.
59437 2009-12-05  Jim Meyering  <meyering@redhat.com>
59439         maint.mk: backslash-escape parens in default regexp
59440         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
59441         backslash-escape the literal parentheses.
59443         maint.mk: news-date-check: use grep -E
59444         * top/maint.mk (today): Define a Make variable, not a...
59445         (news-date-check): ...shell variable.
59446         (news-date-regexp): Use the Make variable.
59447         Use grep's -E option.  Change the failing diagnostic to mention
59448         the variable, $(news-date-regexp).
59450 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
59452         maintainer-makefile: allow customization of NEWS entry format
59453         * top/maint.mk (news-date-regexp): New overridable variable.
59454         (news-date-check): Use it.
59456 2009-12-04  Eric Blake  <ebb9@byu.net>
59458         mgetgroups: add xgetgroups, and avoid ENOSYS failures
59459         * lib/mgetgroups.h (xgetgroups): New prototype.
59460         * lib/mgetgroups.c (xgetgroups): New wrapper.
59461         (mgetgroups): Handle ENOSYS.
59462         * modules/mgetgroups (Depends-on): Add realloc.
59463         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
59465         mgetgroups: avoid argument promotion issues with -1
59466         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
59467         for invalid gid_t.
59468         * tests/test-chown.h (getegid, test_chown): Likewise.
59469         * tests/test-lchown.h (getegid, test_lchown): Likewise.
59471 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
59473         exclude: Fix header file problems.
59474         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
59476 2009-12-01  Jim Meyering  <meyering@redhat.com>
59478         fts: fts_open: do not let an empty string cause immediate failure
59479         This is required in support of GNU rm, for which the command
59480         "rm A '' B" must process and remove both A and B, in spite of
59481         the empty string argument.
59482         * lib/fts.c (fts_open): Do not let the presence of an empty string
59483         cause fts_open to fail immediately.  Most fts-using tools must be
59484         able to process all arguments, in order, and can be expected to
59485         diagnose such arguments themselves.
59487 2009-11-30  Eric Blake  <ebb9@byu.net>
59489         utimens: fix compilation error
59490         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
59491         Declare variable at right scope.
59493 2009-11-29  Jim Meyering  <meyering@redhat.com>
59495         bootstrap: handle perl-5.11's changed --version output
59496         * build-aux/bootstrap (get_version): Handle perl separately,
59497         since perl-5.11's --version output is different.
59499 2009-11-28  Jim Meyering  <meyering@redhat.com>
59501         userspec: depend on the inttostr module, too
59502         * modules/userspec (Depends-on): Add inttostr.
59504         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
59505         * lib/userspec.c (parse_with_separator): Do not accept a user ID
59506         number of MAXUID when it evaluates to (uid_t) -1.
59507         Likewise for group ID.  Reported by Matt McCutchen in
59508         <http://savannah.gnu.org/bugs/?28113>
59510         userspec: reformat to use spaces, not TABs
59511         * lib/userspec.c: Expand TABs to spaces.
59512         Add Emacs' "indent-tabs-mode: nil" hint.
59514 2009-11-27  Eric Blake  <ebb9@byu.net>
59516         getopt-gnu: flush out another BSD bug
59517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
59518         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
59519         flush out BSD bug.
59520         * tests/test-getopt.h (test_getopt): End lists with NULL.
59521         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59522         (test_getopt_long_posix): Enhance test.
59523         * modules/getopt-posix-tests (Depends-on): Add stdbool.
59524         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
59525         getopt-gnu.
59526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59527         Likewise.
59529 2009-11-27  Simon Josefsson  <simon@josefsson.org>
59531         * modules/idpriv-droptemp-tests (Notice): Fix text.
59533 2009-11-27  Jim Meyering  <meyering@redhat.com>
59535         test-xalloc-die: avoid spurious failure due to libtool argv difference
59536         In a libtool-enabled project, this test would fail due to a difference
59537         in the emitted program name, e.g.,
59538         -test-xalloc-die: memory exhausted
59539         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
59540         Use program to avoid that.
59541         * modules/xalloc-die-tests (Depends-on): Add progname.
59542         * tests/test-xalloc-die.c: Include progname.h".
59543         (program_name): Remove decl.
59544         (main): Call set_program_name.
59545         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
59547 2009-11-26  Richard Jones  <rjones@redhat.com>
59549         w32sock: leave win32 error in place.
59550         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
59552 2009-11-26  Eric Blake  <ebb9@byu.net>
59554         init.sh: suggest to use skip_ and fail_ functions in comments
59555         * tests/init.sh: Add a sentence.
59557 2009-11-25  Bruno Haible  <bruno@clisp.org>
59559         init.sh: add documentation in comments
59560         * tests/init.sh: Add some developer and user documentation.
59562 2009-11-26  Jim Meyering  <meyering@redhat.com>
59564         init.sh: accommodate even those who specify bogus srcdir manually
59565         * tests/init.sh: Normally, srcdir is guaranteed by automake and
59566         configure-time tests to be sanitized, so that there is no need to
59567         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
59568         (with no double quotes) suffices.  However, since tests may be
59569         invoked manually, and since you may explicitly set srcdir to the
59570         name of a directory containing spaces, do quote its uses here.
59571         * tests/test-pread.sh: Likewise.
59572         Suggested by Bruno Haible.
59574         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
59575         * tests/test-pread.sh: Write no data into the pipe, because
59576         test-pread actually reads none.  This avoids a diagnostic,
59577         "bash: echo: write error: Broken pipe", that arises in the unusual
59578         event something is ignoring SIGPIPE, and might be interpreted
59579         as some sort of failure.  Reported by Bruno Haible.
59581 2009-11-25  Jim Meyering  <meyering@redhat.com>
59583         test-pread: cover failure with ESPIPE and EINVAL
59584         * tests/test-pread.c (main): Test for failure, too.
59585         * tests/test-pread.sh: Invoke with stdin on a pipe.
59586         Suggested by Eric Blake.
59588         pread: improvement and fix
59589         * modules/pread (Depends-on): Depend on lseek, for portability to
59590         e.g., mingw.  Suggested by Eric Blake.
59591         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
59593         unistd.in.h: correct declaration of pread
59594         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
59595         Reported by Richard W.M. Jones.
59597         test-pread.sh: distribute the test script
59598         * modules/pread-tests (Files): Include test-pread.sh.
59600         test-pread.sh: clean up
59601         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
59602         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
59603         That is unnecessary, since it's always ".".
59604         Suggestion from Eric Blake.
59606         test-pread.sh: make executable
59607         * tests/test-pread.sh: Set executable bit.
59608         Reported by Eric Blake.
59610         correct typo in test-pread.sh
59611         * tests/test-pread.sh: Add #! line.
59613         test pread
59614         * tests/test-pread.c: New file.
59615         * tests/test-pread.sh: Likewise.
59616         * modules/pread-tests: Likewise.
59618         pread: new module
59619         * modules/pread: New file.
59620         * lib/unistd.in.h (pread): Define/declare.
59621         * lib/pread.c (pread): New file.
59622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
59623         * modules/unistd (Makefile.am): Substitute witnesses.
59624         * doc/posix-functions/pread.texi (pread): Update.
59625         * MODULES.html.sh: Add pread.
59627 2009-11-25  Jim Meyering  <meyering@redhat.com>
59629         tests/init.sh: new file to be used via most *.sh tests
59630         * tests/init.sh: New file.
59632 2009-11-25  Eric Blake  <ebb9@byu.net>
59634         utimens: work around older Linux failure with symlinks
59635         * lib/utimens.c (lutimensat_works_really): New variable.
59636         (fdutimens, lutimens): Use it to manage kernels that support
59637         nanosecond times on files, but not on symlinks.
59638         Reported by Ondřej Vašík.
59640         utimes: fix configure grammar
59641         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
59643 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
59645         regex: Fix fastmap for multibyte character ranges.
59646         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
59647         characters when a multibyte character range is included.
59649 2009-11-22  Andy Wingo  <wingo@pobox.com>
59651         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
59652         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
59654 2009-11-24  Bruno Haible  <bruno@clisp.org>
59656         doc: Most *_l functions exist in MacOS X 10.5.
59657         * doc/posix-functions/duplocale.texi: Update platforms list.
59658         * doc/posix-functions/freelocale.texi: Likewise.
59659         * doc/posix-functions/newlocale.texi: Likewise.
59660         * doc/posix-functions/uselocale.texi: Likewise.
59661         * doc/posix-functions/isalnum_l.texi: Likewise.
59662         * doc/posix-functions/isalpha_l.texi: Likewise.
59663         * doc/posix-functions/isblank_l.texi: Likewise.
59664         * doc/posix-functions/iscntrl_l.texi: Likewise.
59665         * doc/posix-functions/isdigit_l.texi: Likewise.
59666         * doc/posix-functions/isgraph_l.texi: Likewise.
59667         * doc/posix-functions/islower_l.texi: Likewise.
59668         * doc/posix-functions/isprint_l.texi: Likewise.
59669         * doc/posix-functions/ispunct_l.texi: Likewise.
59670         * doc/posix-functions/isspace_l.texi: Likewise.
59671         * doc/posix-functions/isupper_l.texi: Likewise.
59672         * doc/posix-functions/iswalnum_l.texi: Likewise.
59673         * doc/posix-functions/iswalpha_l.texi: Likewise.
59674         * doc/posix-functions/iswblank_l.texi: Likewise.
59675         * doc/posix-functions/iswcntrl_l.texi: Likewise.
59676         * doc/posix-functions/iswctype_l.texi: Likewise.
59677         * doc/posix-functions/iswdigit_l.texi: Likewise.
59678         * doc/posix-functions/iswgraph_l.texi: Likewise.
59679         * doc/posix-functions/iswlower_l.texi: Likewise.
59680         * doc/posix-functions/iswprint_l.texi: Likewise.
59681         * doc/posix-functions/iswpunct_l.texi: Likewise.
59682         * doc/posix-functions/iswspace_l.texi: Likewise.
59683         * doc/posix-functions/iswupper_l.texi: Likewise.
59684         * doc/posix-functions/iswxdigit_l.texi: Likewise.
59685         * doc/posix-functions/isxdigit_l.texi: Likewise.
59686         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
59687         * doc/posix-functions/strcasecmp_l.texi: Likewise.
59688         * doc/posix-functions/strcoll_l.texi: Likewise.
59689         * doc/posix-functions/strfmon_l.texi: Likewise.
59690         * doc/posix-functions/strftime_l.texi: Likewise.
59691         * doc/posix-functions/strncasecmp_l.texi: Likewise.
59692         * doc/posix-functions/strxfrm_l.texi: Likewise.
59693         * doc/posix-functions/tolower_l.texi: Likewise.
59694         * doc/posix-functions/toupper_l.texi: Likewise.
59695         * doc/posix-functions/towctrans_l.texi: Likewise.
59696         * doc/posix-functions/towlower_l.texi: Likewise.
59697         * doc/posix-functions/towupper_l.texi: Likewise.
59698         * doc/posix-functions/wcscoll_l.texi: Likewise.
59699         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
59700         * doc/posix-functions/wctrans_l.texi: Likewise.
59701         * doc/posix-functions/wctype_l.texi: Likewise.
59702         * doc/glibc-functions/strptime_l.texi: Likewise.
59703         * doc/glibc-functions/strtod_l.texi: Likewise.
59704         * doc/glibc-functions/strtof_l.texi: Likewise.
59705         * doc/glibc-functions/strtol_l.texi: Likewise.
59706         * doc/glibc-functions/strtold_l.texi: Likewise.
59707         * doc/glibc-functions/strtoll_l.texi: Likewise.
59708         * doc/glibc-functions/strtoul_l.texi: Likewise.
59709         * doc/glibc-functions/strtoull_l.texi: Likewise.
59710         * doc/glibc-functions/wcsftime_l.texi: Likewise.
59711         * doc/glibc-functions/wcstod_l.texi: Likewise.
59712         * doc/glibc-functions/wcstof_l.texi: Likewise.
59713         * doc/glibc-functions/wcstol_l.texi: Likewise.
59714         * doc/glibc-functions/wcstold_l.texi: Likewise.
59715         * doc/glibc-functions/wcstoll_l.texi: Likewise.
59716         * doc/glibc-functions/wcstoul_l.texi: Likewise.
59717         * doc/glibc-functions/wcstoull_l.texi: Likewise.
59719 2009-11-24  Bruno Haible  <bruno@clisp.org>
59721         duplocale: Fix logic bug.
59722         * lib/duplocale.c: Don't include <langinfo.h>.
59723         (_NL_LOCALE_NAME): Remove macro.
59724         (rpl_duplocale): Use setlocale instead of nl_langinfo.
59725         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
59727 2009-11-23  Jim Meyering  <meyering@redhat.com>
59729         test-update-copyright: don't hard-code /usr/bin/perl
59730         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
59731         perl to print the current year.  Gilles Espinasse reported that
59732         the replaced use of perl was hard-coded as /usr/bin/perl.
59734 2009-11-23  Bruno Haible  <bruno@clisp.org>
59736         duplocale: Add support for glibc 2.3.x.
59737         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
59739 2009-11-22  Bruno Haible  <bruno@clisp.org>
59741         vasnprintf: Tiny optimization.
59742         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
59743         MacOS X.
59745 2009-11-22  Bruno Haible  <bruno@clisp.org>
59747         Tests for module 'duplocale'.
59748         * modules/duplocale-tests: New file.
59749         * tests/test-duplocale.c: New file.
59751         New module 'duplocale'.
59752         * m4/duplocale.m4: New file.
59753         * lib/locale.in.h (duplocale): New declaration.
59754         * lib/duplocale.c: New file.
59755         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
59756         gl_LOCALE_H_DEFAULTS): New macros.
59757         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
59758         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
59759         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
59760         REPLACE_DUPLOCALE.
59761         * modules/duplocale: New file.
59762         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
59764 2009-11-22  Bruno Haible  <bruno@clisp.org>
59766         * modules/locale-tests (configure.ac): Test for newlocale function.
59767         * tests/test-locale.c: When the system has extended locale functions,
59768         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
59770         locale: Make locale_t available when possible.
59771         * lib/locale.in.h: Include <xlocale.h> when it exists.
59772         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
59773         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
59774         * modules/locale (Depends-on): Add extensions.
59775         (Makefile.am): Also substitute HAVE_XLOCALE_H.
59776         * doc/posix-headers/locale.texi: Document the problem with locale_t.
59778 2009-11-22  Bruno Haible  <bruno@clisp.org>
59780         Add comments.
59781         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
59782         invocation.
59783         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59784         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59785         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59787 2009-11-22  Bruno Haible  <bruno@clisp.org>
59789         error: account for the possibility of freopen (stdout).
59790         * lib/error.c: Include <unistd.h>.
59791         (flush_stdout): New function, extracted from error and error_at_line.
59792         Determine stdout's fd dynamically.
59793         (error, error_at_line): Invoke flush_stdout.
59794         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
59795         * modules/error (Depends-on): Add unistd.
59797 2009-11-22  Bruno Haible  <bruno@clisp.org>
59799         diffseq: Add comment.
59800         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
59802 2009-11-22  Jim Meyering  <meyering@redhat.com>
59804         c-stack: avoid defining an unused static function
59805         * lib/c-stack.c (find_stack_direction): Do not define this function
59806         when it will not be used.
59808         diffseq: avoid spurious gcc warnings
59809         * lib/diffseq.h (IF_LINT2): Define.
59810         (compareseq): Use it to initialize two members of "part".
59811         This avoids two used-uninitialized warnings.
59813 2009-11-21  Jim Meyering  <meyering@redhat.com>
59815         c-stack: avoid "ignoring return value of `write'" warning
59816         * lib/c-stack.c: Include "ignore-value.h".
59817         (die): Explicitly ignore each write return value.
59818         * modules/c-stack (Depends-on): Add ignore-value.
59820 2009-11-21  Bruno Haible  <bruno@clisp.org>
59822         diffseq: reduce scope of variable 'best'.
59823         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
59824         variable, earlier used for two different purposes.
59826 2009-11-21  Jim Meyering  <meyering@redhat.com>
59828         diffseq: remove useless assignment to "best"
59829         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
59830         assignment.  At that point "best" is already guaranteed to be zero.
59832 2009-11-20  Eric Blake  <ebb9@byu.net>
59834         build: mention ftp redirector in release announcements
59835         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
59836         values that used to come from cfg.mk; mention FTP redirect URL.
59837         * build-aux/announce-gen: Mention the mirror list.
59838         Suggested by Karl Berry.
59840         nanosleep: improve port to mingw
59841         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
59842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
59843         LIB_NANOSLEEP, but only when needed.
59844         * modules/select (Link): Document LIBSOCKET.
59845         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
59846         enough.
59848         nanosleep: work around cygwin bug
59849         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59850         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59851         bug.
59852         (getnow): Delete, not needed.
59853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59854         LIB_CLOCK_GETTIME.
59855         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59856         clock-time, gettime.
59857         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59858         bug.
59859         * modules/nanosleep-tests: New test.
59860         * tests/test-nanosleep.c: New file.
59862         sleep: work around cygwin bug
59863         * lib/sleep.c (rpl_sleep): Work around the bug.
59864         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59865         (gl_PREREQ_SLEEP): Delete unused macro.
59866         * modules/sleep (Depends-on): Add verify.
59867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59868         * modules/unistd (Makefile.am): Substitute witness.
59869         * lib/unistd.in.h (sleep): Update prototype.
59870         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59871         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59872         * modules/sleep-tests (Depends-on): Check for alarm.
59874 2009-11-20  Jim Meyering  <meyering@redhat.com>
59876         maint.mk: improve sc_prohibit_magic_number_exit
59877         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59878         so it does not match uses like System.exit(1).
59879         Add comments showing how to correct all offenders.
59881 2009-11-19  Eric Blake  <ebb9@byu.net>
59883         xalloc-die-tests: add missing library
59884         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59886         test-xvasprintf: silence compiler warnings
59887         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59888         empty string from gcc.
59890 2009-11-19  Jim Meyering  <meyering@redhat.com>
59892         xfreopen: new module, from coreutils
59893         * modules/xfreopen: New module.
59894         * lib/xfreopen.c: New file.
59895         * lib/xfreopen.h: New file.
59896         * MODULES.html.sh (File stream based Input/Output"): Add it.
59898 2009-11-19  Eric Blake  <ebb9@byu.net>
59900         manywarnings: depend on warnings
59901         * modules/manywarnings (Depends-on): Add warnings.
59903         build: avoid compiler warnings
59904         * lib/select.c (rpl_select): Delete unused variable.
59905         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59907 2009-11-18  Eric Blake  <ebb9@byu.net>
59909         tests: avoid false negative with --with-packager
59910         * tests/test-version-etc.sh: Discard packager information.
59911         * tests/test-argp-version-etc-1.sh: Likewise.
59912         Reported by Mike Frysinger.
59914         utimens: fix regression on Solaris
59915         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59916         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59917         can only change fd timestamps via futimesat.  Instead, use an
59918         additional witness macro to avoid BSD bug.
59919         Reported by Jim Meyering.
59921 2009-11-17  Eric Blake  <ebb9@byu.net>
59923         usleep: use it to simplify tests
59924         * modules/stat-time-tests (Depends-on): Add usleep.
59925         (configure.ac): Drop usleep check.
59926         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59927         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59928         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59929         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59930         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59931         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59932         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59933         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59934         Likewise.
59935         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59936         * tests/test-lchown.h (nap): Likewise.
59937         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59938         * tests/test-stat-time.c (nap): Likewise.
59939         * tests/test-utimens-common.h (nap): Update comments.
59941         usleep: new module
59942         * modules/usleep: New file.
59943         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59944         * lib/usleep.c (usleep): Likewise.
59945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59946         * modules/unistd (Makefile.am): Substitute witnesses.
59947         * lib/unistd.in.h (usleep): Add declaration.
59948         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59949         * MODULES.html.sh (Date and time): Likewise.
59950         * modules/usleep-tests (Depends-on): New test.
59951         * tests/test-usleep.c: New file.
59953         chown: work around OpenBSD bug
59954         * lib/chown.c (rpl_chown): Work around the bug.
59955         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59956         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59958         * modules/chown (Depends-on): Add stdbool.
59959         * modules/lchown (Depends-on): Likewise.
59960         * doc/posix-functions/chown.texi (chown): Document the bug.
59961         * doc/posix-functions/lchown.texi (lchown): Likewise.
59962         * tests/test-lchown.h (test_chown): Relax test.
59964         mkstemp: avoid conflict with C++ keyword template
59965         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59966         * lib/mkostemp.c (mkostemp): Likewise.
59967         * lib/mkostemps.c (mkostemps): Likewise.
59968         * lib/mkstemp.c (mkstemp): Likewise.
59969         * lib/mkstemps.c (mkstemps): Likewise.
59971         xalloc-die-tests: optimize
59972         * tests/test-xalloc-die.sh: Reduce number of processes.
59974 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59976         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59977         patch from ludo@gnu.org (Ludovic Courtès).
59979 2009-11-17  Jim Meyering  <meyering@redhat.com>
59981         version-etc: use proper license string
59982         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59983         * modules/version-etc-fsf: Likewise.
59985 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59987         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59988         printed to stdout.  Deal with EOL differences.
59990 2009-11-17  Eric Blake  <ebb9@byu.net>
59992         unsetenv: work around Solaris bug
59993         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59994         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59995         Reported by Jim Meyering.
59997         vasnprintf: avoid compiler warnings
59998         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59999         variables.
60000         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
60002 2009-11-17  Simon Josefsson  <simon@josefsson.org>
60004         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
60005         settings since xalloc-die is no longer the self test,
60006         xalloc-die.sh is.
60008 2009-11-17  Jim Meyering  <meyering@redhat.com>
60010         test-xalloc-die.sh: make the code agree with the commit log
60011         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
60012         at the end, just in case you happen to have a test-xalloc-die
60013         program in some other PATH directory.
60015         test-xalloc-die.sh: fix a portability bug
60016         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
60017         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
60018         Otherwise, argv[0] (as often seen in diagnostics) would be too
60019         system-dependent, sometimes with, and sometimes without the leading "./".
60021         version-etc-fsf: relax license to LGPLv3+
60022         * modules/version-etc-fsf (License): Relax license.
60024 2009-11-16  Eric Blake  <ebb9@byu.net>
60026         xalloc-die-tests: avoid printing null pointer
60027         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
60028         shell script.
60029         * tests/test-xalloc-die.c (program_name): Declare.
60030         * tests/test-xalloc-die.sh (tmpfiles): New file.
60032         setenv, unsetenv: work around various bugs
60033         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
60034         (setenv) [HAVE_SETENV]: Work around bugs.
60035         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
60036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
60037         for bugs.
60038         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
60039         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
60040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
60041         * modules/stdlib (Makefile.am): Update substitutions.
60042         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
60043         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
60044         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60045         * modules/setenv-tests: New test.
60046         * modules/unsetenv-tests: Likewise.
60047         * tests/test-setenv.c: New file.
60048         * tests/test-unsetenv.c: Likewise.
60050 2009-11-16  Jim Meyering  <meyering@redhat.com>
60052         version-etc: relax license to LGPLv3+
60053         * modules/version-etc (License): Relax license.
60055         better AC_REQUIRE expanded-before-required-warning avoidance
60056         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
60057         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
60058         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
60059         which is no longer needed.
60061 2009-11-16  Eric Blake  <ebb9@byu.net>
60063         test-freading: clean up temporary file
60064         * tests/test-freading.c (main): Remove file on success, and use
60065         ASSERT more liberally.
60066         Reported by Jim Meyering.
60068 2009-11-16  Jim Meyering  <meyering@redhat.com>
60070         avoid new AC_REQUIRE expanded-before-required warnings
60071         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
60072         merely using it.
60073         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
60074         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
60076 2009-11-15  Simon Josefsson  <simon@josefsson.org>
60078         * tests/test-xalloc-die.c: New file.
60079         * modules/xalloc-die-tests: New file.
60080         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
60081         XFAIL_TESTS so it can be appended by modules.
60083 2009-11-15  Simon Josefsson  <simon@josefsson.org>
60085         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
60086         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
60088 2009-11-14  Eric Blake  <ebb9@byu.net>
60090         fnmatch: avoid compiler warning
60091         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
60092         to silence compiler warning about mismatch signedness in ?:.
60093         Reported by Robert Millan.
60095         intprops: add double-inclusion guard
60096         * lib/intprops.h: Allow idempotent includes.
60097         Suggested by Bruce Korb.
60099         openat: detect Solaris fchownat bug
60100         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
60101         penalizing glibc chownat when only lchownat is broken.
60102         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
60103         trailing slash bugs.
60104         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
60105         * modules/openat-tests (Files): Include more files.
60106         (Depends-on): Add mgetgroups, sleep, stat-time.
60107         (configure.ac): Add additional checks.
60108         (Makefile.am): Build new test.
60109         * tests/test-fchownat.c: New file.
60111         lchown: detect Solaris and FreeBSD bug
60112         * lib/lchown.c (rpl_lchown): Work around bug.
60113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
60114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60115         * modules/unistd (Makefile.am): Populate it.
60116         * lib/unistd.in.h (lchown): Update declaration.
60117         * doc/posix-functions/lchown.texi (lchown): Document the bug.
60118         * modules/lchown-tests: New file.
60119         * tests/test-lchown.h (test_lchown): Likewise.
60120         * tests/test-lchown.c (main): Likewise.
60122         chown: detect Solaris and FreeBSD bug
60123         * lib/chown.c (rpl_chown): Work around bug.
60124         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
60125         (gl_PREREQ_CHOWN): Delete.
60126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60127         * modules/unistd (Makefile.am): Populate it.
60128         * lib/unistd.in.h (chown): Update declaration.
60129         * lib/lchown.c (chown): Update client.
60130         * modules/lchown (Depends-on): Add lstat.
60131         * doc/posix-functions/chown.texi (chown): Document the bug.
60132         * doc/posix-functions/getgroups.texi (getgroups): Document
60133         getgroups pitfall.
60134         * modules/chown-tests: New file.
60135         * tests/test-chown.h (test_chown): Likewise.
60136         * tests/test-chown.c (main): Likewise.
60138 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
60140         gnulib-tool: correctly detect absence of m4 directories
60141         * gnulib-tool: Avoid extra newline on data passed to wc -l.
60143 2009-11-14  Jim Meyering  <meyering@redhat.com>
60145         maint.mk: Prohibit inclusion of "xalloc.h" without use.
60146         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
60148 2009-11-14  John W. Eaton  <jwe@gnu.org>
60150         strftime.h: wrap function declaration in extern "C" block
60151         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
60153 2009-11-13  Eric Blake  <ebb9@byu.net>
60155         getgroups: avoid compiler warning
60156         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
60158         getgroups: work around FreeBSD bug
60159         * lib/getgroups.c (rpl_getgroups): Work around the bug.
60160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
60161         * doc/posix-functions/getgroups.texi (getgroups): Document it.
60162         * tests/test-getgroups.c (main): Fix buffer overrun.
60164         getgroups: avoid compilation failure
60165         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
60166         * modules/getgroups (Depends-on): Add stdint.
60168 2009-11-13  Jim Meyering  <meyering@redhat.com>
60170         test-getgroups: avoid compilation failure
60171         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
60173 2009-11-13  Eric Blake  <ebb9@byu.net>
60175         mgetgroups: new module, taken from coreutils
60176         * modules/mgetgroups: New file.
60177         * lib/mgetgroups.h: Likewise.
60178         * lib/mgetgroups.c (mgetgroups): Likewise.
60179         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
60180         * MODULES.html.sh (Users and groups): Mention it.
60182         getgroups: don't expose GETGROUPS_T to user
60183         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
60184         an element at a time if GETGROUPS_T is wrong size.
60185         * lib/getugroups.h (getugroups): Change signature.
60186         * lib/unistd.in.h (getgroups): Likewise.
60187         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
60188         signature needs fixing.
60189         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
60190         AC_TYPE_GETGROUPS.
60191         * modules/group-member (Depends-on): Add getgroups.
60192         * lib/group-member.c (group_info, get_group_info): Use gid_t.
60193         (group_member): Rely on getgroups replacement.
60194         * lib/getugroups.c (getugroups): Use gid_t.
60195         * tests/test-getgroups.c (main): Likewise.
60196         * NEWS: Mention the signature change.
60197         * doc/posix-functions/getgroups.texi (getgroups): Mention the
60198         problem with signature.
60199         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
60200         GETGROUPS_T is still useful for setgroups.
60202         getgroups, getugroups: provide stubs for mingw
60203         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
60204         * lib/getugroups.c (getugroups): Likewise.
60205         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
60206         function.  Modernize replacement scheme.
60207         (gl_PREREQ_GETGROUPS): Delete.
60208         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
60209         * modules/getgroups (configure.ac): Declare witness.
60210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
60211         * modules/unistd (Depends-on): Substitute witness.
60212         * lib/unistd.in.h (getgroups): Declare replacement.
60214         getgroups: avoid calling exit
60215         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
60216         drop xalloc.
60217         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
60218         dependencies.
60219         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
60220         exiting, in the rare case of malloc failure.
60222         getgroups: fix logic error
60223         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
60224         has more than 20 groups.
60225         * modules/getgroups-tests: New test.
60226         * tests/test-getgroups.c: New file.
60228 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60230         * tests/test-base64.c: Improve.
60232 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60234         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
60235         Blake <ebb9@byu.net>.
60237 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60239         * tests/test-xvasprintf.c: Add %s%s related checks.
60241 2009-11-12  Eric Blake  <ebb9@byu.net>
60243         version-etc: match standards.texi style
60244         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
60245         and use <> only for URLs.
60247 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
60249         fts: do not fail on a submount during traversal
60250         * lib/fts.c (fts_build): Read the stat info again after opening
60251         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
60252         Original report at http://bugzilla.redhat.com/501848.
60254 2009-11-12  Jim Meyering  <meyering@redhat.com>
60256         bootstrap: sync from coreutils
60257         * build-aux/bootstrap (bootstrap_epilogue): New function.
60258         Use git_modules_config in one more place.  This make bootstrap's
60259         --gnulib-srcdir option more useful for testing.
60261         bootstrap: generalize autoheader check
60262         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
60263         AC_CONFIG_HEADERS.
60265 2009-11-11  Eric Blake  <ebb9@byu.net>
60267         mkfifoat: use new modules for Solaris and BSD bugs
60268         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
60269         * lib/mkfifoat.c (mknodat): Split...
60270         * lib/mknodat.c (mknodat): ...into new file.
60271         * modules/mkfifoat (Files): Ship new file.
60272         (Depends-on): Add mkfifo, mknod.
60273         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
60274         (Depends-on): Add symlink.
60275         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
60276         redundant with test_mkfifo.h.
60277         (do_mkfifoat, do_mknodat): New helpers.
60279         mknod: new module
60280         * modules/mknod: New file.
60281         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
60282         * lib/mknod.c (mknod): Likewise.
60283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60284         defaults.
60285         * modules/sys_stat (Makefile.am): Substitute them.
60286         * lib/sys_stat.in.h (mknod): Declare replacement.
60287         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60288         Document it.
60289         * doc/posix-functions/mknod.texi (mknod): Likewise.
60290         * modules/mknod-tests: New test.
60291         * tests/test-mknod.c: Likewise.
60293         mkfifo: new module
60294         * modules/mkfifo: New file.
60295         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
60296         * lib/mkfifo.c (mkfifo): Likewise.
60297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60298         defaults.
60299         * modules/sys_stat (Makefile.am): Substitute them.
60300         * lib/sys_stat.in.h (mkfifo): Declare replacement.
60301         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60302         Document it.
60303         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
60304         * modules/mkfifo-tests: New test.
60305         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
60306         from test-mkfifoat.c.
60307         * tests/test-mkfifo.c: New file.
60309         readlink: detect FreeBSD bug
60310         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
60311         slash on symlink.
60312         * doc/posix-functions/readlink.texi (readlink): Document the bug.
60313         * tests/test-readlink.h (test_readlink): Enhance test.
60315         symlink: detect FreeBSD bug
60316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
60317         slash on symlink.
60318         * doc/posix-functions/symlink.texi (symlink): Document the bug.
60319         * tests/test-symlink.h (test_symlink): Enhance test.
60321 2009-11-10  Eric Blake  <ebb9@byu.net>
60323         link: detect FreeBSD bug
60324         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
60325         symlink.
60326         * doc/posix-functions/link.texi (link): Document the bug.
60327         * tests/test-link.h (test_link): Enhance test.
60328         * tests/test-linkat.c (main): Update caller.
60330         unlink, remove: detect FreeBSD bug
60331         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
60332         slash on symlink.
60333         * doc/posix-functions/unlink.texi (unlink): Document the bug.
60334         * doc/posix-functions/remove.texi (remove): Likewise.
60335         * tests/test-unlink.h (test_unlink): Enhance test.
60336         * tests/test-remove.c (main): Likewise.
60338 2009-11-09  Eric Blake  <ebb9@byu.net>
60340         rename: detect FreeBSD bug
60341         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
60342         slash on symlink.
60343         * modules/renameat-tests (Depends-on): Add filenamecat.
60344         * tests/test-rename.h (test_rename): Allow one more errno.
60345         * tests/test-renameat.c (main): Likewise.
60346         * doc/posix-functions/rename.texi (rename): Document the bug.
60348         open: detect FreeBSD bug
60349         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
60350         symlink.
60351         * doc/posix-functions/open.texi (open): Document the bug.
60352         * doc/posix-functions/utimes.texi (utimes): Likewise.
60353         * tests/test-open.h (test_open): Add parameters, and test symlink
60354         handling.
60355         * tests/test-open.c (main): Adjust caller.
60356         * tests/test-fcntl-safer.c (main): Likewise.
60357         * modules/open-tests (Depends-on): Add stdbool, symlink.
60358         * modules/fcntl-safer-tests (Depends-on): Likewise.
60359         * tests/test-openat.c (main): Add test-open tests.
60361         stat: detect FreeBSD bug
60362         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
60363         symlink.
60364         * doc/posix-functions/stat.texi (stat): Document the bug.
60365         * tests/test-stat.h (test_stat_func): Add argument.
60366         * tests/test-stat.c (main): Adjust caller.
60367         * tests/test-fstatat.c (main): Likewise.
60368         * modules/stat-tests (Depends-on): Add stdbool, symlink.
60369         Reported by Jim Meyering.
60371 2009-11-09  James Youngman  <jay@gnu.org>
60373         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
60374         * lib/strftime.c: Correct placement of #include "ignore-value.h".
60376 2009-11-08  Jim Meyering  <meyering@redhat.com>
60378         utimens: remove invalid futimesat call
60379         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
60380         It used the file descriptor of the target file as the DIR_FD
60381         parameter and NULL as the file name.  That caused failure with
60382         errno == EFAULT on FreeBSD-8.0-rc2
60384 2009-11-07  Eric Blake  <ebb9@byu.net>
60386         fflush, freadseek: use fseeko, not fseek
60387         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
60388         (clear_ungetc_buffer): Avoid potential problems on large files.
60389         * lib/freadseek.c (freadseek): Likewise.
60390         * modules/freadseek (Depends-on): Add fseeko.
60391         * modules/fseek (configure.ac): Set a witness.
60392         * tests/test-fflush.c (main): Use fseeko.
60393         * tests/test-fpurge.c (fseek): Disable link warning.
60394         * tests/test-freadable.c (fseek): Likewise.
60395         * tests/test-freading.c (fseek): Likewise.
60396         * tests/test-fseeko.c (fseek): Likewise.
60397         * tests/test-ftell.c (fseek): Likewise.
60398         * tests/test-ftello.c (fseek): Likewise.
60399         * tests/test-fwritable.c (fseek): Likewise.
60400         * tests/test-fwriting.c (fseek): Likewise.
60402 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60404         * modules/memchr (Depends-on): Drop getpagesize dependency.
60406 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60408         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
60409         Reported by Ludovic Courtès.
60410         * build-aux/pmccabe2html: Improve example usage.
60411         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
60413 2009-11-06  Jim Meyering  <meyering@redhat.com>
60415         do-release-commit-and-tag: New module.
60416         Automate the release-commit and tag process.
60417         * build-aux/do-release-commit-and-tag: New script, from coreutils.
60418         * modules/do-release-commit-and-tag: New file.
60419         * MODULES.html.sh (Support for maintaining and releasing): Add it.
60421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60423         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
60424         because test-select.c uses inet_pton.
60426 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60428         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
60429         GETADDRINFO_LIB.  Bump serial number.
60430         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
60431         Suggested by Eric Blake <ebb9@byu.net>.
60433 2009-11-05  Eric Blake  <ebb9@byu.net>
60435         strtod: detect darwin bug
60436         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
60437         Reported by Leo Davis.
60439         freopen-safer: new module
60440         * modules/freopen-safer: New module.
60441         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
60442         * lib/freopen-safer.c (freopen_safer): New file.
60443         * lib/stdio-safer.h (freopen_safer): New declaration.
60444         * lib/stdio--.h (freopen): New override.
60445         * MODULES.html.sh (File stream based Input/Output): Mention it.
60446         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
60447         freopen-safer module.
60448         * doc/posix-functions/stderr.texi (stderr): Likewise.
60449         * doc/posix-functions/stdin.texi (stdin): Likewise.
60450         * doc/posix-functions/stdout.texi (stdout): Likewise.
60451         * modules/freopen-safer-tests: New test.
60452         * tests/test-reopen-safer.c: New file.
60454 2009-11-05  Jim Meyering  <meyering@redhat.com>
60456         maint.mk: Prohibit inclusion of "close-stream.h" without use.
60457         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
60459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60461         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
60463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60465         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
60467 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60469         Fix link error.
60470         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60471         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60475         * tests/test-func.c: Also test value of __func__.
60477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60479         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
60480         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
60482 2009-11-05  Bruno Haible  <bruno@clisp.org>
60484         Fix link error.
60485         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60486         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60487         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
60489 2009-11-05  Bruno Haible  <bruno@clisp.org>
60491         Tests for module 'inet_pton'.
60492         * modules/inet_pton-tests: New file.
60493         * tests/test-inet_pton.c: New file.
60495 2009-11-05  Bruno Haible  <bruno@clisp.org>
60497         Tests for module 'inet_ntop'.
60498         * modules/inet_ntop-tests: New file.
60499         * tests/test-inet_ntop.c: New file.
60501 2009-11-04  Eric Blake  <ebb9@byu.net>
60503         stdlib-safer: wrap all mkstemp variants
60504         * modules/mkostemp (configure.ac): Set witness.
60505         * modules/mkostemps (configure.ac): Likewise.
60506         * modules/mkstemps (configure.ac): Likewise.
60507         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
60508         (mkstemps_safer): Wrap more functions.
60509         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
60510         wrapping.
60511         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
60512         (mkstemps_safer): Implement the wrappers.
60514         mkstemps, mkostemps: new modules
60515         * modules/mkostemps: New module.
60516         * modules/mkstemps: Likewise.
60517         * lib/mkostemps.c (mkostemps): New file.
60518         * lib/mkstemps.c (mkstemps): Likewise.
60519         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
60520         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
60521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
60522         * modules/stdlib (Makefile.am): Substitute them.
60523         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
60524         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
60525         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60526         * doc/gnulib.texi (Glibc stdlib.h): Include them.
60527         * MODULES.html.sh (File system functions): Mention them.
60529         tempname: resync from glibc
60530         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
60531         same values for __GT_FILE as glibc.  Abort even when assertions
60532         are disabled.
60533         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
60534         match its value otherwise.  Allow idempotent inclusion.
60535         * lib/mkdtemp.c (mkdtemp): Adjust caller.
60536         * lib/mkostemp.c (mkostemp): Likewise.
60537         * lib/mkstemp.c (mkstemp): Likewise.
60538         * lib/tmpfile.c (tmpfile): Likewise.
60539         * NEWS: Document this.
60541         utimens: fix use of futimens on older Linux
60542         * lib/utimens.c (fdutimens): Use updated, rather than original,
60543         timespec to avoid bug in older Linux kernel.
60544         Reported by Simon Josefsson.
60546 2009-11-04  Bruno Haible  <bruno@clisp.org>
60548         Make num_processors more flexible and consistent.
60549         * lib/nproc.h (enum nproc_query): New type.
60550         (num_processors): Add a 'query' argument.
60551         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
60552         (num_processors): Add a 'query' argument. Test the value of the
60553         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
60554         mingw, count the number of CPUs available for the current process.
60555         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
60556         Check for sched_getaffinity and sched_getaffinity_np.
60557         * modules/nproc (Depends-on): Add c-ctype, extensions.
60558         * NEWS: Mention the change.
60560 2009-11-03  Bruno Haible  <bruno@clisp.org>
60562         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
60564 2009-11-03  Jim Meyering  <meyering@redhat.com>
60566         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
60567         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
60568         if it is defined.
60570 2009-11-02  Eric Blake  <ebb9@byu.net>
60572         mktime, timegm: share common declaration
60573         * lib/mktime-internal.h: New file.
60574         * lib/mktime.c: Use it rather than open-coding a declaration.
60575         * lib/timegm.c: Likewise.
60576         * modules/mktime (Files): Ship it.
60577         * modules/timegm (Files): Likewise.
60578         Suggested by Bruno Haible.
60580         test-update-copyright: update test to match script changes
60581         * tests/test-update-copyright.sh: Avoid hard-coding perl
60582         location.  Don't update *.bak created by earlier runs.
60584 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60585             Simon Josefsson  <simon@josefsson.org>
60586             Bruno Haible  <bruno@clisp.org>
60588         Fix link error on Solaris 8.
60589         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
60590         also in libnsl. Define also INET_PTON_LIB.
60591         * modules/inet_pton (Link): New section.
60593 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60594             Bruno Haible  <bruno@clisp.org>
60596         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
60597         * modules/inet_ntop (Link): New section.
60598         Reported by Boyan Kasarov <bkasarov@gmail.com>.
60600 2009-11-02  Eric Blake  <ebb9@byu.net>
60602         maint: avoid compiler warnings in m4 macros
60603         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
60604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
60606 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60608         * m4/pmccabe2html.m4: Remove file.
60609         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
60610         function.  Change maintainer.
60611         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
60612         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
60613         Courtès).
60615 2009-10-31  Eric Blake  <ebb9@byu.net>
60617         fseeko: fix m4 regression
60618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
60619         regression from 2009-10-27.
60620         Reported by Ralf Wildenhues.
60622 2009-10-31  Jim Meyering  <meyering@redhat.com>
60624         inttostr: aesthetics and improved (compile-time) safety
60625         Define inttype_is_signed rather than inttype_is_unsigned,
60626         since the sole use is via "#if inttype_is_signed".
60627         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
60628         inttype_is_unsigned.
60629         * lib/offtostr.c (inttype_is_signed): Likewise.
60630         * lib/uinttostr.c (inttype_is_signed): Likewise.
60631         * lib/umaxtostr.c (inttype_is_signed): Likewise.
60632         * lib/inttostr.c (inttostr): Use verify to cross-check the
60633         inttype_is_signed value and the signedness of the actual type.
60634         * modules/inttostr (Depends-on): Add verify.
60636 2009-10-30  Eric Blake  <ebb9@byu.net>
60638         build: avoid compiler warnings
60639         * lib/fchmodat.c (lchmod): Mark unused variables.
60640         * lib/getopt.c (_getopt_initialize): Likewise.
60641         * lib/mktime.c (__mktime_internal): Provide prototype.
60642         * lib/inttostr.c (inttostr): Avoid compiler warning even with
60643         older gcc that do not understand #pragma GCC diagnostic.
60644         * lib/uinttostr.c (inttype_is_unsigned): Define.
60645         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
60647 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
60649         stat: fix compilation on AIX
60650         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
60651         only see struct stat64.
60653 2009-10-30  Eric Blake  <ebb9@byu.net>
60655         exclude: make more robust
60656         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
60657         rather than masking a coding bug.
60658         Suggested by Bruno Haible.
60660 2009-10-30  Jim Meyering  <meyering@redhat.com>
60662         perl scripts: remove #!/usr/bin/perl in favor of more portable...
60663         Rather than putting #!/usr/bin/perl on the first line,
60664         start with a variant of what's recommended by "man perlrun" that
60665         invokes the first "perl" program from your shell's search path.
60666         * build-aux/gitlog-to-changelog: Replace #!... as above.
60667         Add a "Local Variables" perl mode setting.
60668         Prompted by a patch from Ludovic Courtès.
60669         Improved by Eric Blake.
60670         * build-aux/useless-if-before-free: Likewise.
60671         * build-aux/announce-gen: Likewise.
60672         * build-aux/update-copyright: Likewise.
60674 2009-10-29  Eric Blake  <ebb9@byu.net>
60676         filenamecat-lgpl: adjust clients
60677         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
60678         filenamecat.
60679         * modules/renameat (Depends-on): Likewise.
60681         filenamecat: split into filenamecat-lgpl
60682         * modules/filenamecat-lgpl: New module.
60683         * modules/filenamecat (Files): Move library-safe files into
60684         filenamecat-lgpl.
60685         (Depends-on): Add filenamecat-lgpl.
60686         (configure.ac): Declare witness.
60687         * lib/filenamecat.h (file_name_concat): Only declare when using
60688         GPL module.
60689         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
60690         Move...
60691         * lib/filenamecat-lgpl.c: ...into new file.
60692         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
60693         (gl_FILE_NAME_CONCAT): Use it.
60694         * MODULES.html.sh (File system functions): Mention new module.
60696         argp: avoid memory leak
60697         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
60698         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
60699         base_name, since the latter malloc()s and can call exit().
60700         Leak introduced 2006-07-03.
60702         dirname-lgpl: adjust clients that don't need full dirname
60703         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
60704         * modules/filenamecat (Depends-on): Likewise.
60705         * modules/linkat (Depends-on): Likewise.
60706         * modules/mkancesdirs (Depends-on): Likewise.
60707         * modules/mkdir (Depends-on): Likewise.
60708         * modules/openat (Depends-on): Likewise.
60709         * modules/savewd (Depends-on): Likewise.
60710         * modules/rename (Depends-on): Likewise.
60711         (License): Relax license.
60712         * modules/mkdir-tests (Depends-on): Drop progname.
60713         (Makefile.am): Delete unneeded LDADD.
60714         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
60716         dirname: split into dirname-lgpl
60717         * modules/dirname-lgpl: New module.
60718         * modules/dirname (Files): Move library-safe files into
60719         dirname-lgpl.
60720         (Depends-on): Add dirname-lgpl.
60721         (configure.ac): Declare witness.
60722         * modules/double-slash-root (License): Relax license.
60723         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
60724         module.
60725         * lib/dirname.c (dir_len, mdir_name): Move...
60726         * lib/dirname-lgpl.c: ...into new file.
60727         * lib/basename.c (last_component, base_len): Move...
60728         * lib/basename-lgpl.c: ...into new file.
60729         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
60730         (gl_DIRNAME): Use it.
60731         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
60732         Mention new module.
60733         * modules/dirname-tests (Depends-on): Add progname.
60734         * tests/test-dirname.c (program_name): Delete.
60736         mkdir: make safe for libraries
60737         * modules/mkdir (Depends-on): Drop xalloc.
60738         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
60739         exit.
60741         tests: avoid some compiler warnings
60742         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
60743         literals.
60744         * tests/test-memchr.c (main): Avoid type mismatch.
60745         * tests/test-arpa_inet.c (main): Avoid unused parameters.
60746         * tests/test-base64.c (main): Likewise.
60747         * tests/test-getdelim.c (main): Likewise.
60748         * tests/test-gethostname.c (main): Likewise.
60749         * tests/test-getline.c (main): Likewise.
60750         * tests/test-netinet_in.c (main): Likewise.
60751         * tests/test-select.c (open_server_socket, main): Likewise.
60752         * tests/test-select-stdin.c (main): Likewise.
60753         * tests/test-sockets.c (main): Likewise.
60754         * tests/test-strsignal.c (main): Likewise.
60755         * tests/test-sys_select.c (main): Likewise.
60756         * tests/test-sys_socket.c (main): Likewise.
60757         * tests/test-u64.c (main): Likewise.
60758         * tests/test-xfprintf-posix.c (main): Likewise.
60759         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
60761         sockets: avoid compiler warning
60762         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
60764         maint: detect usage(1) and other suspicious exits
60765         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
60767 2009-10-29  Jim Meyering  <meyering@redhat.com>
60769         timespec: long-to-int truncation could make timespec_cmp malfunction
60770         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
60771         a multiple of 2^32 nanoseconds as no difference.
60773 2009-10-28  Jim Meyering  <meyering@redhat.com>
60775         fprintftime: wrap macro code argument in "do {...} while(0)"
60776         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
60777         cpy macro must be a statement that can be followed by a semicolon.
60778         Now that the else clause contains a comment and is hence longer
60779         than one line, I require curly braces.  That in turn requires
60780         that we wrap this code block in the standard do...while(0).
60782         fprintftime: remove stray semicolon from previous change
60783         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
60785         fprintftime: avoid a warning about ignored fwrite return value
60786         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
60787         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
60788         that is unsafe.
60789         * modules/fprintftime (Depends-on): Add ignore-value.
60791         exclude: avoid an unwarranted warning
60792         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
60794 2009-10-27  Eric Blake  <ebb9@byu.net>
60796         fseek: avoid compilation failure when fflush is replaced
60797         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
60798         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
60799         module is in use.
60800         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
60801         module is not in use; since REPLACE_FSEEK worked otherwise.
60802         (GNULIB_FTELLO): Likewise for ftell.
60803         Reported by Ian Beckwith and others.
60805 2009-10-27  Bruno Haible  <bruno@clisp.org>
60807         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
60808         Reported by Jim Meyering.
60810 2009-10-27  Jim Meyering  <jim@meyering.net>
60811             Bruno Haible  <bruno@clisp.org>
60813         Avoid warning despite dropping the return value of fwrite.
60814         * lib/unicodeio.c: Include ignore-value.h.
60815         (fwrite_success_callback): Explicitly ignore fwrite's return value.
60816         * modules/unicodeio (Depends-on): Add ignore-value.
60818 2009-10-26  Eric Blake  <ebb9@byu.net>
60820         areadlinkat: fix fallback path
60821         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
60822         pointer and zero.
60824 2009-10-22  Pádraig Brady  <P@draigBrady.com>
60826         Use a better IO block size for modern systems
60827         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
60828         * lib/md2.c: Likewise.
60829         * lib/md4.c: Likewise.
60830         * lib/md5.c: Likewise.
60831         * lib/sha1.c: Likewise.
60832         * lib/sha256.c: Likewise.
60833         * lib/sha512.c: Likewise.
60835 2009-10-22  Eric Blake  <ebb9@byu.net>
60837         tests: avoid several compiler warnings
60838         * tests/test-getcwd.c (main): Avoid buffer underflow.
60839         * tests/test-getdate.c (main): String literals are not safe with
60840         putenv, so use setenv.  Declare unused argument.
60841         * modules/getdate-tests (Depends-on): Add setenv.
60842         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
60843         problems with string literals in char *.
60844         * tests/test-hash.c (main): Avoid shadowing declaration.
60845         (insert_new): Treat string literals as char const *.
60846         * tests/test-getopt.h (test_getopt): Likewise.
60847         (getopt_loop): Alter types to minimize casting elsewhere.
60848         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
60849         (test_getopt_long_posix): Likewise.
60850         (do_getopt_long): Add wrapper to minimize casting.
60851         * tests/test-atexit.c (clear_temp_file): Use void.
60852         * tests/test-areadlink-with-size.c (main): Declare unused
60853         arguments.
60854         * tests/test-areadlink.c (main): Likewise.
60855         * tests/test-areadlinkat-with-size.c (main): Likewise.
60856         * tests/test-areadlinkat.c (main): Likewise.
60857         * tests/test-canonicalize-lgpl.c (main): Likewise.
60858         * tests/test-canonicalize.c (main): Likewise.
60859         * tests/test-dirent-safer.c (main): Likewise.
60860         * tests/test-dirname.c (main): Likewise.
60861         * tests/test-dup2.c (main): Likewise.
60862         * tests/test-fchdir.c (main): Likewise.
60863         * tests/test-fcntl-h.c (main): Likewise.
60864         * tests/test-fcntl-safer.c (main): Likewise.
60865         * tests/test-fdopendir.c (main): Likewise.
60866         * tests/test-fdutimensat.c (main): Likewise.
60867         * tests/test-fflush.c (main): Likewise.
60868         * tests/test-filenamecat.c (main): Likewise.
60869         * tests/test-filevercmp.c (main): Likewise.
60870         * tests/test-fopen-safer.c (main): Likewise.
60871         * tests/test-fopen.c (main): Likewise.
60872         * tests/test-fpending.c (main): Likewise.
60873         * tests/test-fpurge.c (main): Likewise.
60874         * tests/test-freading.c (main): Likewise.
60875         * tests/test-fstatat.c (main): Likewise.
60876         * tests/test-fsync.c (main): Likewise.
60877         * tests/test-futimens.c (main): Likewise.
60878         * tests/test-getndelim2.c (main): Likewise.
60879         * tests/test-gettimeofday.c (main): Likewise.
60880         * tests/test-getopt.c (main): Likewise.
60881         * tests/test-i-ring.c (main): Likewise.
60882         * tests/test-inttypes.c (main): Likewise.
60883         * tests/test-link.c (main): Likewise.
60884         * tests/test-lstat.c (main): Likewise.
60885         * tests/test-math.c (main): Likewise.
60886         * tests/test-md5.c (main): Likewise.
60887         * tests/test-memchr2.c (main): Likewise.
60888         * tests/test-memrchr.c (main): Likewise.
60889         * tests/test-mkdir.c (main): Likewise.
60890         * tests/test-mkdirat.c (main): Likewise.
60891         * tests/test-mkfifoat.c (main): Likewise.
60892         * tests/test-open.c (main): Likewise.
60893         * tests/test-openat-safer.c (main): Likewise.
60894         * tests/test-openat.c (main): Likewise.
60895         * tests/test-quotearg.c (main): Likewise.
60896         * tests/test-rawmemchr.c (main): Likewise.
60897         * tests/test-readlink.c (main): Likewise.
60898         * tests/test-remove.c (main): Likewise.
60899         * tests/test-rename.c (main): Likewise.
60900         * tests/test-renameat.c (main): Likewise.
60901         * tests/test-rmdir.c (main): Likewise.
60902         * tests/test-sha1.c (main): Likewise.
60903         * tests/test-signal.c (main): Likewise.
60904         * tests/test-sigaction.c (main): Likewise.
60905         * tests/test-stat.c (main): Likewise.
60906         * tests/test-stat-time.c (main): Likewise.
60907         * tests/test-stddef.c (main): Likewise.
60908         * tests/test-stdint.c (main): Likewise.
60909         * tests/test-stdio.c (main): Likewise.
60910         * tests/test-stdlib.c (main): Likewise.
60911         * tests/test-strchrnul.c (main): Likewise.
60912         * tests/test-strerror.c (main): Likewise.
60913         * tests/test-string.c (main): Likewise.
60914         * tests/test-strtod.c (main): Likewise.
60915         * tests/test-strverscmp.c (main): Likewise.
60916         * tests/test-symlink.c (main): Likewise.
60917         * tests/test-symlinkat.c (main): Likewise.
60918         * tests/test-sys_stat.c (main): Likewise.
60919         * tests/test-sys_time.c (main): Likewise.
60920         * tests/test-time.c (main): Likewise.
60921         * tests/test-unistd.c (main): Likewise.
60922         * tests/test-unlink.c (main): Likewise.
60923         * tests/test-unlinkat.c (main): Likewise.
60924         * tests/test-utimens.c (main): Likewise.
60925         * tests/test-utimensat.c (main): Likewise.
60926         * tests/test-version-etc.c (main): Likewise.
60927         * tests/test-wchar.c (main): Likewise.
60928         * tests/test-wctype.c (main): Likewise.
60929         * tests/test-xprintf-posix.c (main): Likewise.
60930         * tests/test-posixtm.c (main): Likewise.
60931         (STREQ): Delete unused macro.
60932         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60933         shadowed variables.
60934         * tests/test-memchr.c (main): Likewise.
60936 2009-10-21  Eric Blake  <ebb9@byu.net>
60938         areadlinkat: avoid failure on older glibc
60939         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60940         rather than mis-comparing 0 against FUNC_RESULT of char*.
60942 2009-10-21  Bruno Haible  <bruno@clisp.org>
60944         * modules/stpncpy (License): Relicense under LGPLv2+.
60945         Reported by David Lutterkort <lutter@redhat.com>.
60947 2009-10-20  Eric Blake  <ebb9@byu.net>
60949         utimensat: work around Solaris 9 bug
60950         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60951         has trailing slash bugs.
60952         * tests/test-lutimens.h (test_lutimens): Enhance test.
60953         * tests/test-utimens.h (test_utimens): Likewise.
60954         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60955         * doc/posix-functions/utimes.texi (utimes): Likewise.
60956         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60957         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60958         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60959         * doc/posix-functions/futimens.texi (futimens): Likewise.
60961         fdutimensat: new module
60962         * modules/fdutimensat: New file.
60963         * lib/fdutimensat.c (fdutimensat): Likewise.
60964         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60965         * MODULES.html.sh (File system functions): Mention module.
60966         * modules/fdutimensat-tests: New test.
60967         * tests/test-fdutimensat.c: Likewise.
60969         doc: regenerate INSTALL
60970         * doc/INSTALL: Reflect recent autoconf update.
60971         * doc/INSTALL.ISO: Likewise.
60972         * doc/INSTALL.UTF-8: Likewise.
60974 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60976         acl: warn if ACL support is not detected
60977         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60979 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60981         * lib/nproc.h: Add extern "C" block for C++.
60983 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60984             Bruno Haible  <bruno@clisp.org>
60986         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60987         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60988         * doc/posix-functions/isalpha.texi: Likewise.
60989         * doc/posix-functions/isblank.texi: Likewise.
60990         * doc/posix-functions/iscntrl.texi: Likewise.
60991         * doc/posix-functions/isdigit.texi: Likewise.
60992         * doc/posix-functions/isgraph.texi: Likewise.
60993         * doc/posix-functions/islower.texi: Likewise.
60994         * doc/posix-functions/isprint.texi: Likewise.
60995         * doc/posix-functions/ispunct.texi: Likewise.
60996         * doc/posix-functions/isspace.texi: Likewise.
60997         * doc/posix-functions/isupper.texi: Likewise.
60998         * doc/posix-functions/isxdigit.texi: Likewise.
61000 2009-10-18  Bruno Haible  <bruno@clisp.org>
61002         Tests for module 'isblank'.
61003         * modules/isblank-tests: New file.
61004         * tests/test-isblank.c: New file.
61006         New module 'isblank'.
61007         * lib/isblank.c: New file.
61008         * m4/isblank.m4: New file.
61009         * modules/isblank: New file.
61010         * doc/posix-functions/isblank.texi: Mention the new module.
61012 2009-10-18  Bruno Haible  <bruno@clisp.org>
61014         New module 'ctype'.
61015         * lib/ctype.in.h: New file.
61016         * m4/ctype.m4: New file.
61017         * modules/ctype: New file.
61018         * doc/posix-headers/ctype.texi: Mention the new module.
61020 2009-10-18  Jim Meyering  <meyering@redhat.com>
61022         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
61023         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
61024         right after its initialization, rather than farther down.
61025         Keeping these in close proximity makes it easier to ensure
61026         that each such variable is initialized.  E.g.,
61028             LIB_CLOCK_GETTIME=
61029             AC_SUBST([LIB_CLOCK_GETTIME])
61031         This change also increments these serial numbers.
61032         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
61033         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61036 2009-10-18  Bruno Haible  <bruno@clisp.org>
61038         Don't let environment variables perturb build.
61039         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
61040         (gl_PREREQ_GETHRXTIME): ... not here.
61042 2009-10-18  Bruno Haible  <bruno@clisp.org>
61044         Avoid symlink attack in localcharset module.
61045         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
61046         (O_NOFOLLOW): Define fallback.
61047         (get_charset_aliases): Don't open the file if it is a symbolic link.
61048         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
61049         gl_FCNTL_H.
61050         (gl_FCNTL_H): Require it.
61051         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
61052         * modules/localcharset (Files): Add m4/fcntl_h.m4.
61053         Reported by Fergal Glynn <fglynn@veracode.com>.
61055 2009-10-18  Bruno Haible  <bruno@clisp.org>
61057         Implement nproc for mingw.
61058         * lib/nproc.c: Include <windows.h>
61059         (num_processors): On native Windows platforms, try GetSystemInfo.
61061 2009-10-18  Bruno Haible  <bruno@clisp.org>
61063         Implement nproc for IRIX.
61064         * lib/nproc.c: Include <sys/sysmp.h>.
61065         (num_processors): On IRIX systems, try sysmp.
61066         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
61068 2009-10-18  Bruno Haible  <bruno@clisp.org>
61070         Implement nproc for HP-UX.
61071         * lib/nproc.c: Include <sys/pstat.h>
61072         (num_processors): On HP-UX systems, try pstat_getdynamic.
61073         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
61074         pstat_getdynamic.
61076 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
61077             Bruno Haible  <bruno@clisp.org>
61079         Implement nproc for NetBSD, OpenBSD.
61080         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
61081         (ARRAY_SIZE): New macro.
61082         (num_processors): On BSD systems, try sysctl of HW_NCPU.
61083         * m4/nproc.m4: New file.
61084         * modules/nproc (Files): Add m4/nproc.m4.
61085         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
61086         (Makefile.am): Instead, augment lib_SOURCES.
61088 2009-10-18  Bruno Haible  <bruno@clisp.org>
61090         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
61091         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
61092         sys/param.h.
61094 2009-10-16  Eric Blake  <ebb9@byu.net>
61096         utimensat: new module
61097         * modules/utimensat: New file.
61098         * lib/utimensat.c (utimensat): Likewise.
61099         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61100         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
61101         so we can work around Linux bugs.
61102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61103         * modules/sys_stat (Makefile.am): Substitute them.
61104         * lib/sys_stat.in.h (utimensat): Declare it.
61105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61107         * modules/utimensat-tests: New test.
61108         * tests/test-utimensat.c: Likewise.
61110         utimens: let lutimens work on non-symlinks
61111         * lib/utimens.c (lutimens): Fall back to utimens rather than
61112         failing with ENOSYS, when file is not a symlink.
61113         (utimens): Reduce redirection.
61114         * tests/test-lutimens.h (test_lutimens): Update test to cover
61115         non-symlinks.
61116         * tests/test-utimens.h (test_utimens): Update test to cover
61117         symlinks.
61118         * tests/test-utimens.c (main): Update caller.
61120         utimens: cache whether utimensat syscall works
61121         * lib/utimens.c (utimensat_works_really): New cache variable.
61122         (fdutimens, lutimens): Use it to avoid failing syscall.
61124         test-stat-time, test-utimens: improve portability
61125         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
61126         ext4 on alpha, and for cygwin.
61127         * tests/test-utimens-common.h: New file.
61128         (nap): Factor delays into single function.
61129         * tests/test-lutimens.h (test_lutimens): Use new header.
61130         * tests/test-futimens.h (test_futimens): Likewise.
61131         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
61132         timestamps to occur from same machine, as was done previously for
61133         test_utimens.
61134         * modules/utimens-tests (Files): Ship new file.
61135         * modules/futimens-tests (Files): Likewise.
61136         Reported in part by Jim Meyering.
61138         sys_stat: sort replacement declarations
61139         * lib/sys_stat.in.h: Sort declarations.
61140         * lib/futimens.c (futimens): Fix typo.
61142 2009-10-15  Jim Meyering  <meyering@redhat.com>
61144         don't let environment settings perturb build
61145         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
61146         could cause a configure-time and/or build-time malfunction.
61147         Typically, a configure-time function-in-library test is performed
61148         via code like this:
61150           LIB_VAR=
61151           AC_SUBST([LIB_VAR])
61152           prefix_saved_LIBS=$LIBS
61153             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
61154                        [test "$ac_cv_search_FUNC" = "none required" ||
61155                         LIB_VAR=$ac_cv_search_FUNC])
61156           LIBS=$prefix_saved_LIBS
61158         However, in each of the files affected by this change, the LIB_VAR=
61159         initialization was omitted.  Thus, when set in the environment, its
61160         value would propagate into generated Makefiles when FUNC is not found
61161         in LIB_NAME.
61162         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
61163         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61166 2009-10-14  Eric Blake  <ebb9@byu.net>
61168         fchdir: avoid infinite recursion in mingw
61169         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
61170         recursing.
61172         test-stat-time: port to mingw
61173         * tests/test-stat-time.c (force_unlink): Return a value.
61174         (test_ctime) [W32]: Fix compilation error.
61175         (nap): Don't call usleep with too large an argument.  Use
61176         force_unlink.
61177         * doc/pastposix-functions/usleep.texi (usleep): Document the
61178         portability issue.
61180 2009-10-13  Jim Meyering  <meyering@redhat.com>
61182         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
61183         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
61184         * modules/pipe-filter-ii: Likewise.
61185         * modules/sys_socket-tests: Likewise.
61186         * modules/tsearch-tests: Likewise.
61187         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
61188         (check): Depend on it.
61190 2009-10-12  Eric Blake  <ebb9@byu.net>
61192         utimens-tests: port to NFS file systems
61193         * tests/test-utimens.h (test_utimens): Refactor utimecmp
61194         comparisons to avoid spurious failures from timestamp drift
61195         between NFS machines.
61197 2009-10-12  Eric Blake  <ebb9@byu.net>
61199         stat-time-tests: minor cleanups
61200         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
61201         * tests/test-stat-time.c (nap): Separate assignment from call.
61202         Suggested by Paolo Bonzini and Bruno Haible.
61204         sys_stat: guarantee struct timespec
61205         * lib/sys_stat.in.h (includes): Always include <time.h>
61206         * modules/sys_stat (Depends-on): Add time.
61207         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
61208         mode_t permission values.
61209         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
61210         get at subsecond timestamps.
61212 2009-10-10  Eric Blake  <ebb9@byu.net>
61214         futimens: new module
61215         * modules/futimens: New file.
61216         * lib/futimens.c (futimens): Likewise.
61217         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
61218         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
61219         we can work around Linux bugs.
61220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61221         * modules/sys_stat (Makefile.am): Substitute them.
61222         * lib/sys_stat.in.h (futimens): Declare it.
61223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61224         * doc/posix-functions/futimens.texi (futimens): Likewise.
61225         * modules/futimens-tests: New test.
61226         * tests/test-futimens.c: Likewise.
61228         utimens: introduce fdutimens
61229         * lib/utimens.h (fdutimens): New prototype.
61230         * lib/utimens.c (gl_futimens): Move guts...
61231         (fdutimens): ...to new interface.
61232         * tests/test-utimens.c (do_fdutimens): Use it.
61234         utimens: add UTIME_NOW and UTIME_OMIT support
61235         * lib/utimens.c (validate_timespec, update_timespec): New helper
61236         functions.
61237         (gl_futimens, lutimens): Use them.
61238         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
61239         stdbool, sys_stat.
61240         (Link): Mention resulting library dependency.
61241         * modules/utimecmp (Link): Likewise.
61242         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
61243         (Makefile.am): Pick up library dependency.
61244         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
61245         definition.
61246         * tests/test-sys_stat.c: Test the definitions.
61247         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
61248         * NEWS: Document library dependency.
61250         utimecmp: support symlink timestamps
61251         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
61252         hashing when possible.  Use pathconf when available.
61253         (SYSCALL_RESOLUTION): Recognize tighter resolution.
61254         * modules/utimecmp (Depends-on): Add lstat.
61256         utimens: add lutimens interface
61257         * lib/utimens.c (lutimens): New function.
61258         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
61259         * lib/utimens.h (lutimens): Declare new interface.
61260         * tests/test-utimens.c (main): Enhance test.
61261         * tests/test-lutimens.h (test_lutimens): New file.
61262         * modules/utimens-tests (Files): Distribute it.
61263         (Depends-on): Add symlink.
61264         (configure.ac): Check for usleep.
61266         utimens: validate futimens usage
61267         * lib/utimens.c (gl_futimens): Require valid fd up front, using
61268         fewer syscalls on failure later on.  Avoid compiler warning on
61269         mingw.
61270         * modules/utimens (Depends-on): Add dup2.
61272         utimens: add test
61273         * modules/utimens-tests: New test.
61274         * tests/test-utimens.h: New file.
61275         * tests/test-futimens.h: Likewise.
61276         * tests/test-utimens.c: Likewise.
61278         doc: mention timestamp portability issues
61279         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
61280         instead.
61281         * doc/posix-functions/utime.texi (utime): Likewise.
61282         * doc/posix-functions/utimes.texi (utimes): Likewise.
61283         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
61284         instead.
61285         * doc/posix-functions/futimens.texi (futimens): Mention utimens
61286         module.
61287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61288         Mention weakness with symlink timestamps.
61289         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
61290         to utimensat/futimens instead.
61291         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
61293         test-dup2: enhance test
61294         * tests/test-dup2.c (main): Also check AT_FDCWD.
61296         test-stat-time: avoid more spurious failures
61297         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
61298         xfs; and avoid race if the two timestamps cross quantization edge.
61300         relocatable: prefer 'file system' over 'filesystem'
61301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
61302         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
61303         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
61304         * doc/relocatable.texi (Enabling Relocatability): Likewise.
61305         * lib/relocatable.c (compute_curr_prefix): Likewise.
61307 2009-10-10  Jim Meyering  <meyering@redhat.com>
61309         stat-time-tests: check for the usleep function
61310         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
61312 2009-10-10  Bruno Haible  <bruno@clisp.org>
61314         * modules/xnanosleep: Put the Link section after the Include section.
61316 2009-10-09  Eric Blake  <ebb9@byu.net>
61318         dup2: work around FreeBSD 6.1 bug
61319         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
61320         * doc/posix-functions/dup2.texi (dup2): Document it.
61321         Reported by Nelson H. F. Beebe and Jim Meyering.
61323         test-stat-time: port to buggy NFS clients
61324         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
61325         (test_ctime): Also skip test if mtime and ctime are skewed.
61327         maint: prefer 'file system' over 'filesystem'
61328         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61329         * doc/posix-functions/lstat.texi (lstat): Likewise.
61330         * lib/file-has-acl.c (file_has_acl): Likewise.
61331         * lib/fwriteerror.c [TEST]: Likewise.
61332         * tests/test-areadlink.h (test_areadlink): Likewise.
61333         * tests/test-areadlinkat-with-size.c (main): Likewise.
61334         * tests/test-areadlinkat.c (main): Likewise.
61335         * tests/test-canonicalize-lgpl.c (main): Likewise.
61336         * tests/test-canonicalize.c (main): Likewise.
61337         * tests/test-fstatat.c (main): Likewise.
61338         * tests/test-linkat.c (main): Likewise.
61339         * tests/test-lstat.h (test_lstat_func): Likewise.
61340         * tests/test-mkdir.h (test_mkdir): Likewise.
61341         * tests/test-readlink.h (test_readlink): Likewise.
61342         * tests/test-remove.c (main): Likewise.
61343         * tests/test-rename.h (test_rename): Likewise.
61344         * tests/test-renameat.c (main): Likewise.
61345         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61346         * tests/test-symlink.h (test_symlink): Likewise.
61347         * tests/test-symlinkat.c (main): Likewise.
61348         * tests/test-unlink.h (test_unlink_func): Likewise.
61349         * tests/test-unlinkat.c (main): Likewise.
61351         maint: make realtime library usage explicit
61352         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
61353         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
61354         * modules/settime (Link): Likewise.
61355         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
61357         test-stat-time: speed up execution
61358         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
61359         warning on mingw.
61360         (nap): New helper function.
61361         (prepare_test): Use it to reduce sleep time.
61362         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
61363         execution.
61364         * modules/stat-time-tests (configure.ac): Check for usleep.
61366 2009-10-09  Jim Meyering  <meyering@redhat.com>
61368         selinux-h: always use getfilecon wrappers
61369         * lib/getfilecon.c: New file.
61370         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
61371         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
61372         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
61373         (fgetfilecon): Provide a stub.
61374         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
61375         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
61376         file unconditionally.
61377         When <selinux/selinux.h> is found, arrange to use wrappers.
61378         * modules/selinux-h (Files): Add getfilecon.c.
61379         (Makefile.am): Substitute include-next-related bits
61380         into the now-always-generated selinux/selinux.h file.
61381         * doc/glibc-functions/lgetfilecon.texi: New file.
61382         * doc/glibc-functions/fgetfilecon.texi: New file.
61383         * doc/glibc-functions/getfilecon.texi: New file.
61384         * doc/glibc-functions/getfilecon-desc.texi: New file.
61385         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
61386         which to pull in the new files.
61387         * MODULES.html.sh (Misc): Add selinux-h.
61389 2009-10-08  Jim Meyering  <meyering@redhat.com>
61391         unistd: fix comment typo
61392         * lib/unistd.in.h (euidaccess): Fix a comment typo.
61394 2009-10-08  Eric Blake  <ebb9@byu.net>
61396         areadlink: use SIZE_MAX consistently
61397         * modules/areadlink (Depends-on): Add stdint.
61398         * modules/areadlink-with-size (Depends-on): Likewise.
61399         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
61400         gives NULL; drop sys/types, since unistd gives size_t; and add
61401         stdint for SIZE_MAX.
61402         (SIZE_MAX): Rely on headers.
61403         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
61404         and add stdint.
61405         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
61406         (SIZE_MAX): Likewise.
61407         (INITIAL_BUF_SIZE): Turn into enum.
61408         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
61410 2009-10-08  Jim Meyering  <meyering@redhat.com>
61412         areadlinkat: avoid compilation failure
61413         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
61414         Fix typo in comment.
61416 2009-10-07  Eric Blake  <ebb9@byu.net>
61418         areadlinkat-with-size: new module
61419         * modules/areadlinkat-with-size: New module.
61420         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
61421         * lib/areadlink.h (areadlinkat): Declare it.
61422         * MODULES.html.sh (File system functions): Mention it.
61423         * modules/areadlinkat-with-size-tests: New test.
61424         * tests/test-areadlinkat-with-size.c: New file.
61426         xreadlinkat: new module
61427         * modules/xreadlinkat: New module.
61428         * lib/xreadlinkat.c (xreadlinkat): New file.
61429         * lib/xreadlink.h (xreadlinkat): Declare it.
61430         * MODULES.html.sh (File system functions): Mention it.
61432         areadlinkat: new module
61433         * lib/at-func.c (FUNC_FAIL): New define.
61434         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
61435         * modules/areadlinkat: New module.
61436         * lib/linkat.c (areadlinkat): Move...
61437         * lib/areadlinkat.c (areadlinkat): ...to new file.
61438         * lib/areadlink.h (areadlinkat): Declare it.
61439         * modules/linkat (Depends-on): Add areadlinkat.
61440         * MODULES.html.sh (File system functions): Mention it.
61441         * modules/areadlinkat-tests: New test.
61442         * tests/test-areadlinkat.c: New file.
61444         areadlink, areadlink-with-size: add tests
61445         * modules/areadlink-tests: New test.
61446         * modules/areadlink-with-size-tests: Likewise.
61447         * tests/test-areadlink.h: New file.
61448         * tests/test-areadlink.c: Likewise.
61449         * tests/test-areadlink-with-size.c: Likewise.
61451         maint: minor cleanups
61452         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
61453         _UNUSED_PARAMETER_ instead.
61454         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
61455         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
61456         * modules/linkat-tests (Files): Distribute test-link.h.
61458         openat, utimens: whitespace cleanup
61459         * lib/openat.c: Prefer space throughout, rather than mix of 8
61460         spaces vs. tabs.
61461         * lib/at-func.c: Likewise.
61462         * lib/utimens.c: Likewise.
61464         openat: avoid using wrong fd
61465         * lib/openat.c (openat_permissive): Reject user's fd if saving the
61466         working directory chooses same fd.
61467         * lib/at-func.c (AT_FUNC_NAME): Likewise.
61469         mkdir, mkdirat: fix cygwin 1.5.x bug
61470         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
61471         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
61472         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
61473         bug.
61474         (gl_PREREQ_MKDIR): Delete unused macro.
61475         * modules/mkdir (Files): Track file rename.
61476         (configure.ac): Update macro name.
61477         * modules/openat (Depends-on): Add mkdir.
61478         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
61480         mkdir, mkdirat: add tests
61481         * modules/mkdir-tests: New test.
61482         * tests/test-mkdir.h: New file.
61483         * tests/test-mkdir.c: Likewise.
61484         * tests/test-mkdirat.c: Likewise.
61485         * modules/openat-tests (Files): Add new files.
61486         (Makefile.am): Run new test.
61488 2009-10-06  Eric Blake  <ebb9@byu.net>
61490         doc: tweak *at function documentation
61491         * doc/posix-functions/faccessat.texi (faccessat): Mention
61492         known issue with replacement.
61493         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
61494         * doc/posix-functions/linkat.texi (linkat): Likewise.
61495         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61496         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61497         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61498         * doc/posix-functions/renameat.texi (renameat): Likewise.
61499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61501         openat: fix GNU/Hurd bug in unlinkat
61502         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
61503         broken.
61504         * doc/posix-functions/unlink.texi (unlink): Document this.
61505         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
61507         fdopendir: fix GNU/Hurd bug
61508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
61509         allowing non-directory fds.
61510         * lib/fdopendir.c (rpl_fdopendir): Work around it.
61511         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
61512         * modules/dirent (Makefile.am): Substitute it.
61513         * lib/dirent.in.h (fdopendir): Declare replacement.
61514         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
61515         * tests/test-fdopendir.c (main): Test something other than
61516         /dev/null, since on Hurd that behaves like a directory.
61518         test-symlink: port to GNU/Hurd
61519         * tests/test-symlink.h (test_symlink): Relax expected errno.
61521         doc: tweak more cygwin information
61522         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
61523         now compatible with glibc.
61524         * doc/posix-functions/getopt.texi (getopt): Likewise.
61526         getopt-gnu: add another test
61527         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
61528         guarantee behavior relied on by m4.
61529         * tests/test-getopt.c (main): Use it.
61530         * modules/getopt-posix-tests (Depends-on): Add setenv.
61531         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
61533         getopt: fix compilation on darwin
61534         * lib/getopt.in.h (includes): Leave breadcrumbs during system
61535         include.
61536         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
61537         Reported by Ludovic Courtès.
61539 2009-10-06  Bruno Haible  <bruno@clisp.org>
61541         * modules/size_max (Description): Discourage its use.
61542         Reported by Simon Josefsson.
61544 2009-10-06  Jim Meyering  <meyering@redhat.com>
61546         linkat: avoid compilation failure
61547         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
61549 2009-10-05  Eric Blake  <ebb9@byu.net>
61551         linkat: support Linux 2.6.17
61552         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
61553         linkat on Linux, but allow cache variable override.
61554         * lib/linkat.c (rpl_linkat): Define override.
61555         * modules/linkat (Depends-on): Add symlinkat.
61556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
61557         * modules/unistd (Makefile.am): Substitute it.
61558         * lib/unistd.in.h (linkat): Declare replacement.
61559         Reported by Pádraig Brady.
61561         quotearg: port test to systems with C.UTF-8 locale
61562         * tests/test-quotearg.c (struct result_strings): Add another
61563         member, differentiating between C.ASCII and C.UTF-8 handling.
61564         (compare_strings): Add parameter.
61565         (main): Adjust all callers.
61567         getopt: avoid clash with FreeBSD _getopt_internal
61568         * lib/getopt.in.h (_getopt_internal): Override the name.
61569         * lib/getopt_int.h (includes): Pick up any overrides.
61570         Reported by Reuben Thomas.
61572         hash: allow C89 compilation
61573         * lib/hash.c (check_tuning): Move declaration before statement.
61574         Reported by Reuben Thomas.
61576 2009-10-05  Karl Berry  <karl@gnu.org>
61578         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
61580 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
61581             Bruno Haible  <bruno@clisp.org>
61583         * lib/uname.c (uname): Use a table-driven algorithm to compute
61584         Windows NT versions.
61586 2009-10-04  Bruno Haible  <bruno@clisp.org>
61588         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
61589         program_invocation_short_name.
61590         * modules/progname (configure.ac): Test for presence of
61591         program_invocation_short_name.
61592         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
61594 2009-10-04  Bruno Haible  <bruno@clisp.org>
61596         * lib/progname.c (set_program_name): Fix comment.
61597         Reported by Jim Meyering.
61599 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61600             Bruno Haible  <bruno@clisp.org>
61602         * lib/uname.c: Include <string.h>.
61603         (uname): Do only one call to GetVersionEx in the common case.
61605 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61606             Bruno Haible  <bruno@clisp.org>
61608         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
61609         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
61610         (uname): Add support for Windows CE and various non-x86 CPU types.
61612 2009-10-03  Bruno Haible  <bruno@clisp.org>
61614         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
61615         invocation to tests/configure.ac.
61616         Reported by Ian Beckwith <ianb@erislabs.net>.
61618 2009-10-02  Eric Blake  <ebb9@byu.net>
61620         fchdir: avoid compiler warning
61621         * lib/fchdir.c (canonicalize_file_name)
61622         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
61624         test-open: support mingw errno values
61625         * tests/test-open.h (test_open): Relax test.
61626         * tests/test-fopen.h (test_fopen): Likewise.
61627         * tests/test-openat-safer.c (main): Likewise.
61629         open: fix opening directory on mingw
61630         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
61632         test-open: on GNU/Hurd, /dev/null is a directory
61633         * tests/test-fopen.h (main): Rename...
61634         (test_fopen): ...to this.  Use a guaranteed non-directory when
61635         confirming open behavior on trailing slash.
61636         * tests/test-openat-safer.c (main): Likewise.
61637         * tests/test-open.h (main): Likewise....
61638         (test_open): ...to this.
61639         * tests/test-fopen.c (main): Adjust caller.
61640         * tests/test-fopen-safer.c (main): Likewise.
61641         * tests/test-open.c (main): Likewise.
61642         * tests/test-fcntl-safer.c (main): Likewise.
61643         Reported by Samuel Thibault.
61645         rename, fchdir: don't ignore chdir failure
61646         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
61647         * lib/rename.c (rpl_rename) [W32]: Likewise.
61648         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
61649         an empty destination directory if source cannot be renamed,
61650         although there is still possibility for failure.
61651         * doc/posix-functions/rename.texi (rename): Document the race.
61652         Reported by Jim Meyering.
61654         maint: cleanup whitespace in recent commits
61655         * lib/rename.c (rpl_rename): Remove tabs.
61656         * tests/test-link.h (test_link): Likewise.
61657         * lib/fchdir.c (get_name): Likewise.
61658         Reported by Jim Meyering.
61660 2009-10-02  Ben Pfaff  <blp@gnu.org>
61662         relocatable-prog-wrapper: Add missing dependency on
61663         double-slash-root.
61664         * modules/relocatable-prog-wrapper: Add dependency.
61665         Reported by Ian Beckwith <ianb@erislabs.net>.
61667 2009-10-02  Eric Blake  <ebb9@byu.net>
61669         renameat: fix Solaris bugs
61670         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
61671         needed fixing.
61672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
61673         * modules/stdio (Makefile.am): Substitute it.
61674         * lib/stdio.in.h (renameat): Declare replacement.
61675         * lib/renameat.c (rpl_renameat): Implement fix.
61677         renameat: new module
61678         * modules/renameat: New file.
61679         * lib/renameat.c (renameat): Likewise.
61680         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
61681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61682         * modules/stdio (Makefile.am): Substitute them.
61683         * lib/stdio.in.h (renameat): Declare it.
61684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61685         * doc/posix-functions/renameat.texi (renameat): Likewise.
61686         * modules/renameat-tests: New test.
61687         * tests/test-renameat.c: Likewise.
61689         rename: fix mingw bugs
61690         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
61691         directory overwrite bugs.
61693         rename: fix another cygwin 1.5 bug
61694         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
61695         checks.
61696         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
61697         unnecessary cygwin workarounds.  Also work around bug with moving
61698         full directory onto an empty one.
61699         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
61701         rename-dest-slash: merge into rename module
61702         * modules/rename-dest-slash (Status): Mark obsolete.
61703         (Depends-on): Add rename.
61704         (Files): Let rename do it all.
61705         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
61706         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
61707         * m4/rename-dest-slash.m4: ...so this file can be deleted.
61708         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
61709         * lib/rename.c (rpl_rename): Update comments.
61711         rename: fix cygwin 1.5.x bugs
61712         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
61713         * lib/rename.c (rpl_rename): Work around them.
61714         * modules/rename (Depends-on): Add same-inode.
61716         rename: fix Solaris 10 bug
61717         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61718         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
61719         was the only bug.
61721         rename: fix Solaris 9 bug
61722         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
61723         on non-directory.  Avoid calling exit.
61724         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
61725         strdup.
61726         * modules/rename-tests (Depends-on): Drop lstat.
61727         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61728         (gl_PREREQ_RENAME): Delete unused macro.
61730         rename-dest-slash: fix NetBSD bug
61731         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
61732         links.
61733         * modules/rename-dest-slash (Depends-on): Add same-inode.
61735         rename-tests: new test, exposes several platform bugs
61736         * modules/rename-tests: New file.
61737         * tests/test-rename.h: Likewise.
61738         * tests/test-rename.c: Likewise.
61739         * doc/posix-functions/rename.texi (rename): Improve documentation,
61740         including bugs that will eventually be fixed in gnulib.
61742 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
61744         * lib/uname.c: Include <stdlib.h>
61745         (uname): Assume version info is available.
61747 2009-10-02  Jim Meyering  <meyering@redhat.com>
61749         gnu-web-doc-update: correct --help output
61750         * build-aux/gnu-web-doc-update: Make --help output relevant.
61752         gnu-web-doc-update: add standard options
61753         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
61755         gnu-web-doc-update: New module.
61756         Use this script to automatically update the on-line web documentation
61757         for your GNU project at http://www.gnu.org/software/$pkg/manual/
61758         * modules/gnu-web-doc-update: New file, from coreutils.
61759         * build-aux/gnu-web-doc-update: New script.
61761 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
61763         link: LoadLibrary is not needed.
61764         * lib/link.c: Use GetModuleHandle.
61766 2009-10-01  Eric Blake  <ebb9@byu.net>
61768         getopt: bump serial number
61769         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
61770         change.
61772         tests: tighten link, rmdir, and remove tests
61773         * tests/test-link.h (includes): No need to use <config.h> here.
61774         Clean up if directory hard link was created, otherwise test for
61775         trailing '.'.
61776         * tests/test-linkat.c (main): Simplify.
61777         * tests/test-remove.c (main): Enhance test for trailing '.'.
61778         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61780 2009-10-01  Jim Meyering  <meyering@redhat.com>
61782         maint.mk: requiring "make major" was annoying, for a "minor" release.
61783         What is intended is "stable", to contrast with alpha and beta,
61784         so require "make stable", not "make major".
61785         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
61786         (get_tool_versions): Likewise.
61787         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
61789 2009-09-30  Ben Pfaff  <blp@gnu.org>
61791         Fix broken build of replacement for Windows tmpfile().
61792         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61793         flags argument added along with the 'mkostemp' module.
61795 2009-09-28  Bruno Haible  <bruno@clisp.org>
61797         Avoid identifier clash with POSIX function 'remove' defined as a macro.
61798         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
61799         to 'remove_elt'.
61800         (gl_list_remove): Update.
61801         * lib/gl_list.c (gl_list_remove): Update.
61802         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
61803         to 'remove_elt'.
61804         (gl_oset_remove): Update.
61805         * lib/gl_list.c (gl_oset_remove): Update.
61806         Reported by Eric Blake.
61808 2009-09-28  Eric Blake  <ebb9@byu.net>
61810         doc: mention yet more cygwin 1.7 status
61811         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
61812         cygwin.
61813         * doc/glibc-functions/execvpe.texi (execvpe): New file.
61814         * doc/gnulib.texi (Glibc unistd.h): Mention it.
61816         argp: fix test failure
61817         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
61818         that are not upper-case.  Pass correct range to tolower.
61820 2009-09-27  Jim Meyering  <meyering@redhat.com>
61822         test-yesno: work around sparc-dash here-document infelicity
61823         Without this change, the literal \177 byte in a here document
61824         would make dash 0.5.5.1-3 access uninitialized memory.
61825         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
61826         Instead, use a marker, "@", and filter through tr to create the desired
61827         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
61829 2009-09-27  Bruno Haible  <bruno@clisp.org>
61831         Disable untested support for new flavours of ACLs on AIX.
61832         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
61833         progress.
61834         * lib/set-mode-acl.c (qset_acl): Likewise.
61836 2008-12-07  Bruno Haible  <bruno@clisp.org>
61838         Add support for new flavours of ACLs on AIX. (Untested.)
61839         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
61840         (file_has_acl): Add support for newer AIX.
61841         * lib/set-mode-acl.c (qset_acl): Likewise.
61842         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
61843         Rainer Tammer <tammer@tammer.net>.
61845 2009-09-26  Eric Blake  <ebb9@byu.net>
61847         argp: fix compilation of getopt
61848         * lib/getopt.in.h (includes): Use different guard than glibc.
61849         Reported by Sergey Poznyakoff.
61851         doc: mention more cygwin 1.7 status
61852         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61853         bug.
61854         * doc/posix-functions/execl.texi (execl): Likewise.
61855         * doc/posix-functions/execle.texi (execle): Likewise.
61856         * doc/posix-functions/execlp.texi (execlp): Likewise.
61857         * doc/posix-functions/execv.texi (execv): Likewise.
61858         * doc/posix-functions/execve.texi (execve): Likewise.
61859         * doc/posix-functions/execvp.texi (execvp): Likewise.
61860         * doc/glibc-functions/canonicalize_file_name.texi
61861         (canonicalize_file_name): Cygwin 1.7 now provides this.
61862         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61863         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61864         on AT_SYMLINK_NOFOLLOW.
61866 2009-09-24  Eric Blake  <ebb9@byu.net>
61868         test-linkat: make test more robust
61869         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61871         getopt: fix inclusion guards for cygwin
61872         * modules/getopt-posix (Depends-on): Add include-next.
61873         (Makefile.am): Substitute more items in replacement header.
61874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61875         <getopt.h>.
61876         * lib/getopt.in.h (includes): Use split inclusion guard, and
61877         prefer <getopt.h> over include <unistd.h> when one is present.
61878         (option): Also override name of 'struct option'.
61880         same-inode: revert prior change; it is not yet ready
61881         * NEWS: Undo mention of this change.
61882         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61883         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61884         * lib/cycle-check.c (cycle_check): Likewise.
61885         * lib/same.c (same_name): Likewise.
61886         * lib/at-func2.c (at_func2): Likewise.
61888 2009-09-23  Eric Blake  <ebb9@byu.net>
61890         linkat: new module
61891         * modules/linkat: New file.
61892         * lib/at-func2.c (at_func2): Likewise.
61893         * lib/linkat.c (linkat): Likewise.
61894         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61895         * lib/openat-priv.h (at_func2): Add declaration.
61896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61897         * modules/unistd (Makefile.am): Substitute them.
61898         * lib/unistd.in.h (linkat): Declare it.
61899         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61900         * doc/posix-functions/linkat.texi (linkat): Likewise.
61901         * doc/posix-functions/link.texi (link): Tweak wording.
61902         * tests/test-link.c (main): Move guts...
61903         * tests/test-link.h (test_link): ...into new file.
61904         * modules/linkat-tests: New test.
61905         * tests/test-linkat.c: Likewise.
61906         * modules/link-tests (Files): Ship new file.
61907         (Depends-on): Add stdbool.
61909         dirname: add library-safe mdir_name
61910         * lib/dirname.h (mdir_name): New prototype.
61911         * lib/dirname.c (dir_name): Move guts...
61912         (mdir_name): ...to new function that avoids xalloc_die.
61914         fchdir: another mingw fix
61915         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61916         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61917         on mingw (where it has not yet been ported), and make it optional
61918         elsewhere.
61919         (_gl_register_fd): Use it.
61921         same-inode: make SAME_INODE tri-state, to port to mingw
61922         * NEWS: Mention this change.
61923         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61924         st_ino always being 0.
61925         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61926         * lib/cycle-check.c (cycle_check): Likewise.
61927         * lib/same.c (same_name): Likewise.
61929         lstat: avoid mingw compilation error
61930         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61931         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61932         lstat ourselves.
61933         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61934         was adequate.
61935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61936         the checks for lstat.
61937         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61939         link: fix test failure on Solaris 9
61940         * lib/link.c (rpl_link): Don't assume link will catch bogus
61941         trailing slash on source.
61943         test-symlinkat: enhance test
61944         * tests/test-readlink.c (main): Move guts...
61945         * tests/test-readlink.h (test_readlink): ...into new file.
61946         * tests/test-symlink.c (main): Move guts...
61947         * tests/test-symlink.h (test_symlink): ...into new file.
61948         * tests/test-symlinkat.c (main): Use new files for further
61949         coverage.
61950         (do_symlink, do_readlink): New helper functions.
61951         * modules/symlink-tests (Files): Ship new file.
61952         (Depends-on): Add stdbool.
61953         * modules/readlink-tests (Files): Ship new file.
61954         (Depends-on): Add stdbool.
61955         * modules/symlinkat-tests (Files): Use new files.
61957 2009-09-23  Eric Blake  <ebb9@byu.net>
61959         readlink: document portability issue with symlink length
61960         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61961         systems have bogus st_size on symlinks, and mention the
61962         areadlink-with-size module.
61963         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61964         * doc/posix-functions/readlink.texi (readlink): Mention the
61965         areadlink module, and ERANGE failure.
61966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61967         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61969         readlink: fix Solaris 9 bug with trailing slash
61970         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61971         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61972         * doc/posix-functions/readlink.texi (readlink): Document this.
61973         * modules/readlink-tests: New test.
61974         * tests/test-readlink.c: Likewise.
61976         readlink: fix cygwin 1.5.x bug with return type
61977         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61978         * lib/unistd.in.h (readlink): Use ssize_t.
61979         * lib/readlink.c (readlink): Likewise.
61980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61981         * modules/unistd (Makefile.am): Substitute it.
61982         * lib/unistd.in.h (readlink): Declare replacement.
61983         * doc/posix-functions/readlink.texi (readlink): Document this.
61985         symlink: use throughout gnulib
61986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61987         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61988         symlink is not used.
61989         * modules/symlinkat (Depends-on): Add symlink.
61990         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61991         * modules/canonicalize-tests (Depends-on): Likewise.
61992         * modules/lstat-tests (Depends-on): Likewise.
61993         * modules/openat-tests (Depends-on): Likewise.
61994         * modules/remove-tests (Depends-on): Likewise.
61995         * modules/rmdir-tests (Depends-on): Likewise.
61996         * modules/unlink-tests (Depends-on): Likewise.
61997         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61998         * tests/test-canonicalize.c (symlink): Likewise.
61999         * tests/test-fstatat.c (symlink): Likewise.
62000         * tests/test-lstat.c (symlink): Likewise.
62001         * tests/test-remove.c (symlink): Likewise.
62002         * tests/test-rmdir.c (symlink): Likewise.
62003         * tests/test-unlink.c (symlink): Likewise.
62004         * tests/test-unlinkat.c (symlink): Likewise.
62006         symlink: new module, for Solaris 9 bug
62007         * modules/symlink: New file.
62008         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62009         * lib/symlink.c: Likewise.
62010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
62011         * modules/unistd (Makefile.am): Substitute them.
62012         * lib/unistd.in.h (symlink): Declare replacement.
62013         * MODULES.html.sh (File system functions): Mention it.
62014         * doc/posix-functions/symlink.texi (symlink): Likewise.
62015         * modules/symlink-tests: New test.
62016         * tests/test-symlink.c: Likewise.
62018 2009-09-23  Bruno Haible  <bruno@clisp.org>
62020         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
62021         when needed.
62022         Test case: gnulib-tool --import --with-tests atexit inttypes.
62023         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
62025 2009-09-23  Bruno Haible  <bruno@clisp.org>
62027         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
62028         subcommand, not in a subshell.
62030 2009-09-22  Eric Blake  <ebb9@byu.net>
62032         unistd: sort replacement declarations
62033         * lib/unistd.in.h: Sort declarations.
62035         open, openat: minor optimization
62036         * lib/open.c (open): If open succeeded, len is non-zero.
62037         * lib/openat.c (rpl_openat): Likewise.
62039         link-follow: ensure correct result
62040         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
62041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
62042         distinguish between possible failures.
62044 2009-09-21  Eric Blake  <ebb9@byu.net>
62046         fts: avoid compiler warning
62047         * lib/fts.c (dirent_inode_sort_may_be_useful)
62048         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
62050 2009-09-19  Bruno Haible  <bruno@clisp.org>
62052         * lib/progreloc.c (canonicalize_file_name): New declaration.
62054 2009-09-19  Eric Blake  <ebb9@byu.net>
62056         link: fix quoting
62057         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
62059         openat: fix openat bugs on Solaris 9
62060         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
62061         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
62062         * modules/openat (Depends-on): Add open.
62063         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
62064         * modules/fcntl-h (Makefile.am): Substitute it.
62065         * lib/fcntl.in.h (openat): Declare replacement.
62066         * doc/posix-functions/openat.texi (openat): Document this.
62068         openat: move fstatat and unlinkat into correct files
62069         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
62070         compiled.
62071         * lib/openat.c (fstatat, unlinkat): Move...
62072         * lib/fstatat.c (fstatat): ...into correct files.
62073         * lib/unlinkat.c (unlinkat): Likewise.
62075         openat: fix unlinkat bugs on Solaris 9
62076         * lib/unlinkat.c (unlinkat): New file.
62077         * modules/openat (Depends-on): Add unlink.
62078         (Files): Distribute it.
62079         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
62080         trailing slash behavior is broken.
62081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62082         * modules/unistd (Makefile.am): Substitute it.
62083         * lib/unistd.in.h (unlinkat): Declare replacement.
62084         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
62086         openat: fix fstatat bugs on Solaris 9
62087         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
62088         stat.
62089         * doc/posix-functions/fstatat.texi (fstatat): Document this.
62091         test-unlinkat: enhance test, to expose Solaris 9 bug
62092         * tests/test-unlink.c (main): Factor guts...
62093         * tests/test-unlink.h (test_rmdir_func): ...into new file.
62094         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
62095         * tests/test-rmdir.c (main): Adjust caller.
62096         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
62097         (unlinker): New helper function.
62098         (rmdirat): Enhance check.
62099         * modules/rmdir-tests (Depends-on): Add stdbool.
62100         * modules/unlink-tests (Depends-on): Likewise.
62101         (Files): Add test-unlink.h.
62102         * modules/openat-tests (Files): Likewise.
62103         (Depends-on): Add unlinkdir.
62105         test-fstatat: new test, to expose Solaris 9 bugs
62106         * tests/test-stat.c (main): Factor guts...
62107         * tests/test-stat.h (test_stat_func): ...into new file.
62108         * tests/test-lstat.c (main): Factor guts...
62109         * tests/test-lstat.h (test_lstat_func): ...into new file.
62110         * tests/test-fstatat.c: New file.
62111         * modules/stat-tests (Files): Add test-stat.h.
62112         * modules/lstat-tests (Files): Add test-lstat.h.
62113         (Depends-on): Add stdbool.
62114         * modules/openat-tests (Depends-on): Add pathmax.
62115         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
62116         (Makefile.am): Run new test.
62118         remove: new module, for mingw and Solaris 9 bugs
62119         * modules/remove: New file.
62120         * lib/remove.c: Likewise.
62121         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
62122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
62123         * modules/stdio (Makefile.am): Use them.
62124         * lib/stdio.in.h (remove): Declare replacement.
62125         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62126         * doc/posix-functions/remove.texi (remove): Likewise.
62127         * modules/remove-tests: New test.
62128         * tests/test-remove.c: Likewise.
62130         unlink: new module, for Solaris 9 bug
62131         * modules/unlink: New file.
62132         * lib/unlink.c: Likewise.
62133         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62135         * modules/unistd (Makefile.am): Use them.
62136         * lib/unistd.in.h (stat): Declare replacement.
62137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62138         * doc/posix-functions/unlink.texi (unlink): Likewise.
62139         * modules/unlink-tests: New test.
62140         * tests/test-unlink.c: Likewise.
62142         lstat: fix Solaris 9 bug
62143         * lib/lstat.c (lstat): Also check for trailing slash on
62144         non-symlink, non-directories.  Use stat module to simplify logic.
62145         * doc/posix-functions/lstat.texi (lstat): Document it.
62146         * modules/lstat-tests (Depends-on): Add errno, same-inode.
62147         (configure.ac): Check for symlink.
62148         * tests/test-lstat.c (main): Add more tests.
62150         stat: add as dependency to other modules
62151         * modules/chown (Depends-on): Add stat.
62152         * modules/euidaccess (Depends-on): Likewise.
62153         * modules/fchdir (Depends-on): Likewise.
62154         * modules/isdir (Depends-on): Likewise.
62155         * modules/link (Depends-on): Likewise.
62156         * modules/lstat (Depends-on): Likewise.
62157         * modules/mkdir-p (Depends-on): Likewise.
62158         * modules/modechange (Depends-on): Likewise.
62159         * modules/open (Depends-on): Likewise.
62160         * modules/readlink (Depends-on): Likewise.
62161         * modules/same (Depends-on): Likewise.
62163         stat: fix Solaris 9 bug
62164         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
62165         slash.
62166         * lib/stat.c (rpl_stat): Work around it.
62167         * doc/posix-functions/stat.texi (stat): Update documentation.
62169         stat: new module, for mingw bug
62170         * modules/stat: New file.
62171         * lib/stat.c: Likewise.
62172         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62174         * modules/sys_stat (Makefile.am): Use them.
62175         * lib/sys_stat.in.h (stat): Declare replacement.
62176         * lib/openat.c (fstatat): Deal with lstat and stat being function
62177         macros.
62178         * modules/openat (Depends-on): Add inline.
62179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62180         * doc/posix-functions/stat.texi (stat): Likewise.
62181         * modules/stat-tests: New test.
62182         * tests/test-stat.c: Likewise.
62184 2009-09-19  Jim Meyering  <meyering@redhat.com>
62186         syntax-check: detect unnecessary inclusion of canonicalize.h
62187         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
62189 2009-09-19  Eric Blake  <ebb9@byu.net>
62191         canonicalize-lgpl: adjust clients to use correct header
62192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62193         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
62194         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
62195         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
62196         * lib/progreloc.c (includes): Likewise.
62198 2009-09-19  Jim Meyering  <meyering@redhat.com>
62200         test-posixtm.c: correct a comment
62201         * tests/test-posixtm.c: Correct first-line comment.
62202         Spotted by Eric Blake.
62204 2009-09-16  Jim Meyering  <meyering@redhat.com>
62206         posixtm-tests: make T const-correct; add a test case
62207         * tests/test-posixtm.c (T): Declare const.
62208         Add a test for -(2^31+1).
62209         Remove useless can-succeed-only-in-2002 test.
62211         posixtm-tests: adjust the sole failing test
62212         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
62213         expected output matches what mktime now produces.  Cross-checked via
62214         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
62216         posixtm: move #ifdef'd tests into a new module
62217         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
62218         * tests/test-posixtm.c: ... this new file.
62219         * modules/posixtm-tests: New module.
62221 2009-09-19  Eric Blake  <ebb9@byu.net>
62223         openat: simplify use of at-func.c
62224         * lib/at-func.c (includes): Include prerequisites here, to
62225         simplify requirements on client files.
62226         * lib/openat-priv.h: Add double-inclusion guard.
62227         * lib/faccessat.c (includes): Simplify.
62228         * lib/fchmodat.c (includes): Likewise.
62229         * lib/fchownat.c (includes): Likewise.
62230         * lib/mkdirat.c (includes): Likewise.
62231         * lib/mkfifoat.c (includes): Likewise.
62232         * lib/symlinkat.c (includes): Likewise.
62234         openat: allow return of fd 0
62235         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
62236         * modules/save-cwd (Depends-on): Replace fcntl-safer with
62237         unistd-safer.
62238         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
62239         <fcntl.h>; this module does not leak fds.
62240         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
62241         must be allowed to return 0, leaving openat_safer to add the
62242         safety.
62243         (openat_permissive): Avoid writing to just-opened fd 2 if
62244         restoring the current directory fails.
62245         * lib/openat-die.c (openat_restore_fail): Add comment.
62246         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
62247         (save_cwd): Guarantee safe fd, but without use of open_safer.
62248         * tests/test-openat.c: New test.
62249         * modules/openat-tests (Files, Makefile.am): Distribute and build
62250         new file.
62252         relocatable-prog-wrapper: fix build
62253         * modules/relocatable-prog-wrapper (Files): Update name of
62254         canonicalize m4 file, broken on 2009-09-17.
62255         Reported by emad hajjar <aleppos@hotmail.com>.
62257 2009-09-19  Bruno Haible  <bruno@clisp.org>
62259         * lib/safe-alloc.h: Use the standard header with GPL copyright.
62260         * lib/safe-alloc.c: Likewise.
62261         Reported by Ian Beckwith <ianb@erislabs.net>.
62263 2009-09-18  Bruno Haible  <bruno@clisp.org>
62265         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
62266         Reported by <erobles@sensacd.com.mx>.
62268 2009-09-17  Eric Blake  <ebb9@byu.net>
62270         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
62271         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
62272         slashes when checking if last component is missing.
62273         * tests/test-canonicalize.c (main): Test this.
62275         canonicalize, canonicalize-lgpl: honor // if distinct from /
62276         * modules/canonicalize (Files): Add double-slash-root.m4.
62277         * modules/canonicalize-lgpl (Files): Likewise.
62278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62279         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
62280         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
62281         fallback definition.
62282         (canonicalize_filename_mode): Use it to protect //.
62283         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
62284         (__realpath): Likewise.
62285         * tests/test-canonicalize.c (main): Test this.
62286         * tests/test-canonicalize-lgpl.c (main): Likewise.
62287         * modules/canonicalize-tests (Depends-on): Add same-inode.
62288         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
62290         canonicalize-lgpl: fix glibc bug with trailing slash
62291         * m4/canonicalize-lgpl.m4: Move contents...
62292         * m4/canonicalize.m4: ...here.
62293         (gl_CANONICALIZE_LGPL): Factor realpath check...
62294         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
62295         glibc 2.3.5 bug, fixed 2005-04-27.
62296         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
62297         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
62298         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
62299         * modules/canonicalize-lgpl (Files): Manage file rename.
62300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62301         * modules/stdlib (Makefile.am): Substitute witness.
62302         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
62303         is needed.
62304         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
62305         replacement is required.
62306         * lib/canonicalize.c (canonicalize_file_name): Likewise.
62307         * doc/glibc-functions/canonicalize_file_name.texi
62308         (canonicalize_file_name): Document this.
62309         * doc/posix-functions/realpath.texi (realpath): Likewise.
62311         canonicalize-lgpl: reject non-directory with trailing slash
62312         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
62313         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
62314         catches failures in glibc 2.3.5.
62315         * tests/test-canonicalize.c (main): Likewise.
62317         canonicalize-lgpl: use native realpath if it works
62318         * lib/canonicalize-lgpl.c (realpath): Guard with
62319         FUNC_REALPATH_WORKS.
62320         * lib/stdlib.in.h (realpath): Make declaration optional based on
62321         HAVE_REALPATH.
62322         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
62323         native realpath works.
62324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62325         * modules/stdlib (Makefile.am): Substitute witness.
62327         canonicalize, canonicalize-lgpl: use <stdlib.h>
62328         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
62329         (Include): Mention <stdlib.h>.
62330         (configure.ac): Mention functions we provide.
62331         * modules/canonicalize (configure.ac): Likewise.
62332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
62333         realpath if canonicalize_file_name is missing.
62334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
62335         * modules/stdlib (Makefile.am): Substitute witnesses.
62336         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
62337         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
62338         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
62339         * NEWS: Document this.
62340         * doc/glibc-functions/canonicalize_file_name.texi
62341         (canonicalize_file_name): Likewise.
62342         * doc/posix-functions/realpath.texi (realpath): Likewise.
62343         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
62345         test-canonicalize: consolidate into single C program
62346         * tests/test-canonicalize.sh: Delete; move setup into...
62347         * tests/test-canonicalize.c (main): ...the program, making it
62348         easier to run in debugger.  Add some tests.
62349         * modules/canonicalize-tests (Files): Remove unused file.
62350         (Depends-on): Add progname.
62351         (configure.ac, Makefile.am): Simplify.
62353         test-canonicalize-lgpl: consolidate into single C program
62354         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
62355         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
62356         easier to run in debugger.  Add some tests.
62357         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
62358         (configure.ac, Makefile.am): Simplify.
62360         canonicalize: avoid resolvepath
62361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
62362         unnecessary checks.
62363         * lib/canonicalize.c (includes): Simplify.
62364         (canonicalize_file_name): Drop resolvepath implementation.
62365         * modules/canonicalize (Depends-on): Drop filenamecat.
62367         canonicalize: don't lose errno
62368         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
62369         over calls to free.
62371         canonicalize: simplify errno handling
62372         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
62373         assignment.
62375         canonicalize, canonicalize-lgpl: update module dependencies
62376         * modules/canonicalize (Depends-on): Add extensions, lstat,
62377         pathmax, stdlib.
62378         (Files): Drop pathmax.h.
62379         (configure.ac): Adjust macro name.
62380         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
62381         lstat, stdlib, sys_stat.
62382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
62383         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
62384         extensions.
62385         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
62386         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
62387         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
62388         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
62389         declaration, if available.
62390         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
62391         we can rely on the readlink module.
62392         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
62393         (includes): Use <unistd.h> unconditionally.
62395 2009-09-17  Eric Blake  <ebb9@byu.net>
62397         maint: make Include sections of modules consistent
62398         * modules/alloca: Use only header name; no need to list #include.
62399         * modules/alloca-opt: Likewise.
62400         * modules/arpa_inet: Likewise.
62401         * modules/canon-host: Likewise.
62402         * modules/configmake: Likewise.
62403         * modules/dirent: Likewise.
62404         * modules/eealloc: Likewise.
62405         * modules/environ: Likewise.
62406         * modules/fchdir: Likewise.
62407         * modules/fcntl: Likewise.
62408         * modules/fcntl-h: Likewise.
62409         * modules/gethrxtime: Likewise.
62410         * modules/gettime: Likewise.
62411         * modules/ignore-value: Likewise.
62412         * modules/inet_ntop: Likewise.
62413         * modules/inet_pton: Likewise.
62414         * modules/inttypes: Likewise.
62415         * modules/isnand-nolibm: Likewise.
62416         * modules/isnanf-nolibm: Likewise.
62417         * modules/mbchar: Likewise.
62418         * modules/mbfile: Likewise.
62419         * modules/mbiter: Likewise.
62420         * modules/mbuiter: Likewise.
62421         * modules/netdb: Likewise.
62422         * modules/netinet_in: Likewise.
62423         * modules/nproc: Likewise.
62424         * modules/pagealign_alloc: Likewise.
62425         * modules/poll: Likewise.
62426         * modules/printf-frexp: Likewise.
62427         * modules/pthread: Likewise.
62428         * modules/putenv: Likewise.
62429         * modules/random_r: Likewise.
62430         * modules/relocatable-prog: Likewise.
62431         * modules/search: Likewise.
62432         * modules/select: Likewise.
62433         * modules/selinux-h: Likewise.
62434         * modules/settime: Likewise.
62435         * modules/signal: Likewise.
62436         * modules/size_max: Likewise.
62437         * modules/socklen: Likewise.
62438         * modules/ssize_t: Likewise.
62439         * modules/stdarg: Likewise.
62440         * modules/stdbool: Likewise.
62441         * modules/stddef: Likewise.
62442         * modules/stdint: Likewise.
62443         * modules/stdio: Likewise.
62444         * modules/stdlib: Likewise.
62445         * modules/string: Likewise.
62446         * modules/strings: Likewise.
62447         * modules/sys_file: Likewise.
62448         * modules/sys_ioctl: Likewise.
62449         * modules/sys_select: Likewise.
62450         * modules/sys_socket: Likewise.
62451         * modules/sys_stat: Likewise.
62452         * modules/sys_time: Likewise.
62453         * modules/sys_times: Likewise.
62454         * modules/sys_utsname: Likewise.
62455         * modules/sys_wait: Likewise.
62456         * modules/sysexits: Likewise.
62457         * modules/time: Likewise.
62458         * modules/times: Likewise.
62459         * modules/tmpfile: Likewise.
62460         * modules/trim: Likewise.
62461         * modules/unistd: Likewise.
62462         * modules/wchar: Likewise.
62463         * modules/wctype: Likewise.
62465 2009-09-17  Bruno Haible  <bruno@clisp.org>
62467         Make getdate.y compile on QNX and NetBSD 5 / i386.
62468         * m4/getdate.m4 (gl_GETDATE): Conditionally define
62469         TIME_T_FITS_IN_LONG_INT.
62470         * lib/getdate.y (long_time_t): New type.
62471         (relative_time): Change type of 'seconds' field to long_time_t.
62472         (get_date): Update types of local variables. Check against overflow
62473         during conversion from long_time_t to time_t.
62474         Reported by Matt Kraai <kraai@ftbfs.org>
62475         and Hasso Tepper <hasso@netbsd.org>.
62477 2009-09-17  Bruno Haible  <bruno@clisp.org>
62479         * modules/COPYING: Update copyright years.
62480         * modules/README: Likeiwse.
62481         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
62482         Reported by Ian Beckwith <ianb@erislabs.net>.
62484 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62486         * users.txt: Update references for gnuit package.
62488 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62490         * m4/getdelim.m4: Fix typo in copyright line.
62492 2009-09-17  Bruno Haible  <bruno@clisp.org>
62494         * lib/atoll.c: Use the standard header with GPL copyright.
62495         * lib/argz.in.h: Likewise.
62496         * lib/glob.c: Likewise.
62497         * lib/glob-libc.h: Likewise.
62498         * lib/random_r.c: Likewise.
62499         * lib/siglist.h: Likewise.
62500         * lib/strsignal.c: Likewise.
62501         Reported by Ian Beckwith <ianb@erislabs.net>.
62503 2009-09-17  Eric Blake  <ebb9@byu.net>
62505         rmdir: ensure correct dependency order
62506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
62508 2009-09-17  Bruno Haible  <bruno@clisp.org>
62510         Disable assertion that fails on NetBSD 5 / i386.
62511         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
62512         Reported by Sam Steingold <sds@gnu.org>
62513         and Hasso Tepper <hasso@netbsd.org>.
62515 2009-09-16  Eric Blake  <ebb9@byu.net>
62517         unlinkdir: port to mingw
62518         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
62519         on which no one can unlink a directory.
62521         stdlib: sort witness names
62522         * modules/stdlib (Makefile.am): Sort replacements.
62523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62524         * lib/stdlib.in.h: Likewise.
62526         parse-duration-tests: avoid link failure
62527         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
62528         LIBINTL.
62529         Reported by Tom G. Christensen.
62531         openat-tests: ensure unlinkat behaves like rmdir
62532         * tests/test-rmdir.c (main): Factor guts...
62533         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
62534         * modules/rmdir-tests (Files): Ship new file.
62535         * modules/openat-tests: New test.
62536         * tests/test-unlinkat.c: Likewise.
62538         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
62539         * modules/rmdir-errno (Status, Notice): Now obsolete.
62541         rmdir: work around cygwin 1.5.x and mingw bugs
62542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
62543         * lib/rmdir.c (rmdir): Work around it.
62544         * modules/rmdir (Status, Notice): No longer obsolete.
62545         (Files): Add dos.m4.
62546         (Depends-on): Add unistd.
62547         (configure.ac): Set witnesses.
62548         (License): Relax to LGPLv2+.
62549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
62550         * modules/unistd (Makefile.am): Substitute witnesses.
62551         * lib/unistd.in.h (rmdir): Declare replacement.
62552         * doc/posix-functions/rmdir.texi (rmdir): Document this.
62553         * modules/rmdir-tests: New tests.
62554         * tests/test-rmdir.c: Likewise.
62556 2009-09-15  Eric Blake  <ebb9@byu.net>
62558         fchdir: improve use of replacement functions
62559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
62560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
62561         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
62562         REPLACE_CLOSEDIR.
62563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
62564         * modules/sys_stat (Makefile.am): Substitute correct witness.
62565         * modules/dirent (Makefile.am): Likewise.
62566         * modules/unistd (Makefile.am): Likewise.
62567         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
62568         * lib/unistd.in.h (dup): Likewise.
62569         * lib/sys_stat.in.h (fstat): Likewise.
62571         maint: ignore gnulib-tool temp files
62572         * .gitignore: Ignore files created during gnulib-tool --test.
62574 2009-09-13  Jim Meyering  <meyering@redhat.com>
62576         posixtm: don't reject a time that specify "60" as the number of seconds
62577         * lib/posixtm.c (posixtime): The code to reject invalid dates
62578         would also reject a time specified with the .60 suffix.
62579         But POSIX allows that, in order to accommodate leap seconds.
62580         So don't reject it.
62581         (main): Adjust tests accordingly.
62582         * modules/posixtm (Depends-on): Add stpcpy.
62584 2009-09-11  Jim Meyering  <meyering@redhat.com>
62586         announce-gen: include [$release_type] in emitted Subject:
62587         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
62588         e.g., [stable] in the emitted Subject: line.
62590 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62592         Remove obsolete macros from several modules.
62593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
62594         obsolete Autoconf macros with their modern counterparts.
62595         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
62596         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
62597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
62598         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
62600         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62603         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62604         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
62605         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
62606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
62607         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
62608         * m4/sockets.m4 (gl_SOCKETS): Likewise.
62609         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
62610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
62611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62612         * m4/time_r.m4 (gl_TIME_R): Likewise.
62613         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62614         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
62615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62617         Fix copyright header in build-aux scripts.
62618         * build-aux/git-version-gen: Fix copyright header to match GPLv3
62619         recommendation.
62620         * build-aux/ncftpput-ftp: Likewise.
62621         * build-aux/update-copyright: Likewise.
62623 2009-09-09  Eric Blake  <ebb9@byu.net>
62625         test-link: allow Linux choice of errno
62626         * tests/test-link.c (main): Relax test for alternate error.
62628         strndup: fix improper m4 caching
62629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
62630         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
62631         (gl_PREREQ_STRNDUP): Delete.
62632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
62633         * modules/string (Makefile.am): Substitute it.
62634         * lib/string.in.h (strndup): Modernize prototype.
62636         getcwd: port to mingw
62637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
62638         different from the POSIX assumptions made throughout the getcwd
62639         module; fortunately, the mingw getcwd does not need replacement.
62640         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
62641         * modules/getcwd-tests: New test.
62642         * tests/test-getcwd.c: Likewise.
62644         link: fix platform bugs
62645         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
62646         * lib/link.c (link): Work around them.  Fix related mingw bug.
62647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
62648         * modules/unistd (Makefile.am): Substitute it.
62649         * lib/unistd.in.h (link): Declare replacement.
62650         * doc/posix-functions/link.texi (link): Document this.
62651         * modules/link (Depends-on): Add strdup-posix, sys_stat.
62653         test-link: consolidate into single C program, test more cases
62654         * tests/test-link.sh: Delete.
62655         * tests/test-link.c: Test more error conditions.  Exposes bugs on
62656         at least Cygwin and Solaris.
62657         * modules/link-tests (Files): Remove unused file.
62658         (Depends-on): Add errno, sys_stat.
62659         (Makefile.am): Simplify.
62661 2009-09-08  Bruno Haible  <bruno@clisp.org>
62663         Work around towlower, towupper bug on mingw.
62664         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
62665         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
62666         * doc/posix-functions/towlower.texi: Mention the mingw bug.
62667         * doc/posix-functions/towupper.texi: Likewise.
62668         Reported by Eric Blake.
62670 2009-09-08  Jim Meyering  <meyering@redhat.com>
62672         build: don't try to run autoheader if we don't use it
62673         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
62674         is not used in configure.ac.
62676 2009-09-08  Eric Blake  <ebb9@byu.net>
62678         euidaccess: fix compilation error
62679         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
62681         rawmemchr: relax license
62682         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
62683         okay.
62684         Reported by Jim Meyering.
62686         mkfifoat: new module
62687         * modules/mkfifoat: New file.
62688         * lib/mkfifoat.c: Likewise.
62689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
62690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62691         * modules/sys_stat (Makefile.am): Use them.
62692         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
62693         * MODULES.html.sh (File system functions): Mention module.
62694         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62695         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62696         * modules/mkfifoat-tests: New test.
62697         * tests/test-mkfifoat.c: Likewise.
62699         strchrnul: relax license
62700         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
62701         okay.
62702         Reported by Jim Meyering.
62704 2009-09-08  Eric Blake  <ebb9@byu.net>
62706         fstatat: fix compilation on Solaris
62707         * lib/fstatat.c (includes): Add fcntl.h.
62708         Reported by Pádraig Brady.
62710 2009-09-07  Eric Blake  <ebb9@byu.net>
62712         rename: modernize replacement
62713         * modules/rename (Depends-on): Add stdio.
62714         (configure.ac): Declare witness.
62715         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
62716         stdio take care of replacement.
62717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62718         * modules/stdio (Makefile.am): Substitute them.
62719         * lib/stdio.in.h (rename): Declare replacement.
62720         * lib/rename.c (includes): Allow cross-compilation to non-windows
62721         machines.
62722         * doc/posix-functions/rename.texi (rename): Improve
62723         documentation.
62725         stdio: sort witness names
62726         * modules/stdio (Makefile.am): Sort replacements.
62727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62728         * lib/stdio.in.h: Likewise.
62730         getcwd: minor cleanups
62731         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
62732         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
62734         openat: provide more convenience names
62735         * modules/faccessat (configure.ac): Add C witness.
62736         * lib/unistd.in.h (readlinkat): Fix typo.
62737         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
62738         convenience wrappers.
62739         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
62740         wrappers in syntax checks.
62742 2009-09-06  Eric Blake  <ebb9@byu.net>
62744         doc: fix comments in recent patches
62745         * lib/faccessat.c: Mention correct function.
62746         * lib/fchmodat.c: Likewise.
62747         * lib/fchownat.c: Likewise.
62748         * lib/symlinkat.c: Likewise.
62749         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
62750         constants.
62752         faccessat, symlinkat: continue cleanup of previous patch
62753         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
62754         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62755         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
62756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
62757         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
62758         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
62759         set.
62761 2009-09-06  Bruno Haible  <bruno@clisp.org>
62763         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
62764         (fstatat): Declare if GNULIB_FSTATAT is set.
62765         (mkdirat): Declare if GNULIB_MKDIRAT is set.
62766         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
62767         (unlinkat): Declare if GNULIB_UNLINKAT is set.
62768         * modules/fcntl-h (Files): Remove m4/openat.m4.
62769         * modules/sys_stat (Files): Remove m4/openat.m4.
62770         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
62771         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
62772         * modules/unistd (Files): Remove m4/openat.m4.
62773         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
62774         GNULIB_OPENAT.
62775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
62776         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
62777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
62778         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
62779         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
62780         gl_OPENAT_DEFAULTS.
62781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
62782         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
62783         Don't require gl_OPENAT_DEFAULTS.
62784         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
62785         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
62786         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
62787         (gl_OPENAT_DEFAULTS): Remove macro.
62789 2009-09-06  Bruno Haible  <bruno@clisp.org>
62791         * modules/openat (configure.ac): Remove unneeded witness.
62793 2009-09-06  Bruno Haible  <bruno@clisp.org>
62795         Set errno to ENOSYS when a function is entirely unsupported.
62796         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
62797         EOPNOTSUPP.
62798         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62799         * modules/chown (Depends-on): Remove errno.
62801 2009-09-06  Bruno Haible  <bruno@clisp.org>
62803         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
62805 2009-09-06  Bruno Haible  <bruno@clisp.org>
62807         * lib/sys_stat.in.h: Fix preprocessor command indentation.
62809 2009-09-06  Ben Pfaff  <blp@gnu.org>
62810             Bruno Haible  <bruno@clisp.org>
62812         Work around a glibc bug in strtok_r.
62813         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
62814         Undefine if UNDEFINE_STRTOK_R is set.
62815         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
62816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62817         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
62818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
62819         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
62820         UNDEFINE_STRTOK_R.
62821         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
62823 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62825         exclude: minor fix
62826         * lib/exclude.c: Include wctype.h
62828 2009-09-06  Akim Demaille  <demaille@gostai.com>
62830         bootstrap: improve error message
62831         * build-aux/bootstrap (find_tool): Upon failure, report the list
62832         of candidates.
62833         Honor the initial value of the envvar.
62835 2009-09-05  Eric Blake  <ebb9@byu.net>
62837         symlinkat: new module
62838         * modules/symlinkat: New file.
62839         * lib/symlinkat.c: Likewise.
62840         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
62841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62842         * modules/unistd (Makefile.am): Use them.
62843         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
62844         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
62845         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
62846         * MODULES.html.sh (File system functions): Mention module.
62847         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62848         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62849         * modules/symlinkat-tests: New test.
62850         * tests/test-symlinkat.c: Likewise.
62852         test-openat-safer: add more checks
62853         * tests/test-openat-safer.c (main): Check more code paths.
62855 2009-09-05  Jim Meyering  <meyering@redhat.com>
62857         syntax-check: detect unnecessary inclusion of openat.h
62858         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62860 2009-09-05  Bruno Haible  <bruno@clisp.org>
62862         Support towlower, towupper.
62863         * doc/posix-functions/towlower.texi: Mention module wctype.
62864         * doc/posix-functions/towupper.texi: Likewise.
62865         * lib/wctype.in.h (towlower, towupper): New functions.
62866         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62867         (ASSERT): New macro.
62868         (e): New variable.
62869         (main): Test also towlower, towupper. Test WEOF argument.
62870         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62872 2009-09-05  Bruno Haible  <bruno@clisp.org>
62874         Fix conversion behaviour when the input is invalid.
62875         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62876         mark occurring in first pass of indirect conversion.
62877         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62878         input.
62879         Found by clang's static analyzer.
62881 2009-09-05  Bruno Haible  <bruno@clisp.org>
62883         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62884         where direct conversion is possible.
62886 2009-09-04  Eric Blake  <ebb9@byu.net>
62888         openat: fail with ENOENT on empty name
62889         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62890         buffer.
62892         link-follow: fix logic bug in prior patch
62893         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62894         reversed sense of yes and no in prior patch.  Avoid confusing
62895         compilation failure with desired semantics.
62897         link-follow: accommodate mingw and cross-compilation
62898         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62899         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62900         cross-compilation results to -1, to make linkat easier to
62901         implement when cross-compiling.  Trivially support mingw.
62902         * modules/link-follow (configure.ac): Call new name.
62903         * NEWS: Mention this.
62905 2009-09-03  Eric Blake  <ebb9@byu.net>
62907         faccessat: compile replacement
62908         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62909         needed.
62911         fts: fix compilation error
62912         * lib/fts.c (includes): Re-add "openat.h", for
62913         openat_needs_fchdir.
62915         faccessat: new module
62916         * modules/faccessat: New file.
62917         * lib/faccessat.c: Likewise.
62918         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62920         * modules/unistd (Makefile.am): Use it.
62921         * lib/unistd.in.h (faccessat): Declare it.
62922         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62923         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62924         * MODULES.html.sh (File system functions): Mention it.
62925         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62926         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62928         euidaccess: prefer POSIX over non-standard implementation
62929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62930         * lib/euidaccess.c (euidaccess): Use it if available.
62932         openat: make template easier to use
62933         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62934         AT_FUNC_F2 to be undefined.
62935         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62936         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62937         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62938         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62939         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62940         Likewise.
62941         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62942         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62943         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62944         Likewise.
62946         openat: declare in POSIX headers
62947         * NEWS: Mention this.
62948         * modules/openat (configure.ac): Declare witnesses.
62949         (Depends-on): Add fcntl-h, sys_stat, unistd.
62950         (Include): Mention correct headers.
62951         * modules/fcntl-h (Depends-on): Add link-warning.
62952         (Files): Add openat.m4.
62953         (Makefile.am): Substitute witnesses.
62954         * modules/sys_stat (Files, Makefile.am): Likewise.
62955         * modules/unistd (Files, Makefile.am): Likewise.
62956         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62957         (gl_OPENAT_DEFAULTS): New macro.
62958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62961         (SYS_STAT_H): Remove unused variable.
62962         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62963         * lib/fcntl--.h (includes): Remove unneeded header.
62964         * lib/openat-safer.c (includes): Likewise.
62965         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62966         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62967         appropriate headers.
62968         (__OPENAT_PREFIX): Delete.
62969         * lib/fcntl.in.h (openat): Provide declaration.
62970         (AT_FDCWD): Fix Solaris bug.
62971         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62972         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62973         * lib/fchmodat.c (includes):  Adjust to find declaration.
62974         * lib/fchownat.c (includes): Likewise.
62975         * lib/mkdirat.c (includes): Likewise.
62976         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62977         still visible.
62979 2009-09-02  Eric Blake  <ebb9@byu.net>
62981         errno: use consistently
62982         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62983         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62984         * lib/canonicalize.c (ELOOP): Likewise.
62985         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62986         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62987         * lib/lchown.c (EOPNOTSUPP): Likewise.
62988         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62989         * lib/savewd.c (ESTALE): Likewise.
62990         * lib/settime.c (ENOSYS): Likewise.
62991         * lib/utimens.c (ENOSYS): Likewise.
62992         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62993         * lib/chdir-safer.c (ELOOP): Likewise.
62994         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62995         * modules/c-stack (Depends-on): Add errno.
62996         * modules/canonicalize (Depends-on): Likewise.
62997         * modules/chdir-safer (Depends-on): Likewise.
62998         * modules/fdopendir (Depends-on): Likewise.
62999         * modules/inet_ntop (Depends-on): Likewise.
63000         * modules/inet_pton (Depends-on): Likewise.
63001         * modules/lchown (Depends-on): Likewise.
63002         * modules/openat (Depends-on): Likewise.
63003         * modules/savewd (Depends-on): Likewise.
63004         * modules/settime (Depends-on): Likewise.
63005         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
63007         fts: avoid leaking fds
63008         * modules/fts (Depends-on): Add cloexec.
63009         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
63010         flag.
63012         fts: make directory fds more robust
63013         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
63014         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
63016         backupfile, chdir-long, fts, savedir: make safer
63017         * lib/backupfile.c (includes): Use "dirent--.h", since
63018         numbered_backup can write to stderr during readdir.
63019         * lib/savedir.c (includes): Likewise.
63020         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
63021         emulation can write to stderr on failure.
63022         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
63023         * lib/getcwd.c: Document why opendir_safer is unused.
63024         * lib/glob.c: Likewise.
63025         * lib/scandir.c: Likewise.
63026         * lib/openat-proc.c: Likewise, for open_safer.
63027         * modules/backupfile (Depends-on): Add dirent-safer.
63028         * modules/savedir (Depends-on): Likewise.
63029         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
63030         * modules/chdir-long (Depends-on): Add openat-safer.
63032         openat-safer: new module
63033         * modules/openat-safer: New file.
63034         * lib/openat-safer.c: Likewise.
63035         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
63036         * lib/fcntl-safer.h (openat_safer): Declare.
63037         * lib/fcntl--.h (openat): Override.
63038         * MODULES.html.sh (File descriptor based I/O): Mention it.
63039         * lib/openat.h: Add double-inclusion guards.
63040         * lib/openat.c (includes): Only include "fcntl-safer.h", not
63041         "fcntl--.h", so we can implement openat.
63042         * modules/openat-safer-tests: New test.
63043         * tests/test-openat-safer.c: New file.
63045         dirent-safer: new module
63046         * modules/dirent-safer: New file.
63047         * lib/dirent--.h: Likewise.
63048         * lib/dirent-safer.h: Likewise.
63049         * lib/opendir-safer.c: Likewise.
63050         * m4/dirent-safer.m4: Likewise.
63051         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
63052         * modules/dirent-safer-tests: New test.
63053         * tests/test-dirent-safer.c: New file.
63054         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
63056         fdopendir: optimize on mingw
63057         * lib/unistd.in.h (_gl_directory_name): New prototype.
63058         * lib/fchdir.c (_gl_directory_name): Implement it.
63059         (fchdir): Use it to simplify implementation.
63060         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
63061         fchdir, when available, to avoid calling [f]chdir().
63063         fdopendir: split into its own module
63064         * lib/openat.c (fdopendir): Move...
63065         * lib/fdopendir.c: ...into new file.
63066         * modules/fdopendir: New module.
63067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
63068         * modules/openat (Depends-on): Add fdopendir.
63069         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
63070         fdopendir here.
63071         * modules/savedir (Depends-on): Only need fdopendir, not full
63072         openat.
63073         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
63074         * lib/openat.h (fdopendir): Drop prototype.
63075         * lib/dirent.in.h (fdopendir): Provide prototype.
63076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
63077         * modules/dirent (Makefile.am): Substitute them.
63078         * MODULES.html.sh (File system functions): Mention it.
63079         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
63080         * modules/fdopendir-tests: New file.
63081         * tests/test-fdopendir.c: Likewise.
63083         fchdir: use more consistent macro convention
63084         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
63085         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
63086         REPLACE_FCHDIR, rather than relying on config.h macros.
63087         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
63088         inside a single make-time REPLACE_FCHDIR block, rather than using
63089         the config.h FCHDIR_REPLACEMENT.
63090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
63091         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
63092         Manage fstat replacement.
63093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
63094         REPLACE_FCHDIR.
63095         * modules/sys_stat (Files): Add m4/unistd_h.m4.
63096         (Makefile.am): Substitute REPLACE_FCHDIR.
63097         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
63098         FCHDIR_REPLACEMENT.
63099         * lib/dup-safer.c (dup_safer): Likewise.
63100         * lib/dup2.c (rpl_dup2): Likewise.
63101         * lib/dup3.c (rpl_dup3): Likewise.
63102         * lib/open.c (rpl_open): Likewise.
63104         fchdir: simplify error handling, and support dup3
63105         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
63106         stdbool, malloc-posix, realloc-posix.
63107         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
63108         (ensure_dirs_slot): Return false on allocation failure.
63109         (rpl_dup2): Delete.
63110         (_gl_register_dup): New function.
63111         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
63112         (_gl_register_fd): Close fd on allocation failure.
63113         * lib/fcntl.in.h (_gl_register_fd): Update signature.
63114         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
63115         prototype.
63116         (rpl_dup2_fchdir): Delete prototype.
63117         * lib/open.c (open): Update caller.
63118         * lib/dup2.c (dup2): Track fchdir metadata.
63119         * lib/dup3.c (dup3): Likewise.
63120         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
63121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
63123 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63125         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
63126         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
63127         don't pass arguments to AC_OUTPUT.
63129 2009-09-02  Bruno Haible  <bruno@clisp.org>
63131         * modules/mkdtemp (License): Relicense under LGPLv2+.
63132         Reported by Paolo Bonzini.
63134 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63136         Replace uses of obsolete autoconf macros in Jim's modules.
63137         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
63138         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
63139         can evoke a warning from autoconf when run with -Wobsolete
63140         enabled.  They were declared obsolete for good reasons (see
63141         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
63142         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
63143         should not continue using the deprecated macros.
63144         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
63145         obsolete Autoconf macros with modern counterparts.
63146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63147         * m4/dos.m4 (gl_AC_DOS): Likewise.
63148         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
63149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63150         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
63151         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
63152         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
63153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
63154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
63155         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
63156         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63157         Likewise.
63158         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63160         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
63161         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
63162         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63163         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63165 2009-09-01  Eric Blake  <ebb9@byu.net>
63167         fchdir: fix off-by-one bug in previous patch
63168         * lib/fchdir.c (rpl_fstat): Use correct bounds.
63169         (_gl_unregister_fd): Delete useless if.
63171 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
63173         maint.mk: sort the list of syntax-check rules
63174         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
63175         easier to get a sense of progress when the rules are run sequentially
63176         and take a long time.
63178 2009-09-01  Simon Josefsson  <simon@josefsson.org>
63180         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
63181         * modules/netinet_in: Likewise.
63182         * modules/sys_file: Likewise.
63183         * modules/sys_ioctl: Likewise.
63184         * modules/sys_select: Likewise.
63185         * modules/sys_socket: Likewise.
63186         * modules/sys_stat: Likewise.
63187         * modules/sys_time: Likewise.
63188         * modules/sys_times: Likewise.
63189         * modules/sys_utsname: Likewise.
63190         * modules/sys_wait: Likewise.
63192 2009-09-01  Jim Meyering  <meyering@redhat.com>
63194         fts: help ensure that return values are not ignored
63195         * lib/fts_.h (__GNUC_PREREQ): Define.
63196         (__attribute_warn_unused_result__): Define.
63197         (fts_children, fts_close, fts_open, fts_read): Declare with
63198         __attribute_warn_unused_result__.
63200         fts: fts_close now fails also when closing a dir file descriptor fails
63201         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
63202         and propagate to caller, along with errno.
63204         announce-gen: correct formatting in --help output
63205         * build-aux/announce-gen (usage): Move the one-line description in
63206         --help output "up", to where it belongs, just after Usage:.
63208 2009-08-31  Eric Blake  <ebb9@byu.net>
63210         fchdir: port to mingw
63211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
63212         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
63213         opened, then use a substitute.
63214         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
63215         replacement.
63216         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
63217         (_gl_register_fd): No need to check stat if open already filters
63218         all directories.
63219         (fchdir): Fix error condition to match POSIX.
63220         * modules/fchdir (Depends-on): Add sys_stat.
63221         * doc/posix-functions/open.texi (open): Document the limitation.
63222         * modules/fchdir-tests: New file.
63223         * tests/test-fchdir.c: Likewise.
63225         canonicalize: allow cross-testing from cygwin to mingw
63226         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
63227         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
63228         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
63229         Likewise.
63230         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
63231         target does not support symlinks.
63232         * tests/test-canonicalize-lgpl.sh: Likewise.
63234         chown: avoid compilation warning on mingw
63235         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
63236         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
63237         mingw.
63238         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
63239         * modules/chown (Depends-on): Add errno.
63241 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
63243         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
63244         command.
63246 2009-08-31  Jim Meyering  <meyering@redhat.com>
63248         canonicalize: remove useless initialization
63249         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
63250         initialization of local, "end".
63252 2009-08-30  Bruno Haible  <bruno@clisp.org>
63254         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
63255         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
63256         ENOSYS.
63258 2009-08-30  Bruno Haible  <bruno@clisp.org>
63260         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
63261         /usr/xpg4/bin/tr when it exists.
63262         * tests/test-pipe-filter-gi1.sh: Likewise.
63264 2009-08-30  Bruno Haible  <bruno@clisp.org>
63266         Work around deficient /usr/bin/id program on Solaris.
63267         * tests/test-file-has-acl.sh (ID): New variable.
63268         * tests/test-set-mode-acl.sh (ID): Likewise.
63269         * tests/test-copy-acl.sh (ID): Likewise.
63270         * tests/test-copy-file.sh (ID): Likewise.
63272 2009-08-30  Bruno Haible  <bruno@clisp.org>
63274         New module 'xstriconveh'.
63275         * lib/xstriconveh.h: New file.
63276         * lib/xstriconveh.c: New file.
63277         * modules/xstriconveh: New file.
63279 2009-08-30  Bruno Haible  <bruno@clisp.org>
63281         Make it easier to use mem_cd_iconveh.
63282         * lib/striconveh.h (iconveh_t): New type.
63283         (iconveh_open, iconveh_close): New declarations.
63284         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63285         with a single 'const iconveh_t *' argument.
63286         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
63287         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63288         with a single 'const iconveh_t *' argument.
63289         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
63290         * tests/test-striconveh.c (main): Update.
63291         * NEWS: Mention the change.
63293 2009-08-30  Bruno Haible  <bruno@clisp.org>
63295         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
63296         problem.
63298 2009-08-30  Bruno Haible  <bruno@clisp.org>
63300         Work around iconv_open problem on Solaris.
63301         * lib/iconv_open-solaris.gperf: New file.
63302         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
63303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
63304         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
63305         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
63306         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
63307         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
63309 2009-08-29  Jim Meyering  <meyering@redhat.com>
63311         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
63312         * top/maint.mk (cvs-check): Remove target; it was just an alias
63313         to the better-named vc-diff-check.
63314         (maintainer-distcheck): Remove rule.  It was used only from
63315         the (alpha/beta/major) target, and all of its commands but one
63316         were coreutils-specific.
63317         (vc-dist): Remove rule.
63318         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
63319         Run vc-diff-check, not vc-dist.
63320         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
63322 2009-08-27  Bruno Haible  <bruno@clisp.org>
63324         * tests/test-bitrotate.c (main): Remove test that uses a shift count
63325         of 0.
63327 2009-08-27  Bruno Haible  <bruno@clisp.org>
63329         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
63330         compilers.
63331         * doc/func.texi: Document the SunPRO C bug.
63333 2009-08-27  Bruno Haible  <bruno@clisp.org>
63335         Fix link error on Solaris.
63336         * tests/test-parse-duration.c (xstrdup): Remove function.
63338 2009-08-26  Pádraig Brady  <P@draigbrady.com>
63340         ignore-value: handle pointer types, too
63341         * lib/ignore-value.h (__attribute__): Remove definition.
63342         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
63343         of a more concise and more-often effective "(void) i" statement.
63344         (ignore_ptr): New function to suppress warnings from functions that
63345         return pointers, and to make it explicit that one function doesn't
63346         handle all cases.
63348 2009-08-25  Bruno Haible  <bruno@clisp.org>
63350         dup2: work around a Linux bug.
63351         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
63352         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
63353         * doc/posix-functions/dup2.texi: Mention the Linux bug.
63354         Reported by Simon Josefsson.
63356 2009-08-25  Jim Meyering  <meyering@redhat.com>
63358         libguestfs uses gnulib
63359         * users.txt: Add libguestfs.
63361 2009-08-24  Eric Blake  <ebb9@byu.net>
63363         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
63364         * lib/pipe2.c (includes): Add binary-io.h.
63365         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
63367 2009-08-24  Bruno Haible  <bruno@clisp.org>
63369         Tolerate declared but missing accept4 syscall.
63370         * lib/accept4.c (accept4): Invoke original accept4 function first, if
63371         available.
63372         * lib/sys_socket.in.h (accept4): If the function is already present,
63373         override it.
63374         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
63375         * modules/accept4 (Makefile.am): Compile accept4.c always.
63376         Reported by Paolo Bonzini and Eric Blake.
63378 2009-08-23  Bruno Haible  <bruno@clisp.org>
63380         New module 'accept4'.
63381         * lib/sys_socket.in.h (accept4): New declaration.
63382         * lib/accept4.c: New file.
63383         * m4/accept4.m4: New file.
63384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63385         GNULIB_ACCEPT4, HAVE_ACCEPT4.
63386         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
63387         HAVE_ACCEPT4.
63388         * modules/accept4: New file.
63389         * doc/glibc-functions/accept4.texi: Mention the new module.
63391 2009-08-24  Jim Meyering  <meyering@redhat.com>
63393         progname: also set global program_invocation_name, when possible
63394         Before this change, a libtool-enabled program that calls glibc's
63395         error function would report the program name as
63396         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
63397         * modules/progname (configure.ac): Check for a declaration of
63398         program_invocation_name.
63399         * lib/progname.c:  Include <errno.h>.
63400         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
63401         Set program_invocation_name.
63403 2009-08-23  Bruno Haible  <bruno@clisp.org>
63405         * lib/dup3.c: Include <string.h>.
63407 2009-08-23  Bruno Haible  <bruno@clisp.org>
63409         * lib/dup3.c (dup3): Test only once whether the system actually exists.
63410         * lib/pipe2.c (pipe2): Likewise.
63411         Suggested by Eric Blake.
63413 2009-08-23  Bruno Haible  <bruno@clisp.org>
63415         Tolerate declared but missing dup3 syscall.
63416         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
63417         * lib/unistd.in.h (dup3): If the function is already present,
63418         override it.
63419         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
63420         * modules/dup3 (Makefile.am): Compile dup3.c always.
63421         Reported by Paolo Bonzini.
63423 2009-08-23  Bruno Haible  <bruno@clisp.org>
63425         Tolerate declared but missing pipe2 syscall.
63426         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
63427         available.
63428         * lib/unistd.in.h (pipe2): If the function is already present,
63429         override it.
63430         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
63431         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
63432         Reported by Paolo Bonzini.
63434 2009-08-23  Bruno Haible  <bruno@clisp.org>
63436         * lib/pipe2.c (pipe2): Move #ifs inside function.
63438 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63440         quotearg: document limitations of quote_these_too
63441         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
63442         those limitations are created.
63443         * lib/quotearg.h (set_char_quoting): Document that digits and
63444         letters that are special after backslash are not permitted.
63445         (quotearg_char): Cross-reference set_char_quoting documentation.
63447 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
63449         quotearg: implement custom_quoting_style
63450         * lib/quotearg.c: (struct quoting_options): Add left_quote and
63451         right_quote fields.
63452         (set_custom_quoting): New public function.
63453         (quotearg_buffer_restyled): Add left_quote and right_quote
63454         arguments, handle them very much like locale quoting, and update
63455         all uses.
63456         (quotearg_n_custom): New public function.
63457         (quotearg_n_custom_mem): New public function.
63458         (quotearg_custom): New public function.
63459         (quotearg_custom_mem): New public function.
63460         * lib/quotearg.h: Prototype and document new public functions.
63461         (enum quoting_style): For escape_quoting_style and
63462         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
63463         ignored even though they're otherwise like c_quoting_style.
63464         Add custom_quoting_style member and document with comparison to
63465         clocale_quoting_style.
63466         * tests/test-quotearg.c (custom_quotes): New array.
63467         (custom_results): New array.
63468         (main): Extend to test custom quoting.
63470 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63472         quotearg: fix right quote escaping when it's in quote_these_too
63473         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
63474         quote, be sure to prepend only one backslash.
63475         * tests/test-quotearg.c (use_quote_double_quotes): New function.
63476         (main): Test it.
63478 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63480         quotearg-tests: test escaping of embedded locale quotes
63481         * tests/test-quotearg.c (struct result_strings): Add member for
63482         new input.
63483         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
63484         (inputs): Add new input.
63485         (results_g): Add expected results.
63486         (flag_results): Likewise.
63487         (locale_results): Likewise.
63488         (compare_strings): Check those.
63490 2009-08-23  Bruno Haible  <bruno@clisp.org>
63492         Tests for module 'dup3'.
63493         * modules/dup3-tests: New file.
63494         * tests/test-dup3.c: New file.
63496         New module 'dup3'.
63497         * lib/unistd.in.h (dup3): New declaration.
63498         * lib/dup3.c: New file.
63499         * m4/dup3.m4: New file.
63500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
63501         HAVE_DUP3.
63502         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
63503         * modules/dup3: New file.
63504         * doc/glibc-functions/dup3.texi: Mention the new module.
63506 2009-08-23  Bruno Haible  <bruno@clisp.org>
63508         Tweak the dup2 test.
63509         * tests/test-dup2.c (main): Create the test file empty. Verify that an
63510         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
63511         the test file is still empty. Fix argument order of lseek.
63513 2009-08-23  Bruno Haible  <bruno@clisp.org>
63515         Avoid test link errors when the modules getopt-gnu, gettext are used.
63516         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
63517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63519 2009-08-23  Bruno Haible  <bruno@clisp.org>
63521         Fix getdtablesize() on mingw.
63522         * lib/getdtablesize.c (getdtablesize): Implement differently.
63523         * lib/unistd.in.h (getdtablesize): Improve comment.
63525 2009-08-23  Bruno Haible  <bruno@clisp.org>
63527         New module 'mkostemp'.
63528         Based on Ulrich Drepper's 2007-08-10 change in glibc.
63529         * lib/stdlib.in.h (mksotemp): New declaration.
63530         * lib/mkostemp.c: New file, from glibc with modifications.
63531         * lib/tempname.h (GT_FILE): Remove outdated comment.
63532         (gen_tempname): Add flags argument.
63533         * lib/tempname.c (__GT_BIGFILE): Remove macro.
63534         (__GT_FILE): Map to 1.
63535         (small_open, large_open): Remove macros.
63536         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
63537         * lib/mkstemp.c (mkstemp): Update.
63538         * lib/mkdtemp.c (mkdtemp): Likewise.
63539         * m4/mkostemp.m4: New file.
63540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
63541         HAVE_MKOSTEMP.
63542         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
63543         HAVE_MKOSTEMP.
63544         * modules/mkostemp: New file, based on modules/mkstemp.
63545         * doc/glibc-functions/mkostemp.texi: Mention the new module.
63546         * NEWS: Mention the change.
63548 2009-08-23  Bruno Haible  <bruno@clisp.org>
63550         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
63551         Reported by Eric Blake.
63553 2009-08-23  Bruno Haible  <bruno@clisp.org>
63555         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
63556         Reported by Eric Blake.
63558 2009-08-23  Bruno Haible  <bruno@clisp.org>
63560         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
63561         * modules/pipe2 (Depends-on): Likewise.
63563 2009-08-23  Eric Blake  <ebb9@byu.net>
63565         fcntl-h: add O_TTY_INIT support
63566         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
63567         * tests/test-fcntl-h.c (o): Test it.
63568         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63570         fcntl-h: rename from fcntl, in preparation for fcntl(2)
63571         * modules/fcntl: Move <fcntl.h> header replacement...
63572         * modules/fcntl-h: ...to new name, so as not to collide with
63573         like-named function.
63574         * tests/test-fcntl.c: Rename...
63575         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
63576         * modules/fcntl-tests: Rename...
63577         * modules/fcntl-h-tests: ...to this.  Update test file name.
63578         * modules/chdir-long (Depends-on): Update clients.
63579         * modules/chdir-safer (Depends-on): Likewise.
63580         * modules/fcntl-safer (Depends-on): Likewise.
63581         * modules/fts (Depends-on): Likewise.
63582         * modules/mkancesdirs (Depends-on): Likewise.
63583         * modules/mkdir-p (Depends-on): Likewise.
63584         * modules/open (Depends-on): Likewise.
63585         * modules/savewd (Depends-on): Likewise.
63586         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
63587         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63589 2009-08-22  Bruno Haible  <bruno@clisp.org>
63591         * modules/binary-io (License): Relicense under LGPL.
63592         * modules/pipe2 (License): Likewise.
63594 2009-08-22  Bruno Haible  <bruno@clisp.org>
63596         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
63597         return value.
63598         * lib/pipe-filter-gi.c (filter_init): Likewise.
63599         Reported by Eric Blake.
63601 2009-08-22  Bruno Haible  <bruno@clisp.org>
63603         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
63604         * modules/pipe (Depends-on): Add pipe2.
63606 2009-08-22  Bruno Haible  <bruno@clisp.org>
63608         Tests for module 'pipe2'.
63609         * modules/pipe2-tests: New file.
63610         * tests/test-pipe2.c: New file.
63612         New module 'pipe2'.
63613         * lib/unistd.in.h (pipe2): New declaration.
63614         * lib/pipe2.c: New file.
63615         * m4/pipe2.m4: New file.
63616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
63617         HAVE_PIPE2.
63618         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
63619         * modules/pipe2: New file.
63620         * doc/glibc-functions/pipe2.texi: Mention the new module.
63622 2009-08-22  Bruno Haible  <bruno@clisp.org>
63624         Reference some new glibc functions.
63625         * doc/glibc-functions/accept4.texi: New file.
63626         * doc/glibc-functions/dup3.texi: New file.
63627         * doc/glibc-functions/mkostemp.texi: New file.
63628         * doc/glibc-functions/pipe2.texi: New file.
63629         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
63630         (Glibc sys/socket.h): Refer to accept4.
63631         (Glibc unistd.h): Refer to dup3, pipe2.
63632         Reported by Eric Blake.
63634 2009-08-22  Jim Meyering  <meyering@redhat.com>
63635             Bruno Haible  <bruno@clisp.org>
63637         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
63638         This makes it so packages using automake-1.11's silent-rules option
63639         can print e.g., a single "GEN    configmake.h" line, rather than
63640         the 30+ statements that perform the job.  If you want to see the
63641         actual commands, you can still run "make V=1".
63642         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
63643         so that make output is abbreviated when those variables are defined
63644         appropriately.
63645         * modules/argz: Likewise.
63646         * modules/arpa_inet: Likewise.
63647         * modules/byteswap: Likewise.
63648         * modules/configmake: Likewise.
63649         * modules/dirent: Likewise.
63650         * modules/errno: Likewise.
63651         * modules/fcntl: Likewise.
63652         * modules/float: Likewise.
63653         * modules/fnmatch: Likewise.
63654         * modules/getopt-posix: Likewise.
63655         * modules/glob: Likewise.
63656         * modules/iconv_open: Likewise.
63657         * modules/inttypes: Likewise.
63658         * modules/localcharset: Likewise.
63659         * modules/locale: Likewise.
63660         * modules/math: Likewise.
63661         * modules/netdb: Likewise.
63662         * modules/netinet_in: Likewise.
63663         * modules/poll: Likewise.
63664         * modules/posix_spawnp-tests: Likewise.
63665         * modules/sched: Likewise.
63666         * modules/search: Likewise.
63667         * modules/selinux-h: Likewise.
63668         * modules/signal: Likewise.
63669         * modules/spawn: Likewise.
63670         * modules/stdarg: Likewise.
63671         * modules/stdbool: Likewise.
63672         * modules/stddef: Likewise.
63673         * modules/stdint: Likewise.
63674         * modules/stdio: Likewise.
63675         * modules/stdlib: Likewise.
63676         * modules/string: Likewise.
63677         * modules/strings: Likewise.
63678         * modules/sys_file: Likewise.
63679         * modules/sys_ioctl: Likewise.
63680         * modules/sys_select: Likewise.
63681         * modules/sys_socket: Likewise.
63682         * modules/sys_stat: Likewise.
63683         * modules/sys_time: Likewise.
63684         * modules/sys_times: Likewise.
63685         * modules/sys_utsname: Likewise.
63686         * modules/sys_wait: Likewise.
63687         * modules/sysexits: Likewise.
63688         * modules/time: Likewise.
63689         * modules/unistd: Likewise.
63690         * modules/wchar: Likewise.
63691         * modules/wctype: Likewise.
63693 2009-08-22  Jim Meyering  <meyering@redhat.com>
63695         announce-gen: detect write failure
63696         * build-aux/announce-gen: Add Coda at end.
63697         Remove equivalent-but-more-verbose block at top.
63699 2009-08-19  Akim Demaille  <demaille@gostai.com>
63701         bootstrap: --help to stdout.
63702         * bootstrap (usage): Don't send --help to stderr.
63703         Use a here doc instead of a long string.
63705 2009-08-21  Eric Blake  <ebb9@byu.net>
63707         test-popen-safer: split from test-popen
63708         * tests/test-popen.c (main): Move...
63709         * tests/test-popen.h: ...into new file.
63710         * tests/test-popen-safer2.c: New file.
63711         * modules/popen-tests (Files): Add test-popen.h.
63712         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
63713         Suggested by Bruno Haible.
63715         test-fcntl-safer: split from test-open
63716         * tests/test-open.c (main): Move...
63717         * tests/test-open.h: ...into new file.
63718         * tests/test-fcntl-safer.c: New file.
63719         * modules/open-tests (Files): Add test-open.h.
63720         * modules/fcntl-safer-tests: New file.
63721         Suggested by Bruno Haible.
63723         test-fopen-safer: split from test-fopen
63724         * tests/test-fopen.c (main): Move...
63725         * tests/test-fopen.h: ...into new file.
63726         * tests/test-fopen-safer.c: New file.
63727         * modules/fopen-tests (Files): Add test-fopen.h.
63728         * modules/fopen-safer-tests: New file.
63729         Suggested by Bruno Haible.
63731 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63733         popen-safer: test O_CLOEXEC at run-time.
63734         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
63736 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63738         fcntl: move more flags to the header
63739         * lib/cloexec.c: Do not define FD_CLOEXEC here.
63740         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
63741         * lib/fcntl.in.h: Do both things here.
63743 2009-08-21  Jim Meyering  <meyering@redhat.com>
63745         consistently remove $@-t before redirecting to it
63746         * modules/argz: Remove $@-t and $@ before redirecting to the former.
63747         * modules/alloca-opt: Likewise.
63748         * modules/byteswap: Likewise.
63749         * modules/fnmatch: Likewise.
63750         * modules/getopt-posix: Likewise.
63751         * modules/glob: Likewise.
63752         * modules/poll: Likewise.
63753         * modules/posix_spawnp-tests: Likewise.
63754         * modules/sys_socket: Likewise.
63755         * modules/sysexits: Likewise.
63757 2009-08-21  Eric Blake  <ebb9@byu.net>
63759         popen: simplify access to original popen
63760         * lib/popen.c (rpl_popen): No need to worry about popen being a
63761         macro.
63762         Reported by Bruno Haible.
63764 2009-08-20  Eric Blake  <ebb9@byu.net>
63766         build: avoid some compiler warnings
63767         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
63768         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
63769         type.
63770         (new_exclude_segment, excluded_file_pattern_p)
63771         (excluded_file_name_p): Reduce scope.
63772         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
63773         old-style declaration.
63775 2009-08-20  Simon Josefsson  <simon@josefsson.org>
63777         * tests/test-exclude1.sh: Handle Windows EOL.
63778         * tests/test-exclude2.sh: Likewise.
63779         * tests/test-exclude3.sh: Likewise.
63780         * tests/test-exclude4.sh: Likewise.
63781         * tests/test-exclude5.sh: Likewise.
63782         * tests/test-exclude6.sh: Likewise.
63783         * tests/test-exclude7.sh: Likewise.
63785 2009-08-19  Akim Demaille  <demaille@gostai.com>
63787         bootstrap: find sha1sum when named gsha1sum.
63788         * bootstrap (find_tool): New.
63789         ($SHA1SUM): New.
63790         Use it.
63792 2009-08-20  Jim Meyering  <meyering@redhat.com>
63794         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
63795         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
63796         expression that converts "." in a file name to "\." in the resulting
63797         regexp.  Start with a dummy statement, so that prior shell variable
63798         definitions are expanded portably.  Reported by Simon Josefsson.
63800 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
63802         Fix polling for writeability of a screen buffer.
63803         * lib/poll.c: Distinguish input and screen buffers for the
63804         Win32 implementation.
63805         * lib/select.c: Likewise.
63807 2009-08-19  Eric Blake  <ebb9@byu.net>
63809         popen-safer: prevent popen from clobbering std descriptors
63810         * modules/popen-safer: New file.
63811         * lib/popen-safer.c: Likewise.
63812         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
63813         * lib/stdio--.h (popen): Provide override.
63814         * lib/stdio-safer.h (popen_safer): Provide declaration.
63815         * tests/test-popen.c (includes): Partially test this.
63816         * modules/popen-safer-tests: New file, for more tests.
63817         * tests/test-popen-safer.c: Likewise.
63818         * MODULES.html.sh (file stream based Input/Output): Mention it.
63820         tests: test some of the *-safer modules
63821         * modules/fopen-safer (Depends-on): Add fopen.
63822         * modules/fcntl-safer (Depends-on): Add fcntl.
63823         * modules/stdlib-safer (Depends-on): Add stdlib.
63824         (configure.ac): Set indicator.
63825         * modules/unistd-safer (configure.ac): Likewise.
63826         * modules/tmpfile-safer (configure.ac): Likewise.
63827         (Depends-on): Add tmpfile.
63828         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
63829         active.
63830         * tests/test-fopen.c (includes): Test safer versions when they are
63831         in use.
63832         * tests/test-open.c (includes): Likewise.
63834         popen: fix cygwin 1.5 bug when stdin closed
63835         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
63836         * modules/popen: New file.
63837         * modules/popen-tests: Likewise.
63838         * tests/test-popen.c: Likewise.
63839         * m4/popen.m4: Likewise.
63840         * lib/popen.c: Likewise.
63841         * lib/stdio.in.h (popen): New declaration.
63842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
63843         * modules/stdio (Makefile.am): Likewise.
63844         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
63846 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
63848         maint.mk: give full control over update-copyright exclusions
63849         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63850         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63851         (update-copyright): Don't force inclusion of top-level
63852         ChangeLog.  Don't force exclusion of all COPYING files, but make
63853         them the default exclusion instead.
63855 2009-08-16  Bruno Haible  <bruno@clisp.org>
63857         Fix test failures on Solaris 10.
63858         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63859         tests when Solaris iconv() is used.
63860         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63861         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63862         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63863         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63864         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63866 2009-08-16  Bruno Haible  <bruno@clisp.org>
63868         Fix test failures on Solaris 10.
63869         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63870         'tr' program and pass it as first argument.
63871         * tests/test-pipe-filter-gi1.sh: Likewise.
63872         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63873         program as first argument.
63874         * tests/test-pipe-filter-gi1.c (main): Likewise.
63876 2009-08-16  Eric Blake  <ebb9@byu.net>
63878         fpurge: fix previous commits
63879         * modules/fpurge (Makefile.am): Make replacement conditional,
63880         partially reverting 2007-04-29 change; missed in previous
63881         attempt.
63882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63883         is missing.
63885 2009-08-16  Bruno Haible  <bruno@clisp.org>
63887         Clarify fpurge's effect on the file position.
63888         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63889         * tests/test-fpurge.c (main): Make a second pass for checking the file
63890         position.
63892 2009-08-16  Bruno Haible  <bruno@clisp.org>
63894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63895         declaration of fpurge is missing.
63896         * tests/test-fpurge.c (main): Check that the file has not more contents
63897         than expected. Close the file before removing it.
63899 2009-08-15  Eric Blake  <ebb9@byu.net>
63901         fpurge: don't wrap working cygwin implementation
63902         * lib/fpurge.c (fpurge): Fix comment typo.
63903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63904         1.7 to avoid replacement.
63905         * tests/test-fpurge.c (main): Enhance test.
63907 2009-08-15  Eric Blake  <ebb9@byu.net>
63908         and Jim Meyering  <meyering@redhat.com>
63910         test-update-copyright: skip if perl is insufficient
63911         * tests/test-update-copyright.sh: Failure to run maintainer tool
63912         should not cause testsuite failure on cygwin 1.5.
63914 2009-08-14  Eric Blake  <ebb9@byu.net>
63916         doc: mention more functions added in cygwin 1.7.0
63917         * doc/posix-headers/limits.texi (limits.h): Update for recent
63918         cygwin additions.
63919         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63920         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63921         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63922         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63923         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63925 2009-08-14  Eric Blake  <ebb9@byu.net>
63927         maint.mk: simplify update-copyright rule
63928         * top/maint.mk (update-copyright-local): Delete, and document how
63929         to do it in cfg.mk instead.
63930         (update-copyright-exclude-regexp): Delete, and document how to do
63931         it in .x-update-copyright instead.
63932         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63933         exclude ChangeLog.
63935 2009-08-14  Bruno Haible  <bruno@clisp.org>
63937         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63941         maint.mk: support update-copyright-env
63942         * top/maint.mk (update-copyright-env): Define place-holder.
63943         (update-copyright): Expand $(update-copyright-env) before
63944         invoking update-copyright.
63946 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63948         update-copyright: implement forced reformatting
63949         * build-aux/update-copyright: Implement and document
63950         UPDATE_COPYRIGHT_FORCE.
63951         * tests/test-update-copyright.sh: Test it.
63953 2009-08-14  Eric Blake  <ebb9@byu.net>
63954         and Bruno Haible  <bruno@clisp.org>
63956         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63957         * tests/test-locale.c: Revert previous patch related to NULL.
63958         * tests/test-stdio.c: Likewise.
63959         * tests/test-stdlib.c: Likewise.
63960         * tests/test-string.c: Likewise.
63961         * tests/test-unistd.c: Likewise.
63962         * modules/time-tests (Depends-on): Add verify.
63963         * modules/wchar-tests (Depends-on): Likewise.
63964         * tests/test-time.c: Test for NULL compliance.
63965         * tests/test-wchar.c: Likewise.
63966         * modules/locale (Depends-on): Add stddef.
63967         * modules/stdio (Depends-on): Likewise.
63968         * modules/stdlib (Depends-on): Likewise.
63969         * modules/string (Depends-on): Likewise.
63970         * modules/time (Depends-on): Likewise.
63971         * modules/unistd (Depends-on): Likewise.
63972         * modules/wchar (Depends-on): Likewise.
63973         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63974         * lib/stdlib.in.h (includes): Likewise.
63975         * lib/string.in.h (includes): Likewise.
63976         * lib/time.in.h (includes): Likewise.
63977         * lib/unistd.in.h (includes): Likewise.
63978         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63979         replaced.
63980         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63981         * m4/stddef_h.m4: New file.
63982         * modules/stddef: Likewise.
63983         * lib/stddef.in.h: Likewise.
63984         * modules/stddef-tests: Likewise.
63985         * tests/test-stddef.c: Likewise.
63986         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63987         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63988         * doc/posix-headers/locale.texi (locale.h): Likewise.
63989         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63990         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63991         * doc/posix-headers/string.texi (string.h): Likewise.
63992         * doc/posix-headers/time.texi (time.h): Likewise.
63993         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63994         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63996 2009-08-14  Eric Blake  <ebb9@byu.net>
63998         doc: improve git diff of texinfo files
63999         * .gitattributes: Add rule for *.texi files, with hint on how to
64000         use it.
64001         Copied from m4, and based on a report by Bruno Haible.
64003 2009-08-14  Bruno Haible  <bruno@clisp.org>
64005         Disable multithread support by default on Cygwin 1.5.x for real.
64006         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
64008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
64010         update-copyright: much ado about intervals
64011         * build-aux/update-copyright: Implement and document
64012         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
64013         of copyright year intervals.
64014         Also, document UPDATE_COPYRIGHT_YEAR.
64015         * tests/test-update-copyright.sh: Test it.
64017         update-copyright: convert 2-digit to 4-digit years
64018         * build-aux/update-copyright: Implement and document.
64019         * tests/test-update-copyright.sh: Update.
64021 2009-08-14  Jim Meyering  <meyering@redhat.com>
64023         test-exclude: avoid coreutils "make check" failure
64024         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
64025         just as in test-argmatch.c.
64027 2009-08-13  Eric Blake  <ebb9@byu.net>
64029         test-dup2: fix bad assumption
64030         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
64031         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
64033         test-version-etc: fix CRLF portability issue
64034         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
64035         recognize \r.
64036         * tests/test-argp-version-etc-1.sh: Likewise.
64038         getopt: update client modules
64039         * modules/argp (Depends-on): Use getopt-gnu.
64040         * modules/git-merge-changelog (Depends-on): Likewise.
64041         * modules/long-options (Depends-on): Likewise.
64042         * modules/xstrtol (Depends-on): Likewise.
64044 2009-08-13  Simon Josefsson  <simon@josefsson.org>
64046         * tests/test-version-etc.sh: Don't fail on different
64047         project/version.  Don't fail on CRLF differences.  Rewrite to use
64048         multiple -e instead of multiple sed forks, suggested by Eric Blake
64049         <ebb9@byu.net>.
64050         * tests/test-argp-version-etc-1.sh: Likewise.
64052 2009-08-13  Simon Josefsson  <simon@josefsson.org>
64054         * tests/test-version-etc.sh: Don't fail on different
64055         project/version.
64057 2009-08-12  Bruno Haible  <bruno@clisp.org>
64059         Tests for modules 'getopt-posix', 'getopt-gnu'.
64060         * modules/getopt-posix-tests: New file.
64061         * tests/test-getopt.c: New file.
64062         * tests/test-getopt.h: New file.
64063         * tests/test-getopt_long.h: New file.
64065         New modules 'getopt-posix', 'getopt-gnu'.
64066         * modules/getopt-gnu: New file, renamed from modules/getopt.
64067         * modules/getopt-posix: New file.
64068         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
64069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
64070         (gl_GETOPT): Remove macro.
64071         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
64072         Disable the test against BSD systems that declare optreset. Test
64073         against mingw bug. Test against lack of support of optional arguments
64074         on many platforms.
64075         * doc/glibc-headers/getopt.texi: Update module name and list of
64076         relevant platforms.
64077         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
64078         'getopt-gnu' and more portability problems.
64079         * NEWS: Mention the changes.
64081 2009-08-12  Bruno Haible  <bruno@clisp.org>
64083         Ensure that optarg etc. get declared by <unistd.h>.
64084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
64085         AC_USE_SYSTEM_EXTENSIONS.
64086         * modules/getopt (Depends-on): Add 'extensions'.
64088 2009-08-12  Bruno Haible  <bruno@clisp.org>
64090         Avoid test link errors.
64091         * modules/pipe-filter-ii-tests (Makefile.am): Define
64092         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
64093         * modules/pipe-filter-gi-tests (Makefile.am): Define
64094         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
64095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64097 2009-08-12  Bruno Haible  <bruno@clisp.org>
64099         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
64100         gl_GETOPT_SUBSTITUTE before.
64101         (gl_GETOPT): Use it.
64102         * m4/argp.m4 (gl_ARGP): Update.
64103         Reported by Sergey Poznyakoff.
64105         * m4/getopt.m4: Reorder macros.
64106         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
64107         (gl_GETOPT_SUBSTITUTE): Remove macro.
64109 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64111         Minor improvement in gitlog-to-changelog
64113         * build-aux/gitlog-to-changelog: New option `--format' makes
64114         output format string configurable.
64116 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64118         Optimize exclude: use hash tables for non-wildcard patterns.
64120         * lib/exclude.c: Include hash.h and mbuiter.h
64121         (struct exclude_pattern, exclude_segment): New data types.
64122         (struct exclude): Rewrite.
64123         (fnmatch_pattern_has_wildcards): New function.
64124         (new_exclude_segment, free_exclude_segment): New functions.
64125         (excluded_file_pattern_p, excluded_file_name_p): New functions.
64126         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
64127         * lib/exclude.h (is_fnmatch_pattern): New prototype.
64128         * modules/exclude: Depend on hash and mbuiter.
64130         * modules/exclude-tests: New file.
64131         * tests/test-exclude.c: New file.
64132         * tests/test-exclude1.sh: New file.
64133         * tests/test-exclude2.sh: New file.
64134         * tests/test-exclude3.sh: New file.
64135         * tests/test-exclude4.sh: New file.
64136         * tests/test-exclude5.sh: New file.
64137         * tests/test-exclude6.sh: New file.
64138         * tests/test-exclude7.sh: New file.
64140 2009-08-12  Bruno Haible  <bruno@clisp.org>
64142         Ensure that getopt() gets declared by <unistd.h>.
64143         * lib/unistd.in.h: Conditionally include getopt.h.
64144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
64145         Set GNULIB_UNISTD_H_GETOPT.
64146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64147         GNULIB_UNISTD_H_GETOPT.
64148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
64150 2009-08-12  Bruno Haible  <bruno@clisp.org>
64152         Clarify logic.
64153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
64154         gl_replace_getopt instead of GETOPT_H.
64156 2009-08-12  Bruno Haible  <bruno@clisp.org>
64158         * m4/getopt.m4: Add comments.
64160 2009-08-12  Bruno Haible  <bruno@clisp.org>
64162         Disable multithread support by default on Cygwin 1.5.x.
64163         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
64164         set gl_use_threads=no if not specified otherwise.
64166 2009-08-11  Bruno Haible  <bruno@clisp.org>
64168         Avoid compilation error on NetBSD 5.0.
64169         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
64170         * tests/test-stdio.c: Likewise.
64171         * tests/test-stdlib.c: Likewise.
64172         * tests/test-string.c: Likewise.
64173         * tests/test-unistd.c: Likewise.
64174         Reported by Greg Troxel <gdt@ir.bbn.com>
64175         at <https://savannah.gnu.org/support/?106973>.
64177 2009-08-11  Bruno Haible  <bruno@clisp.org>
64179         * modules/dup2-tests (Depends-on): Remove close.
64181         Undo 2009-07-19 commit.
64182         * modules/acl-tests (Depends-on): Remove close.
64183         * modules/binary-io-tests (Depends-on): Likewise.
64184         * modules/closein-tests (Depends-on): Likewise.
64185         * modules/flock-tests (Depends-on): Likewise.
64186         * modules/fsync-tests (Depends-on): Likewise.
64187         * modules/lseek-tests (Depends-on): Likewise.
64188         * modules/pipe-tests (Depends-on): Likewise.
64189         * modules/posix_spawn-tests (Depends-on): Likewise.
64190         * modules/posix_spawnp-tests (Depends-on): Likewise.
64191         * modules/stat-time-tests (Depends-on): Likewise.
64192         * modules/yesno-tests (Depends-on): Likewise.
64194 2009-08-10  Bruno Haible  <bruno@clisp.org>
64196         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
64198 2009-08-10  Bruno Haible  <bruno@clisp.org>
64200         Fix a gcc warning.
64201         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
64203 2009-08-10  Bruno Haible  <bruno@clisp.org>
64205         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
64206         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
64207         not only the first time.
64208         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
64209         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
64210         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
64211         is 1, not only the first time.
64213 2009-08-10  Bruno Haible  <bruno@clisp.org>
64215         Make it possible to use module 'gethostname' without module 'close'.
64216         * lib/unistd.in.h (close): Evoke a link error only if
64217         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64220         * modules/unistd (Makefile.am): Substitute
64221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64222         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
64223         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
64225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64226         * modules/sys_ioctl (Makefile.am): Substitute
64227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64228         * modules/socket (configure.ac): On native Windows, set
64229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
64230         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64231         Reported by Sam Steingold <sds@gnu.org>.
64233 2009-08-10  Bruno Haible  <bruno@clisp.org>
64235         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
64236         * modules/ioctl (configure.ac): Likewise.
64238 2009-08-10  Bruno Haible  <bruno@clisp.org>
64240         Avoid collision between gnulib wrapper and libintl wrapper.
64241         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
64242         already defined in intl/printf.c.
64243         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
64244         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
64246 2009-08-09  Bruno Haible  <bruno@clisp.org>
64248         Make <sys/select.h> really self-contained, also on Solaris 10.
64249         * lib/sys_select.in.h: Include <string.h>.
64250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
64251         Solaris 10 problem.
64252         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
64253         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
64254         Reported by Jim Meyering.
64256 2009-08-09  Bruno Haible  <bruno@clisp.org>
64258         Avoid warnings from 'aclocal' that are due to a use of macro name
64259         AM_XGETTEXT_OPTION that is not defined in automake.
64260         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
64261         automake.
64262         * modules/error (configure.ac): Likewise.
64263         * modules/propername (configure.ac): Likewise.
64264         * modules/vasprintf (configure.ac): Likewise.
64265         * modules/verror (configure.ac): Likewise.
64266         * modules/xprintf (configure.ac): Likewise.
64267         * modules/xvasprintf (configure.ac): Likewise.
64269 2009-08-08  Bruno Haible  <bruno@clisp.org>
64271         Avoid compilation error in C++ mode.
64272         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
64273         Reported by Sam Steingold <sds@gnu.org>.
64275 2009-08-08  Bruno Haible  <bruno@clisp.org>
64277         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
64278         for the various Unix platforms.
64279         * doc/posix-headers/limits.texi: Update platforms list regarding
64280         HOST_NAME_MAX.
64281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64283 2009-08-07  Jim Meyering  <meyering@redhat.com>
64285         selinux-at: fix typo in a comment
64286         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
64287         Spotted by Paolo Bonzini.
64289         selinux-at: remove redundant m4 code, add documentation
64290         * modules/selinux-at (configure.ac): Remove redundant code.
64291         LIB_SELINUX is already set via the dependent module, selinux-h.
64292         (Include): Add quotes around selinux-at.h.
64293         * lib/selinux-at.h: Add documentation.
64294         Reported by Bruno Haible in
64295         http://marc.info/?l=gnulib-bug&m=124958988300749
64297 2009-08-07  Bruno Haible  <bruno@clisp.org>
64299         Avoid link error on MacOS X 10.3 and 10.4.
64300         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
64301         on non-ELF systems.
64302         * lib/argp-pv.c (argp_program_version): Likewise.
64303         Reported by Simon Josefsson.
64305 2009-08-07  Simon Josefsson  <simon@josefsson.org>
64307         * tests/test-version-etc.sh: Use $EXEEXT.
64309 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
64311         update-copyright: update documentation to point to maint.mk
64312         * build-aux/update-copyright: Here.
64314 2009-08-06  Jim Meyering  <meyering@redhat.com>
64316         maint.mk: support update-copyright-local
64317         * top/maint.mk (update-copyright-local): Define place-holder.
64318         (update-copyright): Depend on $(update-copyright-local).
64320 2009-08-06  Jim Meyering  <meyering@redhat.com>
64322         selinux-at: new module
64323         Initially written for coreutils, this module will soon be
64324         used by findutils, too.
64325         * MODULES.html.sh [Misc]: Add selinux-at.
64326         * lib/selinux-at.h: New file, from coreutils.
64327         * lib/selinux-at.c: Likewise.
64328         * modules/selinux-at: Likewise.
64329         (License): Change from LGPL to GPL, since it depends
64330         on the GPL'd openat module.
64332         doc: update README
64333         * README: Remove references to cogito.
64334         Remove cvs-repo-updating instructions from 2007.
64335         Don't imply that CVS is better if you have limited disk space.
64337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64339         update-copyright: support C-style comments
64340         * build-aux/update-copyright: Implement and document.
64341         * tests/test-update-copyright.sh: Test.
64343 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64345         update-copyright: support omitted "(C)"
64346         * build-aux/update-copyright: Implement and document.  Also,
64347         allow variable whitespace before "(C)".
64348         * tests/test-update-copyright.sh: Test.
64350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64352         update-copyright: don't trip on non-FSF copyright statements
64353         * build-aux/update-copyright: Fix so that the first correctly
64354         formatted FSF copyright statement is recognized no matter what
64355         appears before it.  Update documentation.
64356         * tests/test-update-copyright.sh: Test that.
64358 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64360         update-copyright: clean up code a little
64361         * build-aux/update-copyright: Append "_re" to the name of any
64362         variable holding a regular expression.
64363         Replace "old" and "new" with "stmt" in variable names.
64364         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
64365         handled correctly.
64366         Format code more consistently.
64368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64370         update-copyright-tests: improve portability
64371         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
64372         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
64374 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64376         update-copyright: support @copyright{} and &copy;
64377         * build-aux/update-copyright: Implement and document.
64378         * tests/test-update-copyright.sh: Test.
64380 2009-08-04  Jim Meyering  <meyering@redhat.com>
64382         update-copyright-tests: correctly test EOL=\r\n handling
64383         * tests/test-update-copyright.sh: Put \r at the end of some lines
64384         for the dos-eol tests.  Based on a patch by Joel E. Denny.
64386         maint.mk: make update-copyright exclusion list more configurable
64387         * top/maint.mk (update-copyright): Default to excluding COPYING,
64388         but allow an override, in case someone does want to update that file.
64390         maint.mk: don't update copyright date in COPYING
64391         * top/maint.mk (update-copyright): Exclude COPYING.
64393         maint.mk: add a copyright-updating rule
64394         * top/maint.mk (update-copyright): New rule.
64395         Derived from coreutils/Makefile.am.
64397         update-copyright: rename some variables
64398         * build-aux/update-copyright: Rename a few variables for clarity.
64399         Tweak syntax.  List Joel E. Denny as coauthor.
64401 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64403         update-copyright: fix bug for 2-digit last year and add tests
64404         * build-aux/update-copyright: Fix bug.
64405         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
64406         specified.
64407         * modules/update-copyright-tests: New
64408         * tests/test-update-copyright.sh: New.
64410 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64412         update-copyright: handle leading tabs in line prefix
64413         * build-aux/update-copyright: Count leading tabs as 8 spaces
64414         when computing margin.  This helps with the formatting of
64415         ChangeLogs, for example.
64416         Fix documentation a little.
64418 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64420         update-copyright: support EOL=\r\n
64421         * build-aux/update-copyright: Implement that.
64423 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64425         update-copyright: automatically format copyright statements
64426         * build-aux/update-copyright: Implement that.
64427         Also, be a little more predictable and safer by always failing
64428         when the full copyright format is not perfectly recognized as an
64429         unbroken whole.  Discussed at
64430         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
64431         Rewrite documentation.
64433 2009-08-03  Bruno Haible  <bruno@clisp.org>
64435         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
64437 2009-08-02  Bruno Haible  <bruno@clisp.org>
64439         Tests for module 'uname'.
64440         * modules/uname-tests: New file.
64441         * tests/test-uname.c: New file.
64443         New module 'uname'.
64444         * lib/uname.c: New file.
64445         * m4/uname.m4: New file.
64446         * modules/uname: New file.
64447         * doc/posix-functions/uname.texi: Mention the new module.
64449 2009-08-02  Bruno Haible  <bruno@clisp.org>
64451         Tests for module 'sys_utsname'.
64452         * modules/sys_utsname-tests: New file.
64453         * tests/test-sys_utsname.c: New file.
64455         New module 'sys_utsname'.
64456         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
64457         * m4/sys_utsname_h.m4: New file.
64458         * modules/sys_utsname: New file.
64459         * doc/posix-headers/sys_utsname.texi: Mention the new module.
64461 2009-08-02  Bruno Haible  <bruno@clisp.org>
64463         Implicitly initialize the sockets library.
64464         * lib/gethostname.c: Include sockets.h.
64465         (rpl_gethostname): Invoke gl_sockets_startup.
64466         * lib/socket.c: Include sockets.h.
64467         (rpl_socket): Invoke gl_sockets_startup.
64468         * modules/gethostname (Depends-on): Add sockets.
64469         * modules/socket (Depends-on): Likewise.
64470         * tests/test-poll.c: Don't include sockets.h.
64471         (main): Don't invoke gl_sockets_startup.
64472         * tests/test-select.c: Don't include sockets.h.
64473         (main): Don't invoke gl_sockets_startup.
64475 2009-08-02  Bruno Haible  <bruno@clisp.org>
64477         Allow multiple calls to gl_sockets_startup.
64478         * lib/sockets.c (initialized_sockets_version): New variable.
64479         (gl_sockets_startup): Do nothing if already called for this or a higher
64480         version.
64481         (gl_sockets_cleanup): Reset initialized_sockets_version.
64483 2009-08-03  Simon Josefsson  <simon@josefsson.org>
64485         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
64486         different project/version.
64488 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
64489             Bruno Haible  <bruno@clisp.org>
64491         Tests for module 'pipe-filter-gi'.
64492         * modules/pipe-filter-gi-tests: New file.
64493         * tests/test-pipe-filter-gi1.sh: New file.
64494         * tests/test-pipe-filter-gi1.c: New file.
64495         * tests/test-pipe-filter-gi2.sh: New file.
64496         * tests/test-pipe-filter-gi2-main.c: New file.
64497         * tests/test-pipe-filter-gi2-child.c: New file.
64499         New module 'pipe-filter-gi'.
64500         * lib/pipe-filter-gi.c: New file.
64501         * modules/pipe-filter-gi: New file.
64503 2009-08-02  Bruno Haible  <bruno@clisp.org>
64504             Paolo Bonzini  <bonzini@gnu.org>
64506         Tests for module 'pipe-filter-ii'.
64507         * modules/pipe-filter-ii-tests: New file.
64508         * tests/test-pipe-filter-ii1.sh: New file.
64509         * tests/test-pipe-filter-ii1.c: New file.
64510         * tests/test-pipe-filter-ii2.sh: New file.
64511         * tests/test-pipe-filter-ii2-main.c: New file.
64512         * tests/test-pipe-filter-ii2-child.c: New file.
64514         New module 'pipe-filter-ii'.
64515         * lib/pipe-filter.h: New file.
64516         * lib/pipe-filter-ii.c: New file.
64517         * lib/pipe-filter-aux.h: New file.
64518         * modules/pipe-filter-ii: New file.
64520 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64522         * lib/gc-libgcrypt.c: Change copyright to FSF.
64523         * lib/gc-gnulib.c: Likewise.
64525 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
64527         * lib/gethostname.c: Include limits.h.
64529 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64530             Bruno Haible  <bruno@clisp.org>
64532         Ensure HOST_NAME_MAX as part of the gethostname module.
64533         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
64534         define also HOST_NAME_MAX.
64535         * tests/test-gethostname.c: Include <limits.h>.
64536         (main): Check also HOST_NAME_MAX.
64537         * doc/posix-headers/limits.texi: Document the mingw problem.
64539 2009-08-02  Bruno Haible  <bruno@clisp.org>
64541         * lib/gethostname.c (gethostname): Fix handling of large len argument.
64542         Add comments.
64544 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64546         * lib/gethostname.c: Add Windows wrapper.
64547         * m4/gethostname.m4: Look for gethostname in -lws2_32.
64548         * modules/gethostname: Depend on sys_socket & errno, for also
64549         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
64550         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
64552 2009-07-31  Jim Meyering  <meyering@redhat.com>
64554         getloadavg: fix symbol name in comment
64555         * lib/getloadavg.c: Correct a typo I introduced when adding
64556         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
64557         Matt Kraai spotted the problem.
64559 2009-07-29  Matt Kraai  <mkraai@beckman.com>
64561         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
64562         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
64563         code also if ! defined N_NAME_POINTER.
64564         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
64565         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
64566         but the n_name member is a 12-byte array.
64568 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
64570         update-copyright: generalize comment handling
64571         * build-aux/update-copyright: Handle copyright statements
64572         within more comment styles.
64573         Document usage.
64574         Report any file with an external copyright holder or parse failure.
64576 2009-07-29  Jim Meyering  <meyering@redhat.com>
64578         mktime: correct setting of REPLACE_MKTIME
64579         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
64581         update-copyright: new module
64582         * modules/update-copyright: New file.
64583         * build-aux/update-copyright: New file.
64584         * MODULES.html.sh (maint+release support): Add update-copyright.
64586 2009-07-27  Bruno Haible  <bruno@clisp.org>
64588         Fix compilation error when <ctime> is used and mktime is replaced.
64589         * lib/time.in.h (mktime): New declaration.
64590         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
64591         REPLACE_MKTIME instead of defining mktime in config.h.
64592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
64593         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
64594         Reported by Ross McFarland <rwmcfa1@neces.com>.
64596 2009-07-27  Bruno Haible  <bruno@clisp.org>
64598         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
64599         Reported by Matt Kraai <mkraai@beckman.com>.
64601 2009-07-25  Jim Meyering  <meyering@redhat.com>
64603         maint.mk: avoid warnings about missing files
64604         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
64605         diagnostic when .prev-version does not exist.
64606         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
64607         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
64608         nonexistent cfg.mk.
64609         Suggestions from Simon Josefsson.
64611 2009-07-25  Bruno Haible  <bruno@clisp.org>
64613         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
64614         defined as macros. Needed on QNX 6.4.1.
64615         Reported by Matt Kraai <mkraai@beckman.com>.
64617 2009-07-23  Jim Meyering  <meyering@redhat.com>
64619         maint.mk: invoke "make dist" with a working value of XZ_OPT
64620         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
64622 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
64624         Make fseeko.c compile on QNX.
64625         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
64627 2009-07-22  Peter Simons  <simons@cryp.to>
64629         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
64630         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
64631         * lib/md4.h: Likewise.
64632         * lib/md5.h: Likewise.
64633         * lib/sha1.h: Likewise.
64634         * lib/sha256.h: Likewise.
64635         * lib/sha512.h: Likewise.
64637         tests-sha1: don't assign literal string to 'char *' variable
64638         * tests/test-sha1.c (main): Declare locals with "const" to match
64639         attributes of the right hand side.
64641 2009-07-21  Eric Blake  <ebb9@byu.net>
64643         dup2: fix more mingw problems
64644         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
64645         fd to itself.
64646         * doc/posix-functions/dup2.texi (dup2): Document the bug.
64647         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
64648         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
64649         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
64650         care of mingw bugs.
64652 2009-07-21  Jim Meyering  <meyering@redhat.com>
64654         vc-list-files: avoid failure when /bin/sh is dash
64655         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
64656         On some Debian based systems, /bin/sh is a symlink to dash, and running
64657         this command would omit the "/" following each 'tests' prefix:
64658           dash -x build-aux/vc-list-files -C . tests
64659         That is because bash and dash work differently:
64660           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
64661           bash ok
64662           dash odd
64664 2009-07-21  Eric Blake  <ebb9@byu.net>
64666         dup2-tests: test previous patch
64667         * modules/dup2-tests: New file.
64668         * tests/test-dup2.c: Likewise.
64669         * tests/test-open.c (main): Avoid unspecified behavior.
64670         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
64671         test.
64673         dup2: work around mingw and cygwin 1.5 bug
64674         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
64675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64676         * modules/unistd (Makefile.am): Substitute it.
64677         * lib/unistd.in.h (dup2): Declare the replacement.
64678         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
64679         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
64680         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
64681         * modules/execute (Depends-on): Add dup2.
64682         * modules/fseterr (Depends-on): Likewise.
64683         * modules/pipe (Depends-on): Likewise.
64684         * modules/posix_spawn-internal (Depends-on): Likewise.
64686 2009-07-21  Bruno Haible  <bruno@clisp.org>
64688         * modules/.gitattributes: New file.
64690 2009-07-20  Bruno Haible  <bruno@clisp.org>
64692         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
64693         (main): Use it.
64695 2009-07-20  Eric Blake  <ebb9@byu.net>
64697         test-pipe: make a bit more robust.
64698         * tests/test-pipe.c (myerr): Allow error messages regardless of
64699         what we do to stderr.
64700         (test_pipe): Rearrange to avoid deadlock.
64701         (child_main): Try a larger read, to ensure we avoided deadlock.
64702         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
64703         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
64704         if misused.
64706 2009-07-19  Jim Meyering  <meyering@redhat.com>
64708         fts: avoid false-positive cycle-detection
64709         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
64710         for each new command line argument.
64712 2009-07-19  Bruno Haible  <bruno@clisp.org>
64714         Fix build error on mingw with the modules sys_select and unistd.
64715         * modules/acl-tests (Depends-on): Add close.
64716         * modules/binary-io-tests (Depends-on): Likewise.
64717         * modules/closein-tests (Depends-on): Likewise.
64718         * modules/flock-tests (Depends-on): Likewise.
64719         * modules/fsync-tests (Depends-on): Likewise.
64720         * modules/lseek-tests (Depends-on): Likewise.
64721         * modules/pipe-tests (Depends-on): Likewise.
64722         * modules/posix_spawn-tests (Depends-on): Likewise.
64723         * modules/posix_spawnp-tests (Depends-on): Likewise.
64724         * modules/stat-time-tests (Depends-on): Likewise.
64725         * modules/yesno-tests (Depends-on): Likewise.
64727 2009-07-19  Bruno Haible  <bruno@clisp.org>
64729         Unify conditionals.
64730         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
64731         macros, not at the compiler macros.
64732         * lib/pipe.c: Likewise.
64733         * lib/execute.c: Likewise.
64734         * lib/spawni.c: Likewise.
64736 2009-07-19  Bruno Haible  <bruno@clisp.org>
64738         Fix handling of closed stdin/stdout/stderr on mingw.
64739         * lib/w32spawn.h: Include unistd.h.
64740         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
64741         file descriptor with O_NOINHERIT flag.
64742         (fd_safer_noinherit): New function, based on fd-safer.c.
64743         (dup_safer_noinherit): New function, based on dup-safer.c.
64744         (undup_safer_noinherit): New function.
64745         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
64746         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
64747         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
64748         instead of fd_safer.
64749         * tests/test-pipe.c: Include <windows.h>.
64750         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
64751         result.
64753         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
64754         from main.
64755         (test_pipe): Pass an extra argument for disambiguation.
64756         (main): Invoke parent_main or child_main.
64758         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
64759         consistently.
64761 2009-07-18  Eric Blake  <ebb9@byu.net>
64763         test-pipe: fix mingw build
64764         * tests/test-pipe.c (main): Avoid fcntl on mingw.
64766 2009-07-18  Bruno Haible  <bruno@clisp.org>
64768         * modules/pipe-tests (Makefile.am): Fix typo.
64770 2009-07-18  Eric Blake  <ebb9@byu.net>
64772         error: fix mingw build
64773         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
64774         Reported by Bruno Haible.
64776         error: avoid undefined use of stdout
64777         * lib/error.c (error, error_at_line): Check that fd 1 is open
64778         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
64779         is handling faults and the close_stdout module wants to report the
64780         detection of closed stdout as an error.
64782 2009-07-17  Eric Blake  <ebb9@byu.net>
64784         pipe: be robust in face of closed fds
64785         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
64786         should cause child to misbehave.
64787         * modules/pipe-tests: New module.
64788         * tests/test-pipe.c: New file.
64789         * tests/test-pipe.sh: New file.
64790         Reported by Akim Demaille.
64792 2009-07-14  Bruno Haible  <bruno@clisp.org>
64794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
64795         Reported by anonymous kc.
64797 2009-07-07  Jim Meyering  <meyering@redhat.com>
64799         maint.mk: don't look for translatable strings in *.m4 or *.mk
64800         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
64801         when searching for translatable strings.
64803 2009-07-05  Jim Meyering  <meyering@redhat.com>
64805         remove superfluous parentheses in STREQ definition
64806         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
64807         * lib/getugroups.c (STREQ): Likewise.
64808         * lib/fnmatch.c (STREQ): Likewise.
64809         Spotted by Bruno Haible.
64811 2009-07-04  Jim Meyering  <meyering@redhat.com>
64813         argv-iter: new module
64814         * MODULES.html.sh: Add argv-iter.
64815         * lib/argv-iter.c, lib/argv-iter.h: New files.
64816         * modules/argv-iter: New file.
64817         * modules/argv-iter-tests: New file.
64818         * tests/test-argv-iter.c: Test it.
64820 2009-07-04  Bruno Haible  <bruno@clisp.org>
64822         Fix assertion.
64823         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
64824         contains more exact copies of a given entry than file2, leave the extra
64825         copies unpaired rather than aborting.
64826         Reported by Eric Blake.
64828 2009-07-02  Bruno Haible  <bruno@clisp.org>
64830         Speedup git-merge-changelog for git cherry-pick.
64831         * lib/git-merge-changelog.c (struct entries_mapping): New type.
64832         (entries_mapping_get): New function, extracted from compute_mapping.
64833         (entries_mapping_reverse_get): New function.
64834         (compute_mapping): Add a 'full' argument. Return the result in a
64835         'struct entries_mapping'.
64836         (main): Update. Access the mappings through entries_mapping_get.
64837         Reported by Eric Blake.
64839 2009-07-02  Bruno Haible  <bruno@clisp.org>
64841         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
64842         best_i.
64844 2009-07-02  Bruno Haible  <bruno@clisp.org>
64846         Speed up approximate search for matching ChangeLog entries.
64847         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
64848         argument. Call fstrcmp_bounded instead of fstrcmp.
64849         (compute_mapping, try_split_merged_entry, main): Update callers.
64851 2009-07-02  Bruno Haible  <bruno@clisp.org>
64853         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64855 2009-06-30  Bruno Haible  <bruno@clisp.org>
64857         Reduce the number of uc_is_cased calls.
64858         * lib/unicase.h (casing_suffix_context_t): Add
64859         'first_char_except_ignorable' field.
64860         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64861         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64862         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64863         Update initializer.
64864         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64865         case-ignorable characters.
64866         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64867         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64868         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64869         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64870         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64872 2009-06-30  Bruno Haible  <bruno@clisp.org>
64874         Tests for module 'unicase/ignorable'.
64875         * modules/unicase/ignorable-tests: New file.
64876         * tests/unicase/test-ignorable.c: New file, generated by
64877         gen-uni-tables.
64879         Tests for module 'unicase/cased'.
64880         * modules/unicase/cased-tests: New file.
64881         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64882         * tests/unicase/test-predicate-part1.h: New file, derived from
64883         tests/unictype/test-predicate-part1.h.
64884         * tests/unicase/test-predicate-part2.h: New file, same as
64885         tests/unictype/test-predicate-part2.h.
64887         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64888         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64889         (output_casing_properties): New function.
64890         (main): Call it.
64891         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64892         * lib/unicase/cased.c: Include unictype/bitmap.h.
64893         (uc_is_cased): Define through a bitmap lookup.
64894         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64895         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64896         (uc_is_case_ignorable): Define through a bitmap lookup.
64897         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64898         lib/unictype/bitmap.h.
64899         (Depends-on): Add inline. Clean up.
64900         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64901         lib/unictype/bitmap.h.
64902         (Depends-on): Add inline. Clean up.
64903         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64904         recognition.
64905         * tests/unicase/test-u16-tolower.c (main): Likewise.
64906         * tests/unicase/test-u32-tolower.c (main): Likewise.
64908 2009-06-30  Bruno Haible  <bruno@clisp.org>
64910         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64911         * lib/unicase/u16-casemap.c: Likewise.
64912         * lib/unicase/u32-casemap.c: Likewise.
64914 2009-06-29  Bruno Haible  <bruno@clisp.org>
64916         Define u32_casefold as a wrapper around u32_ct_casefold.
64917         * lib/unicase/u32-casefold.c: Update.
64918         * modules/unicase/u32-casefold (Depends-on): Add
64919         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64920         unicase/empty-suffix-context. Clean up.
64922         Define u16_casefold as a wrapper around u16_ct_casefold.
64923         * lib/unicase/u16-casefold.c: Update.
64924         * modules/unicase/u16-casefold (Depends-on): Add
64925         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64926         unicase/empty-suffix-context. Clean up.
64928         Define u8_casefold as a wrapper around u8_ct_casefold.
64929         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64930         * lib/unicase/u8-casefold.c: Update.
64931         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64932         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64934         Define u32_totitle as a wrapper around u32_ct_totitle.
64935         * lib/unicase/u32-totitle.c: Update.
64936         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64937         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64939         Define u16_totitle as a wrapper around u16_ct_totitle.
64940         * lib/unicase/u16-totitle.c: Update.
64941         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64942         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64944         Define u8_totitle as a wrapper around u8_ct_totitle.
64945         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64946         functions.
64947         (FUNC): Delegate to U_CT_TOTITLE.
64948         * lib/unicase/u8-totitle.c: Update.
64949         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64952         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64953         invocation.
64954         * modules/unicase/u32-tolower (Depends-on): Add
64955         unicase/empty-prefix-context, unicase/empty-suffix-context.
64957         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64958         invocation.
64959         * modules/unicase/u16-tolower (Depends-on): Add
64960         unicase/empty-prefix-context, unicase/empty-suffix-context.
64962         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64963         * modules/unicase/u8-tolower (Depends-on): Add
64964         unicase/empty-prefix-context, unicase/empty-suffix-context.
64966         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64967         invocation.
64968         * modules/unicase/u32-toupper (Depends-on): Add
64969         unicase/empty-prefix-context, unicase/empty-suffix-context.
64971         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64972         invocation.
64973         * modules/unicase/u16-toupper (Depends-on): Add
64974         unicase/empty-prefix-context, unicase/empty-suffix-context.
64976         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64977         * modules/unicase/u8-toupper (Depends-on): Add
64978         unicase/empty-prefix-context, unicase/empty-suffix-context.
64980         New module 'unicase/u32-ct-casefold'.
64981         * lib/unicase/u32-ct-casefold.c: New file.
64982         * modules/unicase/u32-ct-casefold: New file.
64984         New module 'unicase/u16-ct-casefold'.
64985         * lib/unicase/u16-ct-casefold.c: New file.
64986         * modules/unicase/u16-ct-casefold: New file.
64988         New module 'unicase/u8-ct-casefold'.
64989         * lib/unicase/u8-ct-casefold.c: New file.
64990         * lib/unicase/u-ct-casefold.h: New file, derived from
64991         lib/unicase/u-casefold.h.
64992         * modules/unicase/u8-ct-casefold: New file.
64994         New module 'unicase/u32-ct-totitle'.
64995         * lib/unicase/u32-ct-totitle.c: New file.
64996         * modules/unicase/u32-ct-totitle: New file.
64998         New module 'unicase/u16-ct-totitle'.
64999         * lib/unicase/u16-ct-totitle.c: New file.
65000         * modules/unicase/u16-ct-totitle: New file.
65002         New module 'unicase/u8-ct-totitle'.
65003         * lib/unicase/u8-ct-totitle.c: New file.
65004         * lib/unicase/u-ct-totitle.h: New file, derived from
65005         lib/unicase/u-totitle.h.
65006         * modules/unicase/u8-ct-totitle: New file.
65008         New module 'unicase/u32-ct-tolower'.
65009         * lib/unicase/u32-ct-tolower.c: New file.
65010         * modules/unicase/u32-ct-tolower: New file.
65012         New module 'unicase/u16-ct-tolower'.
65013         * lib/unicase/u16-ct-tolower.c: New file.
65014         * modules/unicase/u16-ct-tolower: New file.
65016         New module 'unicase/u8-ct-tolower'.
65017         * lib/unicase/u8-ct-tolower.c: New file.
65018         * modules/unicase/u8-ct-tolower: New file.
65020         New module 'unicase/u32-ct-toupper'.
65021         * lib/unicase/u32-ct-toupper.c: New file.
65022         * modules/unicase/u32-ct-toupper: New file.
65024         New module 'unicase/u16-ct-toupper'.
65025         * lib/unicase/u16-ct-toupper.c: New file.
65026         * modules/unicase/u16-ct-toupper: New file.
65028         New module 'unicase/u8-ct-toupper'.
65029         * lib/unicase/u8-ct-toupper.c: New file.
65030         * modules/unicase/u8-ct-toupper: New file.
65032         Add context arguments to u*_casemap functions.
65033         * lib/unicase/unicasemap.h: Include unicase.h.
65034         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
65035         suffix_context arguments.
65036         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
65037         functions.
65038         (FUNC): Add prefix_context and suffix_context arguments. Use
65039         uc_is_cased and uc_is_case_ignorable.
65040         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
65041         * lib/unicase/u16-casemap.c: Likewise.
65042         * lib/unicase/u32-casemap.c: Likewise.
65043         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
65044         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65045         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
65046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65047         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
65048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65050         New module 'unicase/u32-suffix-context'.
65051         * lib/unicase/u32-suffix-context.c: New file.
65052         * modules/unicase/u32-suffix-context: New file.
65054         New module 'unicase/u16-suffix-context'.
65055         * lib/unicase/u16-suffix-context.c: New file.
65056         * modules/unicase/u16-suffix-context: New file.
65058         New module 'unicase/u8-suffix-context'.
65059         * lib/unicase/u8-suffix-context.c: New file.
65060         * lib/unicase/u-suffix-context.h: New file.
65061         * modules/unicase/u8-suffix-context: New file.
65063         New module 'unicase/empty-suffix-context'.
65064         * lib/unicase/empty-suffix-context.c: New file.
65065         * modules/unicase/empty-suffix-context: New file.
65067         New module 'unicase/u32-prefix-context'.
65068         * lib/unicase/u32-prefix-context.c: New file.
65069         * modules/unicase/u32-prefix-context: New file.
65071         New module 'unicase/u16-prefix-context'.
65072         * lib/unicase/u16-prefix-context.c: New file.
65073         * modules/unicase/u16-prefix-context: New file.
65075         New module 'unicase/u8-prefix-context'.
65076         * lib/unicase/u8-prefix-context.c: New file.
65077         * lib/unicase/u-prefix-context.h: New file.
65078         * lib/unicase/context.h: New file.
65079         * modules/unicase/u8-prefix-context: New file.
65081         New module 'unicase/empty-prefix-context'.
65082         * lib/unicase/empty-prefix-context.c: New file.
65083         * modules/unicase/empty-prefix-context: New file.
65085         New module 'unicase/ignorable'.
65086         * lib/unicase/ignorable.c: New file.
65087         * modules/unicase/ignorable: New file.
65089         New module 'unicase/cased'.
65090         * lib/unicase/caseprop.h: New file.
65091         * lib/unicase/cased.c: New file.
65092         * modules/unicase/cased: New file.
65094         New functions for case mapping of substrings.
65095         * lib/unicase.h (casing_prefix_context_t): New type.
65096         (unicase_empty_prefix_context): New variable.
65097         (u8_casing_prefix_context, u16_casing_prefix_context,
65098         u32_casing_prefix_context, u8_casing_prefixes_context,
65099         u16_casing_prefixes_context, u32_casing_prefixes_context): New
65100         declarations.
65101         (casing_suffix_context_t): New type.
65102         (unicase_empty_suffix_context): New variable.
65103         (u8_casing_suffix_context, u16_casing_suffix_context,
65104         u32_casing_suffix_context, u8_casing_suffixes_context,
65105         u16_casing_suffixes_context, u32_casing_suffixes_context,
65106         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
65107         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
65108         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
65109         declarations.
65111 2009-06-28  Jim Meyering  <meyering@redhat.com>
65113         boostrap: indent only with spaces
65114         * build-aux/bootstrap: Indent only with spaces, never TABs.
65116         bootstrap: split long lines
65117         * build-aux/bootstrap: Keep line length < 80.
65119         bootstrap: sync from coreutils
65120         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
65121         just as autoreconf does.  Verify a list of prerequisite
65122         package-name,version-number pairs if defined in bootstrap.conf.
65123         Refer to README-prereq, if prerequisites are not satisfied.
65125 2009-06-27  Eric Blake  <ebb9@byu.net>
65127         tests: add test for bogus NULL definition
65128         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
65129         * tests/test-stdlib.c: Likewise.
65130         * tests/test-string.c: Likewise.
65131         * tests/test-locale.c: Likewise.
65132         * tests/test-unistd.c: Likewise.
65133         * modules/stdio-tests (Depends-on): Add verify.
65134         * modules/stdlib-tests (Depends-on): Likewise.
65135         * modules/string-tests (Depends-on): Likewise.
65136         * modules/locale-tests (Depends-on): Likewise.
65137         * modules/unistd-tests (Depends-on): Likewise.
65139 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
65141         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
65142         self-explaining comment.
65143         * m4/selinux-selinux-h: Update serial.
65144         (gl_LIBSELINUX): New macro, adding a warning for missing development
65145         packages to code extracted from...
65146         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
65147         Add warning for missing development packages here, too.
65149 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
65151         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
65153 2009-06-25  Eric Blake  <ebb9@byu.net>
65155         version-etc: fix regression
65156         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
65157         gcc.
65158         (version_etc): Use it, to catch bugs with trailing NULL.
65159         * lib/version-etc.c (version_etc_arn): Delete unused argument.
65160         (version_etc_va): Fix logic bug.
65161         * modules/version-etc-tests: Add test.
65162         * tests/test-version-etc.c: New file.
65163         * tests/test-version-etc.sh: Likewise.
65165 2009-06-25  Sam Steingold  <sds@gnu.org>
65167         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
65168         mbtowc declaration.
65170 2009-06-25  Eric Blake  <ebb9@byu.net>
65172         fpurge: migrate into <stdio.h>
65173         * lib/fpurge.h: Delete...
65174         * lib/stdio.in.h (fpurge): ...and declare here, instead.
65175         * lib/fpurge.c (fpurge): Change declaring header.
65176         * modules/fpurge (Files): Drop deleted file.
65177         (Depends-on): Add stdio.
65178         (configure.ac): Set witness.
65179         * modules/stdio (Makefile.am): Support fpurge macros.
65180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
65182         * lib/fflush.c: Update client.
65183         * tests/test-fpurge.c: Likewise.
65184         * NEWS: Mention the change.
65186 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65188         * lib/argp-version-etc.c (program_authors): Add const
65189         qualifier.
65190         * lib/version-etc.c: Fix typos in the comments.
65191         * modules/argp-version-etc: Depends on version-etc.
65193 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65195         argp-version-etc: new module.
65197         * lib/argp-version-etc.c: New file.
65198         * lib/argp-version-etc.h: New file.
65199         * modules/argp-version-etc: New file.
65200         * modules/argp-version-etc-tests: New file.
65201         * tests/test-argp-version-etc.c: New test.
65202         * tests/test-argp-version-etc-1.sh: New test.
65204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65206         Provide additional interfaces and documentation for version-etc
65207         module.
65209         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
65210         interfaces.
65211         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
65212         prototypes.
65214 2009-06-24  Bruno Haible  <bruno@clisp.org>
65216         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
65217         HAVE_LIB${NAME} macro.
65218         Reported by Sam Steingold <sds@gnu.org>.
65220 2009-06-23  Simon Josefsson  <simon@josefsson.org>
65222         * modules/hash-tests (test_hash_LDADD): Link to libintl when
65223         needed.
65225 2009-06-21  Bruno Haible  <bruno@clisp.org>
65227         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
65228         work.
65229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
65230         together with LIB${NAME}, LTLIB${NAME}.
65231         Reported by Sam Steingold <sds@gnu.org>.
65233 2009-06-20  Jim Meyering  <meyering@redhat.com>
65235         tests: make sc_require_test_exit_idiom more generic
65236         * top/maint.mk (Exit_witness_file): New overridable variable.
65237         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
65238         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
65240 2009-06-19  Jim Meyering  <meyering@redhat.com>
65242         hash: reverse order of src/dst parameters in an internal interface
65243         * lib/hash.c (transfer_entries): Reverse order of parameters to
65244         put DST before SRC.  Adjust callers.
65246         tests: test-hash: avoid wholesale duplication
65247         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
65248         Instead, use a loop and add a single conditional.
65250         tests: test-hash: allow seed selection via a command line argument
65251         * tests/test-hash.c (get_seed): New function.
65252         (main): Use it.
65254 2009-06-19  Eric Blake  <ebb9@byu.net>
65256         hash: avoid memory leak on allocation failure
65257         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
65258         failure.  Factor repeated algorithm...
65259         (transfer_entries): ...into new helper routine.
65260         (hash_delete): React to hash_rehash return value.
65262         hash: reduce memory pressure in hash_rehash no-op case
65263         * lib/hash.c (next_prime): Avoid overflow.
65264         (hash_initialize): Factor bucket size computation...
65265         (compute_bucket_size): ...into new helper function.
65266         (hash_rehash): Use new function and open coding to reduce memory
65267         pressure, and avoid a memory leak in USE_OBSTACK code.
65268         Reported by Jim Meyering.
65270 2009-06-18  Eric Blake  <ebb9@byu.net>
65272         hash: make rotation more obvious
65273         * modules/hash (Depends-on): Add bitrotate and stdint.
65274         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
65275         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
65276         (SIZE_MAX): Rely on headers for definition.
65277         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
65278         (raw_hasher): Use rotr_sz.
65279         Suggested by Jim Meyering.
65281         hash: fix memory leak in last patch
65282         * lib/hash.c (hash_rehash): Avoid memory leak.
65284         hash: avoid no-op rehashing
65285         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
65287         hash: provide default callback functions
65288         * lib/hash.c (raw_hasher, raw_comparator): New functions.
65289         (hash_initialize): Use them as defaults.
65290         * tests/test-hash.c (main): Test this.
65292         hash: minor optimization
65293         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
65294         when possible.
65295         (hash_initialize): Document this promise.
65296         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
65297         * tests/test-hash.c (hash_compare_strings): Test this.
65299 2009-06-18  Bruno Haible  <bruno@clisp.org>
65301         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
65302         going to be replaced anyway.
65304 2009-06-18  Bruno Haible  <bruno@clisp.org>
65306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
65307         in one place.
65308         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
65309         be replaced anyway.
65311 2009-06-18  Eric Blake  <ebb9@byu.net>
65313         hash: check for resize before insertion
65314         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
65315         threshold before insertion, so that a pathological hash_rehash
65316         that fills every bucket can still trigger another rehash.
65318 2009-06-18  Jim Meyering  <meyering@redhat.com>
65320         hash-tests: add a loop around the small tests
65321         * tests/test-hash.c (main): Repeat small tests with selected
65322         small initial table sizes.
65324 2009-06-17  Eric Blake  <ebb9@byu.net>
65326         hash: minor cleanups
65327         * lib/hash.h (hash_entry): Make opaque, by moving...
65328         * lib/hash.c (hash_entry): ...here.
65329         (hash_insert): Clarify restrictions on what can be inserted.
65330         (hash_get_next): Clarify when it is safe to remove an element
65331         during traversal.
65332         (check_tuning): Skip verification when tuning is known safe.
65333         (hash_initialize): Clarify restrictions on tuning.
65335 2009-06-17  Jim Meyering  <jim@meyering.net>
65336         and Eric Blake  <ebb9@byu.net>
65338         hash-tests: new module
65339         * modules/hash-tests: New file.
65340         * tests/test-hash.c: New file.
65342 2009-06-17  Eric Blake  <ebb9@byu.net>
65344         strstr-simple: document new module
65345         * MODULES.html.sh: Document new module.
65347         strstr, strcasestr: replace on platforms with broken memchr
65348         * modules/strstr: Split into...
65349         * modules/strstr-simple: ...new module that does not care about
65350         performance, but does care about glibc bug.
65351         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
65352         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
65353         if platform memchr is broken, per Debian bug 521737.
65354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
65355         memchr.
65356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
65357         * doc/posix-functions/strstr.texi (strstr): Document the fix.
65358         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
65359         * modules/mountlist (Depends-on): Add strstr-simple.
65360         * modules/gen-uni-tables (Depends-on): Likewise.
65361         * modules/argz (Depends-on): Add strstr.
65363 2009-06-17  Bruno Haible  <bruno@clisp.org>
65365         * modules/posix_spawn-internal (Depends-on): Add errno.
65367 2009-06-17  Bruno Haible  <bruno@clisp.org>
65369         Define missing ESTALE on Interix 3.5.
65370         * lib/errno.in.h (ESTALE): Assign a value if missing.
65371         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
65372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
65373         missing.
65374         * doc/posix-headers/errno.texi: Mention the Interix bug.
65375         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
65377 2009-06-15  Eric Blake  <ebb9@byu.net>
65379         memchr, memchr2: add valgrind exception
65380         * lib/memchr.valgrind: New file.
65381         * lib/memchr2.valgrind: New file.
65382         * modules/memchr (Files): Distribute valgrind file.
65383         * modules/memchr2 (Files): Likewise.
65385         docs: memchr is no longer obsolete
65386         * MODULES.html.sh: Move memchr from obsolete to string.h section.
65387         * lib/string.in.h (memchr): Simplify logic.
65389 2009-06-14  Jim Meyering  <meyering@redhat.com>
65391         link-follow: fix the "checking..." message to not mention trailing slash
65392         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
65393         never considered trailing slashes.
65395 2009-06-14  Bruno Haible  <bruno@clisp.org>
65397         * m4/memchr.m4: Mention also the bug on IA-64.
65398         * doc/posix-functions/memchr.texi: Likewise.
65400 2009-06-12  Eric Blake  <ebb9@byu.net>
65402         memchr: detect broken x86_64 and alpha implementations
65403         * modules/memchr-tests (Depends-on): Move mmap detection...
65404         * modules/memchr (Depends-on): ...here.
65405         (configure.ac): Set indicator.
65406         * lib/string.in.h (memchr): Declare replacement.
65407         * modules/string (Makefile.am): Trigger replacement.
65408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
65409         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
65410         bugs.
65411         * doc/posix-functions/memchr.texi (memchr): Document the bug.
65412         * modules/getpagesize (License): Relax license.
65414 2009-06-11  Bruno Haible  <bruno@clisp.org>
65416         * lib/idpriv.h: Add more references.
65418 2009-06-08  Bruno Haible  <bruno@clisp.org>
65420         Tests for module 'idpriv-droptemp'.
65421         * modules/idpriv-droptemp-tests: New file.
65422         * tests/test-idpriv-droptemp.sh: New file.
65423         * tests/test-idpriv-droptemp.su.sh: New file.
65424         * tests/test-idpriv-droptemp.c: New file.
65426         New module 'idpriv-droptemp'.
65427         * lib/idpriv-droptemp.c: New file.
65428         * modules/idpriv-droptemp: New file.
65430 2009-06-08  Bruno Haible  <bruno@clisp.org>
65432         Tests for module 'idpriv-drop'.
65433         * modules/idpriv-drop-tests: New file.
65434         * tests/test-idpriv-drop.sh: New file.
65435         * tests/test-idpriv-drop.su.sh: New file.
65436         * tests/test-idpriv-drop.c: New file.
65438         New module 'idpriv-drop'.
65439         * lib/idpriv.h: New file.
65440         * lib-idpriv-drop.c: New file.
65441         * m4/idpriv.m4: New file.
65442         * modules/idpriv-drop: New file.
65444 2009-06-08  Bruno Haible  <bruno@clisp.org>
65446         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
65447         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65449         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65450         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65452         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65454 2009-06-08  Eric Blake  <ebb9@byu.net>
65456         test-strstr: use memory fence, when possible
65457         * tests/test-strstr.c (main): Use memory fence, in order to be
65458         more likely to trigger Debian bug 521737.
65459         * modules/strstr-tests (Files): Pull in additional files.
65461         memchr: no longer obsolete, for wider field testing
65462         * modules/memchr (Status, Notice): Delete, this module is no
65463         longer obsolete.
65464         * modules/vasnprintf (Depends-on): Add memchr.
65466 2009-06-07  Jim Meyering  <meyering@redhat.com>
65468         hash: declare some functions with the warn_unused_result attribute
65469         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
65471 2009-06-07  Bruno Haible  <bruno@clisp.org>
65473         * tests/test-alignof.c: Don't test int64_t if it does not exist.
65474         Reported by Eric Blake.
65476 2009-06-06  Eric Blake  <ebb9@byu.net>
65478         test-alignof: fix typo with long double
65479         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
65480         compiler error.
65482 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
65484         Escape non-texinfo { and }s.
65485         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
65486         markup error.
65488 2009-06-04  Jim Meyering  <meyering@redhat.com>
65490         gitlog-to-changelog: don't infloop on an empty commit log
65491         * build-aux/gitlog-to-changelog: Warn about an empty log message.
65492         Reported by Boris Petersen <transacid@centerim.org>.
65494 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
65496         version-etc: extend for packagers
65497         Add three new configure options, intended for packagers:
65498           --with-packager="packager name"
65499           --with-packager-version="packager-specific version"
65500           --with-packager-bug-reports="packager bug reporting"
65501         An example with coreutils:
65502           $ ./configure \
65503             --with-packager=Gentoo \
65504             --with-packager-bug-report=http://bugs.gentoo.org/ \
65505             --with-packager-version="patchset 1.6"
65506           $ ./src/ls --version | head -n2
65507           ls (GNU coreutils) 7.1-dirty
65508           Packaged by Gentoo (patchset 1.6)
65509         Note that the bug reporting info via --help doesn't show up because
65510         coreutils uses its own custom emit_bug_reporting_address() implementation
65511         in src/system.h.  If it didn't, it'd look like:
65512           $ ./src/ls --help | tail -n4
65513           Report bugs to <bug-coreutils@gnu.org>.
65514           Report Gentoo bugs to <http://bugs.gentoo.org/>.
65515           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
65516           General help using GNU software: <http://www.gnu.org/gethelp/>.
65517         * lib/version-etc.c: Print new information, if provided.
65518         * m4/version-etc.m4: New file.
65519         * modules/version-etc (Files): Add m4/version-etc.m4.
65520         (configure.ac): Add gl_VERSION_ETC.
65522 2009-05-31  Bruno Haible  <bruno@clisp.org>
65524         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
65525         and 'int64_t'.
65526         * modules/alignof-tests (Dependencies): Add stdint.
65527         Reported by Eric Blake.
65529 2009-05-31  Bruno Haible  <bruno@clisp.org>
65531         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
65532         restriction due to compiler bugs.
65533         Reported by Eric Blake.
65535 2009-05-31  Simon Josefsson  <simon@josefsson.org>
65536             Bruno Haible  <bruno@clisp.org>
65538         Fix test-alignof failure.
65539         * lib/alignof.h (alignof_slot): New macro.
65540         (alignof_type): New macro, with the same semantics as the previous
65541         'alignof'.
65542         (alignof): Alias to alignof_slot.
65543         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
65544         check that the results are usable as constant expressions.
65546 2009-05-31  Bruno Haible  <bruno@clisp.org>
65548         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
65549         * tests/test-memchr.c (main): Check that memchr does not read past the
65550         first occurrence of the byte.
65551         * tests/test-strstr.c (main): Update comment.
65552         Suggested by Eric Blake.
65554 2009-05-30  Bruno Haible  <bruno@clisp.org>
65556         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
65557         detail how to use dumpbin.
65558         Reported by David Byron <dbyron@dbyron.com>.
65560 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65562         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
65564 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65566         * m4/manywarnings.m4: Add GCC 4.4 warnings.
65568 2009-05-28  Bruno Haible  <bruno@clisp.org>
65570         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
65571         build-aux/ files.
65573 2009-05-28  Simon Josefsson  <simon@josefsson.org>
65575         * gnulib-tool (func_import): Transform license on build-aux/ files too.
65577 2009-05-27  Simon Josefsson  <simon@josefsson.org>
65579         * gnulib-tool (sed_transform_main_lib_file)
65580         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
65581         regexps.
65583 2009-05-26  Simon Josefsson  <simon@josefsson.org>
65585         * tests/test-strstr.c: Add another self-test.
65586         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
65587         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
65589 2009-05-23  Bruno Haible  <bruno@clisp.org>
65591         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
65592         change.
65594 2009-05-21  Bruno Haible  <bruno@clisp.org>
65596         Simplify use of mode_t varargs.
65597         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
65598         uses 'mode_t' or 'int'.
65599         * lib/openat.c (openat): Likewise.
65600         * lib/open-safer.c (open_safer): Likewise.
65601         * m4/mode_t.m4: New file.
65602         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
65603         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
65604         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
65605         * modules/open (Files): Add m4/mode_t.m4.
65606         * modules/openat (Files): Likewise.
65607         * modules/fcntl-safer (Files): Likewise.
65608         Suggested by Eric Blake.
65610 2009-05-21  Pádraig Brady  <P@draigbrady.com>
65612         * doc/glibc-functions/fallocate.texi: New file.
65613         * doc/gnulib.texi: Include it.
65615 2009-05-21  Eric Blake  <ebb9@byu.net>
65616             Bruno Haible  <bruno@clisp.org>
65618         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
65619         invocations.
65620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
65622 2009-05-21  Eric Blake  <ebb9@byu.net>
65623             Bruno Haible  <bruno@clisp.org>
65625         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
65626         include_next. Fix of 2008-11-20 commit.
65627         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
65628         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
65629         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
65630         NEXT_MATH_H.
65631         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
65632         instead of NEXT_MATH_H.
65634 2009-05-21  Bruno Haible  <bruno@clisp.org>
65636         Avoid redefinition warnings for SIZE_MAX.
65637         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
65638         Reported by Simon Josefsson.
65640 2009-05-21  Bruno Haible  <bruno@clisp.org>
65642         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
65643         AC_CACHE_VAL.
65645 2009-05-20  Bruno Haible  <bruno@clisp.org>
65647         Make zeroptr.h work on mingw.
65648         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
65649         mprotect.
65650         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
65651         * modules/memchr2-tests (configure.ac): Likewise.
65652         * modules/memcmp-tests (configure.ac): Likewise.
65653         * modules/memmem-tests (configure.ac): Likewise.
65654         * modules/memrchr-tests (configure.ac): Likewise.
65655         Reported by Simon Josefsson.
65657 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65659         * tests/test-glob.c: Include string.h for strcmp prototype.
65661 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65663         * modules/getdelim (Depends-on): Add explicit stdint, although it
65664         was implicitly already pulled in via realloc-posix.
65665         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
65667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65669         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
65670         G. Christensen" <tgc@jupiterrise.com>.
65671         * m4/sys_socket_h.m4: Check for sa_family_t.
65672         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
65673         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
65674         * tests/test-sys_socket.c: Check that sa_family_t works.
65676 2009-05-18  Eric Blake  <ebb9@byu.net>
65678         maint.mk: allow gnulib_dir in VPATH build
65679         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
65681 2009-05-15  Jim Meyering  <meyering@redhat.com>
65683         maint.mk: Give gnulib_dir a default definition.
65684         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
65685         Thus, most packages no longer need to specify this variable in cfg.mk
65687 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
65689         rename.m4: fix typos that would make non-mingw cross-configure fail
65690         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
65692 2009-05-13  Eric Blake  <ebb9@byu.net>
65694         mmap-anon: avoid out-of-order autoconf expansion
65695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
65696         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
65697         * modules/memchr-tests (Depends-on): Add extensions.
65698         * modules/memchr2-tests (Depends-on): Add extensions.
65699         * modules/memcmp-tests (Depends-on): Add extensions.
65700         * modules/memmem-tests (Depends-on): Add extensions.
65701         * modules/memrchr-tests (Depends-on): Add extensions.
65703 2009-05-13  Bruno Haible  <bruno@clisp.org>
65705         Make some tests ISO C 99 compliant.
65706         * tests/zerosize-ptr.h: New file.
65707         * tests/test-memchr.c: Include zerosize-ptr.h.
65708         (main): Use a zero-size object pointer instead of NULL.
65709         * tests/test-memchr2.c: Include zerosize-ptr.h.
65710         (main): Use a zero-size object pointer instead of NULL.
65711         * tests/test-memcmp.c: Include zerosize-ptr.h.
65712         (main): Use a zero-size object pointer instead of NULL.
65713         * tests/test-memmem.c: Include zerosize-ptr.h.
65714         (main): Use a zero-size object pointer instead of NULL.
65715         * tests/test-memrchr.c: Include zerosize-ptr.h.
65716         (main): Use a zero-size object pointer instead of NULL.
65717         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
65718         m4/mmap-anon.m4.
65719         (Depends-on): Add getpagesize.
65720         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65721         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
65722         m4/mmap-anon.m4.
65723         (Depends-on): Add getpagesize.
65724         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65725         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
65726         m4/mmap-anon.m4.
65727         (Depends-on): Add getpagesize.
65728         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65729         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
65730         m4/mmap-anon.m4.
65731         (Depends-on): Add getpagesize.
65732         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65733         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
65734         m4/mmap-anon.m4.
65735         (Depends-on): Add getpagesize.
65736         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65738 2009-05-12  Bruno Haible  <bruno@clisp.org>
65740         Tests for module 'alignof'.
65741         * modules/alignof-tests: New file.
65742         * tests/test-alignof.c: New file.
65744 2009-05-12  Bruno Haible  <bruno@clisp.org>
65746         Fix alignof macro.
65747         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
65748         vendor compilers that are always correct.
65750 2009-05-12  Bruno Haible  <bruno@clisp.org>
65752         Make the MAP_ANONYMOUS detection work on HP-UX 11.
65753         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
65754         not whether its fully works.
65756 2009-05-12  Bruno Haible  <bruno@clisp.org>
65758         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
65760 2009-05-12  Jim Meyering  <meyering@redhat.com>
65762         * top/maint.mk: Adjust backslash alignment.
65764 2009-05-11  Simon Josefsson  <simon@josefsson.org>
65766         * top/maint.mk: Make $(srcdir)/build-aux configurable.
65768 2009-05-11  Eric Blake  <ebb9@byu.net>
65770         argp: avoid undefined behavior
65771         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
65772         macros.
65774 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65776         * tests/test-vc-list-files-git.sh: Do git config of user.email and
65777         user.name to prevent git commit from complaining.
65779 2009-05-10  Bruno Haible  <bruno@clisp.org>
65781         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
65782         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
65783         it rewrites every file name only once.
65784         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
65786 2009-05-08  Bruno Haible  <bruno@clisp.org>
65788         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
65789         instead of 'max'.
65791 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65793         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
65794         sockaddr_storage test.
65796 2009-05-07  Simon Josefsson  <simon@josefsson.org>
65798         * modules/sys_socket (Makefile.am): Substitute
65799         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
65800         * m4/sys_socket_h.m4: Check for sockaddr_storage.
65801         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
65802         * tests/test-sys_socket.c: Check sockaddr_storage.
65804 2009-05-08  Bruno Haible  <bruno@clisp.org>
65806         New module 'alignof'.
65807         * lib/alignof.h: New file.
65808         * modules/alignof: New file.
65810 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65811             Bruno Haible  <bruno@clisp.org>
65813         Fix test-file-has-acl on FreeBSD.
65814         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
65815         mask is implicitly added.
65816         * tests/test-file-has-acl.c: Include <signal.h>.
65817         (main): Terminate the test after 5 seconds.
65818         * modules/acl-tests (configure.ac): Check for alarm function.
65820 2009-05-04  Bruno Haible  <bruno@clisp.org>
65822         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
65823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
65824         * modules/errno (configure.ac): Drop AC_REQUIRE.
65825         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
65826         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
65828 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65830         * modules/glob-tests: New module.
65831         * tests/test-glob.c: Add.
65833 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65835         * modules/fnmatch-tests: New module.
65836         * tests/test-fnmatch.c: Add.
65838 2009-05-04  Eric Blake  <ebb9@byu.net>
65840         maint: make the new no-submodule-changes rule VPATH-safe
65841         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
65843 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65844             Bruno Haible  <bruno@clisp.org>
65846         acl: Fix infinite loop on FreeBSD.
65847         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
65848         of return value from acl_get_entry.
65849         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65850         Likewise.
65852 2009-05-03  Bruno Haible  <bruno@clisp.org>
65854         * lib/acl-internal.h (acl_entries): Clarify return value.
65855         * lib/acl_entries.c (acl_entries): Likewise.
65857 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65859         Bug fix in acl module.
65860         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65862 2009-05-03  Bruno Haible  <bruno@clisp.org>
65864         Create gperf-generated file in the source dir, not in the build dir.
65865         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65866         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65867         * modules/unicase/locale-language (unicase/locale-languages.h):
65868         Likewise.
65869         * modules/unicase/special-casing (unicase/special-casing-table.h):
65870         Likewise.
65871         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65872         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65873         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65874         Reported by Ralf Wildenhues.
65876 2009-05-03  Bruno Haible  <bruno@clisp.org>
65878         * modules/fnmatch (Description, configure.ac): Taken from
65879         fnmatch-posix.
65880         * modules/fnmatch-posix: Turn into a symbolic reference to the
65881         'fnmatch' module, and deprecate.
65882         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65884 2009-05-03  Bruno Haible  <bruno@clisp.org>
65886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65887         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65888         Reported by Ralf Wildenhues.
65890 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65892         * m4/fnmatch.m4: Fix fnmatch re-define.
65894 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65896         priv-set: new module and tests; adapt write-any-file
65897         * lib/priv-set.c: New file.
65898         * lib/priv-set.h: New file.
65899         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65900         * lib/write-any-file.c: Simplify by using priv-set module.
65901         * m4/priv-set.m4: New file.
65902         * modules/priv-set: New file.
65903         * modules/unlinkdir: Add dependency on priv-set module.
65904         * modules/write-any-file: Likewise.
65906         Tests for module 'priv-set'.
65907         * modules/priv-set-tests: New file.
65908         * tests/test-priv-set.c: New file.
65910 2009-05-03  Jim Meyering  <meyering@redhat.com>
65911             Bruno Haible  <bruno@clisp.org>
65913         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65914         use the converted UTF-8 variant of the name instead.
65916 2009-05-03  Jim Meyering  <meyering@redhat.com>
65918         tests: tighten some getdate tests
65919         * tests/test-getdate.c (main): Tighten tests: require equality,
65920         not just greater than.  Set TZ envvar to UTC0.
65922 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65924         getdate: correctly interpret "next monday" when run on a Monday
65925         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65926         that e.g., "next tues" (when run on a tuesday) results in a date
65927         that is one week in the future, and not today's date.
65928         I.e., add a week when the wday is the same as the current one.
65929         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65930         and earlier by Martin Bernreuther and Jan Minář.
65931         * tests/test-getdate.c (main): Check that "next DAY" is always in
65932         the future and that "last DAY" is always in the past.
65934 2009-05-02  Jim Meyering  <meyering@redhat.com>
65936         build: ensure that a release build fails when a submodule is unclean
65937         * top/maint.mk (no-submodule-changes): New rule.
65938         (alpha beta major): Depend on it.
65940 2009-05-02  Bruno Haible  <bruno@clisp.org>
65942         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65944         shell variable gl_fnmatch_required to detect which variant is
65945         requested.
65946         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65947         gl_FUNC_FNMATCH_POSIX.
65948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65949         exclude fnmatch-posix.
65951 2009-05-02  Bruno Haible  <bruno@clisp.org>
65953         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65954         * modules/mbsrtowcs (License): Change to LGPLv2+.
65955         * modules/strnlen1 (License): Likewise.
65956         Reported by Simon Josefsson.
65958 2009-05-02  Bruno Haible  <bruno@clisp.org>
65960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65961         "cross".
65962         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65963         gnulib-tool was called with option --source-base=lib.
65965 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65967         Use automake *-local hooks without commands, for extensibility.
65968         * modules/localcharset (Makefile.am): Rename install-exec-local
65969         rule to install-exec-localcharset, and make it a prerequisite of
65970         install-exec-local.  Likewise, rename the uninstall-local rule to
65971         uninstall-localcharset, and make it a prerequisite of the former.
65973 2009-05-01  Bruno Haible  <bruno@clisp.org>
65975         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65976         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65977         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65979         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65980         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65981         m4/locale-zh.m4, m4/codeset.m4.
65983         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65984         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65985         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65986         m4/locale-zh.m4.
65988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65989         REPLACE_WCRTOMB if mbstate_t must be replaced.
65990         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65991         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65993 2009-05-01  Bruno Haible  <bruno@clisp.org>
65995         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65996         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65997         dngettext, dcngettext, textdomain, bindtextdomain,
65998         bind_textdomain_codeset): Undefine before redefining.
66000 2009-04-30  Bruno Haible  <bruno@clisp.org>
66002         Fix bug introduced on 2009-04-25.
66003         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
66004         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
66005         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
66006         is defined.
66007         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
66008         is defined.
66009         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
66010         is defined.
66011         Reported by Elbert_Pol <elbert.pol@gmail.com>.
66013 2009-04-28  Bruno Haible  <bruno@clisp.org>
66015         Comment tweaks.
66016         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
66017         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
66018         * lib/unicase.h (u*_casexfrm): Likewise.
66019         Reported by Paolo Bonzini.
66021 2009-04-28  Bruno Haible  <bruno@clisp.org>
66023         Fix a compilation error.
66024         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
66025         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
66026         Reported by Jim Meyering.
66028 2009-04-27  Bruno Haible  <bruno@clisp.org>
66030         New module 'libunistring'.
66031         * modules/libunistring: New file.
66032         * m4/libunistring.m4: New file.
66033         * MODULES.html.sh (Unicode string functions): Add it.
66035 2009-04-27  Eric Blake  <ebb9@byu.net>
66037         maint.mk: allow package-specific header to provide <config.h>
66038         * top/maint.mk (sc_require_config_h): New variable.
66039         (sc_require_config_h, sc_require_config_h_first): Use it.
66041 2009-04-27  Simon Josefsson  <simon@josefsson.org>
66043         * top/maint.mk (sc_avoid_if_before_free): Except
66044         useless-if-before-free script.
66046 2009-04-27  Eric Blake  <ebb9@byu.net>
66048         maintainer-makefile: depend on all required helper scripts
66049         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
66050         useless-if-before-free.
66051         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
66052         version, rather than assuming gnulib checkout is available.
66053         Reported by Simen Josefsson.
66055 2009-04-26  Bruno Haible  <bruno@clisp.org>
66057         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
66058         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
66059         "../" or "..".
66061 2009-04-26  Bruno Haible  <bruno@clisp.org>
66063         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
66064         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
66065         AC_LIB_HAVE_LINKFLAGS.
66067 2009-04-26  Bruno Haible  <bruno@clisp.org>
66069         Simplify calling convention of u*_conv_from_encoding.
66070         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
66071         u32_conv_from_encoding): Expect a resultbuf argument and return the
66072         result directly as a pointer.
66073         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
66074         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
66075         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
66076         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
66077         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
66078         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
66079         Update.
66080         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
66081         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
66082         * lib/vasnprintf.c (VASNPRINTF): Update.
66083         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
66084         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
66085         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
66086         * NEWS: Mention the change.
66088 2009-04-26  Bruno Haible  <bruno@clisp.org>
66090         Simplify calling convention of u*_conv_to_encoding.
66091         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66092         u32_conv_to_encoding): Expect a resultbuf argument and return the
66093         result directly as a pointer.
66094         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
66095         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
66096         freeing scaled_offsets if mem_iconveha failed.
66097         * lib/unicase/u-casexfrm.h (FUNC): Update.
66098         * lib/uninorm/u-normxfrm.h (FUNC): Update.
66099         * lib/vasnprintf.c (VASNPRINTF): Update.
66100         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
66101         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
66102         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
66103         * NEWS: Mention the change.
66105 2009-04-26  Bruno Haible  <bruno@clisp.org>
66107         Avoid test failures on AIX and OSF/1.
66108         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
66109         malloc(0).
66110         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
66111         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
66112         Likewise.
66113         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
66114         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
66115         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
66116         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
66117         * doc/posix-functions/malloc.texi: Document the portability problem
66118         related to malloc(0).
66120 2009-04-26  Bruno Haible  <bruno@clisp.org>
66122         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
66123         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
66124         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
66126 2009-04-25  Bruno Haible  <bruno@clisp.org>
66128         Avoid link error when creating a namespace clean library.
66129         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
66130         as macro with arguments if already defined as an alias.
66131         * lib/signbitf.c (gl_signbitf): Don't undefine.
66132         * lib/signbitd.c (gl_signbitd): Don't undefine.
66133         * lib/signbitl.c (gl_signbitl): Don't undefine.
66135 2009-04-25  Jim Meyering  <meyering@redhat.com>
66137         vc-list-files: fix another quoting bug
66138         * build-aux/vc-list-files: Avoid sed backslash expansion
66139         of pathological directory names.
66141 2009-04-25  Eric Blake  <ebb9@byu.net>
66143         vc-list-files: fix shell quoting error
66144         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
66145         timestamp.
66147 2009-04-25  Jim Meyering  <meyering@redhat.com>
66149         vc-list-files: restore lost functionality with subdir argument
66150         * build-aux/vc-list-files: When given a non-"." sub-directory
66151         argument, substitute the $dir/ prefix back onto each resulting name.
66152         Otherwise, coreutils' root_tests check would fail.
66154 2009-04-24  Eric Blake  <ebb9@byu.net>
66156         vc-list-files: ignore git symlinks
66157         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
66158         than ls-files, to ignore git symlinks.
66160         maint.mk: import improvements from m4
66161         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
66162         (move_if_change): Delete unused macro.
66163         (news-date-check, vc-diff-check): Support VPATH builds.
66164         (announcement): Likewise.  Split --bootstrap-tools list...
66165         (boostrap-tools): ...into separate list, which can be overridden
66166         in cfg.mk.
66167         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
66168         requiring dependency on useless-if-before-free module.
66169         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
66170         Support VPATH builds.
66172 2009-04-24  Jim Meyering  <meyering@redhat.com>
66174         maint.mk: remove coreutils-specific rules and variables
66175         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
66176         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
66177         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
66179         maint.mk: remove obsolete rule
66180         * top/maint.mk (rel-check): Remove rule.
66181         (WGET, WGETFLAGS): Remove now-unused variables.
66183 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66185         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
66186         consistency.
66188         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
66189         '$(PATH_SEPARATOR)' instead of ':'.
66191 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66193         * lib/getopt1.c (main): Use 'const' for static array.
66195 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66197         * top/maint.mk: Sync with coreutils.
66198         * NEWS: Explain incompatibilities.
66200 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66201             Bruno Haible  <bruno@clisp.org>
66203         Fix cross-compilation results.
66204         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
66205         statement, as third argument of AC_TRY_RUN.
66206         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66207         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66208         Likewise.
66209         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
66211         Likewise.
66212         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
66214         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
66216 2009-04-20  Bruno Haible  <bruno@clisp.org>
66218         Avoid test failure on mingw.
66219         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
66221 2009-04-20  Bruno Haible  <bruno@clisp.org>
66223         Avoid compilation error on mingw.
66224         * modules/localename-tests (Depends-on): Add locale.
66226 2009-04-19  Bruno Haible  <bruno@clisp.org>
66228         Support for building a shared library on Windows platforms.
66229         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
66230         (main): Test the presence of UNINORM_NFC here.
66231         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
66232         (main): Test the presence of UNINORM_NFD here.
66233         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
66234         (main): Test the presence of UNINORM_NFKC here.
66235         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
66236         (main): Test the presence of UNINORM_NFKD here.
66238 2009-04-19  Bruno Haible  <bruno@clisp.org>
66240         Avoid a compiler warning.
66241         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
66242         Change type of variable 'sequence'.
66244 2009-04-19  Bruno Haible  <bruno@clisp.org>
66246         * modules/configmake (Makefile.am): When the contents of configmake.h
66247         does not change, arrange to preserve its modification time.
66249 2009-04-17  Simon Josefsson  <simon@josefsson.org>
66251         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
66252         gettext domain.
66254 2009-04-16  Jim Meyering  <meyering@redhat.com>
66256         useless-if-before-free: improve conversion code
66257         * build-aux/useless-if-before-free: Adjust code-in-comment to match
66258         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
66260 2009-04-14  Bruno Haible  <bruno@clisp.org>
66262         * modules/fcntl (Depends-on): Add extensions.
66263         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
66265 2009-04-12  Ben Pfaff  <blp@gnu.org>
66267         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
66268         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
66270 2009-03-20  Ben Pfaff  <blp@gnu.org>
66272         Make rename replace existing destinations on Windows.
66273         * m4/rename.m4: Add test for Mingw.
66274         * lib/rename.c: Add rename replacement that uses MoveFileEx with
66275         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
66276         * doc/posix-functions/rename.texi: Document.
66278 2009-04-10  Bruno Haible  <bruno@clisp.org>
66280         New include file "iconveh.h".
66281         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
66282         * lib/striconveh.h: Include it.
66283         (enum iconv_ilseq_handler): Remove definition.
66284         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
66285         striconveh.h.
66286         * lib/striconveha.c: Include striconveh.h.
66287         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
66288         * modules/striconveh (Files): Add lib/iconveh.h.
66289         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
66290         lib/striconveh.h.
66292 2009-04-10  Bruno Haible  <bruno@clisp.org>
66294         * lib/uniconv.h: Update comment.
66296 2009-04-10  Bruno Haible  <bruno@clisp.org>
66298         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
66299         always.
66300         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66301         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66302         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66303         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
66304         "unistring-notinline.h", so that the function gets defined always.
66305         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66306         * lib/unistr/u8-uctomb.c: Likewise.
66307         * lib/unistr/u16-mbtouc.c: Likewise.
66308         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66309         * lib/unistr/u16-uctomb.c: Likewise.
66310         * lib/unistr/u32-mbtouc.c: Likewise.
66311         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66312         * lib/unistr/u32-uctomb.c: Likewise.
66314 2009-04-10  Bruno Haible  <bruno@clisp.org>
66316         Mark 'utime' obsolete.
66317         * modules/utime (Status, Notice): New sections.
66318         Suggested by Jim Meyering.
66320         Fix cross-compile guess for utime test.
66321         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
66322         autoconf.
66323         * doc/posix-functions/utime.texi: Give more precisions.
66324         Reported by Jan <ipif@ymail.com>.
66326 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
66328         filevercmp: correct today's change
66329         * lib/filevercmp.c: Also handle coreutils' test inputs.
66330         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
66332         Fix regression in 'filevercmp' module. Thanks Sven Joachim
66333         for reporting it.
66334         * lib/filevercmp.c: Special handle for "", "." and "..".
66335         * tests/test-filevercmp.c: Enlarge the set suite.
66337 2009-04-07  Jim Meyering  <meyering@redhat.com>
66339         useless-if-before-free: show how to remove braced useless free, too
66340         * build-aux/useless-if-before-free: still only in a comment, though.
66342 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
66344         maint.mk: import changes to syntax-check macros from coreutils
66345         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
66346         Use them in the relevant macros.
66348 2009-04-06  Bruno Haible  <bruno@clisp.org>
66350         Fix unportable use of bit-fields.
66351         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
66352         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
66353         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
66355 2009-04-06  Bruno Haible  <bruno@clisp.org>
66357         Avoid test failures on AIX and OSF/1.
66358         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
66359         that malloc(0) = NULL.
66360         * tests/unicase/test-u8-tolower.c (check): Likewise.
66361         * tests/unicase/test-u8-totitle.c (check): Likewise.
66362         * tests/unicase/test-u8-toupper.c (check): Likewise.
66363         * tests/unicase/test-u16-casefold.c (check): Likewise.
66364         * tests/unicase/test-u16-tolower.c (check): Likewise.
66365         * tests/unicase/test-u16-totitle.c (check): Likewise.
66366         * tests/unicase/test-u16-toupper.c (check): Likewise.
66367         * tests/unicase/test-u32-casefold.c (check): Likewise.
66368         * tests/unicase/test-u32-tolower.c (check): Likewise.
66369         * tests/unicase/test-u32-totitle.c (check): Likewise.
66370         * tests/unicase/test-u32-toupper.c (check): Likewise.
66371         * tests/uninorm/test-u8-nfc.c (check): Likewise.
66372         * tests/uninorm/test-u8-nfd.c (check): Likewise.
66373         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
66374         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
66375         * tests/uninorm/test-u16-nfc.c (check): Likewise.
66376         * tests/uninorm/test-u16-nfd.c (check): Likewise.
66377         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
66378         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
66379         * tests/uninorm/test-u32-nfc.c (check): Likewise.
66380         * tests/uninorm/test-u32-nfd.c (check): Likewise.
66381         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
66382         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
66384 2009-04-05  Bruno Haible  <bruno@clisp.org>
66386         Work around an autoconf limitation.
66387         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
66388         comment line if it would be longer than 3 KB.
66390 2009-04-05  Bruno Haible  <bruno@clisp.org>
66392         Avoid test failure with libiconv-1.13.
66393         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
66394         of the expected test results.
66396 2009-04-05  Bruno Haible  <bruno@clisp.org>
66398         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
66399         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
66400         that it should be installed.
66402 2009-04-05  Bruno Haible  <bruno@clisp.org>
66404         * gnulib-tool: New option --copy-file.
66405         (func_usage): Document it.
66406         (func_dest_tmpfilename): Moved out of func_import.
66407         (func_add_file, func_update_file): New functions, extracted from
66408         func_import.
66409         (func_import): Update.
66411 2009-04-05  Karl Berry  <karl@gnu.org>
66413         * README: prominently mention gnulib-tool.
66414         Rearrange sections so getting the code is near the top.
66416 2009-04-05  Bruno Haible  <bruno@clisp.org>
66418         * lib/unicase.h: Mention u*_cmp2.
66419         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66420         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
66421         * lib/unicase/ulc-casecmp.c: Likewise.
66422         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
66423         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
66424         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
66425         unistr/u8-cmp.
66426         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
66427         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
66428         unistr/u16-cmp.
66429         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
66430         unistr/u32-cmp.
66432         * lib/uninorm.h: Mention u*_cmp2.
66433         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66434         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
66435         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
66436         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
66437         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
66438         unistr/u8-cmp.
66439         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
66440         unistr/u16-cmp.
66441         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
66442         unistr/u32-cmp.
66444         New module 'unistr/u32-cmp2'.
66445         * lib/unistr/u32-cmp2.c: New file.
66446         * modules/unistr/u32-cmp2: New file.
66448         New module 'unistr/u16-cmp2'.
66449         * lib/unistr/u16-cmp2.c: New file.
66450         * modules/unistr/u16-cmp2: New file.
66452         New module 'unistr/u8-cmp2'.
66453         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
66454         * lib/unistr/u8-cmp2.c: New file.
66455         * lib/unistr/u-cmp2.h: New file.
66456         * modules/unistr/u8-cmp2: New file.
66458 2009-04-05  Bruno Haible  <bruno@clisp.org>
66460         * lib/unictype.h (uc_property_is_valid): New macro.
66461         * tests/unictype/test-pr_byname.c (main): Use it.
66463         * lib/unistr.h: Doc fixes.
66464         * lib/uniconv.h: Doc fixes.
66465         * lib/unictype.h: Doc fixes.
66467 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
66469         Port coreutils 7.2 to Solaris 8.
66471         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
66472         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
66473         for Solaris 8.  This is a bit of a hack, as it means it's the
66474         caller's responsibility to add -lnsl if needed, but most likely it
66475         won't be needed since only getaddrinfo uses this and getaddrinfo
66476         isn't needed on Solaris 8.
66478         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
66479         problem to Solaris 8 encountered with coreutils 7.2, which
66480         resulted in a message "fnmatch.c:292: warning: passing argument 4
66481         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
66482         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
66484 2009-04-03  Simon Josefsson  <simon@josefsson.org>
66486         * m4/ld-version-script.m4: Add FIXME comment.
66488 2009-04-02  Simon Josefsson  <simon@josefsson.org>
66490         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
66491         SOVERSION variable.
66493 2009-04-02  Bruno Haible  <bruno@clisp.org>
66495         * Makefile (info, html, dvi, pdf): Combine the rules.
66496         Suggested by Jim Meyering.
66498 2009-04-01  Bruno Haible  <bruno@clisp.org>
66500         * Makefile (info, html, dvi, pdf): New targets.
66501         Reported by Reuben Thomas <rrt@sc3d.org>.
66503 2009-04-01  Bruno Haible  <bruno@clisp.org>
66505         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
66506         can be put into PATH.
66507         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
66509 2009-04-01  Bruno Haible  <bruno@clisp.org>
66511         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
66513 2009-04-01  Bruno Haible  <bruno@clisp.org>
66515         Rename module 'visibility'.
66516         * modules/lib-symbol-visibility: Renamed from modules/visibility.
66517         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
66518         * doc/gnulib.texi: Update.
66519         * MODULES.html.sh (Misc): Update.
66520         * NEWS: Mention the change.
66522 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66524         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
66525         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
66526         Eric Blake <ebb9@byu.net> for review.
66527         * MODULES.html.sh: Add lib-msvc-compat.
66528         * doc/gnulib.texi: Link to new section.
66529         * m4/ld-output-def.m4: New file.
66530         * doc/ld-output-def.texi: New file.
66532 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66534         Rename ld-version-script to lib-symbol-versions.  Suggested by
66535         Bruno Haible <bruno@clisp.org>.
66536         * modules/ld-version-script: Renamed to lib-symbol-versions.
66537         * doc/ld-version-script.texi: Fix module name.
66538         * MODULES.html.sh: Add lib-symbol-versions.
66540 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66542         * modules/u64-tests: New file.
66543         * tests/test-u64.c: New file.
66545 2009-03-04  Simon Josefsson  <simon@josefsson.org>
66547         * MODULES.html.sh: Mention u64.
66548         * modules/u64: New module.
66549         * modules/crypto/sha512: Depend on u64 module instead of providing
66550         u64.h.
66552 2009-03-27  Eric Blake  <ebb9@byu.net>
66554         test-strerror: make debugging EAI_SYSTEM easier
66555         * modules/getaddrinfo-tests (Depends-on): Add strerror.
66556         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
66557         failure was EAI_SYSTEM.
66559 2009-03-25  Bruno Haible  <bruno@clisp.org>
66561         Fix a problem with --enable-relocatable on Solaris 7.
66562         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
66563         since 2008-02-24.
66565 2009-03-25  Eric Blake  <ebb9@byu.net>
66567         test-sockets: avoid gcc warning
66568         * tests/test-sockets.c (main): Silence compiler warning.
66570 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66572         New modules nproc, pthread, contributed by Glen Lenker.
66574         * MODULES.html.sh: Add pthread, nproc.
66575         * lib/nproc.c: New file.
66576         * lib/nproc.h: New file.
66577         * lib/pthread.in.h: New file.
66578         * m4/pthread.m4: New file.
66579         * modules/nproc: New file.
66580         * modules/pthread: New file.
66582 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66584         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
66585         New variable.
66587 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
66589         filevercmp: handle simple~ and numbered.~3~ backup suffixes
66590         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
66591         * tests/test-filevercmp.c: Add tests for backup suffixes.
66593 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66595         * modules/stdlib (Depends-on): Add stdint, needed when defining
66596         struct random_data on, for example, HP-UX 10.20.  Reported by
66597         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66599 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66601         * lib/readline.c (readline): Call fflush on stdout after printing
66602         prompt.
66604 2009-03-20  Bruno Haible  <bruno@clisp.org>
66606         Remove dependency from 'close' module to -lws2_32 on native Windows.
66607         * lib/close-hook.h: New file.
66608         * lib/close-hook.c: New file.
66609         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
66610         w32sock.h.
66611         (_gl_close_fd_maybe_socket): Remove function.
66612         (rpl_close): Invoke execute_all_close_hooks instead of
66613         _gl_close_fd_maybe_socket.
66614         * lib/sockets.c: Include close-hook.h, w32sock.h.
66615         (close_fd_maybe_socket): New function, essentially from lib/close.c.
66616         (close_sockets_hook): New variable.
66617         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
66618         (gl_sockets_cleanup): Unregister it.
66619         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
66620         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
66621         * modules/close-hook: New file.
66622         * modules/close (Files): Remove lib/w32sock.h.
66623         (Depends-on): Add close-hook.
66624         (Link): Remove section.
66625         * modules/sockets (Files): Add lib/w32sock.h.
66626         (Depends-on): Add close-hook.
66627         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
66628         invocation.
66629         * NEWS: Mention that LIB_CLOSE is gone.
66631 2009-03-23  Eric Blake  <ebb9@byu.net>
66633         signal-tests: test previous patch
66634         * tests/test-signal.c: New file.
66635         * modules/signal-tests: Likewise.
66637         signal.h: always support 'volatile sig_atomic_t'
66638         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
66639         (gl_SIGNAL_H_DEFAULTS): Add a default.
66640         * modules/signal (Makefile.am): Substitute if needed.
66641         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
66642         users can blindly add volatile.
66643         * doc/posix-headers/signal.texi (signal.h): Document it.
66644         Reported by Matthew Woehlke.
66646 2009-03-23  Jim Meyering  <meyering@redhat.com>
66648         pathmax: PATH_MAX: use pathconf only when available
66649         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
66650         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
66651         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
66652         This avoids a link failure in a PSP cross-compilation environment
66653         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
66655         * lib/vasnprintf.c (divide): Fix typo in comment.
66657 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66659         * gnulib-tool (func_filter_filelist): Fix comment.
66661 2009-03-20  Bruno Haible  <bruno@clisp.org>
66663         Make sockets.h self-contained.
66664         * lib/sockets.c: Include sockets.h first.
66665         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
66667 2009-03-19  Eric Blake  <ebb9@byu.net>
66669         doc: mention more functions added in cygwin 1.7.0
66670         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
66671         addition.
66672         * doc/posix-functions/log2f.texi: Likewise.
66674 2009-03-19  Jim Meyering  <meyering@redhat.com>
66676         fsusage: avoid syntax error due to statement-before-declaration
66677         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
66678         after all declarations.  Reported by Matthew Woehlke in
66679         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
66681 2009-03-18  Eric Blake  <ebb9@byu.net>
66683         build-aux/compile: sync from automake
66684         * build-aux/compile: New file, from automake.
66685         * config/srclist.txt: Mention build-aux/compile.
66687 2009-03-17  Bruno Haible  <bruno@clisp.org>
66689         * lib/git-merge-changelog.c: Fix typo in comment.
66690         Reported by Reuben Thomas <rrt@sc3d.org>.
66692 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
66694         * m4/regex.m4: update and improve help for
66695         --without-included-regex.
66697 2009-03-17  Simon Josefsson  <simon@josefsson.org>
66699         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
66700         failure on missing include files.
66702 2009-03-17  Eric Blake  <ebb9@byu.net>
66704         doc: mention more functions added in cygwin 1.7.0
66705         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
66706         addition.
66707         * doc/posix-functions/fwscanf.texi: Likewise.
66708         * doc/posix-functions/swprintf.texi: Likewise.
66709         * doc/posix-functions/swscanf.texi: Likewise.
66710         * doc/posix-functions/vfwprintf.texi: Likewise.
66711         * doc/posix-functions/vfwscanf.texi: Likewise.
66712         * doc/posix-functions/vswprintf.texi: Likewise.
66713         * doc/posix-functions/vswscanf.texi: Likewise.
66714         * doc/posix-functions/vwprintf.texi: Likewise.
66715         * doc/posix-functions/vwscanf.texi: Likewise.
66716         * doc/posix-functions/wcscasecmp.texi: Likewise.
66717         * doc/posix-functions/wcsdup.texi: Likewise.
66718         * doc/posix-functions/wcsftime.texi: Likewise.
66719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66720         * doc/posix-functions/wprintf.texi: Likewise.
66721         * doc/posix-functions/wscanf.texi: Likewise.
66722         * doc/glibc-functions/gethostbyname2.texi: Likewise.
66724 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66726         maint.mk: really add $(AM_MAKEFLAGS)
66727         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
66728         was inadvertently omitted in the last commit.
66729         Spotted by Bruno Haible.
66731         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
66732         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
66733         $(AM_MAKEFLAGS)' rather than plain `make'.
66735         gnulib-tool: execute $MAKE not make
66736         * gnulib-tool: Default $MAKE to 'make'.
66737         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
66738         than make.  Initialize $MAKE in the do-autobuild script.
66740         gnulib-tool: use $MAKE not make in generated files
66741         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
66742         make, in generated files.  Initialize $MAKE in the do-autobuild
66743         script.
66745         * top/GNUmakefile (_have-git-version-gen): Fix typo.
66747         GNUmakefile: disable parallelism only for multiple, recursive targets
66748         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
66749         additions in the Makefile.
66750         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
66751         by Automake.
66752         (.NOTPARALLEL): Only disable parallel builds if multiple targets
66753         are listed on the command line and at least one of them is
66754         listed in $(ALL_RECURSIVE_TARGETS).
66756 2009-03-14  Bruno Haible  <bruno@clisp.org>
66758         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
66759         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
66760         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
66761         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
66762         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
66763         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
66764         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
66765         unistr/u8-uctomb.
66766         * modules/unistr/u8-strchr (Depends-on): Likewise.
66767         * modules/unistr/u8-strrchr (Depends-on): Likewise.
66768         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
66769         unistr/u16-uctomb.
66770         * modules/unistr/u16-strchr (Depends-on): Likewise.
66771         * modules/unistr/u16-strrchr (Depends-on): Likewise.
66773 2009-03-12  Bruno Haible  <bruno@clisp.org>
66775         Work around select() bug on Interix 3.5.
66776         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
66777         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
66778         * m4/select.m4: New file.
66779         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
66780         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
66781         * modules/select (Files): Add m4/select.m4.
66782         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
66783         * modules/nanosleep (Depends-on): Add select.
66784         * modules/poll (Depends-on): Likewise.
66785         * doc/posix-functions/select.texi: Mention the Interix bug.
66786         Reported by Markus Duft <mduft@gentoo.org>.
66788         * lib/select.c: Renamed from lib/winsock-select.c.
66789         * modules/select (Files): Add lib/select.c, remove
66790         lib/winsock-select.c.
66791         (configure.ac): Update.
66793 2009-03-12  Jim Meyering  <meyering@redhat.com>
66795         avoid gcc warnings about unused macro definitions
66796         * lib/readtokens.c (STREQ): Remove unused definition.
66797         * lib/xmalloc.c (SIZE_MAX): Likewise.
66798         * lib/openat-die.c (N_): Likewise.
66799         * lib/mountlist.c (SIZE_MAX): Remove definition.
66800         Instead, include <stdint.h>.
66801         * lib/readutmp.c: Likewise.
66802         * modules/readutmp (Depends-on): Add stdint.
66803         * modules/mountlist (Depends-on): Add stdint.
66804         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
66806 2009-03-10  Bruno Haible  <bruno@clisp.org>
66808         Tests for module 'mbmemcasecoll'.
66809         * modules/mbmemcasecoll-tests: New file.
66810         * tests/test-mbmemcasecoll1.sh: New file.
66811         * tests/test-mbmemcasecoll2.sh: New file.
66812         * tests/test-mbmemcasecoll3.sh: New file.
66813         * tests/test-mbmemcasecoll.c: New file.
66815         New module 'mbmemcasecoll'.
66816         * lib/mbmemcasecoll.h: New file.
66817         * lib/mbmemcasecoll.c: New file.
66818         * modules/mbmemcasecoll: New file.
66820         * tests/test-mbmemcasecmp.h: New file, extracted from
66821         tests/test-mbmemcasecmp.c.
66822         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
66823         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
66824         (main): Update.
66825         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
66827 2009-03-09  Bruno Haible  <bruno@clisp.org>
66829         Tests for module 'mbmemcasecmp'.
66830         * modules/mbmemcasecmp-tests: New file.
66831         * tests/test-mbmemcasecmp1.sh: New file.
66832         * tests/test-mbmemcasecmp2.sh: New file.
66833         * tests/test-mbmemcasecmp3.sh: New file.
66834         * tests/test-mbmemcasecmp.c: New file.
66836         New module 'mbmemcasecmp'.
66837         * lib/mbmemcasecmp.h: New file.
66838         * lib/mbmemcasecmp.c: New file.
66839         * modules/mbmemcasecmp: New file.
66841 2009-03-09  Bruno Haible  <bruno@clisp.org>
66843         Tests for module 'unicase/ulc-casecoll'.
66844         * modules/unicase/ulc-casecoll-tests: New file.
66845         * tests/unicase/test-ulc-casecoll1.sh: New file.
66846         * tests/unicase/test-ulc-casecoll2.sh: New file.
66847         * tests/unicase/test-ulc-casecoll.c: New file.
66849         New module 'unicase/ulc-casecoll'.
66850         * lib/unicase.h (ulc_casecoll): New declaration.
66851         * lib/unicase/ulc-casecoll.c: New file.
66852         * modules/unicase/ulc-casecoll: New file.
66854         New module 'unicase/ulc-casexfrm'.
66855         * lib/unicase.h (ulc_casexfrm): New declaration.
66856         * lib/unicase/ulc-casexfrm.c: New file.
66857         * modules/unicase/ulc-casexfrm: New file.
66859 2009-03-09  Bruno Haible  <bruno@clisp.org>
66861         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66862         invocations.
66864         * m4/mbscasecmp.m4: Remove file.
66865         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66866         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66868         * m4/mbscasestr.m4: Remove file.
66869         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66870         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66872         * m4/mbschr.m4: Remove file.
66873         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66874         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66876         * m4/mbscspn.m4: Remove file.
66877         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66878         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66880         * m4/mbslen.m4: Remove file.
66881         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66882         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66884         * m4/mbsncasecmp.m4: Remove file.
66885         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66886         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66888         * m4/mbsnlen.m4: Remove file.
66889         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66890         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66892         * m4/mbspbrk.m4: Remove file.
66893         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66894         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66896         * m4/mbspcasecmp.m4: Remove file.
66897         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66898         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66900         * m4/mbsrchr.m4: Remove file.
66901         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66902         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66904         * m4/mbssep.m4: Remove file.
66905         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66906         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66908         * m4/mbsspn.m4: Remove file.
66909         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66910         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66912         * m4/mbsstr.m4: Remove file.
66913         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66914         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66916         * m4/mbstok_r.m4: Remove file.
66917         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66918         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66920         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66922         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66923         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66925         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66927 2009-03-08  Bruno Haible  <bruno@clisp.org>
66929         Tests for module 'unicase/ulc-casecmp'.
66930         * modules/unicase/ulc-casecmp-tests: New file.
66931         * tests/unicase/test-ulc-casecmp1.sh: New file.
66932         * tests/unicase/test-ulc-casecmp2.sh: New file.
66933         * tests/unicase/test-ulc-casecmp.c: New file.
66935         New module 'unicase/ulc-casecmp'.
66936         * lib/unicase.h (ulc_casecmp): New declaration.
66937         * lib/unicase/ulc-casecmp.c: New file.
66938         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66939         'const SRC_UNIT *'.
66940         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66941         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66942         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66943         * modules/unicase/ulc-casecmp: New file.
66945         Tests for module 'unicase/u32-is-cased'.
66946         * modules/unicase/u32-is-cased-tests: New file.
66947         * tests/unicase/test-u32-is-cased.c: New file.
66949         Tests for module 'unicase/u16-is-cased'.
66950         * modules/unicase/u16-is-cased-tests: New file.
66951         * tests/unicase/test-u16-is-cased.c: New file.
66953         Tests for module 'unicase/u8-is-cased'.
66954         * modules/unicase/u8-is-cased-tests: New file.
66955         * tests/unicase/test-u8-is-cased.c: New file.
66956         * tests/unicase/test-is-cased.h: New file.
66958         New module 'unicase/u32-is-cased'.
66959         * lib/unicase/u32-is-cased.c: New file.
66960         * modules/unicase/u32-is-cased: New file.
66962         New module 'unicase/u16-is-cased'.
66963         * lib/unicase/u16-is-cased.c: New file.
66964         * modules/unicase/u16-is-cased: New file.
66966         New module 'unicase/u8-is-cased'.
66967         * lib/unicase/u8-is-cased.c: New file.
66968         * lib/unicase/u-is-cased.h: New file.
66969         * modules/unicase/u8-is-cased: New file.
66971         Tests for module 'unicase/u32-is-casefolded'.
66972         * modules/unicase/u32-is-casefolded-tests: New file.
66973         * tests/unicase/test-u32-is-casefolded.c: New file.
66975         Tests for module 'unicase/u16-is-casefolded'.
66976         * modules/unicase/u16-is-casefolded-tests: New file.
66977         * tests/unicase/test-u16-is-casefolded.c: New file.
66979         Tests for module 'unicase/u8-is-casefolded'.
66980         * modules/unicase/u8-is-casefolded-tests: New file.
66981         * tests/unicase/test-u8-is-casefolded.c: New file.
66982         * tests/unicase/test-is-casefolded.h: New file.
66984         New module 'unicase/u32-is-casefolded'.
66985         * lib/unicase/u32-is-casefolded.c: New file.
66986         * modules/unicase/u32-is-casefolded: New file.
66988         New module 'unicase/u16-is-casefolded'.
66989         * lib/unicase/u16-is-casefolded.c: New file.
66990         * modules/unicase/u16-is-casefolded: New file.
66992         New module 'unicase/u8-is-casefolded'.
66993         * lib/unicase/u8-is-casefolded.c: New file.
66994         * modules/unicase/u8-is-casefolded: New file.
66996         Tests for module 'unicase/u32-is-titlecase'.
66997         * modules/unicase/u32-is-titlecase-tests: New file.
66998         * tests/unicase/test-u32-is-titlecase.c: New file.
67000         Tests for module 'unicase/u16-is-titlecase'.
67001         * modules/unicase/u16-is-titlecase-tests: New file.
67002         * tests/unicase/test-u16-is-titlecase.c: New file.
67004         Tests for module 'unicase/u8-is-titlecase'.
67005         * modules/unicase/u8-is-titlecase-tests: New file.
67006         * tests/unicase/test-u8-is-titlecase.c: New file.
67007         * tests/unicase/test-is-titlecase.h: New file.
67009         New module 'unicase/u32-is-titlecase'.
67010         * lib/unicase/u32-is-titlecase.c: New file.
67011         * modules/unicase/u32-is-titlecase: New file.
67013         New module 'unicase/u16-is-titlecase'.
67014         * lib/unicase/u16-is-titlecase.c: New file.
67015         * modules/unicase/u16-is-titlecase: New file.
67017         New module 'unicase/u8-is-titlecase'.
67018         * lib/unicase/u8-is-titlecase.c: New file.
67019         * modules/unicase/u8-is-titlecase: New file.
67021         Tests for module 'unicase/u32-is-lowercase'.
67022         * modules/unicase/u32-is-lowercase-tests: New file.
67023         * tests/unicase/test-u32-is-lowercase.c: New file.
67025         Tests for module 'unicase/u16-is-lowercase'.
67026         * modules/unicase/u16-is-lowercase-tests: New file.
67027         * tests/unicase/test-u16-is-lowercase.c: New file.
67029         Tests for module 'unicase/u8-is-lowercase'.
67030         * modules/unicase/u8-is-lowercase-tests: New file.
67031         * tests/unicase/test-u8-is-lowercase.c: New file.
67032         * tests/unicase/test-is-lowercase.h: New file.
67034         New module 'unicase/u32-is-lowercase'.
67035         * lib/unicase/u32-is-lowercase.c: New file.
67036         * modules/unicase/u32-is-lowercase: New file.
67038         New module 'unicase/u16-is-lowercase'.
67039         * lib/unicase/u16-is-lowercase.c: New file.
67040         * modules/unicase/u16-is-lowercase: New file.
67042         New module 'unicase/u8-is-lowercase'.
67043         * lib/unicase/u8-is-lowercase.c: New file.
67044         * modules/unicase/u8-is-lowercase: New file.
67046         Tests for module 'unicase/u32-is-uppercase'.
67047         * modules/unicase/u32-is-uppercase-tests: New file.
67048         * tests/unicase/test-u32-is-uppercase.c: New file.
67050         Tests for module 'unicase/u16-is-uppercase'.
67051         * modules/unicase/u16-is-uppercase-tests: New file.
67052         * tests/unicase/test-u16-is-uppercase.c: New file.
67054         Tests for module 'unicase/u8-is-uppercase'.
67055         * modules/unicase/u8-is-uppercase-tests: New file.
67056         * tests/unicase/test-u8-is-uppercase.c: New file.
67057         * tests/unicase/test-is-uppercase.h: New file.
67059         New module 'unicase/u32-is-uppercase'.
67060         * lib/unicase/u32-is-uppercase.c: New file.
67061         * modules/unicase/u32-is-uppercase: New file.
67063         New module 'unicase/u16-is-uppercase'.
67064         * lib/unicase/u16-is-uppercase.c: New file.
67065         * modules/unicase/u16-is-uppercase: New file.
67067         New module 'unicase/u8-is-uppercase'.
67068         * lib/unicase/u8-is-uppercase.c: New file.
67069         * modules/unicase/u8-is-uppercase: New file.
67071         New module 'unicase/u32-is-invariant'.
67072         * lib/unicase/u32-is-invariant.c: New file.
67073         * modules/unicase/u32-is-invariant: New file.
67075         New module 'unicase/u16-is-invariant'.
67076         * lib/unicase/u16-is-invariant.c: New file.
67077         * modules/unicase/u16-is-invariant: New file.
67079         New module 'unicase/u8-is-invariant'.
67080         * lib/unicase/u8-is-invariant.c: New file.
67081         * lib/unicase/invariant.h: New file.
67082         * lib/unicase/u-is-invariant.h: New file.
67083         * modules/unicase/u8-is-invariant: New file.
67085         Tests for module 'unicase/u32-casecoll'.
67086         * modules/unicase/u32-casecoll-tests: New file.
67087         * tests/unicase/test-u32-casecoll.c: New file.
67089         Tests for module 'unicase/u16-casecoll'.
67090         * modules/unicase/u16-casecoll-tests: New file.
67091         * tests/unicase/test-u16-casecoll.c: New file.
67093         Tests for module 'unicase/u8-casecoll'.
67094         * modules/unicase/u8-casecoll-tests: New file.
67095         * tests/unicase/test-u8-casecoll.c: New file.
67097         New module 'unicase/u32-casecoll'.
67098         * lib/unicase/u32-casecoll.c: New file.
67099         * modules/unicase/u32-casecoll: New file.
67101         New module 'unicase/u16-casecoll'.
67102         * lib/unicase/u16-casecoll.c: New file.
67103         * modules/unicase/u16-casecoll: New file.
67105         New module 'unicase/u8-casecoll'.
67106         * lib/unicase/u8-casecoll.c: New file.
67107         * lib/unicase/u-casecoll.h: New file.
67108         * modules/unicase/u8-casecoll: New file.
67110         New module 'unicase/u32-casexfrm'.
67111         * lib/unicase/u32-casexfrm.c: New file.
67112         * modules/unicase/u32-casexfrm: New file.
67114         New module 'unicase/u16-casexfrm'.
67115         * lib/unicase/u16-casexfrm.c: New file.
67116         * modules/unicase/u16-casexfrm: New file.
67118         New module 'unicase/u8-casexfrm'.
67119         * lib/unicase/u8-casexfrm.c: New file.
67120         * lib/unicase/u-casexfrm.h: New file.
67121         * modules/unicase/u8-casexfrm: New file.
67123         Tests for module 'unicase/u32-casecmp'.
67124         * modules/unicase/u32-casecmp-tests: New file.
67125         * tests/unicase/test-u32-casecmp.c: New file.
67127         Tests for module 'unicase/u16-casecmp'.
67128         * modules/unicase/u16-casecmp-tests: New file.
67129         * tests/unicase/test-u16-casecmp.c: New file.
67131         Tests for module 'unicase/u8-casecmp'.
67132         * modules/unicase/u8-casecmp-tests: New file.
67133         * tests/unicase/test-u8-casecmp.c: New file.
67134         * tests/unicase/test-casecmp.h: New file.
67136         New module 'unicase/u32-casecmp'.
67137         * lib/unicase/u32-casecmp.c: New file.
67138         * modules/unicase/u32-casecmp: New file.
67140         New module 'unicase/u16-casecmp'.
67141         * lib/unicase/u16-casecmp.c: New file.
67142         * modules/unicase/u16-casecmp: New file.
67144         New module 'unicase/u8-casecmp'.
67145         * lib/unicase/u8-casecmp.c: New file.
67146         * lib/unicase/u-casecmp.h: New file.
67147         * modules/unicase/u8-casecmp: New file.
67149         Tests for module 'unicase/u32-casefold'.
67150         * modules/unicase/u32-casefold-tests: New file.
67151         * tests/unicase/test-u32-casefold.c: New file.
67153         Tests for module 'unicase/u16-casefold'.
67154         * modules/unicase/u16-casefold-tests: New file.
67155         * tests/unicase/test-u16-casefold.c: New file.
67157         Tests for module 'unicase/u8-casefold'.
67158         * modules/unicase/u8-casefold-tests: New file.
67159         * tests/unicase/test-u8-casefold.c: New file.
67161         New module 'unicase/u32-casefold'.
67162         * lib/unicase/u32-casefold.c: New file.
67163         * modules/unicase/u32-casefold: New file.
67165         New module 'unicase/u16-casefold'.
67166         * lib/unicase/u16-casefold.c: New file.
67167         * modules/unicase/u16-casefold: New file.
67169         New module 'unicase/u8-casefold'.
67170         * lib/unicase/u8-casefold.c: New file.
67171         * lib/unicase/u-casefold.h: New file.
67172         * modules/unicase/u8-casefold: New file.
67174         New module 'unicase/tocasefold'.
67175         * lib/unicase/casefold.h: New file.
67176         * lib/unicase/tocasefold.c: New file.
67177         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
67178         * modules/unicase/tocasefold: New file.
67180         Tests for module 'unicase/u32-totitle'.
67181         * modules/unicase/u32-totitle-tests: New file.
67182         * tests/unicase/test-u32-totitle.c: New file.
67184         Tests for module 'unicase/u16-totitle'.
67185         * modules/unicase/u16-totitle-tests: New file.
67186         * tests/unicase/test-u16-totitle.c: New file.
67188         Tests for module 'unicase/u8-totitle'.
67189         * modules/unicase/u8-totitle-tests: New file.
67190         * tests/unicase/test-u8-totitle.c: New file.
67192         New module 'unicase/u32-totitle'.
67193         * lib/unicase/u32-totitle.c: New file.
67194         * modules/unicase/u32-totitle: New file.
67196         New module 'unicase/u16-totitle'.
67197         * lib/unicase/u16-totitle.c: New file.
67198         * modules/unicase/u16-totitle: New file.
67200         New module 'unicase/u8-totitle'.
67201         * lib/unicase/u8-totitle.c: New file.
67202         * lib/unicase/u-totitle.h: New file.
67203         * modules/unicase/u8-totitle: New file.
67205         Tests for module 'unicase/u32-tolower'.
67206         * modules/unicase/u32-tolower-tests: New file.
67207         * tests/unicase/test-u32-tolower.c: New file.
67209         Tests for module 'unicase/u16-tolower'.
67210         * modules/unicase/u16-tolower-tests: New file.
67211         * tests/unicase/test-u16-tolower.c: New file.
67213         Tests for module 'unicase/u8-tolower'.
67214         * modules/unicase/u8-tolower-tests: New file.
67215         * tests/unicase/test-u8-tolower.c: New file.
67217         New module 'unicase/u32-tolower'.
67218         * lib/unicase/u32-tolower.c: New file.
67219         * modules/unicase/u32-tolower: New file.
67221         New module 'unicase/u16-tolower'.
67222         * lib/unicase/u16-tolower.c: New file.
67223         * modules/unicase/u16-tolower: New file.
67225         New module 'unicase/u8-tolower'.
67226         * lib/unicase/u8-tolower.c: New file.
67227         * modules/unicase/u8-tolower: New file.
67229         Tests for module 'unicase/u32-toupper'.
67230         * modules/unicase/u32-toupper-tests: New file.
67231         * tests/unicase/test-u32-toupper.c: New file.
67233         Tests for module 'unicase/u16-toupper'.
67234         * modules/unicase/u16-toupper-tests: New file.
67235         * tests/unicase/test-u16-toupper.c: New file.
67237         Tests for module 'unicase/u8-toupper'.
67238         * modules/unicase/u8-toupper-tests: New file.
67239         * tests/unicase/test-u8-toupper.c: New file.
67241         New module 'unicase/u32-toupper'.
67242         * lib/unicase/u32-toupper.c: New file.
67243         * modules/unicase/u32-toupper: New file.
67245         New module 'unicase/u16-toupper'.
67246         * lib/unicase/u16-toupper.c: New file.
67247         * modules/unicase/u16-toupper: New file.
67249         New module 'unicase/u8-toupper'.
67250         * lib/unicase/u8-toupper.c: New file.
67251         * modules/unicase/u8-toupper: New file.
67253         New module 'unicase/u32-casemap'.
67254         * lib/unicase/u32-casemap.c: New file.
67255         * modules/unicase/u32-casemap: New file.
67257         New module 'unicase/u16-casemap'.
67258         * lib/unicase/u16-casemap.c: New file.
67259         * modules/unicase/u16-casemap: New file.
67261         New module 'unicase/u8-casemap'.
67262         * lib/unicase/unicasemap.h: New file.
67263         * lib/unicase/u8-casemap.c: New file.
67264         * lib/unicase/u-casemap.h: New file.
67265         * modules/unicase/u8-casemap: New file.
67267         New module 'unicase/special-casing'.
67268         * lib/unicase/special-casing.h: New file.
67269         * lib/unicase/special-casing.c: New file.
67270         * lib/unicase/special-casing-table.gperf: New file, generated by
67271         gen-uni-tables.c.
67272         * modules/unicase/special-casing: New file.
67274         Tests for module 'unicase/locale-language'.
67275         * modules/unicase/locale-language-tests: New file.
67276         * tests/unicase/test-locale-language.sh: New file.
67277         * tests/unicase/test-locale-language.c: New file.
67279         New module 'unicase/locale-language'.
67280         * lib/unicase/locale-language.c: New file.
67281         * lib/unicase/locale-languages.gperf: New file.
67282         * modules/unicase/locale-language: New file.
67284         Generate more tables for case conversion and case folding.
67285         * lib/gen-uni-tables.c (SCC_*): New enum items.
67286         (struct special_casing_rule): New type.
67287         (casing_rules, num_casing_rules, allocated_casing_rules): New
67288         variables.
67289         (add_casing_rule, fill_casing_rules): New functions.
67290         (struct casefold_rule): New type.
67291         (casefolding_rules, num_casefolding_rules,
67292         allocated_casefolding_rules): New variables.
67293         (fill_casefolding_rules): New function.
67294         (unicode_casefold): New variable.
67295         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
67296         sort_casing_rules, output_casing_rules): New functions.
67297         (main): Accept to more arguments: SpecialCasing.txt and
67298         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
67299         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
67300         Output mapping for casefolding.
67302         * lib/unicase.h: Include stdbool.h, uninorm.h.
67303         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
67304         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
67305         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
67306         arguments.
67307         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
67308         resultp arguments.
67309         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
67310         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
67311         resultp arguments.
67312         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
67313         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
67314         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
67315         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
67316         declarations.
67317         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
67319 2009-03-08  Bruno Haible  <bruno@clisp.org>
67321         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67322         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
67323         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
67324         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67326 2009-03-07  Bruno Haible  <bruno@clisp.org>
67328         Adjust u*_normcmp, u*_normcoll API.
67329         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67330         u16_normcoll, u32_normcoll): Change failure conventions.
67331         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
67332         errno and return -1.
67333         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67335 2009-03-07  Bruno Haible  <bruno@clisp.org>
67337         Tests for module 'uninorm/u32-normcoll'.
67338         * modules/uninorm/u32-normcoll-tests: New file.
67339         * tests/uninorm/test-u32-normcoll.c: New file.
67341         Tests for module 'uninorm/u16-normcoll'.
67342         * modules/uninorm/u16-normcoll-tests: New file.
67343         * tests/uninorm/test-u16-normcoll.c: New file.
67345         Tests for module 'uninorm/u8-normcoll'.
67346         * modules/uninorm/u8-normcoll-tests: New file.
67347         * tests/uninorm/test-u8-normcoll.c: New file.
67349 2009-03-07  Bruno Haible  <bruno@clisp.org>
67351         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
67352         tests/uninorm/test-u32-normcmp.c.
67353         * tests/uninorm/test-u32-normcmp.c: Include it.
67354         (test_nonascii): New function, extracted from main. Add some more
67355         tests.
67356         (main): Invoke test_ascii and test_nonascii.
67357         * modules/uninorm/u32-normcmp-tests (Files): Add
67358         tests/uninorm/test-u32-normcmp.h.
67359         (Depends-on): Remove uninorm/u32-normcmp.
67361         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
67362         tests/uninorm/test-u16-normcmp.c.
67363         * tests/uninorm/test-u16-normcmp.c: Include it.
67364         (test_nonascii): New function, extracted from main. Add some more
67365         tests.
67366         (main): Invoke test_ascii and test_nonascii.
67367         * modules/uninorm/u16-normcmp-tests (Files): Add
67368         tests/uninorm/test-u16-normcmp.h.
67369         (Depends-on): Remove uninorm/u16-normcmp.
67371         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
67372         tests/uninorm/test-u8-normcmp.c.
67373         * tests/uninorm/test-u8-normcmp.c: Include it.
67374         (test_nonascii): New function, extracted from main. Add some more
67375         tests.
67376         (main): Invoke test_ascii and test_nonascii.
67377         * modules/uninorm/u8-normcmp-tests (Files): Add
67378         tests/uninorm/test-u8-normcmp.h.
67379         (Depends-on): Remove uninorm/u8-normcmp.
67381 2009-03-07  Bruno Haible  <bruno@clisp.org>
67383         New module 'uninorm/u32-normcoll'.
67384         * lib/uninorm/u32-normcoll.c: New file.
67385         * modules/uninorm/u32-normcoll: New file.
67387         New module 'uninorm/u16-normcoll'.
67388         * lib/uninorm/u16-normcoll.c: New file.
67389         * modules/uninorm/u16-normcoll: New file.
67391         New module 'uninorm/u8-normcoll'.
67392         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
67393         declarations.
67394         * lib/uninorm/u8-normcoll.c: New file.
67395         * lib/uninorm/u-normcoll.h: New file.
67396         * modules/uninorm/u8-normcoll: New file.
67398         New module 'uninorm/u32-normxfrm'.
67399         * lib/uninorm/u32-normxfrm.c: New file.
67400         * modules/uninorm/u32-normxfrm: New file.
67402         New module 'uninorm/u16-normxfrm'.
67403         * lib/uninorm/u16-normxfrm.c: New file.
67404         * modules/uninorm/u16-normxfrm: New file.
67406         New module 'uninorm/u8-normxfrm'.
67407         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
67408         declarations.
67409         * lib/uninorm/u8-normxfrm.c: New file.
67410         * lib/uninorm/u-normxfrm.h: New file.
67411         * modules/uninorm/u8-normxfrm: New file.
67413 2009-03-07  Bruno Haible  <bruno@clisp.org>
67415         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
67416         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
67417         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
67419 2009-03-07  Bruno Haible  <bruno@clisp.org>
67421         New module 'memxfrm'.
67422         * lib/memxfrm.h: New file.
67423         * lib/memxfrm.c: New file.
67424         * modules/memxfrm: New file.
67426 2009-03-07  Bruno Haible  <bruno@clisp.org>
67428         New module 'memcmp2'.
67429         * lib/memcmp2.h: New file.
67430         * lib/memcmp2.c: New file.
67431         * modules/memcmp2: New file.
67433 2009-03-07  Bruno Haible  <bruno@clisp.org>
67435         Tests for module 'uninorm/decomposing-form'.
67436         * modules/uninorm/decomposing-form-tests: New file.
67437         * tests/uninorm/test-decomposing-form.c: New file.
67439         New module 'uninorm/decomposing-form'.
67440         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
67441         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
67442         Add 'decomposing_variant' field.
67443         * lib/uninorm/decomposing-form.c: New file.
67444         * lib/uninorm/nfc.c (uninorm_nfc): Update.
67445         * lib/uninorm/nfd.c (uninorm_nfd): Update.
67446         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
67447         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
67448         * modules/uninorm/decomposing-form: New file.
67449         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
67450         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
67452 2009-03-07  Bruno Haible  <bruno@clisp.org>
67454         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
67455         strings.
67457 2009-03-06  Bruno Haible  <bruno@clisp.org>
67459         Tests for module 'uninorm/u32-normcmp'.
67460         * tests/uninorm/test-u32-normcmp.c: New file.
67461         * modules/uninorm/u32-normcmp-tests: New file.
67463         Tests for module 'uninorm/u16-normcmp'.
67464         * tests/uninorm/test-u16-normcmp.c: New file.
67465         * modules/uninorm/u16-normcmp-tests: New file.
67467         Tests for module 'uninorm/u8-normcmp'.
67468         * tests/uninorm/test-u8-normcmp.c: New file.
67469         * modules/uninorm/u8-normcmp-tests: New file.
67471         New module 'uninorm/u32-normcmp'.
67472         * lib/uninorm/u32-normcmp.c: New file.
67473         * modules/uninorm/u32-normcmp: New file.
67475         New module 'uninorm/u16-normcmp'.
67476         * lib/uninorm/u16-normcmp.c: New file.
67477         * modules/uninorm/u16-normcmp: New file.
67479         New module 'uninorm/u8-normcmp'.
67480         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
67481         declarations.
67482         * lib/uninorm/u8-normcmp.c: New file.
67483         * lib/uninorm/u-normcmp.h: New file.
67484         * modules/uninorm/u8-normcmp: New file.
67486 2009-03-06  Bruno Haible  <bruno@clisp.org>
67488         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
67489         Reported by Eric Blake.
67491 2009-03-06  Eric Blake  <ebb9@byu.net>
67492             Bruno Haible  <bruno@clisp.org>
67494         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
67495         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
67496         condition.
67497         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67498         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
67499         condition.
67500         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67502 2009-03-06  Eric Blake  <ebb9@byu.net>
67504         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
67505         to avoid compiler warnings.
67506         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
67508 2009-03-05  Bruno Haible  <bruno@clisp.org>
67510         * tests/test-ftell.c (main): Disable test beyond end of file on
67511         FreeMiNT.
67512         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67514 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
67516         * lib/filevercmp.c: Move hidden files up in ordering.
67517         * tests/test-filevercmp.c: Add tests for hidden files.
67519 2009-03-04  Bruno Haible  <bruno@clisp.org>
67521         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
67522         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
67523         AM_CFLAGS.
67524         Reported by Simon Josefsson.
67526 2009-03-03  Bruno Haible  <bruno@clisp.org>
67528         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
67529         Reported by Simon Josefsson.
67531         * doc/ld-version-script.texi: Update node reference.
67533 2009-03-03  Bruno Haible  <bruno@clisp.org>
67535         * modules/visibility (License): Change to 'unlimited'.
67536         Suggested by Simon Josefsson.
67538 2009-03-03  Jim Meyering  <meyering@redhat.com>
67540         unlinkdir: cannot_unlink_dir may modify process state
67541         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
67542         it's neither thread-safe nor appropriate for use in a library.
67544 2009-03-03  Eric Blake  <ebb9@byu.net>
67546         test-closein: silence test under Darwin
67547         * tests/test-closein.sh: Ignore stderr from cat, since we don't
67548         care if it dies from EPIPE or EBADF.
67550 2009-03-03  Bruno Haible  <bruno@clisp.org>
67552         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
67553         earlier.
67554         * doc/visibility.texi: Fix @node and @section.
67556 2009-03-03  Simon Josefsson  <simon@josefsson.org>
67558         * doc/gnulib.texi: Link to sections for ld version script and
67559         visibility.
67560         * doc/visibility.texi: Add @node and @section.
67561         * modules/ld-version-script: New module.
67562         * m4/ld-version-script.m4: New file.
67563         * doc/ld-version-script.texi: New file.
67565 2009-03-02  David Lutterkort  <lutter@redhat.com>
67567         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
67568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67570 2009-03-02  Bruno Haible  <bruno@clisp.org>
67572         * doc/visibility.texi: Mention libtool's -export-symbols option.
67574 2009-03-02  Jim Meyering  <meyering@redhat.com>
67576         announce-gen: new option: --no-print-checksums
67577         * build-aux/announce-gen (usage): Describe it.
67578         (print_checksums): Print a newline here, not in the [*] footnote.
67579         (main): Honor it.
67581 2009-03-01  Bruno Haible  <bruno@clisp.org>
67583         Use socklen_t in the native Windows replacements prototypes.
67584         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
67585         instead of 'int'.
67586         * lib/getsockopt.c (rpl_getsockopt): Likewise.
67587         * lib/setsockopt.c (rpl_setsockopt): Likewise.
67588         * modules/getsockopt (Depends-on): Add socklen.
67589         * modules/setsockopt (Depends-on): Add socklen.
67591 2009-03-01  Bruno Haible  <bruno@clisp.org>
67593         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
67594         least 4.2.
67596 2009-03-01  Eric Blake  <ebb9@byu.net>
67597             Bruno Haible  <bruno@clisp.org>
67599         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
67600         error messages.
67601         * lib/wait-process.c (wait_subprocess): Omit error message about
67602         deadly signal sent to the child of termsigp != NULL.
67604 2009-03-01  Eric Blake  <ebb9@byu.net>
67606         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
67608 2009-03-01  Bruno Haible  <bruno@clisp.org>
67610         Avoid a gcc warning.
67611         * tests/test-sched.c (b): Make global.
67612         Reported by Eric Blake.
67614 2009-01-19  Martin Lambers  <marlam@marlam.de>
67616         Provide POSIX semantics for socket timeout options on W32.
67617         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
67618         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
67619         * modules/setsockopt: Depend on sys_time module for struct timeval.
67620         * modules/getsockopt: Depend on sys_time module for struct timeval.
67622 2009-03-01  Simon Josefsson  <simon@josefsson.org>
67624         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
67625         __USE_GNU, for consistency with netdb.in.h.
67626         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67628 2009-03-01  Bruno Haible  <bruno@clisp.org>
67630         More support for FreeMiNT.
67631         * lib/fseeko.c (rpl_fseeko): Complete last commit.
67632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67634 2009-03-01  Bruno Haible  <bruno@clisp.org>
67636         More support for FreeMiNT.
67637         * lib/fpurge.c (fpurge): Correct last commit.
67638         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67640 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67642         Fix unportable awk script in vc-list-files.
67643         * build-aux/vc-list-files: In the replacement awk script, use
67644         substr with a second argument of 1, not zero.
67645         Report by Simon Josefsson.
67647 2009-02-28  Bruno Haible  <bruno@clisp.org>
67649         More support for FreeMiNT.
67650         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
67651         to FreeMiNT today.
67652         * lib/fwriting.c (fwriting): Likewise.
67653         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
67655 2009-02-28  Bruno Haible  <bruno@clisp.org>
67657         * tests/test-freadseek.c (main): Disable test beyond end of file on
67658         FreeMiNT.
67659         * tests/test-ftello.c (main): Likewise.
67660         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67662 2009-02-28  Bruno Haible  <bruno@clisp.org>
67664         Add tentative support for FreeMiNT.
67665         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
67666         * lib/fpurge.c (fpurge): Likewise.
67667         * lib/freadable.c (freadable): Likewise.
67668         * lib/freading.c (freading): Likewise.
67669         * lib/freadptr.c (freadptr): Likewise.
67670         * lib/freadseek.c (freadptrinc): Likewise.
67671         * lib/fseeko.c (rpl_fseeko): Likewise.
67672         * lib/fseterr.c (fseterr): Likewise.
67673         * lib/fwritable.c (fwritable): Likewise.
67674         * lib/fwriting.c (fwriting): Likewise.
67675         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
67676         Hourihane.
67677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67679 2009-02-28  Bruno Haible  <bruno@clisp.org>
67681         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
67682         SIGCHLD.
67683         Reported by Jim Meyering.
67685 2009-02-28  Bruno Haible  <bruno@clisp.org>
67687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
67688         Mention the results of these tests on various platforms.
67689         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
67690         order.
67691         * doc/posix-functions/printf.texi: Likewise.
67692         * doc/posix-functions/snprintf.texi: Likewise.
67693         * doc/posix-functions/sprintf.texi: Likewise.
67694         * doc/posix-functions/vfprintf.texi: Likewise.
67695         * doc/posix-functions/vprintf.texi: Likewise.
67696         * doc/posix-functions/vsnprintf.texi: Likewise.
67697         * doc/posix-functions/vsprintf.texi: Likewise.
67698         * doc/glibc-functions/obstack_printf.texi: Likewise.
67699         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
67701 2009-02-28  Bruno Haible  <bruno@clisp.org>
67703         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
67704         Reported by Loïc Minier <lool@dooz.org>.
67706 2009-02-27  Bruno Haible  <bruno@clisp.org>
67708         * gnulib-tool (func_import): Make the sed expression used to create the
67709         sed script for updating the .gitignore file POSIX compliant.
67710         Reported by Eric Blake.
67712 2009-02-27  Bruno Haible  <bruno@clisp.org>
67714         * gnulib-tool (sed): Don't alias as "sed --posix".
67715         Reported by Eric Blake.
67717 2009-02-27  Bruno Haible  <bruno@clisp.org>
67719         Avoid test link errors.
67720         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
67721         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
67722         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
67723         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
67724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67726 2009-02-27  Bruno Haible  <bruno@clisp.org>
67728         Avoid spurious "(cached)" in configure output.
67729         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
67730         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
67731         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
67732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
67733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
67734         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
67735         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
67736         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
67737         Reported by Eric Blake.
67739 2009-02-27  Eric Blake  <ebb9@byu.net>
67741         printf: fix regression in previous patch
67742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
67744 2009-02-27  Bruno Haible  <bruno@clisp.org>
67746         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
67747         value.
67748         * lib/stdint.in.h: Likewise.
67749         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
67751 2009-02-27  Eric Blake  <ebb9@byu.net>
67753         doc: mention more functions added in cygwin 1.7.0
67754         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
67755         addition.
67756         * doc/posix-functions/open_wmemstream.texi: Likewise.
67757         * doc/posix-functions/wcsnlen.texi: Likewise.
67758         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67759         * doc/posix-functions/wcstod.texi: Likewise.
67760         * doc/posix-functions/wcstof.texi: Likewise.
67761         * doc/posix-functions/wcstoimax.texi: Likewise.
67762         * doc/posix-functions/wcstok.texi: Likewise.
67763         * doc/posix-functions/wcstoumax.texi: Likewise.
67765         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
67766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
67767         * doc/posix-functions/fprintf.texi: Update.
67768         * doc/posix-functions/printf.texi: Update.
67769         * doc/posix-functions/snprintf.texi: Update.
67770         * doc/posix-functions/sprintf.texi: Update.
67771         * doc/posix-functions/vfprintf.texi: Update.
67772         * doc/posix-functions/vprintf.texi: Update.
67773         * doc/posix-functions/vsnprintf.texi: Update.
67774         * doc/posix-functions/vsprintf.texi: Update.
67775         * doc/glibc-functions/obstack_printf.texi: Update.
67776         * doc/glibc-functions/obstack_vprintf.texi: Update.
67778 2009-02-26  Eric Blake  <ebb9@byu.net>
67780         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
67781         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
67782         compilation bug by using runtime conversion.
67783         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
67785         * modules/ceill-tests (Files): Use nan.h.
67786         * modules/floorl-tests (Files): Likewise.
67787         * modules/frexpl-tests (Files): Likewise.
67788         * modules/isnanl-tests (Files): Likewise.
67789         * modules/ldexpl-tests (Files): Likewise.
67790         * modules/roundl-tests (Files): Likewise.
67791         * modules/truncl-tests (Files): Likewise.
67792         * tests/test-ceill.c (main): Use a working NaN.
67793         * tests/test-floorl.c (main): Likewise.
67794         * tests/test-frexpl.c (main): Likewise.
67795         * tests/test-isnan.c (test_long_double): Likewise.
67796         * tests/test-isnanl.h (main): Likewise.
67797         * tests/test-ldexpl.h (main): Likewise.
67798         * tests/test-roundl.h (main): Likewise.
67799         * tests/test-truncl.h (main): Likewise.
67800         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
67802 2009-02-26  Eric Blake  <ebb9@byu.net>
67803             Bruno Haible  <bruno@clisp.org>
67805         Work around a *printf bug with %ls on Solaris.
67806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
67807         precision is specified, sprintf stops converting the wide string
67808         argument when the number of bytes that have been produced by this
67809         conversion equals or exceeds the precision.
67810         * doc/posix-functions/fprintf.texi: Update.
67811         * doc/posix-functions/printf.texi: Update.
67812         * doc/posix-functions/snprintf.texi: Update.
67813         * doc/posix-functions/sprintf.texi: Update.
67814         * doc/posix-functions/vfprintf.texi: Update.
67815         * doc/posix-functions/vprintf.texi: Update.
67816         * doc/posix-functions/vsnprintf.texi: Update.
67817         * doc/posix-functions/vsprintf.texi: Update.
67818         * doc/glibc-functions/obstack_printf.texi: Update.
67819         * doc/glibc-functions/obstack_vprintf.texi: Update.
67821 2009-02-26  Eric Blake  <ebb9@byu.net>
67823         stdlib: favor compiler check of random.h
67824         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
67825         to avoid an ObjC random.h installed by Swarm.
67827 2009-02-26  Bruno Haible  <bruno@clisp.org>
67829         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
67830         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
67831         Reported by Gary V. Vaughan <gary@gnu.org>.
67833 2009-02-26  Bruno Haible  <bruno@clisp.org>
67835         Fix *printf behaviour regarding the %ls directive.
67836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
67837         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
67838         NEED_PRINTF_DIRECTIVE_LS.
67839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
67840         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
67841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67842         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
67843         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
67844         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
67845         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
67846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67850         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67854         * doc/posix-functions/fprintf.texi: Update.
67855         * doc/posix-functions/printf.texi: Update.
67856         * doc/posix-functions/snprintf.texi: Update.
67857         * doc/posix-functions/sprintf.texi: Update.
67858         * doc/posix-functions/vfprintf.texi: Update.
67859         * doc/posix-functions/vprintf.texi: Update.
67860         * doc/posix-functions/vsnprintf.texi: Update.
67861         * doc/posix-functions/vsprintf.texi: Update.
67862         * doc/glibc-functions/obstack_printf.texi: Update.
67863         * doc/glibc-functions/obstack_vprintf.texi: Update.
67864         Reported by Eric Blake.
67866 2009-02-25  Bruno Haible  <bruno@clisp.org>
67868         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67869         with known value.
67870         Reported by Gary V. Vaughan <gary@gnu.org>.
67872 2009-02-25  Bruno Haible  <bruno@clisp.org>
67874         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67875         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67876         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67877         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67878         Reported by Gary V. Vaughan <gary@gnu.org>.
67880 2009-02-25  Bruno Haible  <bruno@clisp.org>
67882         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67883         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67884         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67885         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67886         Reported by Gary V. Vaughan <gary@gnu.org>.
67888 2009-02-25  Eric Blake  <ebb9@byu.net>
67890         tests: skip fseek/ftell tests if ungetc is broken
67891         * m4/ungetc.m4: New file.
67892         * modules/fseek-tests: Split test, so ungetc dependency is
67893         separate from rest of test.
67894         * modules/fseeko-tests: Likewise.
67895         * modules/ftell-tests: Likewise.
67896         * modules/ftello-tests: Likewise.
67897         * tests/test-fseek.c (main): Isolate ungetc dependency.
67898         * tests/test-fseeko.c (main): Likewise.
67899         * tests/test-ftell.c (main): Likewise.
67900         * tests/test-ftello.c (main): Likewise.
67901         * tests/test-fseek2.sh: New file.
67902         * tests/test-fseeko2.sh: Likewise.
67903         * tests/test-ftell2.sh: Likewise.
67904         * tests/test-ftello2.sh: Likewise.
67906 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67908         test-getaddrinfo: fix usage of skip return code 77
67909         * tests/test-gettaddrinfo.c: Return skip code 77 only
67910         for first occurrence of skip (4x77 is not 77)
67912 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67914         strtod: avoid C99 decl-after-statement
67915         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67917 2009-02-24  Eric Blake  <ebb9@byu.net>
67919         strtod: detect HP-UX 11.31 bug
67920         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67921         Reported by Gary V. Vaughan.
67923 2009-02-23  Bruno Haible  <bruno@clisp.org>
67925         Fix invalid read past end of memory block.
67926         * lib/vasnprintf.c (DCHAR_SET): Define.
67927         (local_wcslen): Define only when needed.
67928         (local_strnlen, local_wcsnlen): New functions.
67929         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67930         directives that involve a conversion ourselves.
67931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67932         wcsnlen, mbrtowc, wcrtomb.
67933         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67934         * tests/test-vasprintf-posix.c (test_function): Likewise.
67935         * tests/test-snprintf-posix.h (test_function): Likewise.
67936         * tests/test-sprintf-posix.h (test_function): Likewise.
67937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67939 2009-02-22  Bruno Haible  <bruno@clisp.org>
67941         Implement new clarified decomposition of Hangul syllables.
67942         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67943         of type LTV, return only a pairwise decomposition.
67944         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67945         Likewise.
67946         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67947         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67948         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67950 2009-02-22  Bruno Haible  <bruno@clisp.org>
67952         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67953         zero-length results and shrink excess allocated memory.
67954         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67955         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67956         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67957         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67958         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67959         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67960         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67961         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67962         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67963         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67964         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67965         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67967 2009-02-21  Bruno Haible  <bruno@clisp.org>
67969         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67970         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67971         spaces after a period. Put a space between a macro name and its
67972         argument list. Trivial rewordings.
67973         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67974         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67975         (main): Return 0 explicitly.
67977 2009-02-21  Bruno Haible  <bruno@clisp.org>
67979         Tests for module 'uninorm/filter'.
67980         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67981         * modules/uninorm/filter-tests: New file.
67983         New module 'uninorm/filter'.
67984         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67985         uninorm_filter_flush, uninorm_filter_free): New declarations.
67986         * lib/uninorm/uninorm-filter.c: New file.
67987         * modules/uninorm/filter: New file.
67989 2009-02-21  Bruno Haible  <bruno@clisp.org>
67991         Tests for module 'uninorm/nfkc'.
67992         * tests/uninorm/test-nfkc.c: New file.
67993         * tests/uninorm/test-u8-nfkc.c: New file.
67994         * tests/uninorm/test-u16-nfkc.c: New file.
67995         * tests/uninorm/test-u32-nfkc.c: New file.
67996         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67997         * tests/uninorm/test-u32-nfkc-big.c: New file.
67998         * modules/uninorm/nfkc-tests: New file.
68000         New module 'uninorm/nfkc'.
68001         * lib/uninorm/nfkc.c: New file.
68002         * modules/uninorm/nfkc: New file.
68004         Tests for module 'uninorm/nfkd'.
68005         * tests/uninorm/test-nfkd.c: New file.
68006         * tests/uninorm/test-u8-nfkd.c: New file.
68007         * tests/uninorm/test-u16-nfkd.c: New file.
68008         * tests/uninorm/test-u32-nfkd.c: New file.
68009         * tests/uninorm/test-u32-nfkd-big.sh: New file.
68010         * tests/uninorm/test-u32-nfkd-big.c: New file.
68011         * modules/uninorm/nfkd-tests: New file.
68013         New module 'uninorm/nfkd'.
68014         * lib/uninorm/nfkd.c: New file.
68015         * modules/uninorm/nfkd: New file.
68017         Tests for module 'uninorm/nfc'.
68018         * tests/uninorm/test-nfc.c: New file.
68019         * tests/uninorm/test-u8-nfc.c: New file.
68020         * tests/uninorm/test-u16-nfc.c: New file.
68021         * tests/uninorm/test-u32-nfc.c: New file.
68022         * tests/uninorm/test-u32-nfc-big.sh: New file.
68023         * tests/uninorm/test-u32-nfc-big.c: New file.
68024         * modules/uninorm/nfc-tests: New file.
68026         New module 'uninorm/nfc'.
68027         * lib/uninorm/nfc.c: New file.
68028         * modules/uninorm/nfc: New file.
68030         Tests for module 'uninorm/nfd'.
68031         * tests/uninorm/test-nfd.c: New file.
68032         * tests/uninorm/test-u8-nfd.c: New file.
68033         * tests/uninorm/test-u16-nfd.c: New file.
68034         * tests/uninorm/test-u32-nfd.c: New file.
68035         * tests/uninorm/test-u32-nfd-big.sh: New file.
68036         * tests/uninorm/test-u32-nfd-big.c: New file.
68037         * tests/uninorm/test-u32-normalize-big.h: New file.
68038         * tests/uninorm/test-u32-normalize-big.c: New file.
68039         * tests/uninorm/NormalizationTest.txt: New file, created from
68040         Unicode 5.1.0 NormalizationTest.txt.
68041         * modules/uninorm/nfd-tests: New file.
68043         New module 'uninorm/nfd'.
68044         * lib/uninorm/nfd.c: New file.
68045         * modules/uninorm/nfd: New file.
68047         New module 'uninorm/u32-normalize'.
68048         * lib/uninorm/u32-normalize.c: New file.
68049         * modules/uninorm/u32-normalize: New file.
68051         New module 'uninorm/u16-normalize'.
68052         * lib/uninorm/u16-normalize.c: New file.
68053         * modules/uninorm/u16-normalize: New file.
68055         New module 'uninorm/u8-normalize'.
68056         * lib/uninorm/u8-normalize.c: New file.
68057         * lib/uninorm/normalize-internal.h: New file.
68058         * lib/uninorm/u-normalize-internal.h: New file.
68059         * modules/uninorm/u8-normalize: New file.
68061         New module 'uninorm/decompose-internal'.
68062         * lib/uninorm/decompose-internal.c: New file.
68063         * modules/uninorm/decompose-internal: New file.
68065         Tests for module 'uninorm/composition'.
68066         * tests/uninorm/test-composition.c: New file.
68067         * modules/uninorm/composition-tests: New file.
68069         New module 'uninorm/composition'.
68070         * lib/uninorm/composition.c: New file.
68071         * lib/uninorm/composition-table.gperf: New file, generated by
68072         gen-uni-tables.
68073         * modules/uninorm/composition: New file.
68075         Tests for module 'uninorm/compat-decomposition'.
68076         * tests/uninorm/test-compat-decomposition.c: New file.
68077         * modules/uninorm/compat-decomposition-tests: New file.
68079         New module 'uninorm/compat-decomposition'.
68080         * lib/uninorm/decompose-internal.h: New file.
68081         * lib/uninorm/compat-decomposition.c: New file.
68082         * modules/uninorm/compat-decomposition: New file.
68084         Tests for module 'uninorm/canonical-decomposition'.
68085         * tests/uninorm/test-canonical-decomposition.c: New file.
68086         * modules/uninorm/canonical-decomposition-tests: New file.
68088         New module 'uninorm/canonical-decomposition'.
68089         * lib/uninorm/canonical-decomposition.c: New file.
68090         * modules/uninorm/canonical-decomposition: New file.
68092         Tests for module 'uninorm/decomposition'.
68093         * tests/uninorm/test-decomposition.c: New file.
68094         * modules/uninorm/decomposition-tests: New file.
68096         New module 'uninorm/decomposition'.
68097         * lib/uninorm/decomposition.c: New file.
68098         * modules/uninorm/decomposition: New file.
68100         New module 'uninorm/decomposition-table'.
68101         * lib/uninorm/decomposition-table.h: New file.
68102         * lib/uninorm/decomposition-table.c: New file.
68103         * lib/uninorm/decomposition-table1.h: New file, generated by
68104         gen-uni-tables.
68105         * lib/uninorm/decomposition-table2.h: New file, generated by
68106         gen-uni-tables.
68107         * modules/uninorm/decomposition-table: New file.
68109         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
68110         (UC_DECOMP_*): New enumeration items.
68111         (get_decomposition): New function.
68112         (struct decomp_table): New type.
68113         (output_decomposition, output_decomposition_tables): New functions.
68114         (unicode_composition_exclusions): New variable.
68115         (fill_composition_exclusions, debug_output_composition_tables): New
68116         functions.
68117         (main): Accept one more argument. Invoke fill_composition_exclusions.
68118         Output decomposition and composition tables.
68120         New module 'uninorm/base'.
68121         * lib/uninorm.h: New file.
68122         * lib/unictype.h: Update comment.
68123         * modules/uninorm/base: New file.
68125 2009-02-21  David Lutterkort  <lutter@redhat.com>
68127         Tests for module 'safe-alloc'.
68128         * tests/test-safe-alloc.c: New file.
68129         * modules/safe-alloc-tests: New file.
68131         New module 'safe-alloc'.
68132         * lib/safe-alloc.h: New file.
68133         * lib/safe-alloc.c: New file.
68134         * m4/safe-alloc.m4: New file.
68135         * modules/safe-alloc: New file.
68136         * doc/safe-alloc.texi: New file.
68137         * doc/gnulib.texi: Include it.
68138         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
68139         safe-alloc.
68141 2009-02-18  Bruno Haible  <bruno@clisp.org>
68143         Fix link error on non-glibc systems.
68144         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
68145         variable.
68146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68148 2009-02-18  Jim Meyering  <meyering@redhat.com>
68150         fts: avoid used-uninitialized error due to recent change
68151         * lib/fts.c (fts_read): Guard uses of the new member,
68152         parent->fts_n_dirs_remaining, since it's not relevant for
68153         the parent of a directory specified on the command-line.
68155 2009-02-17  James Youngman  <jay@gnu.org>
68156             Bruno Haible  <bruno@clisp.org>
68158         * m4/include_next.m4: Reformulate comment.
68160 2009-02-16  Jim Meyering  <meyering@redhat.com>
68162         fts: add #if guards so that the fts_lgpl module still builds
68163         * lib/fts.c: Guard just-added hash-table-using parts with
68164         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
68165         Reported by Simon Josefsson.
68167 2009-02-15  Bruno Haible  <bruno@clisp.org>
68169         * modules/array-mergesort-tests: New file.
68170         * tests/test-array-mergesort.c: New file.
68172         New module 'array-mergesort'.
68173         * modules/array-mergesort: New file.
68174         * lib/array-mergesort.h: New file.
68176 2009-02-15  Bruno Haible  <bruno@clisp.org>
68178         Fix 2009-02-07 commit.
68179         * lib/gen-uni-tables.c (output_predicate, output_category,
68180         output_combclass, output_bidi_category, output_decimal_digit,
68181         output_digit, output_numeric, output_mirror, output_scripts,
68182         output_ident_category, output_simple_mapping): Fix format directives.
68183         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
68185 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
68187         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
68188         fixes are available from IBM.
68190 2009-02-13  Jim Meyering  <meyering@redhat.com>
68192         fts: arrange not to stat non-directories in more cases
68193         This makes GNU find (when it doesn't need to stat each file)
68194         *much* more efficient at traversing reiserfs file systems.
68195         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
68196         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
68197         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
68198         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
68199         (leaf_optimization_applies): New function.
68200         (LCO_hash, LCO_compare): New helper functions.
68201         (link_count_optimize_ok): New function.
68202         (fts_stat): Initialize new member (if dir).
68203         (fts_read): Decrement parent's fts_n_dirs_remaining count if
68204         we've just stat'ed a directory.  Skip the stat call when possible.
68205         ---
68206         Note this AFS-related exchange:
68207         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
68208         and note find's pioctl call in find/fstype.c.
68209         But that is necessary only if you want to enable the
68210         optimization for AFS, and for now, I don't.
68212         fts: move a function definition "up" (no semantic change)
68213         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
68214         "up" to precede upcoming use of a related function.
68216 2009-02-11  Jim Meyering  <meyering@redhat.com>
68218         fts: correct internal computation of nlinks (optimization-related)
68219         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
68220         whether the current entry is a directory, so don't test it.
68222 2009-02-10  Bruno Haible  <bruno@clisp.org>
68224         Tests for module 'uniwbrk/ulc-wordbreaks'.
68225         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
68226         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
68227         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
68229         Tests for module 'uniwbrk/u32-wordbreaks'.
68230         * modules/uniwbrk/u32-wordbreaks-tests: New file.
68231         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
68233         Tests for module 'uniwbrk/u16-wordbreaks'.
68234         * modules/uniwbrk/u16-wordbreaks-tests: New file.
68235         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
68237         Tests for module 'uniwbrk/u8-wordbreaks'.
68238         * modules/uniwbrk/u8-wordbreaks-tests: New file.
68239         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
68241 2009-02-10  Bruno Haible  <bruno@clisp.org>
68243         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
68244         property.
68245         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
68246         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
68247         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
68249 2009-02-10  Simon Josefsson  <simon@josefsson.org>
68251         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
68252         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
68254 2009-02-10  Bruno Haible  <bruno@clisp.org>
68256         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
68257         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
68258         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
68259         * lib/unilbrk/u8-possible-linebreaks.c: Update.
68260         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
68261         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
68263 2009-02-09  Simon Josefsson  <simon@josefsson.org>
68265         * lib/sockets.h (gl_fd_to_handle): New function.
68267         * tests/test-sockets.c: Call gl_fd_to_handle.
68269 2009-02-09  Bruno Haible  <bruno@clisp.org>
68271         * doc/havelib.texi: Document the conventions on bi-arch systems.
68273 2009-02-08  Bruno Haible  <bruno@clisp.org>
68275         Document the AC_LIB_LINKFLAGS macro.
68276         * doc/havelib.texi: New file, mostly written on 2005-05-24.
68277         * doc/gnulib.texi: Include it.
68279 2009-02-08  Bruno Haible  <bruno@clisp.org>
68281         Fix wrong order of sections, compared to TOC.
68282         * doc/gnulib.texi: Include relocatable-maint.texi after the
68283         "Regular expressions" node, not before.
68285 2009-02-08  Bruno Haible  <bruno@clisp.org>
68287         Tests for module 'unicase/totitle'.
68288         * modules/unicase/totitle-tests: New file.
68290         Tests for module 'unicase/tolower'.
68291         * modules/unicase/tolower-tests: New file.
68293         Tests for module 'unicase/toupper'.
68294         * modules/unicase/toupper-tests: New file.
68295         * tests/unicase/test-mapping-part1.h: New file.
68296         * tests/unicase/test-mapping-part2.h: New file.
68298         New module 'unicase/totitle'.
68299         * modules/unicase/totitle: New file.
68300         * lib/unicase/totitle.c: New file.
68302         New module 'unicase/tolower'.
68303         * modules/unicase/tolower: New file.
68304         * lib/unicase/tolower.c: New file.
68306         New module 'unicase/toupper'.
68307         * modules/unicase/toupper: New file.
68308         * lib/unicase/toupper.c: New file.
68309         * lib/unicase/simple-mapping.h: New file.
68311         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
68312         (mapping_table): New structure.
68313         (output_simple_mapping): New function.
68314         (main): Invoke output_simple_mapping_test and output_simple_mapping.
68315         * modules/gen-uni-tables (Description): Update.
68316         * lib/unicase/toupper.h: New file, automatically generated by
68317         gen-uni-tables.
68318         * lib/unicase/tolower.h: New file, automatically generated by
68319         gen-uni-tables.
68320         * lib/unicase/totitle.h: New file, automatically generated by
68321         gen-uni-tables.
68322         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
68323         gen-uni-tables.
68324         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
68325         gen-uni-tables.
68326         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
68327         gen-uni-tables.
68329         New module 'unicase/base'.
68330         * modules/unicase/base: New file.
68331         * lib/unicase.h: New file.
68333 2009-02-08  Bruno Haible  <bruno@clisp.org>
68335         New module 'uniwbrk/ulc-wordbreaks'.
68336         * modules/uniwbrk/ulc-wordbreaks: New file.
68337         * lib/uniwbrk/ulc-wordbreaks.c: New file.
68339         New module 'uniwbrk/u32-wordbreaks'.
68340         * modules/uniwbrk/u32-wordbreaks: New file.
68341         * lib/uniwbrk/u32-wordbreaks.c: New file.
68343         New module 'uniwbrk/u16-wordbreaks'.
68344         * modules/uniwbrk/u16-wordbreaks: New file.
68345         * lib/uniwbrk/u16-wordbreaks.c: New file.
68347         New module 'uniwbrk/u8-wordbreaks'.
68348         * modules/uniwbrk/u8-wordbreaks: New file.
68349         * lib/uniwbrk/u8-wordbreaks.c: New file.
68350         * lib/uniwbrk/u-wordbreaks.h: New file.
68352         New module 'uniwbrk/table'.
68353         * modules/uniwbrk/table: New file.
68354         * lib/uniwbrk/wbrktable.h: New file.
68355         * lib/uniwbrk/wbrktable.c: New file.
68357         New module 'uniwbrk/wordbreak-property'.
68358         * modules/uniwbrk/wordbreak-property: New file.
68359         * lib/uniwbrk/wordbreak-property.c: New file.
68361         * lib/gen-uni-tables.c (WBP_*): New enum items.
68362         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
68363         (unicode_org_wbp): New variable.
68364         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
68365         New functions.
68366         (wbp_table): New structure.
68367         (output_wbp, output_wbrk_tables): New functions.
68368         (main): Accept additional argument. Invoke fill_org_wbp,
68369         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
68370         output_wbrk_tables.
68371         * modules/gen-uni-tables (Description): Update.
68372         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
68373         gen-uni-tables.
68375         New module 'uniwbrk/base'.
68376         * modules/uniwbrk/base: New file.
68377         * lib/uniwbrk.h: New file.
68379 2009-02-08  Bruno Haible  <bruno@clisp.org>
68381         Update to Unicode 5.1.0.
68382         * lib/gen-uni-tables.c (is_property_alphabetic): Include
68383         U+2185..U+2188.
68384         (is_property_default_ignorable_code_point): Don't include characters
68385         of category Cc or Cs and not-a-characters.
68386         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
68387         U+0D79, U+109E, U+109F, U+A60C.
68388         * lib/unictype/bidi_of.h: Regenerated.
68389         * lib/unictype/blocks.h: Regenerated.
68390         * lib/unictype/categ_C.h: Regenerated.
68391         * lib/unictype/categ_Cf.h: Regenerated.
68392         * lib/unictype/categ_Cn.h: Regenerated.
68393         * lib/unictype/categ_L.h: Regenerated.
68394         * lib/unictype/categ_Ll.h: Regenerated.
68395         * lib/unictype/categ_Lm.h: Regenerated.
68396         * lib/unictype/categ_Lo.h: Regenerated.
68397         * lib/unictype/categ_Lu.h: Regenerated.
68398         * lib/unictype/categ_M.h: Regenerated.
68399         * lib/unictype/categ_Mc.h: Regenerated.
68400         * lib/unictype/categ_Me.h: Regenerated.
68401         * lib/unictype/categ_Mn.h: Regenerated.
68402         * lib/unictype/categ_N.h: Regenerated.
68403         * lib/unictype/categ_Nd.h: Regenerated.
68404         * lib/unictype/categ_Nl.h: Regenerated.
68405         * lib/unictype/categ_No.h: Regenerated.
68406         * lib/unictype/categ_P.h: Regenerated.
68407         * lib/unictype/categ_Pd.h: Regenerated.
68408         * lib/unictype/categ_Pe.h: Regenerated.
68409         * lib/unictype/categ_Pf.h: Regenerated.
68410         * lib/unictype/categ_Pi.h: Regenerated.
68411         * lib/unictype/categ_Po.h: Regenerated.
68412         * lib/unictype/categ_Ps.h: Regenerated.
68413         * lib/unictype/categ_S.h: Regenerated.
68414         * lib/unictype/categ_Sk.h: Regenerated.
68415         * lib/unictype/categ_Sm.h: Regenerated.
68416         * lib/unictype/categ_So.h: Regenerated.
68417         * lib/unictype/categ_of.h: Regenerated.
68418         * lib/unictype/combining.h: Regenerated.
68419         * lib/unictype/ctype_alnum.h: Regenerated.
68420         * lib/unictype/ctype_alpha.h: Regenerated.
68421         * lib/unictype/ctype_graph.h: Regenerated.
68422         * lib/unictype/ctype_lower.h: Regenerated.
68423         * lib/unictype/ctype_print.h: Regenerated.
68424         * lib/unictype/ctype_punct.h: Regenerated.
68425         * lib/unictype/ctype_upper.h: Regenerated.
68426         * lib/unictype/decdigit.h: Regenerated.
68427         * lib/unictype/digit.h: Regenerated.
68428         * lib/unictype/mirror.h: Regenerated.
68429         * lib/unictype/numeric.h: Regenerated.
68430         * lib/unictype/pr_alphabetic.h: Regenerated.
68431         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
68432         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
68433         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
68434         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
68435         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
68436         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
68437         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
68438         * lib/unictype/pr_combining.h: Regenerated.
68439         * lib/unictype/pr_dash.h: Regenerated.
68440         * lib/unictype/pr_decimal_digit.h: Regenerated.
68441         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
68442         * lib/unictype/pr_deprecated.h: Regenerated.
68443         * lib/unictype/pr_diacritic.h: Regenerated.
68444         * lib/unictype/pr_extender.h: Regenerated.
68445         * lib/unictype/pr_format_control.h: Regenerated.
68446         * lib/unictype/pr_grapheme_base.h: Regenerated.
68447         * lib/unictype/pr_grapheme_extend.h: Regenerated.
68448         * lib/unictype/pr_grapheme_link.h: Regenerated.
68449         * lib/unictype/pr_id_continue.h: Regenerated.
68450         * lib/unictype/pr_id_start.h: Regenerated.
68451         * lib/unictype/pr_ideographic.h: Regenerated.
68452         * lib/unictype/pr_ignorable_control.h: Regenerated.
68453         * lib/unictype/pr_lowercase.h: Regenerated.
68454         * lib/unictype/pr_math.h: Regenerated.
68455         * lib/unictype/pr_numeric.h: Regenerated.
68456         * lib/unictype/pr_other_alphabetic.h: Regenerated.
68457         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
68458         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
68459         * lib/unictype/pr_other_id_continue.h: Regenerated.
68460         * lib/unictype/pr_other_lowercase.h: Regenerated.
68461         * lib/unictype/pr_other_math.h: Regenerated.
68462         * lib/unictype/pr_punctuation.h: Regenerated.
68463         * lib/unictype/pr_sentence_terminal.h: Regenerated.
68464         * lib/unictype/pr_soft_dotted.h: Regenerated.
68465         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
68466         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
68467         * lib/unictype/pr_unified_ideograph.h: Regenerated.
68468         * lib/unictype/pr_uppercase.h: Regenerated.
68469         * lib/unictype/pr_xid_continue.h: Regenerated.
68470         * lib/unictype/pr_xid_start.h: Regenerated.
68471         * lib/unictype/pr_zero_width.h: Regenerated.
68472         * lib/unictype/scripts.h: Regenerated.
68473         * lib/unictype/scripts_byname.gperf: Regenerated.
68474         * lib/unictype/sy_java_ident.h: Regenerated.
68475         * lib/unilbrk/lbrkprop1.h: Regenerated.
68476         * lib/unilbrk/lbrkprop2.h: Regenerated.
68477         * tests/unictype/test-categ_C.c: Regenerated.
68478         * tests/unictype/test-categ_Cf.c: Regenerated.
68479         * tests/unictype/test-categ_Cn.c: Regenerated.
68480         * tests/unictype/test-categ_L.c: Regenerated.
68481         * tests/unictype/test-categ_Ll.c: Regenerated.
68482         * tests/unictype/test-categ_Lm.c: Regenerated.
68483         * tests/unictype/test-categ_Lo.c: Regenerated.
68484         * tests/unictype/test-categ_Lu.c: Regenerated.
68485         * tests/unictype/test-categ_M.c: Regenerated.
68486         * tests/unictype/test-categ_Mc.c: Regenerated.
68487         * tests/unictype/test-categ_Me.c: Regenerated.
68488         * tests/unictype/test-categ_Mn.c: Regenerated.
68489         * tests/unictype/test-categ_N.c: Regenerated.
68490         * tests/unictype/test-categ_Nd.c: Regenerated.
68491         * tests/unictype/test-categ_Nl.c: Regenerated.
68492         * tests/unictype/test-categ_No.c: Regenerated.
68493         * tests/unictype/test-categ_P.c: Regenerated.
68494         * tests/unictype/test-categ_Pd.c: Regenerated.
68495         * tests/unictype/test-categ_Pe.c: Regenerated.
68496         * tests/unictype/test-categ_Pf.c: Regenerated.
68497         * tests/unictype/test-categ_Pi.c: Regenerated.
68498         * tests/unictype/test-categ_Po.c: Regenerated.
68499         * tests/unictype/test-categ_Ps.c: Regenerated.
68500         * tests/unictype/test-categ_S.c: Regenerated.
68501         * tests/unictype/test-categ_Sk.c: Regenerated.
68502         * tests/unictype/test-categ_Sm.c: Regenerated.
68503         * tests/unictype/test-categ_So.c: Regenerated.
68504         * tests/unictype/test-ctype_alnum.c: Regenerated.
68505         * tests/unictype/test-ctype_alpha.c: Regenerated.
68506         * tests/unictype/test-ctype_graph.c: Regenerated.
68507         * tests/unictype/test-ctype_lower.c: Regenerated.
68508         * tests/unictype/test-ctype_print.c: Regenerated.
68509         * tests/unictype/test-ctype_punct.c: Regenerated.
68510         * tests/unictype/test-ctype_upper.c: Regenerated.
68511         * tests/unictype/test-decdigit.h: Regenerated.
68512         * tests/unictype/test-digit.h: Regenerated.
68513         * tests/unictype/test-numeric.h: Regenerated.
68514         * tests/unictype/test-pr_alphabetic.c: Regenerated.
68515         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
68516         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
68517         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
68518         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
68519         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
68520         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
68521         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
68522         * tests/unictype/test-pr_combining.c: Regenerated.
68523         * tests/unictype/test-pr_dash.c: Regenerated.
68524         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
68525         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
68526         * tests/unictype/test-pr_deprecated.c: Regenerated.
68527         * tests/unictype/test-pr_diacritic.c: Regenerated.
68528         * tests/unictype/test-pr_extender.c: Regenerated.
68529         * tests/unictype/test-pr_format_control.c: Regenerated.
68530         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
68531         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
68532         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
68533         * tests/unictype/test-pr_id_continue.c: Regenerated.
68534         * tests/unictype/test-pr_id_start.c: Regenerated.
68535         * tests/unictype/test-pr_ideographic.c: Regenerated.
68536         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
68537         * tests/unictype/test-pr_lowercase.c: Regenerated.
68538         * tests/unictype/test-pr_math.c: Regenerated.
68539         * tests/unictype/test-pr_numeric.c: Regenerated.
68540         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
68541         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
68542         Regenerated.
68543         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
68544         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
68545         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
68546         * tests/unictype/test-pr_other_math.c: Regenerated.
68547         * tests/unictype/test-pr_punctuation.c: Regenerated.
68548         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
68549         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
68550         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
68551         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
68552         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
68553         * tests/unictype/test-pr_uppercase.c: Regenerated.
68554         * tests/unictype/test-pr_xid_continue.c: Regenerated.
68555         * tests/unictype/test-pr_xid_start.c: Regenerated.
68556         * tests/unictype/test-pr_zero_width.c: Regenerated.
68558         Update to Unicode 5.1.0.
68559         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
68560         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
68561         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
68562         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
68563         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
68564         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
68565         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
68566         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
68567         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
68568         (nonspacing_table_ind): Update.
68569         * tests/uniwidth/test-uc_width2.sh: Update expected result.
68571         Update to Unicode 5.1.0.
68572         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
68573         code transform.
68574         * lib/uniname/uniname.c (unicode_character_name,
68575         unicode_name_character): Add the range 0x1Fxxx to the code transform.
68576         * lib/uniname/uninames.h: Regenerated.
68577         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
68579 2009-02-07  Bruno Haible  <bruno@clisp.org>
68581         Merge gen-ctype and gen-lbrk into a single program.
68582         * lib/gen-uni-tables.c: New file, incorporating
68583         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
68584         Add directory prefixes to the names of the generated files.
68585         * lib/unictype/gen-ctype.c: Remove file.
68586         * lib/unilbrk/gen-lbrk.c: Remove file.
68587         * modules/gen-uni-tables: New file.
68588         * modules/unictype/gen-ctype: Remove file.
68589         * modules/unilbrk/gen-lbrk: Remove file.
68591 2009-02-07  Bruno Haible  <bruno@clisp.org>
68593         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
68595         New module 'unistr/u32-strcoll'.
68596         * modules/unistr/u32-strcoll: New file.
68597         * lib/unistr/u32-strcoll.c: New file.
68599         New module 'unistr/u16-strcoll'.
68600         * modules/unistr/u16-strcoll: New file.
68601         * lib/unistr/u16-strcoll.c: New file.
68603         New module 'unistr/u8-strcoll'.
68604         * modules/unistr/u8-strcoll: New file.
68605         * lib/unistr/u8-strcoll.c: New file.
68606         * lib/unistr/u-strcoll.h: New file.
68608 2009-02-07  Bruno Haible  <bruno@clisp.org>
68610         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
68611         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68612         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68613         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
68614         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
68615         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
68617 2009-02-07  Bruno Haible  <bruno@clisp.org>
68619         Make 64-bit clean.
68620         * lib/unictype/gen-ctype.c (output_predicate, output_category,
68621         output_combclass, output_bidi_category, output_decimal_digit,
68622         output_digit, output_numeric, output_mirror, output_scripts,
68623         output_ident_category): Use proper width specifier in format strings.
68625 2009-02-07  Bruno Haible  <bruno@clisp.org>
68627         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
68628         failure behaviour.
68630 2009-02-07  Jim Meyering  <meyering@redhat.com>
68632         regex: avoid compilation failure with upcoming gcc-4.4
68633         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
68634         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
68635         "... error: integer overflow in preprocessor expression".
68637 2009-02-05  Ben Pfaff  <blp@gnu.org>
68639         Fix link errors on Windows when close module is used.
68640         * modules/close: Add $(LIB_CLOSE) to Link section.
68641         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
68642         $(LIB_CLOSE) on Windows.
68644 2009-02-05  Jim Meyering  <meyering@redhat.com>
68646         still avoid unused-parameter warnings, but do it cleanly
68647         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
68648         (get_fs_usage): Cast to void instead.
68649         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
68650         (dev_from_mount_options, read_file_system_list): Cast to void.
68651         Prompted by Bruno Haible.
68653 2009-02-04  Jim Meyering  <meyering@redhat.com>
68655         fsusage.c: correct copyright year
68656         * lib/fsusage.c: Reflect year in which the change is pushed into
68658         avoid misc. warnings
68659         * lib/fsusage.c (UNUSED_PARAM): Define.
68660         (get_fs_usage): Mark parameter "disk" as unused.
68661         * lib/getugroups.c (getgrent): Use "void" in prototype.
68662         * lib/mountlist.c: Mark unused parameters.
68663         (read_file_system_list): Declare a local with "const".
68664         * lib/nanosleep.c (getnow): Declare static.
68665         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
68667         dirfd: set errno upon failure
68668         * lib/dirfd.c: Include <errno.h>.
68669         Set errno to ENOTSUP when returning -1.
68670         * modules/dirfd (Depends-on): Add errno.
68671         Suggested by John Kodis <kodis@comcast.net>.
68673 2009-02-01  Bruno Haible  <bruno@clisp.org>
68675         Don't assume sizeof (long) >= sizeof (void *).
68676         * lib/memcmp.c: Include stdint.h.
68677         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
68678         srcp2 to 'const byte *'.
68679         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
68680         types to uintptr_t.
68681         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
68682         * modules/memcmp (Depends-on): Add stdint.
68683         Reported by Ozkan Sezer <sezeroz@gmail.com>.
68685 2009-01-30  Eric Blake  <ebb9@byu.net>
68687         fix more require-before-expand issues
68688         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
68689         expand, AC_PROG_AWK.
68690         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
68692 2009-01-28  Eric Blake  <ebb9@byu.net>
68694         version-etc: use consistent URL formatting
68695         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
68696         Improve formatting.  Use fputs for string without %.
68698 2009-01-28  Jim Meyering  <meyering@redhat.com>
68700         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
68701         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
68702         "underquoted definition of NAME" from autoconf-2.59.
68704 2009-01-28  Bruno Haible  <bruno@clisp.org>
68706         * doc/gnulib.texi: Add "Obsolete modules" to index.
68708 2009-01-28  Jim Meyering  <meyering@redhat.com>
68710         useless-if-before-free: recognize more variants
68711         * build-aux/useless-if-before-free: Also recognize e.g.,
68712         if (NULL != p) free (p);
68714 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
68716         test-getaddrinfo: skip (don't fail) this test when there's no network
68717         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
68718         on the presumption that it means you lack network access.
68720 2009-01-26  Jim Meyering  <meyering@redhat.com>
68722         fflush: avoid warnings on modern systems
68723         * lib/fflush.c (rpl_fflush): Move declarations of locals,
68724         pos and result, into scopes where they're used.
68726 2009-01-26  Eric Blake  <ebb9@byu.net>
68728         Silence warning reintroduced by recent extensions patch.
68729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
68730         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
68731         autoconf.
68733         Backport improved autoconf semantics of AC_DEFUN_ONCE.
68734         * m4/00gnulib.m4: New file.
68735         * gnulib-tool (func_get_filelist): Always use it.
68736         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
68737         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
68739 2009-01-25  Bruno Haible  <bruno@clisp.org>
68741         Make test-quotearg work on MacOS X and AIX.
68742         * tests/test-quotearg.sh: New file.
68743         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
68744         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
68745         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
68746         include <libintl.h>.
68747         (fake_locale): Remove variable.
68748         (gettext, dgettext, dcgettext): Remove functions.
68749         (main): Instead of setting a fake locale, set a real locale. Call
68750         textdomain and bindtextdomain.
68751         * modules/quotearg-tests (Files): Add the new files.
68752         (Depends-on): Add gettext, setenv, unsetenv.
68753         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68754         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
68755         Augment TESTS_ENVIRONMENT.
68757 2009-01-25  Bruno Haible  <bruno@clisp.org>
68759         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
68760         fr_FR.ISO8859-1 locale on MacOS X.
68761         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
68762         ja_JP.eucJP locale on MacOS X.
68763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
68764         zh_CN.GB18030 locale on MacOS X.
68766 2009-01-25  Bruno Haible  <bruno@clisp.org>
68768         Avoid link errors on MacOS X 10.3.
68769         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
68770         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68772 2009-01-25  Bruno Haible  <bruno@clisp.org>
68774         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68775         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
68776         * modules/pipe (Files): Remove m4/posix_spawn.m4.
68777         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68778         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
68779         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68780         posix_spawnattr_init, posix_spawnattr_setsigmask,
68781         posix_spawnattr_setflags, posix_spawnattr_destroy.
68783         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68784         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
68785         * modules/execute (Files): Remove m4/posix_spawn.m4.
68786         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68787         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68788         posix_spawnattr_init, posix_spawnattr_setsigmask,
68789         posix_spawnattr_setflags, posix_spawnattr_destroy.
68791 2009-01-25  Bruno Haible  <bruno@clisp.org>
68793         * lib/glthread/threadlib.c: Include <stdlib.h>.
68795 2009-01-25  Bruno Haible  <bruno@clisp.org>
68797         * lib/glthread/threadlib.c (dummy): New declaration.
68799 2009-01-25  Bruno Haible  <bruno@clisp.org>
68801         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
68802         multibyte characters also for the GB18030 encoding. Don't crash when
68803         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
68805 2009-01-25  Bruno Haible  <bruno@clisp.org>
68807         Avoid redefining 'struct random_data' on OSF/1 5.1.
68808         * lib/stdlib.in.h: Include <random.h> if it exists.
68809         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
68810         HAVE_RANDOM_H. Include <random.h> when testing whether
68811         'struct random_data' exists.
68812         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
68814 2009-01-25  Bruno Haible  <bruno@clisp.org>
68816         Don't install charset.alias on MacOS X >= 10.3.
68817         * lib/localcharset.c (DARWIN7): New macro.
68818         (get_charset_aliases): Hardcode the result for Darwin7.
68819         * modules/localcharset (install-exec-local): Don't install
68820         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
68822 2009-01-25  Bruno Haible  <bruno@clisp.org>
68824         Don't install charset.alias on mingw and Cygwin.
68825         * modules/localcharset (install-exec-local): Don't install
68826         charset.alias on mingw and Cygwin, if the file does not yet exist.
68827         The result for these platforms is hardcoded in localcharset.c.
68829 2009-01-25  Bruno Haible  <bruno@clisp.org>
68831         Make it possible again to use AC_GNU_SOURCE together with gnulib.
68832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
68833         before requiring AC_USE_SYSTEM_EXTENSIONS.
68835 2009-01-25  Jim Meyering  <meyering@redhat.com>
68837         c-strtod: avoid warnings
68838         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
68839         "assignment discards qualifiers from pointer target type" warnings.
68841 2009-01-24  Bruno Haible  <bruno@clisp.org>
68843         Add support for non-UTF-8 locales on MacOS X.
68844         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
68845         canonical encodings. For Darwin 7 and newer, don't map traditional
68846         encodings to UTF-8.
68847         Reported by Vincent Lefevre <vincent@vinc17.org>
68848         at <http://savannah.gnu.org/bugs/?25235>.
68850 2009-01-24  Bruno Haible  <bruno@clisp.org>
68852         * doc/gnulib.texi (Obsolete modules): New section.
68853         Reported by Mike Frysinger <vapier@gentoo.org>.
68855 2009-01-24  Bruno Haible  <bruno@clisp.org>
68857         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68858         (%.dvi): New rule.
68860 2009-01-24  Bruno Haible  <bruno@clisp.org>
68862         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68863         Reported by Eric Blake.
68865 2009-01-24  Bruno Haible  <bruno@clisp.org>
68867         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68868         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68869         Reported by Gary V. Vaughan <gary@gnu.org>.
68871 2009-01-24  Bruno Haible  <bruno@clisp.org>
68873         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68875 2009-01-23  Bruno Haible  <bruno@clisp.org>
68877         Make c-strtod, c-strtold usable in libraries.
68878         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68879         (C_STRTOD): Call strdup instead of xstrdup.
68880         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68881         * modules/c-strtold (Depends-on): Likewise.
68882         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68883         * NEWS: Mention the change.
68884         Reported by Michael Gold <mgold@ncf.ca>.
68886 2009-01-23  Jim Meyering  <meyering@redhat.com>
68888         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68889         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68890         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68892 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68894         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68895         GNU CoreUtils.
68896         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68897         * modules/version-etc (Description): Update.
68899 2009-01-22  Bruno Haible  <bruno@clisp.org>
68901         Cache the C locale object.
68902         * lib/c-strtod.c (c_locale_cache): New variable.
68903         (c_locale): New function.
68904         (C_STRTOD): Use it, and don't call freelocale.
68905         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68906         Suggested by Paolo Bonzini.
68908 2009-01-21  Bruno Haible  <bruno@clisp.org>
68910         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68911         conditions other than overflow.
68913 2009-01-21  Bruno Haible  <bruno@clisp.org>
68915         * lib/c-strtod.c: Include errno.h.
68916         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68917         value from STRTOD_L and STRTOD.
68919 2009-01-21  Bruno Haible  <bruno@clisp.org>
68920         and Jim Meyering  <meyering@redhat.com>
68922         nanosleep: skip configure test (fail it) for apple universal builds
68923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68924         universal builds, assume that nanosleep does not work.
68925         * modules/nanosleep (Depends-on): Add multiarch.
68927         mktime: skip configure test (fail it) for apple universal builds
68928         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68929         universal builds, assume that mktime does not work.
68930         * modules/mktime (Depends-on): Add multiarch.
68932 2009-01-21  Eric Blake  <ebb9@byu.net>
68934         multiarch: avoid expand-before-require warning
68935         * modules/multiarch (configure.ac): Require, rather than expand,
68936         gl_MULTIARCH.
68937         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68938         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68939         enforce that all clients require it.  Partial reversion of
68940         2008-12-29 patch.
68942         error: avoid expand-before-require warning
68943         * modules/errno (configure.ac): Require, rather than expand,
68944         gl_HEADER_ERRNO_H.
68945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68946         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68947         enforce that all clients require it.
68949         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68950         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68951         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68952         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68954 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68956         Revert:
68957         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68959         regex: do not depend on obsolete modules.
68960         * modules/regex: Remove memcmp and memmove.
68962 2009-01-20  Bruno Haible  <bruno@clisp.org>
68964         Make the 'link' module link on Windows NT 4.
68965         * lib/link.c (_WIN32_WINNT): Don't define.
68966         (CreateHardLinkFuncType): New type.
68967         (CreateHardLinkFunc, initialized): New variables.
68968         (initialize): New function.
68969         (link): Invoke CreateHardLink indirectly through the function pointer.
68971 2009-01-20  Bruno Haible  <bruno@clisp.org>
68973         Fix compilation failure on mingw.
68974         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68976 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68978         * doc/c-strtod.texi: Mention a couple of restrictions.
68980 2009-01-20  Jim Meyering  <meyering@redhat.com>
68982         gettimeofday: move more declarations out of functions
68983         * lib/gettimeofday.c: Move extern declarations of tzset and
68984         gmtime out of containing functions.  Prompted by Bruno Haible.
68986 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68988         regex: do not depend on obsolete modules.
68989         * modules/regex: Remove memcmp and memmove.
68991 2009-01-19  Bruno Haible  <bruno@clisp.org>
68993         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68994         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68995         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68996         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68997         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68999 2009-01-19  Bruno Haible  <bruno@clisp.org>
69001         * tests/test-link.c: Include <errno.h>.
69002         (main): Exit with code 77 when a hard link cannot be created due to
69003         the file system.
69004         * tests/test-link.sh: Skip test when a hard link cannot be created due
69005         to the file system.
69006         Suggested by Eric Blake.
69008 2009-01-19  Martin Lambers  <marlam@marlam.de>
69010         * modules/link-tests: New file.
69011         * tests/test-link.sh: New file.
69012         * tests/test-link.c: New file.
69014 2009-01-19  Eric Blake  <ebb9@byu.net>
69016         doc: mention another function added in cygwin 1.7.0
69017         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
69018         Another new function in cygwin 1.7.
69020 2009-01-19  Bruno Haible  <bruno@clisp.org>
69022         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
69023         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
69024         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
69025         gl_BIGENDIAN, not AC_C_BIGENDIAN.
69026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
69027         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
69028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
69029         * m4/md4.m4 (gl_MD4): Likewise.
69030         * m4/md5.m4 (gl_MD5): Likewise.
69031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
69032         * m4/sha1.m4 (gl_SHA1): Likewise.
69033         * m4/sha256.m4 (gl_SHA256): Likewise.
69034         * m4/sha512.m4 (gl_SHA512): Likewise.
69036 2009-01-19  Bruno Haible  <bruno@clisp.org>
69038         * modules/uniname/uniname-tests (Depends-on): Add progname.
69039         * tests/uniname/test-uninames.c: Include progname.h.
69040         (main): Call set_program_name.
69042         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
69043         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
69044         (main): Call set_program_name.
69046         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
69047         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
69048         (main): Call set_program_name.
69050         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
69051         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
69052         (main): Call set_program_name.
69054         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
69055         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
69056         (main): Call set_program_name.
69058         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
69059         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
69060         (main): Call set_program_name.
69062         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
69063         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
69064         (main): Call set_program_name.
69066         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
69067         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
69068         (main): Call set_program_name.
69070         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
69071         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
69072         (main): Call set_program_name.
69074 2009-01-19  Eric Blake  <ebb9@byu.net>
69076         test-unistd: test previous patch
69077         * tests/test-unistd.c: Test *_FILENO macros.
69079         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
69080         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69081         Guarantee a definition.
69082         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
69083         * modules/unistd-safer (Depends-on): Add dependency on unistd.
69084         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
69085         * lib/dup-safer.c (STDERR_FILENO): Likewise.
69086         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69087         Likewise.
69088         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
69089         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
69090         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69091         Likewise.
69092         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
69093         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
69094         (STDERR_FILENO): Likewise.
69095         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
69096         (STDERR_FILENO): Likewise.
69097         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
69098         (STDERR_FILENO): Likewise.
69099         Reported by Elbert Pol.
69101 2009-01-19  Eric Blake  <ebb9@byu.net>
69103         doc: mention more functions added in cygwin 1.7.0
69104         * doc/posix-functions/abort.texi (abort): Update wording related
69105         to cygwin.
69106         * doc/posix-functions/daylight.texi (daylight): Likewise.
69107         * doc/posix-functions/optarg.texi (optarg): Likewise.
69108         * doc/posix-functions/optarg.texi (opterr): Likewise.
69109         * doc/posix-functions/optarg.texi (optind): Likewise.
69110         * doc/posix-functions/optarg.texi (optopt): Likewise.
69111         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
69112         worked in 1.5.x, and was withdrawn in 1.7.
69113         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
69114         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
69115         cygwin versions.
69116         * doc/posix-functions/perror.texi (perror): Likewise.
69117         * doc/posix-functions/printf.texi (printf): Likewise.
69118         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
69119         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
69120         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
69121         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
69122         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
69123         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
69124         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
69125         Likewise.
69126         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
69127         Likewise.
69128         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
69129         this function.
69130         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
69131         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
69132         Likewise.
69133         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
69134         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
69135         * doc/posix-functions/confstr.texi (confstr): Likewise.
69136         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
69137         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
69138         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
69139         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
69140         * doc/posix-functions/fputws.texi (fputws): Likewise.
69141         * doc/posix-functions/fwide.texi (fwide): Likewise.
69142         * doc/posix-functions/getwc.texi (getwc): Likewise.
69143         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
69144         * doc/posix-functions/putwc.texi (putwc): Likewise.
69145         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
69146         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
69147         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
69148         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
69149         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
69150         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
69151         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
69152         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
69153         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
69154         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
69155         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
69157 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
69159         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
69160         * lib/ioctl.c: Include <sys/ioctl.h>.
69162 2009-01-19  Simon Josefsson  <simon@josefsson.org>
69164         * modules/getdate-tests (Depends-on): Add progname.
69165         * tests/test-getdate.c: Use progname module, to avoid link errors
69166         on non-glibc systems.
69168 2009-01-18  Simon Josefsson  <simon@josefsson.org>
69170         * modules/filenamecat-tests (Depends-on): Add progname.
69171         * modules/fstrcmp-tests (Depends-on): Likewise.
69173         * tests/test-filenamecat.c: Use progname module, to avoid link
69174         errors on non-glibc systems.
69175         * tests/test-fstrcmp.c: Likewise.
69177 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
69179         gettimeofday: avoid warning: nested extern declaration of 'localtime'
69180         * lib/gettimeofday.c: Move extern declaration out of function.
69182 2009-01-18  Bruno Haible  <bruno@clisp.org>
69184         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
69185         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
69186         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
69188 2009-01-18  Bruno Haible  <bruno@clisp.org>
69190         * lib/strftime.c (MEMPCPY): Remove unused macro.
69191         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
69193 2009-01-18  Martin Lambers  <marlam@marlam.de>
69195         New module 'link'.
69196         * lib/unistd.in.h (link): New declaration.
69197         * lib/link.c: New file.
69198         * m4/link.m4: New file.
69199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
69200         HAVE_LINK.
69201         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
69202         * modules/link: New file.
69203         * doc/posix-functions/link.texi: Mention the new module.
69205 2009-01-18  Bruno Haible  <bruno@clisp.org>
69207         * tests/test-avltree_list.c (main): Call set_program_name.
69208         * tests/test-avltree_oset.c (main): Likewise.
69209         * tests/test-obstack-printf.c: Include progname.h.
69210         (main): Call set_program_name.
69211         * tests/test-quotearg.c: Include progname.h.
69212         (main): Call set_program_name.
69213         * tests/test-xmemdup0.c: Include progname.h.
69214         (main): Call set_program_name.
69216 2009-01-18  Bruno Haible  <bruno@clisp.org>
69218         New module 'alphasort'.
69219         * lib/dirent.in.h (alphasort): New declaration.
69220         * lib/alphasort.c: New file, from glibc with modifications.
69221         * m4/alphasort.m4: New file.
69222         * modules/alphasort: New file.
69223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
69224         HAVE_ALPHASORT.
69225         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
69226         HAVE_ALPHASORT.
69227         * doc/posix-functions/alphasort.texi: Mention the new module and the
69228         portability problems.
69230 2009-01-18  Bruno Haible  <bruno@clisp.org>
69232         New module 'scandir'.
69233         * lib/dirent.in.h (scandir): New declaration.
69234         * lib/scandir.c: New file, from glibc with modifications.
69235         * m4/scandir.m4: New file.
69236         * modules/scandir: New file.
69237         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
69238         HAVE_SCANDIR.
69239         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
69240         HAVE_SCANDIR.
69241         * doc/posix-functions/scandir.texi: Mention the new module and the
69242         portability problems.
69244 2009-01-17  Bruno Haible  <bruno@clisp.org>
69246         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
69247         Update documentation.
69248         (func_remove_suffix): Escape all dots in the suffix. Update
69249         documentation.
69250         (func_filter_filelist): Update documentation.
69251         Reported by Ralf Wildenhues.
69253 2009-01-17  Bruno Haible  <bruno@clisp.org>
69255         * modules/dprintf-posix-tests: New file.
69256         * tests/test-dprintf-posix.sh: New file.
69257         * tests/test-dprintf-posix.c: New file.
69259         New modules 'dprintf', 'dprintf-posix'.
69260         * lib/stdio.in.h (dprintf): New declaration.
69261         * lib/dprintf.c: New file.
69262         * m4/dprintf.m4: New file.
69263         * m4/dprintf-posix.m4: New file.
69264         * modules/dprintf: New file.
69265         * modules/dprintf-posix: New file.
69266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
69267         HAVE_DPRINTF, REPLACE_DPRINTF.
69268         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
69269         HAVE_DPRINTF, REPLACE_DPRINTF.
69270         * doc/posix-functions/dprintf.texi: Mention the new modules.
69272 2009-01-17  Bruno Haible  <bruno@clisp.org>
69274         * modules/vdprintf-posix-tests: New file.
69275         * tests/test-vdprintf-posix.sh: New file.
69276         * tests/test-vdprintf-posix.c: New file.
69278         New modules 'vdprintf', 'vdprintf-posix'.
69279         * lib/stdio.in.h (vdprintf): New declaration.
69280         * lib/vdprintf.c: New file.
69281         * m4/vdprintf.m4: New file.
69282         * m4/vdprintf-posix.m4: New file.
69283         * modules/vdprintf: New file.
69284         * modules/vdprintf-posix: New file.
69285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
69286         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69287         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
69288         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69289         * doc/posix-functions/vdprintf.texi: Mention the new modules.
69291 2009-01-17  Bruno Haible  <bruno@clisp.org>
69293         Fix replacement of fopen on mingw.
69294         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
69295         mingw.
69297 2009-01-17  Bruno Haible  <bruno@clisp.org>
69299         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
69300         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
69302 2009-01-17  Bruno Haible  <bruno@clisp.org>
69304         Avoid test-fflush2.sh failure on mingw.
69305         * tests/test-fflush2.c: Include binary-io.h.
69306         (main): Put standard input into binary mode.
69307         * modules/fflush-tests (Depends-on): Add binary-io.
69309 2009-01-17  Bruno Haible  <bruno@clisp.org>
69311         * lib/wchar.in.h: In another particular situation, include only the
69312         system's <wchar.h> file.
69313         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
69314         Reported by Albert Chin-A-Young <china@thewrittenword.com>
69315         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
69317 2009-01-17  Bruno Haible  <bruno@clisp.org>
69319         Support for stripping executables in --enable-relocatable.
69320         * build-aux/install-reloc: Expect one more argument, or an environment
69321         variable RELOC_STRIP_PROG. If set, strip the destination program and
69322         its wrapper.
69323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
69324         RELOC_STRIP_PROG.
69325         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
69326         to set RELOCATABLE_STRIP.
69327         * NEWS: Mention the new Makefile requirement.
69329 2009-01-17  Bruno Haible  <bruno@clisp.org>
69331         * build-aux/install-reloc: Remove debugging information left over by
69332         C compiler on MacOS X.
69334 2009-01-17  Bruno Haible  <bruno@clisp.org>
69336         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
69337         * lib/progreloc.c (find_executable): Fix type of pointer passed to
69338         _NSGetExecutablePath.
69340 2009-01-16  Jim Meyering  <meyering@redhat.com>
69342         strerror: avoid warnings about discarding "const"
69343         * lib/strerror.c (rpl_strerror): Instead of returning a const
69344         string from each and every "case", use a variable, and add a single
69345         cast after the switch.
69347 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
69349         * lib/arpa_inet.in.h: Add extern "C" block for C++.
69351 2009-01-16  Bruno Haible  <bruno@clisp.org>
69353         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
69354         array initializer syntax that also works in C++ mode.
69355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69357 2009-01-16  Jim Meyering  <meyering@redhat.com>
69359         poll: suppress a warning
69360         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
69361         to ignore "...unsigned expression < 0 is always false" warnings.
69363 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
69365         poll: remove declarations of unused variables
69366         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
69367         sockbuf and optlen.
69369 2009-01-15  Bruno Haible  <bruno@clisp.org>
69371         Make fflush-after-ungetc POSIX compliant on BSD systems.
69372         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
69373         (clear_ungetc_buffer): Implement also for other systems.
69374         (rpl_fflush): On glibc systems, invoke
69375         clear_ungetc_buffer_preserving_position. Otherwise, invoke
69376         clear_ungetc_buffer after fetching the stream's position, not before.
69378 2009-01-15  Bruno Haible  <bruno@clisp.org>
69380         Make fflush-after-ungetc POSIX compliant on glibc systems.
69381         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
69382         after ungetc.
69383         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
69384         (rpl_fflush): On glibc systems, simply call the system's fflush
69385         function after clearing the ungetc buffer.
69386         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
69387         Instead, lseek only to the end of file, then use the system's fseeko
69388         for the rest. On glibc systems, reset the EOF indicator bit.
69390 2009-01-15  Jim Meyering  <meyering@redhat.com>
69392         openmp.m4: revert quote-adding change, for portability to older autoconf
69393         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
69394         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
69395         Simon Josefsson noticed the problem when using autoconf-2.61.
69397 2009-01-15  Bruno Haible  <bruno@clisp.org>
69399         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
69400         * tests/test-fflush2.c (ASSERT): Always fail.
69401         (main): Add two tests for fflush() after ungetc(), taking into account
69402         the Austin Group's clarification.
69403         Suggested by Eric Blake.
69405 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
69407         mktime.m4: remove K&R-style function prototypes
69408         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
69409         for the Sun C++ compiler.
69411 2009-01-14  Bruno Haible  <bruno@clisp.org>
69413         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
69414         while including <wchar.h>.
69415         * lib/wchar.in.h: In two particular situations on HP-UX, include only
69416         the system's <wchar.h> file.
69417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69419 2009-01-14  Bruno Haible  <bruno@clisp.org>
69421         * m4/csharp.m4: Don't mention gettext on the serial number line.
69422         * m4/csharpexec.m4: Likewise.
69423         * m4/eaccess.m4: Likewise.
69424         * m4/javaexec.m4: Likewise.
69425         * m4/sig_atomic_t.m4: Likewise.
69426         * m4/tmpdir.m4: Likewise.
69427         * m4/intldir.m4: Bump gettext version.
69428         * m4/lib-ld.m4: Likewise.
69430 2009-01-14  Bruno Haible  <bruno@clisp.org>
69432         * lib/progname.c (set_program_name): Add more comments.
69433         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
69435 2009-01-14  Simon Josefsson  <simon@josefsson.org>
69437         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
69438         were sys/stat.h does not define it.
69440 2009-01-14  Jim Meyering  <meyering@redhat.com>
69442         many *.m4 files: improve m4 quoting
69443         99% of this change was performed by running the following commands:
69444         git ls-files | grep '\.m4$' | xargs perl -pi \
69445           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
69446           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
69449         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
69450         The remainder were to add Copyright dates, increment serial numbers,
69451         undo some changes in comments, exclude m4/intl.m4, and add quotes
69452         around the "1" in ",1" where the unusual spacing prohibited the
69453         above regexps from doing the job.  For more details, see
69454         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
69455         * m4/acl.m4: Modified.
69456         * m4/afs.m4: Likewise.
69457         * m4/alloca.m4: Likewise.
69458         * m4/argp.m4: Likewise.
69459         * m4/argz.m4: Likewise.
69460         * m4/atexit.m4: Likewise.
69461         * m4/bison-i18n.m4: Likewise.
69462         * m4/bison.m4: Likewise.
69463         * m4/byteswap.m4: Likewise.
69464         * m4/c-stack.m4: Likewise.
69465         * m4/c-strtod.m4: Likewise.
69466         * m4/calloc.m4: Likewise.
69467         * m4/canonicalize-lgpl.m4: Likewise.
69468         * m4/chown.m4: Likewise.
69469         * m4/clock_time.m4: Likewise.
69470         * m4/codeset.m4: Likewise.
69471         * m4/copy-file.m4: Likewise.
69472         * m4/csharp.m4: Likewise.
69473         * m4/csharpcomp.m4: Likewise.
69474         * m4/csharpexec.m4: Likewise.
69475         * m4/d-ino.m4: Likewise.
69476         * m4/d-type.m4: Likewise.
69477         * m4/dirfd.m4: Likewise.
69478         * m4/double-slash-root.m4: Likewise.
69479         * m4/eaccess.m4: Likewise.
69480         * m4/eealloc.m4: Likewise.
69481         * m4/environ.m4: Likewise.
69482         * m4/errno_h.m4: Likewise.
69483         * m4/euidaccess.m4: Likewise.
69484         * m4/execute.m4: Likewise.
69485         * m4/fatal-signal.m4: Likewise.
69486         * m4/fchdir.m4: Likewise.
69487         * m4/fcntl_h.m4: Likewise.
69488         * m4/fileblocks.m4: Likewise.
69489         * m4/filenamecat.m4: Likewise.
69490         * m4/findprog.m4: Likewise.
69491         * m4/flexmember.m4: Likewise.
69492         * m4/fnmatch.m4: Likewise.
69493         * m4/fopen.m4: Likewise.
69494         * m4/fpending.m4: Likewise.
69495         * m4/fprintf-posix.m4: Likewise.
69496         * m4/free.m4: Likewise.
69497         * m4/frexp.m4: Likewise.
69498         * m4/frexpl.m4: Likewise.
69499         * m4/fsusage.m4: Likewise.
69500         * m4/ftruncate.m4: Likewise.
69501         * m4/gc-camellia.m4: Likewise.
69502         * m4/gc-random.m4: Likewise.
69503         * m4/gc.m4: Likewise.
69504         * m4/getaddrinfo.m4: Likewise.
69505         * m4/getcwd-abort-bug.m4: Likewise.
69506         * m4/getcwd-path-max.m4: Likewise.
69507         * m4/getdate.m4: Likewise.
69508         * m4/getdomainname.m4: Likewise.
69509         * m4/getgroups.m4: Likewise.
69510         * m4/gethostname.m4: Likewise.
69511         * m4/gethrxtime.m4: Likewise.
69512         * m4/getline.m4: Likewise.
69513         * m4/getloadavg.m4: Likewise.
69514         * m4/getndelim2.m4: Likewise.
69515         * m4/getpass.m4: Likewise.
69516         * m4/gettext.m4: Likewise.
69517         * m4/gettime.m4: Likewise.
69518         * m4/gettimeofday.m4: Likewise.
69519         * m4/gnulib-common.m4: Likewise.
69520         * m4/group-member.m4: Likewise.
69521         * m4/host-os.m4: Likewise.
69522         * m4/iconv.m4: Likewise.
69523         * m4/iconv_open.m4: Likewise.
69524         * m4/inet_ntop.m4: Likewise.
69525         * m4/inet_pton.m4: Likewise.
69526         * m4/inline.m4: Likewise.
69527         * m4/intldir.m4: Likewise.
69528         * m4/intlmacosx.m4: Likewise.
69529         * m4/intmax.m4: Likewise.
69530         * m4/intmax_t.m4: Likewise.
69531         * m4/inttypes.m4: Likewise.
69532         * m4/inttypes_h.m4: Likewise.
69533         * m4/inttypes-pri.m4: Likewise.
69534         * m4/isapipe.m4: Likewise.
69535         * m4/isnand.m4: Likewise.
69536         * m4/isnanf.m4: Likewise.
69537         * m4/isnanl.m4: Likewise.
69538         * m4/javacomp.m4: Likewise.
69539         * m4/javaexec.m4: Likewise.
69540         * m4/jm-winsz1.m4: Likewise.
69541         * m4/jm-winsz2.m4: Likewise.
69542         * m4/lchown.m4: Likewise.
69543         * m4/lcmessage.m4: Likewise.
69544         * m4/ldexpl.m4: Likewise.
69545         * m4/lib-ld.m4: Likewise.
69546         * m4/lib-link.m4: Likewise.
69547         * m4/libsigsegv.m4: Likewise.
69548         * m4/link-follow.m4: Likewise.
69549         * m4/localcharset.m4: Likewise.
69550         * m4/locale-fr.m4: Likewise.
69551         * m4/locale-ja.m4: Likewise.
69552         * m4/locale-tr.m4: Likewise.
69553         * m4/locale-zh.m4: Likewise.
69554         * m4/lock.m4: Likewise.
69555         * m4/longlong.m4: Likewise.
69556         * m4/ls-mntd-fs.m4: Likewise.
69557         * m4/lstat.m4: Likewise.
69558         * m4/malloc.m4: Likewise.
69559         * m4/mathl.m4: Likewise.
69560         * m4/mbrtowc.m4: Likewise.
69561         * m4/mbstate_t.m4: Likewise.
69562         * m4/mbswidth.m4: Likewise.
69563         * m4/memchr.m4: Likewise.
69564         * m4/memcmp.m4: Likewise.
69565         * m4/memcpy.m4: Likewise.
69566         * m4/memmem.m4: Likewise.
69567         * m4/memmove.m4: Likewise.
69568         * m4/mempcpy.m4: Likewise.
69569         * m4/memrchr.m4: Likewise.
69570         * m4/memset.m4: Likewise.
69571         * m4/minmax.m4: Likewise.
69572         * m4/mkdir-slash.m4: Likewise.
69573         * m4/mkdtemp.m4: Likewise.
69574         * m4/mktime.m4: Likewise.
69575         * m4/mmap-anon.m4: Likewise.
69576         * m4/mountlist.m4: Likewise.
69577         * m4/nanosleep.m4: Likewise.
69578         * m4/nls.m4: Likewise.
69579         * m4/nocrash.m4: Likewise.
69580         * m4/open.m4: Likewise.
69581         * m4/openat.m4: Likewise.
69582         * m4/openmp.m4: Likewise.
69583         * m4/pathmax.m4: Likewise.
69584         * m4/perl.m4: Likewise.
69585         * m4/physmem.m4: Likewise.
69586         * m4/pipe.m4: Likewise.
69587         * m4/po.m4: Likewise.
69588         * m4/poll.m4: Likewise.
69589         * m4/posixtm.m4: Likewise.
69590         * m4/posixver.m4: Likewise.
69591         * m4/printf-frexp.m4: Likewise.
69592         * m4/printf-frexpl.m4: Likewise.
69593         * m4/printf-posix.m4: Likewise.
69594         * m4/printf-posix-rpl.m4: Likewise.
69595         * m4/printf.m4: Likewise.
69596         * m4/progtest.m4: Likewise.
69597         * m4/putenv.m4: Likewise.
69598         * m4/readline.m4: Likewise.
69599         * m4/readlink.m4: Likewise.
69600         * m4/readutmp.m4: Likewise.
69601         * m4/realloc.m4: Likewise.
69602         * m4/regex.m4: Likewise.
69603         * m4/relocatable.m4: Likewise.
69604         * m4/relocatable-lib.m4: Likewise.
69605         * m4/rename-dest-slash.m4: Likewise.
69606         * m4/rename.m4: Likewise.
69607         * m4/rmdir-errno.m4: Likewise.
69608         * m4/rmdir.m4: Likewise.
69609         * m4/roundf.m4: Likewise.
69610         * m4/roundl.m4: Likewise.
69611         * m4/rpmatch.m4: Likewise.
69612         * m4/save-cwd.m4: Likewise.
69613         * m4/selinux-selinux-h.m4: Likewise.
69614         * m4/setenv.m4: Likewise.
69615         * m4/settime.m4: Likewise.
69616         * m4/sig2str.m4: Likewise.
69617         * m4/sig_atomic_t.m4: Likewise.
69618         * m4/signalblocking.m4: Likewise.
69619         * m4/signbit.m4: Likewise.
69620         * m4/sigpipe.m4: Likewise.
69621         * m4/sockets.m4: Likewise.
69622         * m4/sockpfaf.m4: Likewise.
69623         * m4/st_dm_mode.m4: Likewise.
69624         * m4/stat-time.m4: Likewise.
69625         * m4/stdbool.m4: Likewise.
69626         * m4/stdint.m4: Likewise.
69627         * m4/stdint_h.m4: Likewise.
69628         * m4/stpcpy.m4: Likewise.
69629         * m4/stpncpy.m4: Likewise.
69630         * m4/strcase.m4: Likewise.
69631         * m4/strchrnul.m4: Likewise.
69632         * m4/strcspn.m4: Likewise.
69633         * m4/strdup.m4: Likewise.
69634         * m4/strftime.m4: Likewise.
69635         * m4/strndup.m4: Likewise.
69636         * m4/strnlen.m4: Likewise.
69637         * m4/strpbrk.m4: Likewise.
69638         * m4/strptime.m4: Likewise.
69639         * m4/strsep.m4: Likewise.
69640         * m4/strtod.m4: Likewise.
69641         * m4/strtoimax.m4: Likewise.
69642         * m4/strtok_r.m4: Likewise.
69643         * m4/strtol.m4: Likewise.
69644         * m4/strtoll.m4: Likewise.
69645         * m4/strtoul.m4: Likewise.
69646         * m4/strtoull.m4: Likewise.
69647         * m4/strtoumax.m4: Likewise.
69648         * m4/strverscmp.m4: Likewise.
69649         * m4/threadlib.m4: Likewise.
69650         * m4/timegm.m4: Likewise.
69651         * m4/tm_gmtoff.m4: Likewise.
69652         * m4/tmpdir.m4: Likewise.
69653         * m4/tmpfile.m4: Likewise.
69654         * m4/tzset.m4: Likewise.
69655         * m4/uintmax_t.m4: Likewise.
69656         * m4/unlinkdir.m4: Likewise.
69657         * m4/unlocked-io.m4: Likewise.
69658         * m4/uptime.m4: Likewise.
69659         * m4/userspec.m4: Likewise.
69660         * m4/utimbuf.m4: Likewise.
69661         * m4/utime.m4: Likewise.
69662         * m4/utimes-null.m4: Likewise.
69663         * m4/utimes.m4: Likewise.
69664         * m4/vararrays.m4: Likewise.
69665         * m4/vasnprintf.m4: Likewise.
69666         * m4/vfprintf-posix.m4: Likewise.
69667         * m4/vprintf-posix.m4: Likewise.
69668         * m4/wait-process.m4: Likewise.
69669         * m4/wchar_t.m4: Likewise.
69670         * m4/wint_t.m4: Likewise.
69671         * m4/write-any-file.m4: Likewise.
69672         * m4/yield.m4: Likewise.
69674 2009-01-13  Bruno Haible  <bruno@clisp.org>
69676         Avoid test-copy-file.sh failures when ACL support insufficient.
69677         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
69678         TESTS_ENVIRONMENT.
69679         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
69680         Reported by Jim Meyering.
69682 2009-01-13  Bruno Haible  <bruno@clisp.org>
69684         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
69685         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
69686         * modules/unistdio/u8-printf-parse (Files): Likewise.
69687         * modules/unistdio/u32-printf-parse (Files): Likewise.
69688         * modules/unistdio/ulc-printf-parse (Files): Likewise.
69690 2009-01-13  Simon Josefsson  <simon@josefsson.org>
69692         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
69693         and m4/inttypes_h.m4 too.
69695 2009-01-12  Eric Blake  <ebb9@byu.net>
69697         tests: IRIX 6.2 cc can't compile -0.0 into .data
69698         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
69699         rather than at compile-time.
69700         * tests/test-floorl.c (minus_zero): Likewise.
69701         * tests/test-frexpl.c (minus_zero): Likewise.
69702         * tests/test-isnan.c (minus_zerol): Likewise.
69703         * tests/test-isnanl.h (minus_zero): Likewise.
69704         * tests/test-ldexpl.c (minus_zero): Likewise.
69705         * tests/test-roundl.c (minus_zero): Likewise.
69706         * tests/test-signbit.c (minus_zerol): Likewise.
69707         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69708         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69709         * tests/test-truncl.c (minus_zero): Likewise.
69710         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69711         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69712         Reported by Tom G. Christensen and Nelson H. F. Beebe.
69714 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69716         regex: fix glibc bug 9697
69717         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
69718         handling.
69720 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69722         regex: fix glibc bug 697
69723         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
69724         being NULL also if there are no backreferences.
69726 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69728         regex: merge glibc changes
69729         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
69730         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
69731         re_string_skip_chars, re_string_reconstruct): Likewise.
69732         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
69734 2009-01-07  Jim Meyering  <meyering@redhat.com>
69736         poll: filter through cppi
69737         * lib/poll.c: Indent cpp directives to reflect nesting.
69739 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
69741         poll: don't return uninitialized
69742         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
69744 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
69746         avoid compile failure on AIX 6.1
69747         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
69748         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
69750 2009-01-04  Jim Meyering  <meyering@redhat.com>
69752         remove duplicate inclusion of <stdio.h>
69753         * tests/test-fprintf-posix.c: Likewise.
69754         * tests/test-printf-posix.c: Likewise.
69755         * tests/test-snprintf-posix.c: Likewise.
69756         * tests/test-sprintf-posix.c: Likewise.
69757         * tests/test-vasprintf-posix.c: Likewise.
69758         * tests/test-vfprintf-posix.c: Likewise.
69759         * tests/test-vprintf-posix.c: Likewise.
69760         * tests/test-vsnprintf-posix.c: Likewise.
69761         * tests/test-vsprintf-posix.c: Likewise.
69763 2009-01-03  Jim Meyering  <meyering@redhat.com>
69765         gnulib-tool: fix sed-based filtering
69766         * gnulib-tool (func_filter_filelist): Remove extra backslash
69767         in sed_fff_filter definition.
69769 2009-01-02  Jim Meyering  <meyering@redhat.com>
69771         strftime: avoid compilation failure on Solaris 2.6
69772         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
69773         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
69774         Don't #define mbrlen or mbsinit, since now they're guaranteed to
69775         be available.  Reported by Tom G. Christensen.  Details in
69776         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
69778 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69779             Bruno Haible  <bruno@clisp.org>
69781         Speed up gnulib-tool by doing more string processing through shell
69782         built-ins.
69783         * gnulib-tool (fast_func_append): New variable.
69784         (func_remove_prefix, func_remove_suffix): New functions.
69785         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
69786         (func_filter_filelist): New function.
69787         (func_get_dependencies): Use func_remove_suffix instead of sed.
69788         (func_get_automake_snippet): Use func_filter_filelist instead of a
69789         subshell and sed invocation.
69791 2009-01-01  Bruno Haible  <bruno@clisp.org>
69793         Fix a security bug.
69794         * gnulib-tool (func_import, import, update): Don't allow the characters
69795         '"', '$', '`', '\' in macro arguments that become part of commands that
69796         are evaluated.
69798 2009-01-01  Bruno Haible  <bruno@clisp.org>
69800         * gnulib-tool (func_reset_sigpipe): Add more comments.
69802 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69804         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
69805         func_emit_tests_Makefile_am, func_import): Abort loops early if we
69806         already know the answer.
69808 2009-01-01  Jim Meyering  <meyering@redhat.com>
69810         * lib/version-etc.c (version_etc_va): Update copyright year.
69812 2008-12-30  Bruno Haible  <bruno@clisp.org>
69814         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
69815         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
69816         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
69818 2008-12-29  Eric Blake  <ebb9@byu.net>
69820         multiarch: avoid autoconf AC_REQUIRE bug
69821         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
69822         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
69823         2.63 and older.
69824         Reported by Bruno Haible, and analyzed in
69825         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
69827 2008-12-29  Bruno Haible  <bruno@clisp.org>
69829         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
69830         files in subdirectories correctly.
69831         Reported by Ralf Wildenhues.
69833 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69835         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
69836         rather than 'join FILE -', for Solaris join.
69838 2008-12-29  Bruno Haible  <bruno@clisp.org>
69840         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
69841         quoting.
69842         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69843         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
69844         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
69845         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
69846         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
69847         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
69848         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
69849         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69850         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69851         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69852         * m4/nls.m4 (AM_NLS): Likewise.
69853         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69854         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69856         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69857         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69858         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69859         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69860         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69861         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69863         * m4/xsize.m4 (gl_XSIZE): Likewise.
69864         Suggested by Jim Meyering.
69866 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69868         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69869         * lib/parse-duration.c: use a switch instead of cascading if's.
69871 2008-12-29  Eric Blake  <ebb9@byu.net>
69873         wchar.h: supply WEOF on Irix 5.3
69874         * lib/wchar.in.h (wint_t): Also supply WEOF.
69875         * lib/wctype.in.h (wint_t): Likewise.
69876         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69877         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69878         Reported by Tom G. Christensen.
69880 2008-12-26  Bruno Haible  <bruno@clisp.org>
69882         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69883         i486, i586, i686.
69885 2008-12-26  Bruno Haible  <bruno@clisp.org>
69887         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69889 2008-12-26  Bruno Haible  <bruno@clisp.org>
69891         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69892         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69893         not __STDC_CONSTANT_MACROS.
69894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69896 2008-12-25  Bruno Haible  <bruno@clisp.org>
69898         Add support for universal builds to vasnprintf.
69899         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69900         universal builds, guess no.
69901         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69902         * modules/vasprintf-posix (Depends-on): Likewise.
69903         * modules/fprintf-posix (Depends-on): Likewise.
69904         * modules/vfprintf-posix (Depends-on): Likewise.
69905         * modules/snprintf-posix (Depends-on): Likewise.
69906         * modules/vsnprintf-posix (Depends-on): Likewise.
69907         * modules/sprintf-posix (Depends-on): Likewise.
69908         * modules/vsprintf-posix (Depends-on): Likewise.
69909         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69910         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69912         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69915         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69917         Add support for universal builds to <inttypes.h>.
69918         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69919         _SCNu64_PREFIX): In Apple
69920         universal builds, define directly, using _LP64.
69921         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69922         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69923         * modules/inttypes (Depends-on): Add multiarch.
69924         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69926         Add support for universal builds to <stdint.h>.
69927         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69928         universal builds, define directly, using _LP64.
69929         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69930         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69931         and size_t.
69932         * modules/stdint (Depends-on): Add multiarch.
69933         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69935         New module 'multiarch'.
69936         * modules/multiarch: New file.
69937         * m4/multiarch.m4: New file.
69939 2008-12-25  Bruno Haible  <bruno@clisp.org>
69941         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69943 2008-12-25  Bruno Haible  <bruno@clisp.org>
69945         * modules/btowc (License): Relicense under LGPLv2+.
69946         * modules/mbsinit (License): Likewise.
69947         * modules/mbrtowc (License): Likewise.
69948         * modules/wcrtomb (License): Likewise.
69949         * modules/streq (License): Likewise.
69950         Reported by David Lutterkort <lutter@redhat.com>.
69952 2008-12-23  Bruno Haible  <bruno@clisp.org>
69954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69956 2008-12-23  Bruno Haible  <bruno@clisp.org>
69958         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69960         GETADDRINFO_LIB, not in LIBS.
69961         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69962         * modules/canon-host (Link): Likewise.
69963         * NEWS: Mention the change.
69964         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69965         GETADDRINFO_LIB.
69967 2008-12-22  Bruno Haible  <bruno@clisp.org>
69969         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69970         * doc/posix-functions/iswalpha_l.texi: Likewise.
69971         * doc/posix-functions/iswblank_l.texi: Likewise.
69972         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69973         * doc/posix-functions/iswctype_l.texi: Likewise.
69974         * doc/posix-functions/iswdigit_l.texi: Likewise.
69975         * doc/posix-functions/iswgraph_l.texi: Likewise.
69976         * doc/posix-functions/iswlower_l.texi: Likewise.
69977         * doc/posix-functions/iswprint_l.texi: Likewise.
69978         * doc/posix-functions/iswpunct_l.texi: Likewise.
69979         * doc/posix-functions/iswspace_l.texi: Likewise.
69980         * doc/posix-functions/iswupper_l.texi: Likewise.
69981         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69982         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69983         * doc/posix-functions/open_wmemstream.texi: Likewise.
69984         * doc/posix-functions/swscanf.texi: Likewise.
69985         * doc/posix-functions/towctrans_l.texi: Likewise.
69986         * doc/posix-functions/towlower.texi: Likewise.
69987         * doc/posix-functions/towlower_l.texi: Likewise.
69988         * doc/posix-functions/towupper.texi: Likewise.
69989         * doc/posix-functions/towupper_l.texi: Likewise.
69990         * doc/posix-functions/vfwprintf.texi: Likewise.
69991         * doc/posix-functions/vfwscanf.texi: Likewise.
69992         * doc/posix-functions/vswscanf.texi: Likewise.
69993         * doc/posix-functions/vwprintf.texi: Likewise.
69994         * doc/posix-functions/vwscanf.texi: Likewise.
69995         * doc/posix-functions/wcpcpy.texi: Likewise.
69996         * doc/posix-functions/wcpncpy.texi: Likewise.
69997         * doc/posix-functions/wcscasecmp.texi: Likewise.
69998         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69999         * doc/posix-functions/wcscoll_l.texi: Likewise.
70000         * doc/posix-functions/wcsdup.texi: Likewise.
70001         * doc/posix-functions/wcsncasecmp.texi: Likewise.
70002         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
70003         * doc/posix-functions/wcsnlen.texi: Likewise.
70004         * doc/posix-functions/wcsnrtombs.texi: Likewise.
70005         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
70006         * doc/posix-functions/wctrans_l.texi: Likewise.
70007         * doc/posix-functions/wctype_l.texi: Likewise.
70008         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
70009         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
70010         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
70011         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
70012         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
70013         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
70014         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
70015         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
70016         * doc/glibc-functions/wcschrnul.texi: Likewise.
70017         * doc/glibc-functions/wcsftime_l.texi: Likewise.
70018         * doc/glibc-functions/wcstod_l.texi: Likewise.
70019         * doc/glibc-functions/wcstof_l.texi: Likewise.
70020         * doc/glibc-functions/wcstol_l.texi: Likewise.
70021         * doc/glibc-functions/wcstold_l.texi: Likewise.
70022         * doc/glibc-functions/wcstoll_l.texi: Likewise.
70023         * doc/glibc-functions/wcstoq.texi: Likewise.
70024         * doc/glibc-functions/wcstoul_l.texi: Likewise.
70025         * doc/glibc-functions/wcstoull_l.texi: Likewise.
70026         * doc/glibc-functions/wcstouq.texi: Likewise.
70027         * doc/glibc-functions/wmempcpy.texi: Likewise.
70029 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
70030             Eric Blake  <ebb9@byu.net>
70031             Paolo Bonzini  <bonzini@gnu.org>
70032             Bruno Haible  <bruno@clisp.org>
70034         Make c-stack work on Haiku.
70035         * lib/c-stack.c (SA_ONSTACK): Define fallback.
70036         (c_stack_action): Use SA_ONSTACK flag.
70038 2008-12-22  Bruno Haible  <bruno@clisp.org>
70040         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
70042 2008-12-22  Bruno Haible  <bruno@clisp.org>
70044         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
70045         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
70046         being overridden.
70047         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
70048         New macros.
70049         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
70050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
70051         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
70052         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
70054 2008-12-22  Bruno Haible  <bruno@clisp.org>
70056         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
70057         from test code.
70059 2008-12-22  Eric Blake  <ebb9@byu.net>
70061         Avoid gcc warnings on cygwin.
70062         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
70063         Avoid unused variable.
70064         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
70065         Likewise.
70067 2008-12-22  Bruno Haible  <bruno@clisp.org>
70069         Remove HAVE_MBRTOWC conditionals.
70070         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
70071         (mbscasecmp): Assume mbrtowc function.
70072         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
70073         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
70074         * lib/mbschr.c: Include mbuiter.h unconditionally.
70075         (mbschr): Assume mbrtowc function.
70076         * lib/mbscspn.c: Include mbuiter.h unconditionally.
70077         (mbscspn): Assume mbrtowc function.
70078         * lib/mbslen.c: Include mbuiter.h unconditionally.
70079         (mbslen): Assume mbrtowc function.
70080         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
70081         (mbsncasecmp): Assume mbrtowc function.
70082         * lib/mbsnlen.c: Include mbiter.h unconditionally.
70083         (mbsnlen): Assume mbrtowc function.
70084         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
70085         (mbspbrk): Assume mbrtowc function.
70086         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
70087         (mbspcasecmp): Assume mbrtowc function.
70088         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
70089         (mbsrchr): Assume mbrtowc function.
70090         * lib/mbssep.c: Include mbuiter.h unconditionally.
70091         (mbssep): Assume mbrtowc function.
70092         * lib/mbsspn.c: Include mbuiter.h unconditionally.
70093         (mbsspn): Assume mbrtowc function.
70094         * lib/mbsstr.c: Include mbuiter.h unconditionally.
70095         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
70096         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
70097         (mbstok_r): Assume mbrtowc function.
70098         * lib/propername.c: Include mbuiter.h unconditionally.
70099         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
70100         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
70101         (trim2): Assume mbrtowc function.
70102         * lib/mbswidth.c (mbsinit): Remove fallback definition.
70103         (mbsnwidth): Assume mbrtowc function.
70104         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
70105         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
70106         fallback definitions.
70107         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
70109 2008-12-22  Bruno Haible  <bruno@clisp.org>
70111         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
70113 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
70115         * modules/regex: Request emulations for the mb*/wc* functions we need.
70116         * m4/regex.m4: Don't look for those functions here.
70117         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
70119 2008-12-22  Bruno Haible  <bruno@clisp.org>
70121         * modules/fnmatch (Depends-on): Remove duplicated dependency.
70123 2008-12-21  Bruno Haible  <bruno@clisp.org>
70125         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
70126         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
70127         (Include): Remove conditionalization.
70128         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
70129         (Include): Remove conditionalization.
70130         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
70131         (Include): Remove conditionalization.
70132         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
70133         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70134         * NEWS: Mention the change.
70135         Reported by Alan Hourihane <alanh@fairlite.co.uk>
70136         via Sergey Poznyakoff <gray@gnu.org.ua>.
70138 2008-12-21  Bruno Haible  <bruno@clisp.org>
70140         * MODULES.html.sh (Extended multibyte and wide character utilities
70141         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
70142         wcrtomb, wcsrtombs.
70143         (Support for systems lacking POSIX:2008): Add accept, bind, close,
70144         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
70145         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
70146         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
70148 2008-12-21  Bruno Haible  <bruno@clisp.org>
70150         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
70152 2008-12-21  Bruno Haible  <bruno@clisp.org>
70154         * modules/wcsnrtombs-tests: New file.
70155         * tests/test-wcsnrtombs1.sh: New file.
70156         * tests/test-wcsnrtombs2.sh: New file.
70157         * tests/test-wcsnrtombs3.sh: New file.
70158         * tests/test-wcsnrtombs4.sh: New file.
70159         * tests/test-wcsnrtombs.c: New file.
70161         New module 'wcsnrtombs'.
70162         * lib/wchar.in.h (wcsnrtombs): New declaration.
70163         * lib/wcsnrtombs.c: New file.
70164         * lib/wcsrtombs-state.c: New file.
70165         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
70166         (internal_state): Remove variable.
70167         * m4/wcsnrtombs.m4: New file.
70168         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
70169         compilation units.
70170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
70171         HAVE_WCSNRTOMBS.
70172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
70173         HAVE_WCSNRTOMBS.
70174         * modules/wcsnrtombs: New file.
70175         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
70176         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
70178 2008-12-21  Bruno Haible  <bruno@clisp.org>
70180         * modules/wcsrtombs-tests: New file.
70181         * tests/test-wcsrtombs1.sh: New file.
70182         * tests/test-wcsrtombs2.sh: New file.
70183         * tests/test-wcsrtombs3.sh: New file.
70184         * tests/test-wcsrtombs4.sh: New file.
70185         * tests/test-wcsrtombs.c: New file.
70187         New module 'wcsrtombs'.
70188         * lib/wchar.in.h (wcsrtombs): New declaration.
70189         * lib/wcsrtombs.c: New file.
70190         * m4/wcsrtombs.m4: New file.
70191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
70192         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
70194         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70195         * modules/wcsrtombs: New file.
70196         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
70197         bugs.
70199 2008-12-21  Bruno Haible  <bruno@clisp.org>
70201         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
70202         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
70203         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
70204         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
70205         if not correct.
70206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
70207         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
70208         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70209         m4/locale-zh.m4, m4/codeset.m4.
70210         * doc/posix-functions/wcrtomb.texi: Document the bug.
70212 2008-12-21  Bruno Haible  <bruno@clisp.org>
70214         Work around a btowc() bug on IRIX 6.5.
70215         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
70216         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
70217         REPLACE_WTOBC if not.
70218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
70219         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
70220         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
70222 2008-12-21  Bruno Haible  <bruno@clisp.org>
70224         * modules/wcrtomb-tests: New file.
70225         * tests/test-wcrtomb.sh: New file.
70226         * tests/test-wcrtomb.c: New file.
70228         New module 'wcrtomb'.
70229         * lib/wchar.in.h (wcrtomb): New declaration.
70230         * lib/wcrtomb.c: New file.
70231         * m4/wcrtomb.m4: New file.
70232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
70233         HAVE_WCRTOMB.
70234         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
70235         HAVE_WCRTOMB.
70236         * modules/wcrtomb: New file.
70237         * doc/posix-functions/wcrtomb.texi: Mention the new module.
70239 2008-12-21  Bruno Haible  <bruno@clisp.org>
70241         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
70242         * modules/mbsrtowcs (Files): Likewise.
70243         * modules/wctob (Files): Likewise.
70244         * modules/c-strcase-tests (Files): Likewise.
70245         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
70246         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
70247         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
70248         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
70249         * modules/vasnprintf-posix-tests (Files): Likewise.
70251 2008-12-21  William Pursell  <bill.pursell@gmail.com>
70253         gitlog-to-changelog: pass all command-line arguments to git-log
70254         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
70255         it is sometimes convenient to filter the commits in various ways.
70256         gitlog-to-changelog only allows --since to specify a start date,
70257         but git-log itself supports many other filtering mechanisms.
70258         At the moment, I want to filter by branch name.  Rather than
70259         adding a --branch option to gitlog-to-changelog, it seems more
70260         flexible to simply pass all options directly to git-log and let
70261         git do the work.  Notice that this effectively makes --since a
70262         redundant option for gitlog-to-changelog, but removing it would
70263         require current usage to change since calls would then require
70264         an additional '--'.
70266 2008-12-21  Bruno Haible  <bruno@clisp.org>
70268         * modules/mbsnrtowcs-tests: New file.
70269         * tests/test-mbsnrtowcs1.sh: New file.
70270         * tests/test-mbsnrtowcs2.sh: New file.
70271         * tests/test-mbsnrtowcs3.sh: New file.
70272         * tests/test-mbsnrtowcs4.sh: New file.
70273         * tests/test-mbsnrtowcs.c: New file.
70275         New module 'mbsnrtowcs'.
70276         * lib/wchar.in.h (mbsnrtowcs): New declaration.
70277         * lib/mbsnrtowcs.c: New file.
70278         * lib/mbsrtowcs-state.c: New file.
70279         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
70280         (internal_state): Remove variable.
70281         * m4/mbsnrtowcs.m4: New file.
70282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
70283         compilation units.
70284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
70285         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
70287         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70288         * modules/mbsnrtowcs: New file.
70289         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
70290         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
70291         portability problem.
70293 2008-12-21  Bruno Haible  <bruno@clisp.org>
70295         Work around mbsrtowcs bug.
70296         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
70297         (gl_FUNC_MBSRTOWCS): Invoke it.
70298         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70299         m4/locale-zh.m4.
70300         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
70302 2008-12-21  Bruno Haible  <bruno@clisp.org>
70304         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
70306 2008-12-21  Bruno Haible  <bruno@clisp.org>
70308         Update doc for AIX.
70309         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
70310         16-bit wchar_t type.
70311         * doc/posix-functions/btowc.texi: Likewise.
70312         * doc/posix-functions/fgetwc.texi: Likewise.
70313         * doc/posix-functions/fgetws.texi: Likewise.
70314         * doc/posix-functions/fputwc.texi: Likewise.
70315         * doc/posix-functions/fputws.texi: Likewise.
70316         * doc/posix-functions/fwide.texi: Likewise.
70317         * doc/posix-functions/fwprintf.texi: Likewise.
70318         * doc/posix-functions/fwscanf.texi: Likewise.
70319         * doc/posix-functions/getwchar.texi: Likewise.
70320         * doc/posix-functions/getwc.texi: Likewise.
70321         * doc/posix-functions/iswalnum.texi: Likewise.
70322         * doc/posix-functions/iswalpha.texi: Likewise.
70323         * doc/posix-functions/iswblank.texi: Likewise.
70324         * doc/posix-functions/iswcntrl.texi: Likewise.
70325         * doc/posix-functions/iswctype.texi: Likewise.
70326         * doc/posix-functions/iswdigit.texi: Likewise.
70327         * doc/posix-functions/iswgraph.texi: Likewise.
70328         * doc/posix-functions/iswlower.texi: Likewise.
70329         * doc/posix-functions/iswprint.texi: Likewise.
70330         * doc/posix-functions/iswpunct.texi: Likewise.
70331         * doc/posix-functions/iswspace.texi: Likewise.
70332         * doc/posix-functions/iswupper.texi: Likewise.
70333         * doc/posix-functions/iswxdigit.texi: Likewise.
70334         * doc/posix-functions/mbrtowc.texi: Likewise.
70335         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70336         * doc/posix-functions/mbstowcs.texi: Likewise.
70337         * doc/posix-functions/mbtowc.texi: Likewise.
70338         * doc/posix-functions/putwchar.texi: Likewise.
70339         * doc/posix-functions/putwc.texi: Likewise.
70340         * doc/posix-functions/swprintf.texi: Likewise.
70341         * doc/posix-functions/tolower.texi: Likewise.
70342         * doc/posix-functions/toupper.texi: Likewise.
70343         * doc/posix-functions/towctrans.texi: Likewise.
70344         * doc/posix-functions/ungetwc.texi: Likewise.
70345         * doc/posix-functions/vswprintf.texi: Likewise.
70346         * doc/posix-functions/wcrtomb.texi: Likewise.
70347         * doc/posix-functions/wcscat.texi: Likewise.
70348         * doc/posix-functions/wcschr.texi: Likewise.
70349         * doc/posix-functions/wcscmp.texi: Likewise.
70350         * doc/posix-functions/wcscoll.texi: Likewise.
70351         * doc/posix-functions/wcscpy.texi: Likewise.
70352         * doc/posix-functions/wcscspn.texi: Likewise.
70353         * doc/posix-functions/wcsftime.texi: Likewise.
70354         * doc/posix-functions/wcslen.texi: Likewise.
70355         * doc/posix-functions/wcsncat.texi: Likewise.
70356         * doc/posix-functions/wcsncmp.texi: Likewise.
70357         * doc/posix-functions/wcsncpy.texi: Likewise.
70358         * doc/posix-functions/wcspbrk.texi: Likewise.
70359         * doc/posix-functions/wcsrchr.texi: Likewise.
70360         * doc/posix-functions/wcsrtombs.texi: Likewise.
70361         * doc/posix-functions/wcsspn.texi: Likewise.
70362         * doc/posix-functions/wcsstr.texi: Likewise.
70363         * doc/posix-functions/wcstod.texi: Likewise.
70364         * doc/posix-functions/wcstof.texi: Likewise.
70365         * doc/posix-functions/wcstoimax.texi: Likewise.
70366         * doc/posix-functions/wcstok.texi: Likewise.
70367         * doc/posix-functions/wcstold.texi: Likewise.
70368         * doc/posix-functions/wcstoll.texi: Likewise.
70369         * doc/posix-functions/wcstol.texi: Likewise.
70370         * doc/posix-functions/wcstombs.texi: Likewise.
70371         * doc/posix-functions/wcstoull.texi: Likewise.
70372         * doc/posix-functions/wcstoul.texi: Likewise.
70373         * doc/posix-functions/wcstoumax.texi: Likewise.
70374         * doc/posix-functions/wcswidth.texi: Likewise.
70375         * doc/posix-functions/wcsxfrm.texi: Likewise.
70376         * doc/posix-functions/wctob.texi: Likewise.
70377         * doc/posix-functions/wctomb.texi: Likewise.
70378         * doc/posix-functions/wctrans.texi: Likewise.
70379         * doc/posix-functions/wctype.texi: Likewise.
70380         * doc/posix-functions/wcwidth.texi: Likewise.
70381         * doc/posix-functions/wmemchr.texi: Likewise.
70382         * doc/posix-functions/wmemcmp.texi: Likewise.
70383         * doc/posix-functions/wmemcpy.texi: Likewise.
70384         * doc/posix-functions/wmemmove.texi: Likewise.
70385         * doc/posix-functions/wmemset.texi: Likewise.
70386         * doc/posix-functions/wprintf.texi: Likewise.
70387         * doc/posix-functions/wscanf.texi: Likewise.
70389 2008-12-21  Bruno Haible  <bruno@clisp.org>
70391         Update doc for HP-UX 11.11.
70392         * doc/posix-functions/btowc.texi: Clarify that the function is missing
70393         in HP-UX version 11.00, not in all versions of HP-UX 11.
70394         * doc/posix-functions/fwide.texi: Likewise.
70395         * doc/posix-functions/fwprintf.texi: Likewise.
70396         * doc/posix-functions/fwscanf.texi: Likewise.
70397         * doc/posix-functions/inet_ntop.texi: Likewise.
70398         * doc/posix-functions/inet_pton.texi: Likewise.
70399         * doc/posix-functions/mbrlen.texi: Likewise.
70400         * doc/posix-functions/mbrtowc.texi: Likewise.
70401         * doc/posix-functions/mbsinit.texi: Likewise.
70402         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70403         * doc/posix-functions/swprintf.texi: Likewise.
70404         * doc/posix-functions/swscanf.texi: Likewise.
70405         * doc/posix-functions/towctrans.texi: Likewise.
70406         * doc/posix-functions/vfwprintf.texi: Likewise.
70407         * doc/posix-functions/vswprintf.texi: Likewise.
70408         * doc/posix-functions/vwprintf.texi: Likewise.
70409         * doc/posix-functions/wcrtomb.texi: Likewise.
70410         * doc/posix-functions/wcsrtombs.texi: Likewise.
70411         * doc/posix-functions/wcsstr.texi: Likewise.
70412         * doc/posix-functions/wctob.texi: Likewise.
70413         * doc/posix-functions/wctrans.texi: Likewise.
70414         * doc/posix-functions/wmemchr.texi: Likewise.
70415         * doc/posix-functions/wmemcmp.texi: Likewise.
70416         * doc/posix-functions/wmemcpy.texi: Likewise.
70417         * doc/posix-functions/wmemmove.texi: Likewise.
70418         * doc/posix-functions/wmemset.texi: Likewise.
70419         * doc/posix-functions/wprintf.texi: Likewise.
70420         * doc/posix-functions/wscanf.texi: Likewise.
70422 2008-12-21  Bruno Haible  <bruno@clisp.org>
70424         Work around a portability problem.
70425         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
70426         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
70428 2008-12-20  Bruno Haible  <bruno@clisp.org>
70430         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
70431         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
70432         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
70433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
70434         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
70436         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
70437         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
70438         set.
70439         (GNULIB_defined_mbstate_t): New macro.
70440         (mbsinit): Redefine if REPLACE_MBSINIT is set.
70441         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
70442         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
70443         reuses the system's mbrtowc function but works around the bugs.
70444         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
70445         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
70446         macros.
70447         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
70448         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
70449         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
70450         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
70451         REPLACE_MBSINIT if mbsinit needs to be overridden.
70452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
70453         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70454         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
70455         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70456         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70457         m4/locale-zh.m4.
70458         (Depends): Add mbsinit.
70459         * modules/mbsinit (Depends): Add mbrtowc.
70460         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
70462 2008-12-20  Bruno Haible  <bruno@clisp.org>
70464         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
70465         so that there are no conversion errors on AIX.
70466         * tests/test-mbsrtowcs.c (main): LIkewise.
70468 2008-12-20  Bruno Haible  <bruno@clisp.org>
70470         Work around wctob bug on Solaris <= 9.
70471         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
70472         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
70473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
70474         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
70475         * modules/wctob (Files): Add m4/locale-fr.m4.
70476         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
70478 2008-12-20  Bruno Haible  <bruno@clisp.org>
70480         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
70481         /dev/null.
70482         * tests/test-select-in.sh: Likewise.
70483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70485 2008-12-20  Bruno Haible  <bruno@clisp.org>
70487         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
70488         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
70489         Cygwin 1.5.x.
70491 2008-12-20  Bruno Haible  <bruno@clisp.org>
70493         Ensure mbstate_t is defined on HP-UX 11.11.
70494         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
70495         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
70496         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
70497         AC_USE_SYSTEM_EXTENSIONS.
70498         * modules/fnmatch (Depends-on): Add extensions.
70499         * modules/mbrlen (Depends-on): Likewise.
70500         * modules/mbrtowc (Depends-on): Likewise.
70501         * modules/mbsinit (Depends-on): Likewise.
70502         * modules/mbsrtowcs (Depends-on): Likewise.
70503         * modules/mbswidth (Depends-on): Likewise.
70504         * modules/quotearg (Depends-on): Likewise.
70505         * modules/strftime (Depends-on): Likewise.
70507 2008-12-20  Bruno Haible  <bruno@clisp.org>
70509         Ensure wctob is declared on IRIX 6.5.
70510         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
70511         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
70512         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
70513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
70514         of HAVE_WCTOB.
70515         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
70516         HAVE_WCTOB.
70517         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
70519 2008-12-19  Bruno Haible  <bruno@clisp.org>
70521         * modules/mbsrtowcs-tests: New file.
70522         * tests/test-mbsrtowcs1.sh: New file.
70523         * tests/test-mbsrtowcs2.sh: New file.
70524         * tests/test-mbsrtowcs3.sh: New file.
70525         * tests/test-mbsrtowcs4.sh: New file.
70526         * tests/test-mbsrtowcs.c: New file.
70528         New module 'mbsrtowcs'.
70529         * lib/wchar.in.h (mbsrtowcs): New declaration.
70530         * lib/mbsrtowcs.c: New file.
70531         * m4/mbsrtowcs.m4: New file.
70532         * modules/mbsrtowcs: New file.
70533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
70534         HAVE_MBSRTOWCS.
70535         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
70536         HAVE_MBSRTOWCS.
70537         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
70539 2008-12-19  Bruno Haible  <bruno@clisp.org>
70541         New module 'mbrlen'.
70542         * lib/wchar.in.h (mbrlen): New declaration.
70543         * lib/mbrlen.c: New file.
70544         * m4/mbrlen.m4: New file.
70545         * modules/mbrlen: New file.
70546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
70547         HAVE_MBRLEN.
70548         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
70549         HAVE_MBRLEN.
70550         * doc/posix-functions/mbrlen.texi: Document the new module.
70552 2008-12-19  Bruno Haible  <bruno@clisp.org>
70554         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
70555         * modules/mbrtowc (Depends-on): Add verify.
70556         Suggested by Paul Eggert.
70558 2008-12-18  Bruno Haible  <bruno@clisp.org>
70560         * modules/mbsinit-tests: New file.
70561         * tests/test-mbsinit.sh: New file.
70562         * tests/test-mbsinit.c: New file.
70564 2008-12-18  Bruno Haible  <bruno@clisp.org>
70566         * modules/mbrtowc-tests: New file.
70567         * tests/test-mbrtowc1.sh: New file.
70568         * tests/test-mbrtowc2.sh: New file.
70569         * tests/test-mbrtowc3.sh: New file.
70570         * tests/test-mbrtowc4.sh: New file.
70571         * tests/test-mbrtowc.c: New file.
70573         New module 'mbrtowc'.
70574         * lib/wchar.in.h (mbstate_t): Override when the system does not have
70575         mbsinit and mbrtowc.
70576         (mbrtowc): New declaration.
70577         * lib/mbrtowc.c: New file.
70578         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
70579         * modules/mbrtowc: New file.
70580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
70581         HAVE_MBRTOWC.
70582         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
70583         HAVE_MBRTOWC.
70584         * doc/posix-functions/mbrtowc.texi: Document the new module.
70586 2008-12-18  Bruno Haible  <bruno@clisp.org>
70588         New module 'wctob'.
70589         * lib/wchar.in.h (wctob): New declaration.
70590         * lib/wctob.c: New file.
70591         * m4/wctob.m4: New file.
70592         * modules/wctob: New file.
70593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
70594         HAVE_WCTOB.
70595         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
70596         * doc/posix-functions/wctob.texi: Document the new module.
70598 2008-12-18  Bruno Haible  <bruno@clisp.org>
70600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
70601         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
70603 2008-12-18  Simon Josefsson  <simon@josefsson.org>
70605         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
70606         G. Christensen" <tgc@jupiterrise.com>.
70608         * lib/flock.c: Need to include errno.h.  Reported by "Tom
70609         G. Christensen" <tgc@jupiterrise.com>.
70611         * lib/flock.c: Need to include string.h.  Reported by "Tom
70612         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
70613         <ebb9@byu.net>.
70615 2008-12-18  Bruno Haible  <bruno@clisp.org>
70617         * m4/locale-ja.m4: New file, from GNU gettext.
70619 2008-12-17  Bruno Haible  <bruno@clisp.org>
70621         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
70622         Suggested by Eric Blake.
70624 2008-12-17  Bruno Haible  <bruno@clisp.org>
70626         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
70628 2008-12-17  Bruno Haible  <bruno@clisp.org>
70630         * lib/mbsinit.c: Include verify.h. Verify an assumption.
70631         * modules/mbsinit (Depends-on): Add verify.
70632         Suggested by Paul Eggert.
70634 2008-12-17  Bruno Haible  <bruno@clisp.org>
70636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
70637         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
70638         gl_FUNC_MBRTOWC.
70639         * m4/mbiter.m4 (gl_MBITER): LIkewise.
70640         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
70641         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
70642         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
70643         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
70644         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
70645         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
70646         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
70647         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
70648         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
70649         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
70650         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
70651         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
70652         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
70653         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
70654         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70655         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
70656         * modules/trim (configure.ac): Likewise.
70658 2008-12-17  Bruno Haible  <bruno@clisp.org>
70660         * modules/btowc-tests: New file.
70661         * tests/test-btowc1.sh: New file.
70662         * tests/test-btowc2.sh: New file.
70663         * tests/test-btowc.c: New file.
70665         New module 'btowc'.
70666         * lib/wchar.in.h (btowc): New declaration.
70667         * lib/btowc.c: New file.
70668         * m4/btowc.m4: New file.
70669         * modules/btowc: New file.
70670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
70671         HAVE_BTOWC.
70672         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
70673         * doc/posix-functions/btowc.texi: Document the new module.
70675 2008-12-17  Bruno Haible  <bruno@clisp.org>
70677         New module 'mbsinit'.
70678         * lib/wchar.in.h (mbsinit): New declaration.
70679         * lib/mbsinit.c: New file.
70680         * m4/mbsinit.m4: New file.
70681         * modules/mbsinit: New file.
70682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
70683         HAVE_MBSINIT.
70684         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
70685         HAVE_MBSINIT.
70686         * doc/posix-functions/mbsinit.texi: Document the new module.
70688 2008-12-16  Bruno Haible  <bruno@clisp.org>
70690         * lib/unistd.in.h: Add comment.
70691         * tests/test-environ.c: Don't include <stdlib.h>.
70693 2008-12-16  Bruno Haible  <bruno@clisp.org>
70695         * lib/parse-duration.h (parse_duration): Document return value
70696         convention.
70697         * lib/parse-duration.c: Include specification header first. Add
70698         comments.
70699         (_): Remove macro.
70700         (parse_year_month_day, parse_hour_minute_second): Move side effects
70701         outside of strchr call.
70702         (parse_non_iso8601): Move side effects outside of isspace call.
70703         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
70704         call.
70706 2008-12-16  Bruno Haible  <bruno@clisp.org>
70708         * tests/test-parse-duration.sh: Produce no output when the test
70709         succeeds.
70711 2008-12-16  Bruno Haible  <bruno@clisp.org>
70713         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
70714         expressions.
70716 2008-12-15  Bruno Haible  <bruno@clisp.org>
70718         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
70719         * doc/glibc-functions/flistxattr.texi: Likewise.
70720         * doc/glibc-functions/fopencookie.texi: Likewise.
70721         * doc/glibc-functions/fremovexattr.texi: Likewise.
70722         * doc/glibc-functions/fsetxattr.texi: Likewise.
70723         * doc/glibc-functions/getxattr.texi: Likewise.
70724         * doc/glibc-functions/lgetxattr.texi: Likewise.
70725         * doc/glibc-functions/listxattr.texi: Likewise.
70726         * doc/glibc-functions/llistxattr.texi: Likewise.
70727         * doc/glibc-functions/lremovexattr.texi: Likewise.
70728         * doc/glibc-functions/lsetxattr.texi: Likewise.
70729         * doc/glibc-functions/removexattr.texi: Likewise.
70730         * doc/glibc-functions/setxattr.texi: Likewise.
70731         * doc/posix-functions/open_memstream.texi: Likewise.
70733 2008-12-15  Eric Blake  <ebb9@byu.net>
70735         Update doc for cygwin 1.7.
70736         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
70737         functions.
70738         * doc/posix-functions/fchmodat.texi: Likewise.
70739         * doc/posix-functions/fchownat.texi: Likewise.
70740         * doc/posix-functions/fdopendir.texi: Likewise.
70741         * doc/posix-functions/fmemopen.texi: Likewise.
70742         * doc/posix-functions/freeaddrinfo.texi: Likewise.
70743         * doc/posix-functions/fstatat.texi: Likewise.
70744         * doc/posix-functions/futimens.texi: Likewise.
70745         * doc/posix-functions/gai_strerror.texi: Likewise.
70746         * doc/posix-functions/getaddrinfo.texi: Likewise.
70747         * doc/posix-functions/getnameinfo.texi: Likewise.
70748         * doc/posix-functions/if_freenameindex.texi: Likewise.
70749         * doc/posix-functions/if_indextoname.texi: Likewise.
70750         * doc/posix-functions/if_nameindex.texi: Likewise.
70751         * doc/posix-functions/if_nametoindex.texi: Likewise.
70752         * doc/posix-functions/insque.texi: Likewise.
70753         * doc/posix-functions/linkat.texi: Likewise.
70754         * doc/posix-functions/llrint.texi: Likewise.
70755         * doc/posix-functions/llrintf.texi: Likewise.
70756         * doc/posix-functions/llrintl.texi: Likewise.
70757         * doc/posix-functions/lockf.texi: Likewise.
70758         * doc/posix-functions/lrintl.texi: Likewise.
70759         * doc/posix-functions/mkdirat.texi: Likewise.
70760         * doc/posix-functions/mkfifoat.texi: Likewise.
70761         * doc/posix-functions/mknodat.texi: Likewise.
70762         * doc/posix-functions/mq_close.texi: Likewise.
70763         * doc/posix-functions/mq_getattr.texi: Likewise.
70764         * doc/posix-functions/mq_notify.texi: Likewise.
70765         * doc/posix-functions/mq_open.texi: Likewise.
70766         * doc/posix-functions/mq_receive.texi: Likewise.
70767         * doc/posix-functions/mq_send.texi: Likewise.
70768         * doc/posix-functions/mq_setattr.texi: Likewise.
70769         * doc/posix-functions/mq_timedreceive.texi: Likewise.
70770         * doc/posix-functions/mq_timedsend.texi: Likewise.
70771         * doc/posix-functions/mq_unlink.texi: Likewise.
70772         * doc/posix-functions/open_memstream.texi: Likewise.
70773         * doc/posix-functions/openat.texi: Likewise.
70774         * doc/posix-functions/posix_fadvise.texi: Likewise.
70775         * doc/posix-functions/posix_fallocate.texi: Likewise.
70776         * doc/posix-functions/posix_madvise.texi: Likewise.
70777         * doc/posix-functions/posix_memalign.texi: Likewise.
70778         * doc/posix-functions/posix_openpt.texi: Likewise.
70779         * doc/posix-functions/readlinkat.texi: Likewise.
70780         * doc/posix-functions/remque.texi: Likewise.
70781         * doc/posix-functions/renameat.texi: Likewise.
70782         * doc/posix-functions/rintl.texi: Likewise.
70783         * doc/posix-functions/sem_unlink.texi: Likewise.
70784         * doc/posix-functions/shm_open.texi: Likewise.
70785         * doc/posix-functions/shm_unlink.texi: Likewise.
70786         * doc/posix-functions/signgam.texi: Likewise.
70787         * doc/posix-functions/sigset.texi: Likewise.
70788         * doc/posix-functions/stpcpy.texi: Likewise.
70789         * doc/posix-functions/stpncpy.texi: Likewise.
70790         * doc/posix-functions/strerror.texi: Likewise.
70791         * doc/posix-functions/strtod.texi: Likewise.
70792         * doc/posix-functions/symlinkat.texi: Likewise.
70793         * doc/posix-functions/unlinkat.texi: Likewise.
70794         * doc/posix-functions/utimensat.texi: Likewise.
70795         * doc/glibc-functions/bindresvport.texi: Likewise.
70796         * doc/glibc-functions/dn_expand.texi: Likewise.
70797         * doc/glibc-functions/exp10.texi: Likewise.
70798         * doc/glibc-functions/exp10f.texi: Likewise.
70799         * doc/glibc-functions/fgetxattr.texi: Likewise.
70800         * doc/glibc-functions/flistxattr.texi: Likewise.
70801         * doc/glibc-functions/fopencookie.texi: Likewise.
70802         * doc/glibc-functions/freeifaddrs.texi: Likewise.
70803         * doc/glibc-functions/fremovexattr.texi: Likewise.
70804         * doc/glibc-functions/fsetxattr.texi: Likewise.
70805         * doc/glibc-functions/getifaddrs.texi: Likewise.
70806         * doc/glibc-functions/getxattr.texi: Likewise.
70807         * doc/glibc-functions/lgetxattr.texi: Likewise.
70808         * doc/glibc-functions/listxattr.texi: Likewise.
70809         * doc/glibc-functions/llistxattr.texi: Likewise.
70810         * doc/glibc-functions/lremovexattr.texi: Likewise.
70811         * doc/glibc-functions/lsetxattr.texi: Likewise.
70812         * doc/glibc-functions/pow10.texi: Likewise.
70813         * doc/glibc-functions/pow10f.texi: Likewise.
70814         * doc/glibc-functions/rcmd_af.texi: Likewise.
70815         * doc/glibc-functions/removexattr.texi: Likewise.
70816         * doc/glibc-functions/res_init.texi: Likewise.
70817         * doc/glibc-functions/res_mkquery.texi: Likewise.
70818         * doc/glibc-functions/res_query.texi: Likewise.
70819         * doc/glibc-functions/res_querydomain.texi: Likewise.
70820         * doc/glibc-functions/res_send.texi: Likewise.
70821         * doc/glibc-functions/rresvport_af.texi: Likewise.
70822         * doc/glibc-functions/setxattr.texi: Likewise.
70823         * doc/glibc-functions/strcasestr.texi: Likewise.
70825 2008-12-15  Bruno Haible  <bruno@clisp.org>
70827         Fix compilation error on OSF/1 4.0.
70828         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
70829         <sys/time.h>, simply delegate to the system header.
70830         Reported by Daniel Richard G. <oss@teragram.com>.
70832 2008-12-15  Bruno Haible  <bruno@clisp.org>
70834         * doc/posix-functions/openat.texi: Mention the 'openat' module.
70835         * doc/posix-functions/fchmodat.texi: Likewise.
70836         * doc/posix-functions/fchownat.texi: Likewise.
70837         * doc/posix-functions/fdopendir.texi: Likewise.
70838         * doc/posix-functions/fstatat.texi: Likewise.
70839         * doc/posix-functions/mkdirat.texi: Likewise.
70840         * doc/posix-functions/unlinkat.texi: Likewise.
70842 2008-12-14  Bruno Haible  <bruno@clisp.org>
70844         Update doc for POSIX:2008.
70845         * doc/posix-functions/faccessat.texi: New file.
70846         * doc/posix-functions/fchmodat.texi: New file.
70847         * doc/posix-functions/fchownat.texi: New file.
70848         * doc/posix-functions/fdopendir.texi: New file.
70849         * doc/posix-functions/fstatat.texi: New file.
70850         * doc/posix-functions/futimens.texi: New file.
70851         * doc/posix-functions/linkat.texi: New file.
70852         * doc/posix-functions/mkdirat.texi: New file.
70853         * doc/posix-functions/mkfifoat.texi: New file.
70854         * doc/posix-functions/mknodat.texi: New file.
70855         * doc/posix-functions/open_wmemstream.texi: New file.
70856         * doc/posix-functions/openat.texi: New file.
70857         * doc/posix-functions/psiginfo.texi: New file.
70858         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70859         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70860         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70861         * doc/posix-functions/readlinkat.texi: New file.
70862         * doc/posix-functions/renameat.texi: New file.
70863         * doc/posix-functions/strerror_l.texi: New file.
70864         * doc/posix-functions/symlinkat.texi: New file.
70865         * doc/posix-functions/unlinkat.texi: New file.
70866         * doc/posix-functions/utimensat.texi: New file.
70867         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70869 2008-12-14  Bruno Haible  <bruno@clisp.org>
70871         Update doc for POSIX:2008.
70872         * doc/posix-functions/alphasort.texi: Renamed from
70873         doc/glibc-functions/alphasort.texi.
70874         * doc/posix-functions/dirfd.texi: Renamed from
70875         doc/glibc-functions/dirfd.texi.
70876         * doc/posix-functions/dprintf.texi: Renamed from
70877         doc/glibc-functions/dprintf.texi.
70878         * doc/posix-functions/duplocale.texi: Renamed from
70879         doc/glibc-functions/duplocale.texi.
70880         * doc/posix-functions/fexecve.texi: Renamed from
70881         doc/glibc-functions/fexecve.texi.
70882         * doc/posix-functions/fmemopen.texi: Renamed from
70883         doc/glibc-functions/fmemopen.texi.
70884         * doc/posix-functions/freelocale.texi: Renamed from
70885         doc/glibc-functions/freelocale.texi.
70886         * doc/posix-functions/getdate_err.texi: Renamed from
70887         doc/glibc-functions/getdate_err.texi.
70888         * doc/posix-functions/isalnum_l.texi: Renamed from
70889         doc/glibc-functions/isalnum_l.texi.
70890         * doc/posix-functions/isalpha_l.texi: Renamed from
70891         doc/glibc-functions/isalpha_l.texi.
70892         * doc/posix-functions/isblank_l.texi: Renamed from
70893         doc/glibc-functions/isblank_l.texi.
70894         * doc/posix-functions/iscntrl_l.texi: Renamed from
70895         doc/glibc-functions/iscntrl_l.texi.
70896         * doc/posix-functions/isdigit_l.texi: Renamed from
70897         doc/glibc-functions/isdigit_l.texi.
70898         * doc/posix-functions/isgraph_l.texi: Renamed from
70899         doc/glibc-functions/isgraph_l.texi.
70900         * doc/posix-functions/islower_l.texi: Renamed from
70901         doc/glibc-functions/islower_l.texi.
70902         * doc/posix-functions/isprint_l.texi: Renamed from
70903         doc/glibc-functions/isprint_l.texi.
70904         * doc/posix-functions/ispunct_l.texi: Renamed from
70905         doc/glibc-functions/ispunct_l.texi.
70906         * doc/posix-functions/isspace_l.texi: Renamed from
70907         doc/glibc-functions/isspace_l.texi.
70908         * doc/posix-functions/isupper_l.texi: Renamed from
70909         doc/glibc-functions/isupper_l.texi.
70910         * doc/posix-functions/iswalnum_l.texi: Renamed from
70911         doc/glibc-functions/iswalnum_l.texi.
70912         * doc/posix-functions/iswalpha_l.texi: Renamed from
70913         doc/glibc-functions/iswalpha_l.texi.
70914         * doc/posix-functions/iswblank_l.texi: Renamed from
70915         doc/glibc-functions/iswblank_l.texi.
70916         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70917         doc/glibc-functions/iswcntrl_l.texi.
70918         * doc/posix-functions/iswctype_l.texi: Renamed from
70919         doc/glibc-functions/iswctype_l.texi.
70920         * doc/posix-functions/iswdigit_l.texi: Renamed from
70921         doc/glibc-functions/iswdigit_l.texi.
70922         * doc/posix-functions/iswgraph_l.texi: Renamed from
70923         doc/glibc-functions/iswgraph_l.texi.
70924         * doc/posix-functions/iswlower_l.texi: Renamed from
70925         doc/glibc-functions/iswlower_l.texi.
70926         * doc/posix-functions/iswprint_l.texi: Renamed from
70927         doc/glibc-functions/iswprint_l.texi.
70928         * doc/posix-functions/iswpunct_l.texi: Renamed from
70929         doc/glibc-functions/iswpunct_l.texi.
70930         * doc/posix-functions/iswspace_l.texi: Renamed from
70931         doc/glibc-functions/iswspace_l.texi.
70932         * doc/posix-functions/iswupper_l.texi: Renamed from
70933         doc/glibc-functions/iswupper_l.texi.
70934         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70935         doc/glibc-functions/iswxdigit_l.texi.
70936         * doc/posix-functions/isxdigit_l.texi: Renamed from
70937         doc/glibc-functions/isxdigit_l.texi.
70938         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70939         doc/glibc-functions/mbsnrtowcs.texi.
70940         * doc/posix-functions/mkdtemp.texi: Renamed from
70941         doc/glibc-functions/mkdtemp.texi.
70942         * doc/posix-functions/newlocale.texi: Renamed from
70943         doc/glibc-functions/newlocale.texi.
70944         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70945         doc/glibc-functions/nl_langinfo_l.texi.
70946         * doc/posix-functions/open_memstream.texi: Renamed from
70947         doc/glibc-functions/open_memstream.texi.
70948         * doc/posix-functions/opterr.texi: Renamed from
70949         doc/glibc-functions/opterr.texi.
70950         * doc/posix-functions/optind.texi: Renamed from
70951         doc/glibc-functions/optind.texi.
70952         * doc/posix-functions/optopt.texi: Renamed from
70953         doc/glibc-functions/optopt.texi.
70954         * doc/posix-functions/psignal.texi: Renamed from
70955         doc/glibc-functions/psignal.texi.
70956         * doc/posix-functions/scandir.texi: Renamed from
70957         doc/glibc-functions/scandir.texi.
70958         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70959         doc/glibc-functions/sched_get_priority_min.texi.
70960         * doc/posix-functions/signgam.texi: Renamed from
70961         doc/glibc-functions/signgam.texi.
70962         * doc/posix-functions/stpcpy.texi: Renamed from
70963         doc/glibc-functions/stpcpy.texi.
70964         * doc/posix-functions/stpncpy.texi: Renamed from
70965         doc/glibc-functions/stpncpy.texi.
70966         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70967         doc/glibc-functions/strcasecmp_l.texi.
70968         * doc/posix-functions/strcoll_l.texi: Renamed from
70969         doc/glibc-functions/strcoll_l.texi.
70970         * doc/posix-functions/strfmon_l.texi: Renamed from
70971         doc/glibc-functions/strfmon_l.texi.
70972         * doc/posix-functions/strftime_l.texi: Renamed from
70973         doc/glibc-functions/strftime_l.texi.
70974         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70975         doc/glibc-functions/strncasecmp_l.texi.
70976         * doc/posix-functions/strndup.texi: Renamed from
70977         doc/glibc-functions/strndup.texi.
70978         * doc/posix-functions/strnlen.texi: Renamed from
70979         doc/glibc-functions/strnlen.texi.
70980         * doc/posix-functions/strsignal.texi: Renamed from
70981         doc/glibc-functions/strsignal.texi.
70982         * doc/posix-functions/strxfrm_l.texi: Renamed from
70983         doc/glibc-functions/strxfrm_l.texi.
70984         * doc/posix-functions/timer_gettime.texi: Renamed from
70985         doc/glibc-functions/timer_gettime.texi.
70986         * doc/posix-functions/tolower_l.texi: Renamed from
70987         doc/glibc-functions/tolower_l.texi.
70988         * doc/posix-functions/toupper_l.texi: Renamed from
70989         doc/glibc-functions/toupper_l.texi.
70990         * doc/posix-functions/towctrans_l.texi: Renamed from
70991         doc/glibc-functions/towctrans_l.texi.
70992         * doc/posix-functions/towlower_l.texi: Renamed from
70993         doc/glibc-functions/towlower_l.texi.
70994         * doc/posix-functions/towupper_l.texi: Renamed from
70995         doc/glibc-functions/towupper_l.texi.
70996         * doc/posix-functions/uselocale.texi: Renamed from
70997         doc/glibc-functions/uselocale.texi.
70998         * doc/posix-functions/vdprintf.texi: Renamed from
70999         doc/glibc-functions/vdprintf.texi.
71000         * doc/posix-functions/wcpcpy.texi:
71001         Renamed from doc/glibc-functions/wcpcpy.texi.
71002         * doc/posix-functions/wcpncpy.texi: Renamed from
71003         doc/glibc-functions/wcpncpy.texi.
71004         * doc/posix-functions/wcscasecmp.texi: Renamed from
71005         doc/glibc-functions/wcscasecmp.texi.
71006         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
71007         doc/glibc-functions/wcscasecmp_l.texi.
71008         * doc/posix-functions/wcscoll_l.texi: Renamed from
71009         doc/glibc-functions/wcscoll_l.texi.
71010         * doc/posix-functions/wcsdup.texi: Renamed from
71011         doc/glibc-functions/wcsdup.texi.
71012         * doc/posix-functions/wcsncasecmp.texi: Renamed from
71013         doc/glibc-functions/wcsncasecmp.texi.
71014         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
71015         doc/glibc-functions/wcsncasecmp_l.texi.
71016         * doc/posix-functions/wcsnlen.texi: Renamed from
71017         doc/glibc-functions/wcsnlen.texi.
71018         * doc/posix-functions/wcsnrtombs.texi: Renamed from
71019         doc/glibc-functions/wcsnrtombs.texi.
71020         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
71021         doc/glibc-functions/wcsxfrm_l.texi.
71022         * doc/posix-functions/wctrans_l.texi: Renamed from
71023         doc/glibc-functions/wctrans_l.texi.
71024         * doc/posix-functions/wctype_l.texi: Renamed from
71025         doc/glibc-functions/wctype_l.texi.
71026         * doc/gnulib.texi (Function Substitutes): Add these subsections.
71027         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
71028         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
71029         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
71030         these subsections.
71031         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
71032         Remove sections.
71034 2008-12-14  Bruno Haible  <bruno@clisp.org>
71036         Update doc for POSIX:2008.
71037         * doc/posix-functions/*.texi: Update URL of POSIX specification.
71039 2008-12-14  Bruno Haible  <bruno@clisp.org>
71041         Update doc for POSIX:2008.
71042         * doc/pastposix-functions/bcmp.texi: Renamed from
71043         doc/posix-functions/bcmp.texi.
71044         * doc/pastposix-functions/bcopy.texi: Renamed from
71045         doc/posix-functions/bcopy.texi.
71046         * doc/pastposix-functions/bsd_signal.texi: Renamed from
71047         doc/posix-functions/bsd_signal.texi.
71048         * doc/pastposix-functions/bzero.texi: Renamed from
71049         doc/posix-functions/bzero.texi.
71050         * doc/pastposix-functions/ecvt.texi: Renamed from
71051         doc/posix-functions/ecvt.texi.
71052         * doc/pastposix-functions/fcvt.texi: Renamed from
71053         doc/posix-functions/fcvt.texi.
71054         * doc/pastposix-functions/ftime.texi: Renamed from
71055         doc/posix-functions/ftime.texi.
71056         * doc/pastposix-functions/gcvt.texi: Renamed from
71057         doc/posix-functions/gcvt.texi.
71058         * doc/pastposix-functions/getcontext.texi: Renamed from
71059         doc/posix-functions/getcontext.texi.
71060         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
71061         doc/posix-functions/gethostbyaddr.texi.
71062         * doc/pastposix-functions/gethostbyname.texi: Renamed from
71063         doc/posix-functions/gethostbyname.texi.
71064         * doc/pastposix-functions/getwd.texi: Renamed from
71065         doc/posix-functions/getwd.texi.
71066         * doc/pastposix-functions/h_errno.texi: Renamed from
71067         doc/posix-functions/h_errno.texi.
71068         * doc/pastposix-functions/index.texi: Renamed from
71069         doc/posix-functions/index.texi.
71070         * doc/pastposix-functions/makecontext.texi: Renamed from
71071         doc/posix-functions/makecontext.texi.
71072         * doc/pastposix-functions/mktemp.texi: Renamed from
71073         doc/posix-functions/mktemp.texi.
71074         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
71075         doc/posix-functions/pthread_attr_getstackaddr.texi.
71076         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
71077         doc/posix-functions/pthread_attr_setstackaddr.texi.
71078         * doc/pastposix-functions/rindex.texi: Renamed from
71079         doc/posix-functions/rindex.texi.
71080         * doc/pastposix-functions/scalb.texi: Renamed from
71081         doc/posix-functions/scalb.texi.
71082         * doc/pastposix-functions/setcontext.texi: Renamed from
71083         doc/posix-functions/setcontext.texi.
71084         * doc/pastposix-functions/swapcontext.texi: Renamed from
71085         doc/posix-functions/swapcontext.texi.
71086         * doc/pastposix-functions/ualarm.texi: Renamed from
71087         doc/posix-functions/ualarm.texi.
71088         * doc/pastposix-functions/usleep.texi: Renamed from
71089         doc/posix-functions/usleep.texi.
71090         * doc/pastposix-functions/vfork.texi: Renamed from
71091         doc/posix-functions/vfork.texi.
71092         * doc/pastposix-functions/wcswcs.texi: Renamed from
71093         doc/posix-functions/wcswcs.texi.
71094         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
71095         (Function Substitutes): Update.
71097 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71099         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
71100         m4/strerror.m4.
71102 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71103             Bruno Haible  <bruno@clisp.org>
71105         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
71107 2008-12-13  Bruno Haible  <bruno@clisp.org>
71109         * modules/strtoull (Depends-on): Remove unistd.
71111 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71113         * modules/strtoull (Depends-on): Add stdlib.
71115 2008-12-11  Simon Josefsson  <simon@josefsson.org>
71117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
71119 2008-12-10  Jim Meyering  <meyering@redhat.com>
71121         gl_ASSERT: don't say assertions are disabled when they're not
71122         * m4/assert.m4 (gl_ASSERT): Do not make configure report
71123         "checking whether to enable assertions... no", when they are in
71124         fact enabled.  This is solely a bug in the output of configure.
71125         In spite of saying "no", NDEBUG was not defined in that case.
71126         Also, as noted by Eric Blake, leave assertions enabled upon
71127         --enable-assert=INVALID.
71129 2008-12-10  Bruno Haible  <bruno@clisp.org>
71131         Change MODULES.html to refer to POSIX:2008 where possible.
71132         * MODULES.html.sh (POSIX2008_URL): New variable.
71133         (posix_headers): Remove sys/timeb, ucontext.
71134         (posix2001_headers): New variable.
71135         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
71136         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
71137         index, makecontext, mktemp, pthread_attr_getstackaddr,
71138         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
71139         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
71140         (posix2001_functions): New variable.
71141         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
71142         otherwise.
71144 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71146         add missing include to parse-duration.c
71147         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
71148         * modules/parse-duration (Depends-on): Add xalloc.
71150         fix sed script reading maint.mk
71151         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
71152         (syntax-check-rules): Use it.
71154 2008-12-09  Bruno Haible  <bruno@clisp.org>
71156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
71157         MacOS X 10.4/PowerPC.
71158         Reported by Simon Josefsson.
71160 2008-12-08  Jim Meyering  <meyering@redhat.com>
71162         work around mingw's lack of some S_IF definitions
71163         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
71164         Reported by Simon Josefsson.
71166 2008-12-08  Bruno Haible  <bruno@clisp.org>
71168         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
71169         applied to variables. Needed on MacOS X 10.4/PowerPC.
71170         Reported by Simon Josefsson.
71172 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
71173         and Eric Blake  <ebb9@byu.net>
71175         assert: honor --enable-assert
71176         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
71177         order to honor --enable-assert, rather than treating it as a
71178         synonym for --disable-assert.
71180 2008-12-08  Jim Meyering  <meyering@redhat.com>
71182         * lib/posixtm.c: Remove now-useless declaration of mktime.
71184         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
71186 2008-12-07  Bruno Haible  <bruno@clisp.org>
71188         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
71189         test_once): Mark functions as static.
71190         * tests/test-tls.c (test_tls): Likewise.
71192 2008-12-07  Bruno Haible  <bruno@clisp.org>
71194         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
71195         iconv_register_autodetect.
71197 2008-12-07  Jim Meyering  <meyering@redhat.com>
71199         posixtm.c: avoid a warning
71200         * lib/posixtm.c (posixtime): Don't initialize tm0.
71201         It's no longer needed to placate gcc4's -Wuninitialized,
71202         and the attempt to placate would elicit a new warning.
71204         unicodeio.c: mark unused parameters
71205         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71206         (fallback_failure_callback): Likewise.
71208 2008-12-07  Bruno Haible  <bruno@clisp.org>
71210         * gnulib-tool (func_create_testdir): When building the tests
71211         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
71212         Reported by Simon Josefsson.
71214 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71216         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
71218 2008-12-06  Bruno Haible  <bruno@clisp.org>
71220         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
71221         Suggested by Eric Blake.
71223 2008-12-06  Bruno Haible  <bruno@clisp.org>
71225         Fix a c-stack test failure on MacOS X.
71226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
71227         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
71228         handler for SIGBUS as well.
71229         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
71230         install a signal handler for SIGBUS as well.
71231         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
71233 2008-12-06  Bruno Haible  <bruno@clisp.org>
71235         Advocacy documentation.
71236         * doc/gnulib-intro.texi (Benefits): New section.
71237         * doc/gnulib.texi: Update.
71239 2008-12-06  Bruno Haible  <bruno@clisp.org>
71241         Document the 'manywarnings' module.
71242         * doc/manywarnings.texi: New file.
71243         * doc/gnulib.texi: Include it.
71245 2008-12-05  Eric Blake  <ebb9@byu.net>
71247         tests: silence some gcc warnings
71248         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
71249         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
71250         type mismatches.
71252 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71253             Bruno Haible  <bruno@clisp.org>
71255         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
71257 2008-11-29  Jim Meyering  <meyering@redhat.com>
71259         unicodeio.c: mark unused parameters
71260         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71261         (fallback_failure_callback): Likewise.
71263         fts: fix a thinko
71264         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
71265         (set_stat_type): Return S_IF*-valued "type" directly.
71266         Prompted by James Youngman's spotting a related bug.
71267         Confirmed by further testing through find.
71269         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
71270         * lib/fts.c (D_TYPE): Define.
71271         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
71272         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
71273         (s_ifmt_shift_bits): New function.
71274         (set_stat_type): New function.
71275         (fts_build): When not calling fts_stat, call set_stat_type
71276         to propagate dirent.d_type info to fts_read caller.
71277         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
71278         fts_statp->st_mode type information may be valid.
71280 2008-11-28  Simon Josefsson  <simon@josefsson.org>
71282         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
71283         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
71284         <sds@gnu.org>.
71286 2008-11-20  Bruno Haible  <bruno@clisp.org>
71288         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
71289         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
71290         INCLUDE_NEXT.
71291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
71292         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
71293         * modules/math (Makefile.am): Substitute
71294         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
71295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71297 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
71298             Bruno Haible  <bruno@clisp.org>
71300         * lib/stdint.in.h: Define all type macros so that their expansion is
71301         a single typedef'ed token. Fixes a compilation failure in Boost which
71302         does "using ::int8_t;".
71304 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71306         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
71307         gl_MANYWARN_ALL_GCC.
71308         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
71309         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
71310         * modules/manywarnings: New file.
71311         * MODULES.html.sh: Mention manywarnings module.
71313 2008-11-18  Bruno Haible  <bruno@clisp.org>
71315         * doc/gnulib-tool.texi (Unit tests): New section.
71317 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71319         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
71320         paths like 'lib/po/foo.po'.
71322 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71324         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
71325         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
71327 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71329         * m4/warnings.m4: Use CPPFLAGS to really check whether the
71330         parameter works.
71332 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71334         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
71336 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71338         * modules/parse-duration-tests: New file.
71339         * tests/test-parse-duration.sh: New file.
71340         * tests/test-parse-duration.c: New file.
71342         New module 'parse-duration'.
71343         * lib/parse-duration.h: New file.
71344         * lib/parse-duration.c: New file.
71345         * modules/parse-duration: New file.
71347 2008-11-17  Bruno Haible  <bruno@clisp.org>
71349         * tests/test-select-out.sh: Comment out the first pipe test.
71350         Reported by Simon Josefsson.
71352 2008-11-17  Bruno Haible  <bruno@clisp.org>
71354         * modules/getaddrinfo (Depends-on): Add servent, hostent.
71355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
71356         gl_HOSTENT.
71358 2008-11-17  Bruno Haible  <bruno@clisp.org>
71360         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
71361         -lnetwork and -lnet. Needed for Haiku and BeOS.
71363 2008-11-16  Bruno Haible  <bruno@clisp.org>
71365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
71367 2008-11-16  Bruno Haible  <bruno@clisp.org>
71369         Avoid test failure on Haiku.
71370         * tests/test-fsync.c: Include <errno.h>.
71371         (main): Don't require that fsync (0) fails.
71373 2008-11-15  Bruno Haible  <bruno@clisp.org>
71375         New module 'hostent'.
71376         * modules/hostent: New file.
71377         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
71379 2008-11-15  Bruno Haible  <bruno@clisp.org>
71381         New module 'servent'.
71382         * modules/servent: New file.
71383         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
71385 2008-11-15  Bruno Haible  <bruno@clisp.org>
71387         Avoid generating same test program with two different rules.
71388         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
71389         test-frexp to test-frexp-nolibm.
71390         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
71391         test-frexpl to test-frexpl-nolibm.
71393 2008-11-15  Bruno Haible  <bruno@clisp.org>
71395         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
71396         $(FREXPL_LIBM).
71398 2008-11-15  Bruno Haible  <bruno@clisp.org>
71400         * lib/netdb.in.h: Activate the definitions also when the system's
71401         <netdb.h> has 'struct addrinfo'.
71402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
71403         EAI_OVERFLOW or AI_NUMERICSERV.
71404         * doc/posix-headers/netdb.texi: Document the problem.
71406 2008-11-15  Bruno Haible  <bruno@clisp.org>
71408         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
71410         Make the 'sched' module work on platforms where <sched.h> exists but
71411         is incomplete (such as Haiku).
71412         * lib/sched.in.h; Include the system's <sched.h> if it exists.
71413         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
71414         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
71415         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
71416         HAVE_STRUCT_SCHED_PARAM.
71417         * modules/sched (Depends-on): Add include_next.
71418         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
71419         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
71420         * doc/posix-headers/sched.texi: Document the issue.
71422 2008-11-13  Jim Meyering  <meyering@redhat.com>
71424         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
71425         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
71426         test would fail due to the difference in the Report bugs to ...
71427         line.  The expected address is empty, "<>", while the actual
71428         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
71430 2008-11-12  Bruno Haible  <bruno@clisp.org>
71432         lstat: don't compile lstat.c on systems lacking lstat
71433         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
71434         which don't have lstat; this is handled by lib/sys_stat.in.h already.
71435         Reported by Daniel P. Berrange via Jim Meyering.
71437 2008-11-12  Jim Meyering  <meyering@redhat.com>
71439         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
71441 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71443         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
71444         instead.
71446 2008-11-12  Bruno Haible  <bruno@clisp.org>
71448         * lib/unicodeio.c: Include unistr.h.
71449         (utf8_wctomb): Remove function.
71450         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
71452 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71454         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
71455         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
71456         <bruno@clisp.org>.
71457         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
71459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71461         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
71462         * doc/gnulib.texi: Add section for warnings.
71464 2008-11-11  Bruno Haible  <bruno@clisp.org>
71466         * lib/sockets.h: Add a comment.
71468 2008-11-11  Karl Berry  <karl@gnu.org>
71470         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
71472 2008-11-11  Eric Blake  <ebb9@byu.net>
71474         fdl.texi: avoid git symlinks
71475         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
71477 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71479         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
71481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71483         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
71484         (gl_WARN_ADD): Substitute $2 if literal.
71486 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71488         * m4/warning.m4: Remove.
71490 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71492         * m4/warnings.m4: Almost complete rewrite. :-)
71494 2008-11-10  Simon Josefsson  <simon@josefsson.org>
71496         * modules/warnings: New module.
71497         * m4/warnings.m4: New file.
71498         * MODULES.html.sh: Mention warnings module.
71499         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
71500         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71502 2008-11-10  Eric Blake  <ebb9@byu.net>
71504         fdl.texi: make a symlink to the latest version
71505         * doc/standards.texi: Revert today's earlier change.
71506         * doc/fdl-1.2.texi: Rename from old fdl.texi...
71507         * doc/fdl.texi: ...and replace this with a symlink to the newer
71508         fdl-1.3.texi.
71510 2008-11-10  Bruno Haible  <bruno@clisp.org>
71512         * tests/test-select-fd.c (main): Accept the result file name as fourth
71513         argument.
71514         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
71515         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
71517 2008-11-10  Bruno Haible  <bruno@clisp.org>
71519         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
71520         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
71521         as autoconf-substituted macros.
71522         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
71523         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
71524         gl_NETDB_H_DEFAULTS. Set these variables.
71525         * modules/netdb (Makefile.am): Substitute these variables.
71527 2008-11-10  Eric Blake  <ebb9@byu.net>
71529         standards.texi: include correct file for FDL 1.3
71530         * doc/standards.texi (GNU Free Documentation License): Change
71531         include file to pull in FDL 1.3, not 1.2.
71533         fdl.texi: revert accidental change to license
71534         * doc/fdl.texi: This is FDL 1.2, not 1.3.
71536 2008-11-10  Bruno Haible  <bruno@clisp.org>
71538         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
71539         cross-compiling guesses also when the native compile gives no result.
71541 2008-11-10  Bruno Haible  <bruno@clisp.org>
71543         * lib/spawni.c (__spawni): Force variable into the stack.
71545 2008-11-10  Bruno Haible  <bruno@clisp.org>
71547         Add support for Haiku.
71548         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
71549         glibc and BeOS, but also on Haiku.
71550         * lib/fpurge.c (fpurge): Likewise.
71551         * lib/freadable.c (freadable): Likewise.
71552         * lib/freadahead.c (freadahead): Likewise.
71553         * lib/freading.c (freading): Likewise.
71554         * lib/freadptr.c (freadptr): Likewise.
71555         * lib/freadseek.c (freadptrinc): Likewise.
71556         * lib/fseeko.c (rpl_fseeko): Likewise.
71557         * lib/fseterr.c (fseterr): Likewise.
71558         * lib/fwritable.c (fwritable): Likewise.
71559         * lib/fwriting.c (fwriting): Likewise.
71560         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
71562 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71564         * lib/config.charset: Treat Haiku like BeOS.
71566 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71568         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
71569         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
71571 2008-11-08  Bruno Haible  <bruno@clisp.org>
71573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
71574         AC_CACHE_CHECK.
71576 2008-11-08  Bruno Haible  <bruno@clisp.org>
71578         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
71580 2008-11-08  Bruno Haible  <bruno@clisp.org>
71582         * tests/test-select-fd.c: New file.
71583         * tests/test-select-in.sh: New file.
71584         * tests/test-select-out.sh: New file.
71585         * tests/test-select-stdin.c: New file.
71586         * modules/select-tests (Files): Add the new files.
71587         (Depends-on): Add gettimeofday.
71588         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
71589         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
71590         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
71592 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
71593             Bruno Haible  <bruno@clisp.org>
71595         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
71597 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
71599         * build-aux/pmccabe2html: Added support for C++ source files.
71601 2008-11-05  Ben Pfaff  <blp@gnu.org>
71603         Fix lib/close.c build on Windows.
71604         * modules/close (Files): Add lib/w32sock.h.
71606 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
71608         Accept Bison's NEWS format.
71609         * build-aux/announce-gen (print_news_deltas): Tweak
71610         $re_prefix.
71612 2008-11-04  Bruno Haible  <bruno@clisp.org>
71614         * modules/random_r (Maintainer): Add glibc.
71616 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71618         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
71619         by karl@freefriends.org (Karl Berry).
71620         * doc/alloca.texi: Likewise.
71621         * doc/c-ctype.texi: Likewise.
71622         * doc/c-strcase.texi: Likewise.
71623         * doc/c-strcaseeq.texi: Likewise.
71624         * doc/c-strcasestr.texi: Likewise.
71625         * doc/c-strstr.texi: Likewise.
71626         * doc/c-strtod.texi: Likewise.
71627         * doc/c-strtold.texi: Likewise.
71628         * doc/ctime.texi: Likewise.
71629         * doc/error.texi: Likewise.
71630         * doc/fdl.texi: Likewise.
71631         * doc/gcd.texi: Likewise.
71632         * doc/getdate.texi: Likewise.
71633         * doc/gnulib-intro.texi: Likewise.
71634         * doc/gnulib-tool.texi: Likewise.
71635         * doc/gnulib.texi: Likewise.
71636         * doc/inet_ntoa.texi: Likewise.
71637         * doc/maintain.texi: Likewise.
71638         * doc/make-stds.texi: Likewise.
71639         * doc/quote.texi: Likewise.
71640         * doc/regexprops-generic.texi: Likewise.
71641         * doc/standards.texi: Likewise.
71642         * doc/verify.texi: Likewise.
71643         * doc/visibility.texi: Likewise.
71644         * doc/gnulib.texi (GNU Free Documentation License): Include
71645         fdl-1.3.texi instead of fdl.texi.
71647 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71649         * doc/fdl-1.3.texi: New file, from
71650         <http://www.gnu.org/licenses/fdl-1.3.texi>.
71651         * modules/fdl-1.3: Add.
71652         * MODULES.html.sh: Add fdl-1.3.
71654 2008-11-03  Bruno Haible  <bruno@clisp.org>
71656         Make determination of absolute name of header file work with AIX xlc.
71657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
71658         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
71659         preprocessing.
71660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71661         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
71663 2008-11-03  Simon Josefsson  <simon@josefsson.org>
71665         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
71666         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
71667         <ludo@gnu.org>.
71669 2008-11-02  Bruno Haible  <bruno@clisp.org>
71671         Mark 'strpbrk' obsolete.
71672         * modules/strpbrk (Status, Notice): New sections.
71673         * modules/strtok_r (Depends-on): Add strpbrk.
71675 2008-11-02  Bruno Haible  <bruno@clisp.org>
71677         Mark 'strdup' obsolete.
71678         * modules/strdup (Status, Notice): New sections.
71679         * modules/findprog (Depends-on): Add strdup.
71680         * modules/getaddrinfo (Depends-on): Likewise.
71681         * modules/localename (Depends-on): Likewise.
71682         * modules/relocatable-lib (Depends-on): Likewise.
71683         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
71684         * modules/relocatable-prog (Depends-on): Likewise.
71685         * modules/trim (Depends-on): Likewise.
71686         * modules/unictype/gen-ctype (Depends-on): Likewise.
71687         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71689 2008-11-02  Bruno Haible  <bruno@clisp.org>
71691         Mark 'strcspn' obsolete.
71692         * modules/strcspn (Status, Notice): New sections.
71694 2008-11-02  Bruno Haible  <bruno@clisp.org>
71696         Mark 'rmdir' obsolete.
71697         * modules/rmdir (Status, Notice): New sections.
71698         * modules/clean-temp (Depends-on): Add rmdir.
71699         * modules/openat (Depends-on): Likewise.
71701 2008-11-02  Bruno Haible  <bruno@clisp.org>
71703         Mark 'raise' obsolete.
71704         * modules/raise (Status, Notice): New sections.
71705         (Include): Specify <signal.h>.
71706         * modules/stdio (Depends-on): Add raise.
71707         * modules/write (Depends-on): Likewise.
71709 2008-11-02  Bruno Haible  <bruno@clisp.org>
71711         Mark 'memset' obsolete.
71712         * modules/memset (Status, Notice): New sections.
71714 2008-11-02  Bruno Haible  <bruno@clisp.org>
71716         Mark 'memmove' obsolete.
71717         * modules/memmove (Status, Notice): New sections.
71718         * modules/argp (Depends-on): Add memmove.
71719         * modules/argz (Depends-on): Likewise.
71720         * modules/canonicalize (Depends-on): Likewise.
71721         * modules/canonicalize-lgpl (Depends-on): Likewise.
71722         * modules/fts (Depends-on): Likewise.
71723         * modules/getcwd (Depends-on): Likewise.
71724         * modules/human (Depends-on): Likewise.
71725         * modules/regex (Depends-on): Likewise.
71726         * modules/striconveh (Depends-on): Likewise.
71727         * modules/trim (Depends-on): Likewise.
71728         * modules/unistr/u8-move (Depends-on): Likewise.
71729         * modules/unistr/u16-move (Depends-on): Likewise.
71730         * modules/unistr/u32-move (Depends-on): Likewise.
71732 2008-11-02  Bruno Haible  <bruno@clisp.org>
71734         Mark 'memcpy' obsolete.
71735         * modules/memcpy (Status, Notice): New sections.
71737 2008-11-02  Bruno Haible  <bruno@clisp.org>
71739         Mark 'memcmp' obsolete.
71740         * modules/memcmp (Status, Notice): New sections.
71741         * modules/argmatch (Depends-on): Add memchr.
71742         * modules/backupfile (Depends-on): Likewise.
71743         * modules/c-strcasestr (Depends-on): Likewise.
71744         * modules/crypto/des (Depends-on): Likewise.
71745         * modules/csharpcomp (Depends-on): Likewise.
71746         * modules/fnmatch (Depends-on): Likewise.
71747         * modules/git-merge-changelog (Depends-on): Likewise.
71748         * modules/isnand (Depends-on): Likewise.
71749         * modules/isnand-nolibm (Depends-on): Likewise.
71750         * modules/isnanf (Depends-on): Likewise.
71751         * modules/isnanf-nolibm (Depends-on): Likewise.
71752         * modules/isnanl (Depends-on): Likewise.
71753         * modules/isnanl-nolibm (Depends-on): Likewise.
71754         * modules/mbchar (Depends-on): Likewise.
71755         * modules/memcoll (Depends-on): Likewise.
71756         * modules/quotearg (Depends-on): Likewise.
71757         * modules/regex (Depends-on): Likewise.
71758         * modules/relocatable-prog (Depends-on): Likewise.
71759         * modules/same (Depends-on): Likewise.
71760         * modules/signbit (Depends-on): Likewise.
71761         * modules/strcasestr-simple (Depends-on): Likewise.
71762         * modules/unictype/gen-ctype (Depends-on): Likewise.
71763         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71764         * modules/uniname/uniname (Depends-on): Likewise.
71765         * modules/unistr/u8-cmp (Depends-on): Likewise.
71767 2008-11-02  Bruno Haible  <bruno@clisp.org>
71769         Mark 'memchr' obsolete.
71770         * modules/memchr (Status, Notice): New sections.
71771         * modules/argp (Depends-on): Add memchr.
71772         * modules/base64 (Depends-on): Likewise.
71773         * modules/c-strcasestr (Depends-on): Likewise.
71774         * modules/chdir-long (Depends-on): Likewise.
71775         * modules/fnmatch (Depends-on): Likewise.
71776         * modules/getsubopt (Depends-on): Likewise.
71777         * modules/git-merge-changelog (Depends-on): Likewise.
71778         * modules/glob (Depends-on): Likewise.
71779         * modules/strcasestr-simple (Depends-on): Likewise.
71780         * modules/strnlen (Depends-on): Likewise.
71782 2008-11-02  Bruno Haible  <bruno@clisp.org>
71784         Mark 'atexit' obsolete.
71785         * modules/atexit (Status, Notice): New sections.
71786         * modules/chdir-long (Depends-on): Add atexit.
71787         * modules/wait-process (Depends-on): Likewise.
71789 2008-11-02  Bruno Haible  <bruno@clisp.org>
71791         * gnulib-tool: New option --with-obsolete.
71792         (func_usage): Document it.
71793         (func_modules_transitive_closure): Drop obsolete dependencies if
71794         incobsolete is not true.
71795         (func_import): Read and save the incobsolete variable to the cache.
71797 2008-11-02  Bruno Haible  <bruno@clisp.org>
71799         * modules/TEMPLATE-EXTENDED: New field 'Status'.
71800         * gnulib-tool: New option --extract-status.
71801         (func_usage): Document it.
71802         (sed_extract_prog): Recognize it.
71803         (func_get_status): New function.
71805 2008-10-30  Simon Josefsson  <simon@josefsson.org>
71807         * modules/sockets (License): Change from LGPL to LGPLv2+.
71809 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71811         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
71813 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71815         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71816         Mention times and sys_times.
71817         * modules/sys_times, modules/sys_times-tests: New modules.
71818         * modules/times, modules/times-tests: Likewise
71819         * m4/sys_times_h.m4: New file.
71820         * lib/sys_times.in.h: Likewise
71821         * lib/times.c: Likewise.
71822         * tests/test-sys_times.c: Likewise.
71823         * tests/test-times.c: Likewise.
71824         * doc/posix-headers/sys_times.texi: Update.
71825         * doc/posix-functions/times.texi: Update.
71827 2008-10-28  Jim Meyering  <meyering@redhat.com>
71829         * modules/tempname (Depends-on): Add lstat.
71831         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
71833 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71835         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
71836         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
71837         using idiom used elsewhere in gnulib.
71839 2008-10-27  Jim Meyering  <meyering@redhat.com>
71841         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
71843 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71845         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
71846         TESTS_ENVIRONMENT, for shell scripts that needs to call built
71847         programs.
71848         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71850 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71852         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71854 2008-10-27  Bruno Haible  <bruno@clisp.org>
71856         * tests/test-lstat.c: Include <stdio.h>.
71858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71860         * modules/lstat-tests: New module.
71861         * tests/test-lstat.c: New file.
71863 2008-10-26  Jim Meyering  <meyering@redhat.com>
71865         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71868             Bruno Haible  <bruno@clisp.org>
71870         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71871         * modules/configmake (Include): Add a note that the include must come
71872         after all system headers.
71873         * lib/javaversion.c: Include configmake.h after all other includes.
71875 2008-10-26  Bruno Haible  <bruno@clisp.org>
71877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71878         HAVE_STRUCT_RANDOM_DATA to 1.
71879         (gl_STDLIB_H): Simplify.
71881 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71883         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71884         substitute HAVE_STRUCT_RANDOM_DATA.
71885         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71886         random_data.
71887         * modules/stdlib (Makefile.am): Substitute
71888         HAVE_STRUCT_RANDOM_DATA.
71890 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71892         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71893         * doc/gnulib-intro.texi (Copyright): Likewise.
71895 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71897         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71898         findings.
71900 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71901             Bruno Haible  <bruno@clisp.org>
71903         * lib/unistd.in.h: Include <winsock2.h>.
71904         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71906         Provide dummy declarations.
71907         (gethostname): Override.
71908         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71909         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71910         gl_PREREQ_SYS_H_WINSOCK2.
71911         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71912         * doc/posix-functions/gethostname.texi: More details.
71914 2008-10-25  Bruno Haible  <bruno@clisp.org>
71916         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71917         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71918         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71920         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71921         here ...
71922         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71924         gl_UNISTD_H_DEFAULTS.
71926 2008-10-25  Eric Blake  <ebb9@byu.net>
71928         signbit: avoid spurious compiler failure
71929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71930         declarations inside function.
71932 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71933             Bruno Haible  <bruno@clisp.org>
71935         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71936         * modules/random_r (Depends-on): Add stdint.
71938 2008-10-24  Bruno Haible  <bruno@clisp.org>
71940         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71941         Eggert.
71942         * modules/strerror (License): Likewise.
71944 2008-10-24  Jim Meyering  <meyering@redhat.com>
71946         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71947         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71949 2008-10-24  Eric Blake  <ebb9@byu.net>
71951         getgroups: fix compilation when getgroups is available
71952         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71953         but with <config.h> override of getgroups disabled.
71955 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71957         * doc/gnulib.texi (Header files): Add note about C++ problems.
71958         Explained by Bruno Haible <bruno@clisp.org>.
71960 2008-10-23  Bruno Haible  <bruno@clisp.org>
71962         Define a dummy SA_NODEFER macro on Interix.
71963         * lib/signal.in.h (SA_NODEFER): Define fallback.
71964         Reported by Aleksey Cheusov <cheusov@tut.by> via
71965         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71967 2008-10-23  Bruno Haible  <bruno@clisp.org>
71969         * modules/freadahead (License): Change to LGPLv2+.
71970         Suggested by Simon Josefsson.
71972 2008-10-23  Jim Meyering  <meyering@redhat.com>
71974         random_r: new module
71975         * modules/random_r: New file.
71976         * m4/random_r.m4: New file.
71977         * lib/random_r.c: New file, from glibc.
71978         * modules/random_r-tests: New file.
71979         * tests/test-random_r.c: New file.
71980         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71981          Declare.
71982         (RAND_MAX): Define.
71983         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71984         * modules/stdlib: Substitute them, too.
71985         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71986         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71987         * doc/glibc-functions/random_r.texi: Likewise.
71988         * doc/glibc-functions/setstate_r.texi: Likewise.
71989         * doc/glibc-functions/srandom_r.texi: Likewise.
71990         * config/srclist.txt: Mention it.
71992 2008-10-23  David Lutterkort  <lutter@redhat.com>
71994         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71995         link requirement
71997 2008-10-23  Jim Meyering  <meyering@redhat.com>
71999         selinux-h: mark parameters of stub functions as intentionally unused
72000         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
72001         * lib/se-context.in.h: Likewise.
72003 2008-10-22  Simon Josefsson  <simon@josefsson.org>
72005         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
72007 2008-10-22  Simon Josefsson  <simon@josefsson.org>
72009         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
72011 2008-10-22  Eric Blake  <ebb9@byu.net>
72013         glthread/thread: avoid compiler warning
72014         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
72015         Add unreachable abort to silence compiler.
72017 2008-10-22  Eric Blake  <ebb9@byu.net>
72019         netdb: also supply struct addrinfo for cygwin 1.5.x
72020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
72021         older cygwin.
72022         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
72023         cygwin.
72024         * doc/posix-headers/netdb.texi (netdb.h): Document this.
72026 2008-10-22  Bruno Haible  <bruno@clisp.org>
72028         * users.txt: Update entry about pspp.
72030 2008-10-21  Bruno Haible  <bruno@clisp.org>
72032         Simplification.
72033         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
72034         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
72036         Simplification.
72037         * lib/ioctl.c (ioctl): Don't undefine.
72038         * lib/socket.c (socket): Don't undefine.
72040         Remove unused module indicator macros.
72041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
72042         GNULIB_$1 as a C macro.
72044         * doc/posix-functions/close.texi: Undo last change.
72045         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
72046         Windows platforms.
72048 2008-10-21  Bruno Haible  <bruno@clisp.org>
72050         Add gethostname() declaration to <unistd.h>.
72051         * lib/unistd.in.h (gethostname): New declaration.
72052         * lib/gethostname.c: Include <unistd.h>.
72053         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
72054         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
72055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
72056         and HAVE_GETHOSTNAME.
72057         * modules/gethostname (Depends-on): Add unistd.
72058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72059         (Include): Specify <unistd.h>.
72060         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
72061         HAVE_GETHOSTNAME.
72062         * tests/test-gethostname.c: Include <unistd.h> first.
72064 2008-10-21  Bruno Haible  <bruno@clisp.org>
72066         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
72067         * modules/select-tests (Depends-on): Likewise.
72068         Reported by Simon Josefsson.
72070 2008-10-21  Simon Josefsson  <simon@josefsson.org>
72072         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
72073         * lib/accept.c: New file, based on winsock.c.
72074         * lib/bind.c: New file, based on winsock.c.
72075         * lib/connect.c: New file, based on winsock.c.
72076         * lib/getpeername.c: New file, based on winsock.c.
72077         * lib/getsockname.c: New file, based on winsock.c.
72078         * lib/getsockopt.c: New file, based on winsock.c.
72079         * lib/ioctl.c: New file, based on winsock.c.
72080         * lib/listen.c: New file, based on winsock.c.
72081         * lib/recv.c: New file, based on winsock.c.
72082         * lib/recvfrom.c: New file, based on winsock.c.
72083         * lib/send.c: New file, based on winsock.c.
72084         * lib/sendto.c: New file, based on winsock.c.
72085         * lib/setsockopt.c: New file, based on winsock.c.
72086         * lib/shutdown.c: New file, based on winsock.c.
72087         * lib/socket.c: New file, based on winsock.c.
72088         * lib/w32sock.h: New file, based on winsock.c.
72089         * lib/winsock.c: Remove file.
72090         * modules/accept: Likewise.
72091         * modules/bind: Likewise.
72092         * modules/connect: Likewise.
72093         * modules/getpeername: Likewise.
72094         * modules/getsockname: Likewise.
72095         * modules/getsockopt: Likewise.
72096         * modules/ioctl: Likewise.
72097         * modules/listen: Likewise.
72098         * modules/recv: Likewise.
72099         * modules/recvfrom: Likewise.
72100         * modules/send: Likewise.
72101         * modules/sendto: Likewise.
72102         * modules/setsockopt: Likewise.
72103         * modules/shutdown: Likewise.
72104         * modules/socket: Use socket.c instead of winsock.c.
72105         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
72106         * doc/posix-functions/accept.texi: Doc fix.
72107         * doc/posix-functions/bind.texi: Doc fix.
72108         * doc/posix-functions/close.texi: Doc fix.
72109         * doc/posix-functions/connect.texi: Doc fix.
72110         * doc/posix-functions/getpeername.texi: Doc fix.
72111         * doc/posix-functions/getsockname.texi: Doc fix.
72112         * doc/posix-functions/getsockopt.texi: Doc fix.
72113         * doc/posix-functions/ioctl.texi: Doc fix.
72114         * doc/posix-functions/listen.texi: Doc fix.
72115         * doc/posix-functions/recv.texi: Doc fix.
72116         * doc/posix-functions/recvfrom.texi: Doc fix.
72117         * doc/posix-functions/send.texi: Doc fix.
72118         * doc/posix-functions/sendto.texi: Doc fix.
72119         * doc/posix-functions/setsockopt.texi: Doc fix.
72120         * doc/posix-functions/shutdown.texi: Doc fix.
72121         * doc/posix-functions/socket.texi: Doc fix.
72123 2008-10-20  Bruno Haible  <bruno@clisp.org>
72125         Take into account the role of SIGABRT_COMPAT on Windows 2008.
72126         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
72127         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
72128         as an alias for SIGABRT.
72129         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
72130         (sigaction): Map it to SIGABRT.
72131         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
72133 2008-10-20  Bruno Haible  <bruno@clisp.org>
72135         * lib/fts.c: Don't include lstat.h.
72136         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
72138         Move the lstat() declaration to <sys/stat.h>.
72139         * lib/lstat.h: Remove file.
72140         * lib/sys_stat.in.h: Add special invocation convention.
72141         (lstat): New declaration.
72142         * lib/lstat.c (orig_lstat): New function.
72143         (rpl_lstat): Use orig_lstat instead of lstat.
72144         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
72145         AC_C_INLINE. Set REPLACE_LSTAT.
72146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
72147         and REPLACE_LSTAT.
72148         * modules/lstat (Files): Remove lib/lstat.h.
72149         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
72150         (Include): Specify <sys/stat.h> instead of lstat.h.
72151         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
72152         REPLACE_LSTAT.
72153         * NEWS: Mention the change.
72155 2008-10-20  Bruno Haible  <bruno@clisp.org>
72157         * modules/posix_spawn-tests: New file.
72158         * tests/test-posix_spawn3.c: New file.
72160 2008-10-20  Bruno Haible  <bruno@clisp.org>
72162         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
72163         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
72164         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
72165         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
72166         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
72168 2008-10-20  Bruno Haible  <bruno@clisp.org>
72170         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
72171         of posix_spawn on AIX 5.3.
72173 2008-10-20  Bruno Haible  <bruno@clisp.org>
72175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
72177 2008-10-20  Bruno Haible  <bruno@clisp.org>
72179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
72180         of AC_LANG_PROGRAM.
72182 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72184         * lib/netdb.in.h: Don't define GNU specific constants until they
72185         are supported or needed.  Reported by Bruno Haible
72186         <bruno@clisp.org>.
72188 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72190         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
72192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72194         * lib/getaddrinfo.h: Remove file.
72195         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
72196         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
72197         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
72198         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
72199         * modules/netdb: Substitute GNULIB_GETADDRINFO.
72200         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
72201         * tests/test-getaddrinfo.c: Likewise.
72202         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
72203         * NEWS: Mention change.
72205 2008-10-19  Bruno Haible  <bruno@clisp.org>
72207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
72209 2008-10-19  Bruno Haible  <bruno@clisp.org>
72211         * lib/wait-process.c: Include simply <sys/wait.h>.
72212         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
72213         WIFSTOPPED): Remove fallback definitions.
72214         * modules/wait-process (Depends-on): Add sys_wait.
72216         New module 'sys_wait'.
72217         * modules/sys_wait: New file.
72218         * lib/sys_wait.in.h: New file, partially copied from
72219         lib/wait-process.c.
72220         * m4/sys_wait_h.m4: New file.
72221         * doc/posix-headers/sys_wait.texi: Mention the new module.
72223 2008-10-19  Bruno Haible  <bruno@clisp.org>
72225         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
72227 2008-10-19  Bruno Haible  <bruno@clisp.org>
72229         Assume that waitpid() fills an 'int' status, not a 'union wait'.
72230         * lib/wait-process.c (WAIT_T): Remove type.
72231         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
72232         (wait_subprocess): Update.
72234 2008-10-19  Bruno Haible  <bruno@clisp.org>
72236         New module 'atoll'.
72237         * modules/atoll: New file.
72238         * lib/stdlib.in.h (atoll): New declaration.
72239         * lib/atoll.c: New file, from glibc with modifications.
72240         * m4/atoll.m4: New file.
72241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
72242         HAVE_ATOLL.
72243         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
72244         * doc/posix-functions/atoll.texi: Mention the new module.
72246 2008-10-19  Bruno Haible  <bruno@clisp.org>
72248         Add strtoull() declaration to <stdlib.h>.
72249         * lib/stdlib.in.h (strtoull): New declaration.
72250         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72251         Set HAVE_STRTOULL.
72252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
72253         HAVE_STRTOULL.
72254         * modules/strtoull (Depends-on): Add stdlib.
72255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72256         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
72257         HAVE_STRTOULL.
72259 2008-10-19  Bruno Haible  <bruno@clisp.org>
72261         Add strtoll() declaration to <stdlib.h>.
72262         * lib/stdlib.in.h (strtoll): New declaration.
72263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72264         Set HAVE_STRTOLL.
72265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
72266         HAVE_STRTOLL.
72267         * modules/strtoll (Depends-on): Add stdlib.
72268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72269         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
72271 2008-10-19  Bruno Haible  <bruno@clisp.org>
72273         * modules/bcopy (Depends-on): Add strings.
72274         (Include): Specify <strings.h>.
72276 2008-10-19  Bruno Haible  <bruno@clisp.org>
72278         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
72280 2008-10-19  Bruno Haible  <bruno@clisp.org>
72282         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
72283         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
72284         mingw.
72286 2008-10-19  Bruno Haible  <bruno@clisp.org>
72288         * lib/atanl.c: Don't include isnanl.h.
72289         * lib/cosl.c: Likewise.
72290         * lib/ldexpl.c: Likewise.
72291         * lib/logl.c: Likewise.
72292         * lib/sinl.c: Likewise.
72293         * lib/sqrtl.c: Likewise.
72294         * lib/tanl.c: Likewise.
72296         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
72297         * lib/isnanf.h: Remove file.
72298         * lib/isnand.h: Remove file.
72299         * lib/isnanl.h: Remove file.
72300         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
72301         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
72302         macros.
72303         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
72304         HAVE_ISNANF, don't define it as a C macro.
72305         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
72306         HAVE_ISNAND, don't define it as a C macro.
72307         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
72308         HAVE_ISNANL, don't define it as a C macro.
72309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
72310         HAVE_ISNAN[FDL].
72311         * modules/isnanf (Files): Remove lib/isnanf.h.
72312         (Depends-on): Add math.
72313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72314         (Include): Specify <math.h> instead of isnanf.h.
72315         * modules/isnand (Files): Remove lib/isnand.h.
72316         (Depends-on): Add math.
72317         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72318         (Include): Specify <math.h> instead of isnand.h.
72319         * modules/isnanl (Files): Remove lib/isnanl.h.
72320         (Depends-on): Add math.
72321         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72322         (Include): Specify <math.h> instead of isnanl.h.
72323         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
72324         HAVE_ISNAN[FDL].
72325         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
72326         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
72327         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
72328         * NEWS: Mention the change.
72330 2008-10-18  Bruno Haible  <bruno@clisp.org>
72332         Add getusershell(), setusershell(), endusershell() declarations to
72333         <unistd.h>.
72334         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
72335         declarations.
72336         * lib/getusershell.c: Include unistd.h.
72337         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
72338         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72339         HAVE_GETUSERSHELL.
72340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
72341         and HAVE_GETUSERSHELL.
72342         * modules/getusershell (Depends-on): Add unistd, extensions.
72343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72344         (Include): Specify <unistd.h>.
72345         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
72346         HAVE_GETUSERSHELL.
72348 2008-10-18  Bruno Haible  <bruno@clisp.org>
72350         Add a getloadavg() declaration to <stdlib.h>.
72351         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
72352         getloadavg declaration.
72353         (getloadavg): New declaration.
72354         * lib/getloadavg.c: Include <stdlib.h> first.
72355         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
72356         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
72357         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
72358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
72359         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72360         * modules/getloadavg (Depends-on): Add stdlib, extensions.
72361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72362         (Include): Specify <stdlib.h>.
72363         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
72364         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72366 2008-10-18  Bruno Haible  <bruno@clisp.org>
72368         * lib/dirchownmod.c: Don't include lchmod.h.
72370         Move the lchmod() declaration to <sys/stat.h>.
72371         * lib/lchmod.h: Remove file.
72372         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
72373         (lchmod): New declaration, moved here from lib/lchown.h.
72374         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
72375         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
72376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
72377         and HAVE_LCHMOD.
72378         * modules/lchmod (Files): Remove lib/lchmod.h.
72379         (Depends-on): Add sys_stat, extensions.
72380         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
72381         (Include): Specify <sys/stat.h> instead of lchmod.h.
72382         * modules/sys_stat (Depends-on): Add link-warning.
72383         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
72384         definition of GL_LINK_WARNING.
72385         * NEWS: Mention the change.
72387 2008-10-18  Bruno Haible  <bruno@clisp.org>
72389         * lib/fchdir.c: Don't include dirfd.h.
72390         * lib/fts.c: Likewise.
72391         * lib/getcwd.c: Likewise.
72392         * lib/glob.c: Likewise.
72394         Move the dirfd() declaration to <dirent.h>.
72395         * lib/dirfd.h: Remove file.
72396         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
72397         (dirfd): New declaration.
72398         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
72399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
72400         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
72401         HAVE_DECL_DIRFD.
72402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
72403         HAVE_DECL_DIRFD.
72404         * modules/dirfd (Files): Remove lib/dirfd.h.
72405         (Depends-on): Add dirent, extensions.
72406         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
72407         (Include): Specify <dirent.h> instead of dirfd.h.
72408         * modules/dirent (Depends-on): Add link-warning.
72409         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
72410         definition of GL_LINK_WARNING.
72411         * NEWS: Mention the change.
72413 2008-10-18  Bruno Haible  <bruno@clisp.org>
72415         Move the euidaccess() declaration to <unistd.h>.
72416         * lib/euidaccess.h: Remove file.
72417         * lib/unistd.in.h (euidaccess): New declaration.
72418         * lib/euidaccess.c: Don't include euidaccess.h.
72419         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
72420         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
72421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
72422         and HAVE_EUIDACCESS.
72423         * modules/euidaccess (Files): Remove lib/euidaccess.h.
72424         (Depends-on): Add unistd.
72425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72426         (Include): Specify <unistd.h> instead of euidaccess.h.
72427         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
72428         HAVE_EUIDACCESS.
72429         * NEWS: Mention the change.
72431 2008-10-18  Bruno Haible  <bruno@clisp.org>
72433         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
72435         Move the getdomainname() declaration to <unistd.h>.
72436         * lib/getdomainname.h: Remove file.
72437         * lib/unistd.in.h (getdomainname): New declaration.
72438         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
72439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
72440         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72441         HAVE_GETDOMAINNAME.
72442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72443         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
72444         * modules/getdomainname (Files): Remove lib/getdomainname.h.
72445         (Depends-on): Add unistd, extensions.
72446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72447         (Includes): Specify <unistd.h> instead of getdomainname.h.
72448         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
72449         HAVE_GETDOMAINNAME.
72450         * NEWS: Mention the change.
72452 2008-10-18  Bruno Haible  <bruno@clisp.org>
72454         * modules/dirent: New file.
72455         * m4/dirent_h.m4: New file.
72456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
72457         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
72458         * modules/fchdir (Files): Remove lib/dirent.in.h.
72459         (Depends-on): Add dirent.
72460         (Makefile.am): Move rules to modules/dirent.
72461         * doc/posix-headers/dirent.texi: Mention the new module.
72463 2008-10-18  Bruno Haible  <bruno@clisp.org>
72465         Avoid -Wunused-parameter warnings in public gnulib header files.
72466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
72467         macro.
72468         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
72470 2008-10-18  Bruno Haible  <bruno@clisp.org>
72472         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
72473         * doc/glibc-functions/error.texi: Mention the module 'error'.
72474         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
72475         * doc/glibc-functions/getdomainname.texi: Mention the module
72476         'getdomainname'.
72477         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
72478         * doc/glibc-functions/getpagesize.texi: Mention the module
72479         'getpagesize'.
72480         * doc/glibc-functions/getusershell.texi: Mention the module
72481         'getusershell'.
72482         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
72483         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
72484         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
72485         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
72486         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
72487         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
72488         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
72489         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
72490         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
72491         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
72492         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
72493         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
72494         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
72495         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
72497 2008-10-17  Bruno Haible  <bruno@clisp.org>
72499         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
72500         HP-UX and IRIX, use -0.0L.
72501         * tests/test-ceill.c (minus_zero): Likewise.
72502         * tests/test-floorl.c (minus_zero): Likewise.
72503         * tests/test-frexpl.c (minus_zero): Likewise.
72504         * tests/test-isnan.c (minus_zerol): Likewise.
72505         * tests/test-isnanl.h (minus_zero): Likewise.
72506         * tests/test-ldexpl.c (minus_zero): Likewise.
72507         * tests/test-roundl.c (minus_zero): Likewise.
72508         * tests/test-signbit.c (minus_zerol): Likewise.
72509         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
72510         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
72511         * tests/test-truncl.c (minus_zero): Likewise.
72512         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
72513         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
72514         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
72515         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
72517 2008-10-17  Bruno Haible  <bruno@clisp.org>
72519         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
72520         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
72521         that it gets activated only for gcc >= 3.0.
72522         * lib/dirent.in.h: Likewise.
72523         * lib/errno.in.h: Likewise.
72524         * lib/fcntl.in.h: Likewise.
72525         * lib/float.in.h: Likewise.
72526         * lib/iconv.in.h: Likewise.
72527         * lib/inttypes.in.h: Likewise.
72528         * lib/locale.in.h: Likewise.
72529         * lib/math.in.h: Likewise.
72530         * lib/netdb.in.h: Likewise.
72531         * lib/netinet_in.in.h: Likewise.
72532         * lib/search.in.h: Likewise.
72533         * lib/signal.in.h: Likewise.
72534         * lib/spawn.in.h: Likewise.
72535         * lib/stdarg.in.h: Likewise.
72536         * lib/stdint.in.h: Likewise.
72537         * lib/stdio.in.h: Likewise.
72538         * lib/stdlib.in.h: Likewise.
72539         * lib/string.in.h: Likewise.
72540         * lib/strings.in.h: Likewise.
72541         * lib/sys_file.in.h: Likewise.
72542         * lib/sys_ioctl.in.h: Likewise.
72543         * lib/sys_select.in.h: Likewise.
72544         * lib/sys_socket.in.h: Likewise.
72545         * lib/sys_stat.in.h: Likewise.
72546         * lib/sys_time.in.h: Likewise.
72547         * lib/sysexits.in.h: Likewise.
72548         * lib/time.in.h: Likewise.
72549         * lib/unistd.in.h: Likewise.
72550         * lib/wchar.in.h: Likewise.
72551         * lib/wctype.in.h: Likewise.
72552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72554 2008-10-17  Jim Meyering  <meyering@redhat.com>
72556         ignore-value: don't depend on inline module
72557         * modules/ignore-value (Depends-on): Remove 'inline'.
72558         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
72559         Suggestion from Bruno Haible.
72561 2008-10-17  Bruno Haible  <bruno@clisp.org>
72563         New implementation of condition variables for Win32.
72564         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
72565         (gl_linked_waitqueue_t): New type.
72566         (gl_cond_t): Use it.
72567         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
72568         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
72569         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
72570         (glthread_cond_init_func, glthread_cond_wait_func,
72571         glthread_cond_timedwait_func, glthread_cond_signal_func,
72572         glthread_cond_broadcast_func, glthread_cond_destroy_func):
72573         Reimplemented on the basis of gl_linked_waitqueue_t.
72574         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
72575         gl_waitqueue_t.
72576         (gl_rwlock_t): Update.
72577         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
72579 2008-10-17  Simon Josefsson  <simon@josefsson.org>
72581         * modules/recvfrom (Depends-on): Add dependency on getpeername.
72582         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72584 2008-10-17  Jim Meyering  <meyering@redhat.com>
72586         ignore-value: new module
72587         * modules/ignore-value: New file.
72588         * lib/ignore-value.h: New file.
72589         * MODULES.html.sh (Compiler warning management): New section,
72590         just for this module.  More to come.
72592 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72594         open-safer.c: avoid 'signed and unsigned in conditional...' warning
72595         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
72596         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
72598 2008-10-16  Jim Meyering  <meyering@redhat.com>
72600         openat-die.c: avoid 'no previous prototype' warning
72601         * lib/openat-die.c: Include "openat.h".
72602         Reported by Reuben Thomas <rrt@sc3d.org>.
72604 2008-10-16  Simon Josefsson  <simon@josefsson.org>
72606         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
72607         * lib/netdb.in.h: Fix typo.
72608         Reported by Bruno Haible  <bruno@clisp.org>
72610         * lib/netdb.in.h: Include sys/socket.h for platforms without
72611         netdb.h, to get structures like hostent on MinGW.
72612         * modules/netdb (Depends-on): Add sys_socket.
72614 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72616         * modules/netdb, modules/netdb-tests: New file.
72617         * m4/netdb_h.m4: New file.
72618         * lib/netdb.in.h: Add, currently just an empty file pending
72619         definitions.
72620         * tests/test-netdb.c: New file.
72621         * doc/posix-headers/netdb.texi: Mention that we replace it if
72622         needed.
72623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72624         netdb.
72626 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72628         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
72629         with code.
72631 2008-10-13  Bruno Haible  <bruno@clisp.org>
72633         * lib/glthread/cond.c (glthread_cond_wait_func,
72634         glthread_cond_timedwait_func): Add a comment.
72636 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72638         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
72639         * tests/test-select.c: Likewise,
72641 2008-10-13  Bruno Haible  <bruno@clisp.org>
72643         * lib/glthread/cond.c (glthread_cond_wait_func,
72644         glthread_cond_timedwait_func): Fix variable name.
72645         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72647 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
72649         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
72650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
72651         struct sockaddr.sa_len.
72652         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
72654 2008-10-13  Simon Josefsson  <simon@josefsson.org>
72656         * build-aux/pmccabe2html: Add css and css_url parameters.
72658 2008-10-12  Bruno Haible  <bruno@clisp.org>
72660         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
72661         calling aclx_get.
72662         Reported by Rainer Tammer <tammer@tammer.net>.
72664 2008-10-12  Bruno Haible  <bruno@clisp.org>
72666         Use msvcrt aware primitives for creation/termination of Win32 threads.
72667         * lib/glthread/thread.c: Include <process.h>.
72668         (glthread_create_func): Use _beginthreadex instead of CreateThread.
72669         (wrapper_func): Update signature.
72670         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
72672 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72673             Bruno Haible  <bruno@clisp.org>
72675         Provide a Win32 implementation of the 'cond' module.
72676         * lib/glthread/cond.h [USE_WIN32]: New implementation.
72677         * lib/glthread/cond.c (glthread_cond_init_func,
72678         glthread_cond_wait_func, glthread_cond_timedwait_func,
72679         glthread_cond_signal_func, glthread_cond_broadcast_func,
72680         glthread_cond_destroy_func) [USE_WIN32]: New functions.
72681         * modules/cond (Dependencies): Add gettimeofday.
72683 2008-10-11  Bruno Haible  <bruno@clisp.org>
72685         Make sleep work on older versions of mingw.
72686         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
72687         only whether it exists.
72688         * doc/posix-functions/sleep.texi: Mention the problem with older
72689         versions of mingw.
72691 2008-10-11  Bruno Haible  <bruno@clisp.org>
72693         New module 'shutdown'.
72694         * modules/shutdown: New file.
72695         * lib/sys_socket.in.h (shutdown): New declaration.
72696         * lib/winsock.c (shutdown): New function.
72697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
72698         GNULIB_SHUTDOWN.
72699         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
72700         * doc/posix-functions/shutdown.texi: Document the new module.
72702 2008-10-11  Jim Meyering  <meyering@redhat.com>
72704         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
72706 2008-10-11  Bruno Haible  <bruno@clisp.org>
72708         New module 'fclose'.
72709         * modules/fclose: New file.
72710         * lib/stdio.in.h (fclose): New declaration.
72711         * lib/fclose.c: New file.
72712         * m4/fclose.m4: New file.
72713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
72714         REPLACE_FCLOSE.
72715         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
72716         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
72717         REPLACE_FCLOSE.
72718         * modules/close (Depends-on): fclose.
72719         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
72721 2008-10-11  Bruno Haible  <bruno@clisp.org>
72723         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
72724         set errno and don't call _close.
72726 2008-10-10  Bruno Haible  <bruno@clisp.org>
72728         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
72729         ACL, not afterwards. Fixes test failure on Cygwin.
72731 2008-10-09  Ben Pfaff  <blp@gnu.org>
72733         * build-aux/announce-gen: Fix gnulib version related part of usage
72734         message.  Die with a useful error message if no tarballs are
72735         found.
72737 2008-10-10  Jim Meyering  <meyering@redhat.com>
72739         bootstrap: use git's --depth=N option only if it's supported
72740         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
72741         recognize the --depth option.  Reported by Pádraig Brady.
72743 2008-10-09  Bruno Haible  <bruno@clisp.org>
72745         New module 'ioctl'.
72746         * modules/ioctl: New file.
72747         * lib/sys_socket.in.h (ioctl): Remove declaration.
72748         * lib/winsock.c: Include <sys/ioctl.h>.
72749         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
72750         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
72751         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
72752         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
72753         * doc/posix-functions/ioctl.texi: Mention the new module.
72755 2008-10-09  Bruno Haible  <bruno@clisp.org>
72757         New module 'sys_ioctl'.
72758         * lib/sys_ioctl.in.h: New file.
72759         * m4/sys_ioctl_h.m4: New file.
72760         * modules/sys_ioctl: New file.
72761         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
72763 2008-10-09  Bruno Haible  <bruno@clisp.org>
72765         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
72766         * lib/winsock.c: Include <stdarg.h>.
72767         (rpl_ioctl): Change to second argument 'int' and then varargs.
72769 2008-10-09  Bruno Haible  <bruno@clisp.org>
72771         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
72772         when the sys_socket module is present and the system has <winsock2.h>.
72774 2008-10-09  Bruno Haible  <bruno@clisp.org>
72776         * doc/posix-functions/close.texi: Mention module 'close' instead of
72777         module 'sys_socket'.
72779 2008-10-09  Bruno Haible  <bruno@clisp.org>
72781         * doc/glibc-headers/sys_ioctl.texi: New file.
72782         * doc/gnulib.texi: Include it.
72784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72785             Bruno Haible  <bruno@clisp.org>
72787         Combine the two replacements of 'close'.
72788         * lib/sys_socket.in.h (close): Define to a reminder to include
72789         <unistd.h>.
72790         (_gl_close_fd_maybe_socket): New declaration.
72791         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
72792         * lib/winsock.c (close): Remove undefinition.
72793         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
72794         needed for the gnulib module 'close'.
72795         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
72796         define to an error symbol or to a warning, if suitable.
72797         * lib/close.c: Include <sys/socket.h>.
72798         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
72799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
72800         UNISTD_H_HAVE_WINSOCK2_H.
72801         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
72802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72803         UNISTD_H_HAVE_WINSOCK2_H.
72804         * modules/sys_socket (Files): Add m4/unistd_h.m4.
72805         (configure.ac): Set a module indicator.
72806         (Makefile.am): Substitute GNULIB_CLOSE.
72807         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
72808         * modules/poll-tests (Depends-on): Add close.
72809         * modules/select-tests (Depends-on): Likewise.
72811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72812             Bruno Haible  <bruno@clisp.org>
72814         New module 'close'.
72815         * modules/close: New file.
72816         * lib/unistd.in.h (close): Move declaration out of the
72817         FCHDIR_REPLACEMENT scope.
72818         (_gl_unregister_fd): New declaration.
72819         * lib/close.c: New file.
72820         * lib/fchdir.c (rpl_close): Remove function.
72821         * m4/close.m4: New file.
72822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72823         close.
72824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
72825         REPLACE_CLOSE.
72826         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
72827         REPLACE_CLOSE.
72828         * modules/fchdir (Depends-on): Add close.
72830 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72831             Bruno Haible  <bruno@clisp.org>
72833         * lib/fcntl.in.h (open): Simplify conditionals.
72834         (_gl_register_fd): New declaration.
72835         * lib/fchdir.c (rpl_open): Remove function.
72836         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
72837         also.
72838         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
72839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72840         open.
72842 2008-10-09  Jim Meyering  <meyering@redhat.com>
72844         GNUmakefile: use the more name-space-friendly "_version"
72845         * top/GNUmakefile (_dummy): Update.
72846         (_version): Rename from "version".
72848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72849             Bruno Haible  <bruno@clisp.org>
72851         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72852         rpl_close.
72853         (_gl_register_fd): New function, extracted from rpl_open.
72854         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72855         (rpl_open, rpl_opendir): Use _gl_register_fd.
72857 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72859         Fix organization of 'open' replacement.
72860         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72861         (gl_FUNC_OPEN): Use it.
72862         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72864 2008-10-08  Bruno Haible  <bruno@clisp.org>
72866         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72868 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72870         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72871         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72872         listen).
72874 2008-10-08  Eric Blake  <ebb9@byu.net>
72876         GNUmakefile: add 'make version' target
72877         * top/GNUmakefile (_curr-ver): Split version update rules...
72878         (version): ...into a target.
72880 2008-10-07  Bruno Haible  <bruno@clisp.org>
72882         Use a more portable replacement expression for -0.0L.
72883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72884         instead of -0.0L. Fix m4 quotation.
72886         * tests/test-signbit.c: Include <float.h>.
72887         (minus_zero): New variable.
72888         (test_signbitl): Use minus_zero instead of -zero.
72889         * modules/signbit-tests (Depends-on): Add float.
72891         * tests/test-ceill.c: Include <float.h>.
72892         (zero): Remove variable.
72893         (minus_zero): New variable.
72894         (main): Use minus_zero instead of -zero.
72895         * modules/ceill-tests (Depends-on): Add float.
72897         * tests/test-floorl.c: Include <float.h>.
72898         (zero): Remove variable.
72899         (minus_zero): New variable.
72900         (main): Use minus_zero instead of -zero.
72901         * modules/floorl-tests (Depends-on): Add float.
72903         * tests/test-roundl.c: Include <float.h>.
72904         (zero): Remove variable.
72905         (minus_zero): New variable.
72906         (main): Use minus_zero instead of -zero.
72907         * modules/roundl-tests (Depends-on): Add float.
72909         * tests/test-truncl.c: Include <float.h>.
72910         (zero): Remove variable.
72911         (minus_zero): New variable.
72912         (main): Use minus_zero instead of -zero.
72913         * modules/truncl-tests (Depends-on): Add float.
72915         * tests/test-frexpl.c (zero): Remove variable.
72916         (minus_zero): New variable.
72917         (main): Use minus_zero instead of -zero.
72918         * modules/frexpl-tests (Depends-on): Add float.
72920         * tests/test-isnan.c (zerol): Remove variable.
72921         (minus_zerol): New variable.
72922         (test_long_double): Use minus_zerol instead of -zerol.
72923         * modules/isnan-tests (Depends-on): Add float.
72925         * tests/test-isnanl.h (zero): Remove variable.
72926         (minus_zero): New variable.
72927         (main): Use minus_zero instead of -zero.
72928         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72929         * modules/isnanl-tests (Depends-on): Add float.
72931         * tests/test-ldexpl.c (zero): Remove variable.
72932         (minus_zero): New variable.
72933         (main): Use minus_zero instead of -zero.
72934         * modules/ldexpl-tests (Depends-on): Add float.
72936         * tests/test-snprintf-posix.h (zerol): Remove variable.
72937         (minus_zerol): New variable.
72938         (test_function): Use minus_zerol instead of -zerol.
72939         * modules/snprintf-posix-tests (Depends-on): Add float.
72940         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72942         * tests/test-sprintf-posix.h (zerol): Remove variable.
72943         (minus_zerol): New variable.
72944         (test_function): Use minus_zerol instead of -zerol.
72945         * modules/sprintf-posix-tests (Depends-on): Add float.
72946         * modules/vsprintf-posix-tests (Depends-on): Add float.
72948         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72949         (minus_zerol): New variable.
72950         (test_function): Use minus_zerol instead of -zerol.
72951         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72953         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72954         (minus_zerol): New variable.
72955         (test_function): Use minus_zerol instead of -zerol.
72956         * modules/vasprintf-posix-tests (Depends-on): Add float.
72958 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72960         * MODULES.html.sh (Support for building documentation): Mention
72961         pmccabe2html.  Sort entries.
72963         Add pmccabe2html module, from gnupdf.
72964         * build-aux/pmccabe.css: New file.
72965         * build-aux/pmccabe2html: New file.
72966         * m4/pmccabe2html.m4: New file.
72967         * modules/pmccabe2html: New file.
72969 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72971         flock: new module
72972         * MODULES.html.sh: Add to list of modules.
72973         * lib/flock.c: flock implementation for Windows and Unix systems
72974         which have fcntl.
72975         * doc/glibc-functions/flock.texi: Update documentation.
72976         * lib/sys_file.in.h: <sys/file.h> header file.
72977         * m4/flock.m4: M4 macros.
72978         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72979         * modules/flock: flock module.
72980         * modules/flock-tests: flock tests module.
72981         * modules/sys_file: sys/file.h module.
72982         * tests/test-flock.c: test suite for flock.
72984 2008-10-06  Jim Meyering  <meyering@redhat.com>
72986         bootstrap: check for LT_INIT more portably still ;-)
72987         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72988         Spotted by Bruno Haible.
72990 2008-10-06  Eric Blake  <ebb9@byu.net>
72992         test-signbit: avoid tripping Irix cc bug on -0.0L
72993         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72994         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72995         entire testsuite consistent and avoids an Irix 6.2 bug.
72997 2008-10-05  Bruno Haible  <bruno@clisp.org>
72998             Jim Meyering  <jim@meyering.net>
73000         Add an option for ignoring EPIPE during close_stdout.
73001         * lib/closeout.h: Include <stdbool.h>.
73002         (close_stdout_set_ignore_EPIPE): New declaration.
73003         * lib/closeout.c: Include <stdbool.h>.
73004         (ignore_EPIPE): New variable.
73005         (close_stdout_set_ignore_EPIPE): New function.
73006         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
73007         * lib/close-stream.c (close_stream): Mention the possible EPIPE
73008         failure.
73009         * modules/closeout (Depends-on): Add stdbool.
73011 2008-10-05  Bruno Haible  <bruno@clisp.org>
73013         * modules/accept: New file.
73014         * modules/bind: New file.
73015         * modules/connect: New file.
73016         * modules/getpeername: New file.
73017         * modules/getsockname: New file.
73018         * modules/getsockopt: New file.
73019         * modules/listen: New file.
73020         * modules/recv: New file.
73021         * modules/recvfrom: New file.
73022         * modules/send: New file.
73023         * modules/sendto: New file.
73024         * modules/setsockopt: New file.
73025         * modules/socket: New file.
73026         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
73027         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
73028         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
73029         the particular module is requested. Add a link warning when the
73030         particular module is not requested.
73031         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
73032         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
73033         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
73034         the particular module is requested.
73035         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
73036         gl_SYS_SOCKET_H_DEFAULTS): New macros.
73037         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
73038         * modules/sys_socket (Depends-on): Add link-warning.
73039         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
73040         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
73041         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
73042         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
73043         GL_LINK_WARNING.
73044         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
73045         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
73046         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
73047         * doc/posix-functions/getpeername.texi: Mention the new module
73048         'getpeername'.
73049         * doc/posix-functions/getsockname.texi: Mention the new module
73050         'getsockname'.
73051         * doc/posix-functions/getsockopt.texi: Mention the new module
73052         'getsockopt'.
73053         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
73054         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
73055         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
73056         * doc/posix-functions/send.texi: Mention the new module 'send'.
73057         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
73058         * doc/posix-functions/setsockopt.texi: Mention the new module
73059         'setsockopt'.
73060         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
73061         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
73062         listen, connect, accept.
73063         * modules/select-tests (Depends-on): Likewise.
73065 2008-10-05  Bruno Haible  <bruno@clisp.org>
73067         * lib/winsock.c (strerror): Remove unused #undef.
73068         (rpl_close): Remove unused local variable.
73070         * modules/sys_socket (Depends-on); Add errno.
73072 2008-10-05  Bruno Haible  <bruno@clisp.org>
73074         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
73075         (select): Add a link warning when the 'select' module is not used.
73076         * modules/sys_select (Depends-on): Add link-warning.
73077         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
73078         Suggested by Paolo Bonzini.
73080 2008-10-05  Jim Meyering  <meyering@redhat.com>
73082         bootstrap: check for LT_INIT more portably
73083         * build-aux/bootstrap: Avoid using grep -E, since it's not
73084         portable enough.  Suggestion from Bruno Haible.
73086 2008-10-05  Bruno Haible  <bruno@clisp.org>
73088         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
73089         as being fixed by gnulib.
73091 2008-10-05  Bruno Haible  <bruno@clisp.org>
73093         * modules/select-tests: New file, mostly copied from
73094         modules/sys_select-tests.
73095         * tests/test-select.c: New file, mostly copied from
73096         tests/test-sys_select.c.
73097         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
73098         * modules/sys_select-tests (Depends-on): Remove all dependencies.
73099         (Makefile.am): Remove test_sys_select_LDADD.
73101         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
73102         to an undefined symbol, for an error message.
73103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
73104         (gl_SYS_SELECT_H_DEFAULTS): New macro.
73105         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
73106         winsock-select.c here.
73107         * modules/sys_select (Files): Remove lib/winsock-select.c.
73108         (Depends-on): Remove alloca.
73109         (Makefile.am): Substitute GNULIB_SELECT.
73110         * modules/select: New file.
73111         * doc/posix-functions/select.texi: Update.
73113 2008-10-05  Bruno Haible  <bruno@clisp.org>
73115         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
73116         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
73117         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
73118         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
73119         getdtablesize.
73120         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
73121         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
73123 2008-10-05  Bruno Haible  <bruno@clisp.org>
73125         * modules/getdtablesize-tests: New file.
73126         * tests/test-getdtablesize.c: New file.
73128         New module 'getdtablesize'.
73129         * lib/unistd.in.h (getdtablesize): New declaration.
73130         * lib/getdtablesize.c: New file.
73131         * m4/getdtablesize.m4: New file.
73132         * modules/getdtablesize: New file.
73133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73134         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
73135         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
73136         HAVE_GETDTABLESIZE.
73137         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
73139 2008-10-05  Bruno Haible  <bruno@clisp.org>
73141         * modules/sched (Makefile.am): Fix typo.
73142         Reported by Simon Josefsson.
73144 2008-10-05  Jim Meyering  <meyering@redhat.com>
73146         bootstrap: check for LT_INIT, too
73147         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
73148         are deprecated.  Suggestion from Ralf Wildenhues.
73150 2008-10-05  Bruno Haible  <bruno@clisp.org>
73152         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
73153         overriding them by ours.
73154         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
73156 2008-10-05  Jim Meyering  <meyering@redhat.com>
73158         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
73159         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
73160         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
73162 2008-10-04  Bruno Haible  <bruno@clisp.org>
73164         * modules/dup2 (License): Change to LGPLv2+.
73165         * modules/sleep (License): Likewise.
73166         * modules/perror (License): Likewise.
73167         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
73168         Blake.
73169         * modules/signal (License): Likewise.
73170         * modules/sigprocmask (License): Likewise.
73171         * modules/raise (License): Change to LGPLv2+, with approval by Jim
73172         Meyering.
73174 2008-10-04  Bruno Haible  <bruno@clisp.org>
73176         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
73177         Reported by Rainer Tammer <tammer@tammer.net>.
73179 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
73180             Bruno Haible  <bruno@clisp.org>
73182         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
73183         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
73184         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
73186 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
73188         filevercmp: new module
73189         * lib/filevercmp.h: New function filevercmp comparing version strings.
73190         * lib/filevercmp.c: Implementation of filevercmp function.
73191         * modules/filevercmp: Module metadata.
73192         * tests/test-filevercmp.c: Unit test for new module.
73193         * modules/filevercmp-tests: Unit test metadata.
73194         * MODULES.html.sh: Add filevercmp module.
73196 2008-10-03  Bruno Haible  <bruno@clisp.org>
73198         * lib/c-ctype.h: Add comment.
73199         Reported by Jim Meyering.
73201 2008-10-02  Bruno Haible  <bruno@clisp.org>
73203         * modules/posix_spawn-internal (Depends-on): Add 'open'.
73205 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73207         * build-aux/bootstrap: Allow renaming bootstrap, and change the
73208         name of bootstrap.conf accordingly.
73210 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73212         * build-aux/bootstrap: Install git-merge-changelog configuration
73213         items into .gitconfig if needed.
73215 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73217         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
73218         git repository, and initialize/update it accordingly.
73220 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
73222         * modules/fsync-tests: New file.
73223         * tests/test-fsync.c: New file.
73225         New module 'fsync'.
73226         * lib/fsync.c: New file.
73227         * m4/fsync.m4: New file.
73228         * modules/fsync: New file.
73229         * lib/unistd.in.h (fsync): New declaration.
73230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
73231         GNULIB_FSYNC and HAVE_FSYNC.
73232         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
73233         * MODULES.html.sh (posix_functions): Add fsync.
73234         * doc/posix-functions/fsync.texi: Mention the new module.
73236 2008-10-02  Jim Meyering  <meyering@redhat.com>
73238         fts.c: sync with similar code from coreutils' remove.c
73239         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
73240         Guard also with "#if defined __linux__", since for now at least,
73241         this code is Linux-kernel-specific.
73243 2008-10-02  Jim Meyering  <meyering@redhat.com>
73245         fts: bug fixes
73246         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
73247         Include <sys/vfs.h>, not <sys/statfs.h>.
73249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
73250         Include <sys/vfs.h>, not <sys/statfs.h>.
73252 2008-10-01  Bruno Haible  <bruno@clisp.org>
73254         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
73255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
73256         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
73257         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
73258         * doc/posix-functions/posix_spawnp.texi: Likewise.
73259         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
73260         whether posix_spawn actually works.
73261         * m4/pipe.m4 (gl_PIPE): Likewise.
73262         * modules/execute (Files): Add m4/posix_spawn.m4.
73263         * modules/pipe (Files): Add m4/posix_spawn.m4.
73264         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
73266 2008-10-01  Jim Meyering  <meyering@redhat.com>
73268         remove trailing spaces
73269         * NEWS: Likewise.
73270         * lib/poll.c (poll): Likewise.
73271         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
73272         * lib/winsock.c (rpl_close): Likewise.
73273         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
73274         * modules/yield: Likewise.
73275         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
73276         * tests/test-sys_select.c (connect_to_socket): Likewise.
73278         fts.c: adjust a new interface to be more generally useful
73279         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
73280         (fts_build): Adjust caller.
73282 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73284         * modules/cond-tests: New file.
73285         * tests/test-cond.c: New file.
73287 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73288             Bruno Haible  <bruno@clisp.org>
73290         * modules/cond (Dependencies): Add errno, time.
73291         * lib/glthread/cond.h: Include <time.h>.
73292         (gl_cond_define, gl_cond_define_initialized): Use the same definition
73293         across platforms.
73295 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73296             Bruno Haible  <bruno@clisp.org>
73298         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
73300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73301             Bruno Haible  <bruno@clisp.org>
73303         * modules/tls-tests (Depends-on): Add thread, yield.
73304         (configure.ac): Remove all checks.
73305         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
73306         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73307         gl_thread_self): Remove definitions. Include glthread/thread.h and
73308         glthread/yield.h instead.
73309         (test_tls): Pass an additional NULL argument to gl_thread_join.
73311 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73312             Bruno Haible  <bruno@clisp.org>
73314         * modules/lock-tests (Depends-on): Add thread, yield.
73315         (configure.ac): Remove all checks.
73316         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
73317         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73318         gl_thread_self): Remove definitions. Include glthread/thread.h and
73319         glthread/yield.h instead.
73320         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
73321         additional NULL argument to gl_thread_join.
73323 2008-09-30  Bruno Haible  <bruno@clisp.org>
73325         Fix the Win32 implementation of the 'thread' module.
73326         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
73327         pointer type.
73328         (gl_thread_self): Invoke gl_thread_self_func.
73329         (gl_thread_self_func): New declaration.
73330         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
73331         (do_init_self_key, init_self_key): New functions.
73332         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
73333         Remove some fields.
73334         (running_threads, running_lock): Remove variables.
73335         (get_current_thread_handle): New function.
73336         (gl_thread_self_func, wrapper_func, glthread_create_func,
73337         glthread_join_func, gl_thread_exit_func): Largely rewritten and
73338         simplified.
73340 2008-09-30  Bruno Haible  <bruno@clisp.org>
73342         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
73343         files.
73345 2008-09-30  Jim Meyering  <meyering@redhat.com>
73347         fts.m4: correct the test for statfs.f_type
73348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
73349         when checking for statfs.f_type.
73351 2008-09-15  Simon Josefsson  <simon@josefsson.org>
73353         tests: avoid some compiler warnings
73354         * tests/test-memchr.c (main): Pass NULL indirectly.
73355         * tests/test-getdate.c (main): Remove unused variable 'ret'.
73357 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
73359         getdate.y: disallow countable dayshifts like "4 yesterday ago"
73360         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
73361         exactly specified dayshifts.
73362         (dayshift): New rule.
73363         (rel): Add dayshift.
73364         (relative_time_table) [tomorrow, yesterday, today, now]:
73365         Use tDAY_SHIFT in place of tDAY_UNIT.
73366         * tests/test-getdate.c: Add tests for now-disallowed countable
73367         dayshifts, e.g., "4 yesterday ago".
73369 2008-09-29  Bruno Haible  <bruno@clisp.org>
73371         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
73372         * tests/test-posix_spawn1.in.sh: Renamed from
73373         tests/test-posix_spawn.in.sh.
73374         * tests/test-posix_spawn2.c: New file.
73375         * tests/test-posix_spawn2.in.sh: New file.
73376         * modules/posix_spawnp-tests (Files): Update.
73377         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
73379 2008-09-29  Bruno Haible  <bruno@clisp.org>
73381         Propagate effects of putenv/setenv/unsetenv to child processes.
73382         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
73383         * lib/pipe.c (create_pipe): Likewise.
73385 2008-09-29  Bruno Haible  <bruno@clisp.org>
73387         Enable use of shell scripts as executables in mingw.
73388         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
73389         run the program as a shell script.
73390         * lib/pipe.c (create_pipe): Likewise.
73391         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
73392         resulting array.
73394 2008-09-29  Eric Blake  <ebb9@byu.net>
73396         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
73398 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
73400         * doc/posix-functions/accept.texi: Update mingw problems.
73401         * doc/posix-functions/bind.texi: Update mingw problems.
73402         * doc/posix-functions/close.texi: Update mingw problems.
73403         * doc/posix-functions/connect.texi: Update mingw problems.
73404         * doc/posix-functions/getpeername.texi: Update mingw problems.
73405         * doc/posix-functions/getsockname.texi: Update mingw problems.
73406         * doc/posix-functions/getsockopt.texi: Update mingw problems.
73407         * doc/posix-functions/ioctl.texi: Update mingw problems.
73408         * doc/posix-functions/listen.texi: Update mingw problems.
73409         * doc/posix-functions/recv.texi: Update mingw problems.
73410         * doc/posix-functions/recvfrom.texi: Update mingw problems.
73411         * doc/posix-functions/select.texi: Update mingw problems.
73412         * doc/posix-functions/send.texi: Update mingw problems.
73413         * doc/posix-functions/sendto.texi: Update mingw problems.
73414         * doc/posix-functions/setsockopt.texi: Update mingw problems.
73415         * doc/posix-functions/socket.texi: Update mingw problems.
73417 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
73418             Bruno Haible  <bruno@clisp.org>
73420         * lib/sys_select.in.h: Include sys/time.h.
73421         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
73422         * modules/sys_select: Depend on sys_time.
73423         * tests/test-sys_select.c: Test that sys/select.h defines struct
73424         timeval fully.
73426 2008-09-29  Bruno Haible  <bruno@clisp.org>
73428         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
73429         * lib/sys_select.in.h: Likewise.
73431 2008-09-29  Bruno Haible  <bruno@clisp.org>
73433         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
73435 2008-09-29  Bruno Haible  <bruno@clisp.org>
73437         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
73438         Set LIBSOCKET instead of augmenting LIBS.
73439         * modules/sockets (Link): New section.
73440         * modules/sockets-tests (test_sockets_LDADD): New variable.
73441         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
73442         * modules/poll-tests (test_poll_LDADD): New variable.
73443         * NEWS: Document the change.
73445 2008-09-29  Bruno Haible  <bruno@clisp.org>
73447         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
73448         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
73449         ARPA_INET_H directly.
73450         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73452 2008-09-28  Bruno Haible  <bruno@clisp.org>
73454         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
73455         from gl_HEADER_SYS_SOCKET.
73456         (gl_HEADER_SYS_SOCKET): Invoke it.
73457         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73459 2008-09-28  Bruno Haible  <bruno@clisp.org>
73461         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
73462         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
73463         Needed on OSF/1 4.0.
73465 2008-09-28  Bruno Haible  <bruno@clisp.org>
73467         Override open more carefully.
73468         * lib/open.c (orig_open): New function.
73469         (rpl_open): Use orig_open instead of open.
73470         * lib/fcntl.in.h: Add special invocation convention.
73471         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
73472         (gl_FUNC_OPEN): Invoke it.
73474         Override freopen more carefully.
73475         * lib/freopen.c (orig_freopen): New function.
73476         (rpl_freopen): Use orig_freopen instead of freopen.
73477         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
73478         (gl_FUNC_FREOPEN): Invoke it.
73480         Override fopen more carefully.
73481         * lib/fopen.c (orig_fopen): New function.
73482         (rpl_fopen): Use orig_fopen instead of fopen.
73483         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
73484         (gl_FUNC_FOPEN): Invoke it.
73485         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
73487 2008-09-28  Bruno Haible  <bruno@clisp.org>
73489         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
73490         SIGPIPE.
73492 2008-09-28  Bruno Haible  <bruno@clisp.org>
73494         * tests/test-sigaction.c (handler, main): Disable the check whether
73495         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
73496         glibc systems with LinuxThreads.
73498 2008-09-28  Bruno Haible  <bruno@clisp.org>
73500         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
73502         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
73503         with AIX xlc.
73504         * lib/fcntl.in.h (open): Likewise.
73505         Reported by Rainer Tammer <tammer@tammer.net>.
73507 2008-09-28  Bruno Haible  <bruno@clisp.org>
73509         * modules/posix_spawnp-tests: New file.
73510         * tests/test-posix_spawn.c: New file.
73511         * tests/test-posix_spawn.in.sh: New file.
73513         New module 'posix_spawnp'.
73514         * modules/posix_spawnp: New file.
73515         * lib/spawnp.c: New file, from GNU libc with modifications.
73516         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
73518         New module 'posix_spawn'.
73519         * modules/posix_spawn: New file.
73520         * lib/spawn.c: New file, from GNU libc with modifications.
73521         * doc/posix-functions/posix_spawn.texi: Mention the new module.
73523         New module 'posix_spawnattr_destroy'.
73524         * modules/posix_spawnattr_destroy: New file.
73525         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
73526         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
73527         module.
73529         New module 'posix_spawnattr_setsigmask'.
73530         * modules/posix_spawnattr_setsigmask: New file.
73531         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
73532         modifications.
73533         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
73534         new module.
73536         New module 'posix_spawnattr_getsigmask'.
73537         * modules/posix_spawnattr_getsigmask: New file.
73538         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
73539         modifications.
73540         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
73541         new module.
73543         New module 'posix_spawnattr_setsigdefault'.
73544         * modules/posix_spawnattr_setsigdefault: New file.
73545         * lib/spawnattr_setdefault.c: New file, from GNU libc with
73546         modifications.
73547         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
73548         new module.
73550         New module 'posix_spawnattr_getsigdefault'.
73551         * modules/posix_spawnattr_getsigdefault: New file.
73552         * lib/spawnattr_getdefault.c: New file, from GNU libc with
73553         modifications.
73554         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
73555         new module.
73557         New module 'posix_spawnattr_setschedpolicy'.
73558         * modules/posix_spawnattr_setschedpolicy: New file.
73559         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
73560         modifications.
73561         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
73562         new module.
73564         New module 'posix_spawnattr_getschedpolicy'.
73565         * modules/posix_spawnattr_getschedpolicy: New file.
73566         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
73567         modifications.
73568         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
73569         new module.
73571         New module 'posix_spawnattr_setschedparam'.
73572         * modules/posix_spawnattr_setschedparam: New file.
73573         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
73574         modifications.
73575         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
73576         new module.
73578         New module 'posix_spawnattr_getschedparam'.
73579         * modules/posix_spawnattr_getschedparam: New file.
73580         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
73581         modifications.
73582         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
73583         new module.
73585         New module 'posix_spawnattr_setpgroup'.
73586         * modules/posix_spawnattr_setpgroup: New file.
73587         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
73588         modifications.
73589         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
73590         module.
73592         New module 'posix_spawnattr_getpgroup'.
73593         * modules/posix_spawnattr_getpgroup: New file.
73594         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
73595         modifications.
73596         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
73597         module.
73599         New module 'posix_spawnattr_setflags'.
73600         * modules/posix_spawnattr_setflags: New file.
73601         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
73602         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
73603         module.
73605         New module 'posix_spawnattr_getflags'.
73606         * modules/posix_spawnattr_getflags: New file.
73607         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
73608         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
73609         module.
73611         New module 'posix_spawnattr_init'.
73612         * modules/posix_spawnattr_init: New file.
73613         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
73614         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
73615         module.
73617         New module 'posix_spawn_file_actions_destroy'.
73618         * modules/posix_spawn_file_actions_destroy: New file.
73619         * lib/spawn_faction_destroy.c: New file, from GNU libc with
73620         modifications.
73621         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
73622         the new module.
73624         New module 'posix_spawn_file_actions_addopen'.
73625         * modules/posix_spawn_file_actions_addopen: New file.
73626         * lib/spawn_faction_addopen.c: New file, from GNU libc with
73627         modifications.
73628         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
73629         the new module.
73631         New module 'posix_spawn_file_actions_adddup2'.
73632         * modules/posix_spawn_file_actions_adddup2: New file.
73633         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
73634         modifications.
73635         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
73636         the new module.
73638         New module 'posix_spawn_file_actions_addclose'.
73639         * modules/posix_spawn_file_actions_addclose: New file.
73640         * lib/spawn_faction_addclose.c: New file, from GNU libc with
73641         modifications.
73642         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
73643         the new module.
73645         New module 'posix_spawn_file_actions_init'.
73646         * modules/posix_spawn_file_actions_init: New file.
73647         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
73648         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
73649         new module.
73651         New module 'posix_spawn-internal'.
73652         * modules/posix_spawn-internal: New file.
73653         * lib/spawn_int.h: New file, from GNU libc with modifications.
73654         * lib/spawni.c: New file, from GNU libc with modifications.
73655         * m4/posix_spawn.m4: New file.
73657         New module 'spawn'.
73658         * modules/spawn: New file.
73659         * lib/spawn.in.h: New file, from GNU libc with modifications.
73660         * m4/spawn_h.m4: New file.
73661         * doc/posix-headers/spawn.texi: Mention the new module.
73663 2008-09-28  Bruno Haible  <bruno@clisp.org>
73665         * modules/sched-tests: New file.
73666         * tests/test-sched.c: New file.
73668         New module 'sched'.
73669         * modules/sched: New file.
73670         * lib/sched.in.h: New file.
73671         * m4/sched_h.m4: New file.
73672         * doc/posix-headers/sched.texi: Mention the new module.
73674 2008-09-27  Eric Blake  <ebb9@byu.net>
73676         Fix previous patch, and tweak references to $0.
73677         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
73678         (func_version, func_gnulib_dir): Don't call this program
73679         gnulib-tool.
73680         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
73681         with using $0 in function.
73682         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
73683         (func_fatal_error): Reuse the name the user invoked us with.
73685 2008-09-27  Bruno Haible  <bruno@clisp.org>
73687         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
73688         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
73689         (gl_ICONV_H): Not here.
73690         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
73691         instead of assigning ICONV_H directly.
73693         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
73694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
73695         WCHAR_H directly.
73697 2008-09-27  Bruno Haible  <bruno@clisp.org>
73699         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
73700         * modules/arpa_inet (Depends-on): Add link-warning.
73701         (Makefile.am): Insert the definition of GL_LINK-WARNING.
73702         * modules/unistd (Makefile.am): Likewise.
73704 2008-09-26  Bruno Haible  <bruno@clisp.org>
73706         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
73707         variables.
73708         (func_version): Essentially copied from gnulib-tool.
73709         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
73710         func_readlink): Copied from gnulib-tool.
73712 2008-09-26  Bruno Haible  <bruno@clisp.org>
73714         * gnulib-tool (func_version): Change directory to $gnulib_dir before
73715         invoking git-version-gen.
73717 2008-09-26  Bruno Haible  <bruno@clisp.org>
73719         * posix-modules: Update to directory names changed on 2008-01-19.
73720         Remove commas in output before splitting into words. No more need to
73721         avoid 'ftruncate' since 2007-02-19.
73723 2008-09-26  Bruno Haible  <bruno@clisp.org>
73725         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
73727 2008-09-26  Bruno Haible  <bruno@clisp.org>
73729         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
73730         * modules/fwriteerror (Depends-on): Add errno.
73732 2008-09-26  Bruno Haible  <bruno@clisp.org>
73734         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
73735         * tests/test-vc-list-files-cvs.sh: Likewise.
73737 2008-09-26  Bruno Haible  <bruno@clisp.org>
73739         * doc/posix-headers/sys_resource.texi: Reorder items.
73741 2008-09-26  Jim Meyering  <meyering@redhat.com>
73743         fts: tweak inode comparison function
73744         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
73745         inode numbers, as documented.
73747         fts: sort dirent entries on inode number before traversing
73748         This avoids a quadratic, seek-related performance penalty when
73749         operating on a directory containing many entries (measurable at 10k;
73750         3.5 hours at 2 million entries with a cold cache) on certain types
73751         of file systems, including ext3 and ext4, but not tmpfs.
73752         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
73753         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
73754         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
73755         (fs_handles_readdir_ordered_dirents_efficiently): New function.
73756         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
73757         (fts_build): Set the stat.st_ino member from D_INO.
73758         If it is likely to be useful, sort dirent entries on inode number.
73760         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
73761         and the struct statfs.f_type member.
73762         * modules/fts (Depends-on): Add d-ino.
73764 2008-09-26  Bruno Haible  <bruno@clisp.org>
73766         * modules/sigpipe-die (Depends-on): Add sigpipe.
73768         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
73769         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
73770         and GNULIB_STDIO_H_SIGPIPE are set.
73771         * lib/stdio-write.c: New file.
73772         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
73773         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73774         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73775         REPLACE_STDIO_WRITE_FUNCS.
73776         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
73777         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73778         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73779         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73780         * modules/stdio (Files): Add lib/stdio-write.c.
73781         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
73782         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73783         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73784         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73785         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
73786         REPLACE_FPRINTF_POSIX.
73787         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
73788         REPLACE_PRINTF_POSIX.
73789         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
73790         REPLACE_VFPRINTF_POSIX.
73791         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
73792         REPLACE_VPRINTF_POSIX.
73793         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
73794         SIGPIPE issue.
73795         * doc/posix-functions/fputc.texi: Likewise.
73796         * doc/posix-functions/fputs.texi: Likewise.
73797         * doc/posix-functions/fwrite.texi: Likewise.
73798         * doc/posix-functions/printf.texi: Likewise.
73799         * doc/posix-functions/putc.texi: Likewise.
73800         * doc/posix-functions/putchar.texi: Likewise.
73801         * doc/posix-functions/puts.texi: Likewise.
73802         * doc/posix-functions/vfprintf.texi: Likewise.
73803         * doc/posix-functions/vprintf.texi: Likewise.
73805         * modules/safe-write (Depends-on): Add write.
73807         * modules/sigpipe-tests: New file.
73808         * tests/test-sigpipe.c: New file.
73809         * tests/test-sigpipe.sh: New file.
73811         * modules/write: New file.
73812         * lib/unistd.in.h: Include <sys/types.h>.
73813         (write): New declaration.
73814         * lib/write.c: New file.
73815         * m4/write.m4: New file.
73816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73817         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
73818         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
73819         GNULIB_WRITE, REPLACE_WRITE.
73820         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
73821         and the SIGPIPE issue.
73823         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
73824         (raise): New declaration.
73825         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
73826         (ext_signal): New function.
73827         (rpl_raise): New function.
73828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
73829         GNULIB_SIGNAL_H_SIGPIPE.
73830         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
73831         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
73833         * modules/sigpipe: New file.
73834         * m4/sigpipe.m4: New file.
73836 2008-09-25  Derek Price  <derek@ximbiot.com>
73837             Bruno Haible  <bruno@clisp.org>
73839         * gnulib-tool (func_import): Report all license incompatibilities, not
73840         just the first one.
73842 2008-09-25  Bruno Haible  <bruno@clisp.org>
73844         * gnulib-tool (func_import): When computing the edits, consider not
73845         only the Makefile.ams that exist but also those that will be generated.
73847 2008-09-25  Simon Josefsson  <simon@josefsson.org>
73849         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73850         fixes gnulib-tool --test warning about duplicate dependency.
73852 2008-09-25  Bruno Haible  <bruno@clisp.org>
73854         * gnulib-tool: Don't ask the user to perform edits in the generated
73855         Makefile.ams.
73856         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73857         apply to the Makefile.am being generated.
73858         (func_emit_tests_Makefile_am): Execute edits that apply to the
73859         Makefile.am being generated.
73860         (func_import): Setup list of Makefile.am edits before emitting the
73861         Makefile.ams, not at the end.
73862         (func_create_testdir): Update.
73863         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73865 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73867         * gnulib-tool (func_import): Store the --tests-base option in the
73868         comment in gnulib-cache.m4.
73870 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73872         * NEWS: Document increased portability that sys_select now provides.
73874         * lib/sys_select.in.h: Install select wrapper.
73875         * lib/sys_socket.in.h: Use more descriptive name when there is no
73876         select wrapper.
73877         * lib/winsock-select.c: New.
73878         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73879         Require gl_HEADER_SYS_SOCKET.
73880         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73881         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73882         * tests/test-sys_select.c: Add functional tests.
73884 2008-09-24  Eric Blake  <ebb9@byu.net>
73886         open, fopen: close fd leak in last patch
73887         * lib/open.c (rpl_open): Close fd before returning error.
73888         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73889         * doc/posix-functions/open.texi (open): Document that Irix also
73890         has the bug.
73891         * doc/posix-functions/fopen.texi (fopen): Likewise.
73892         Reported by Paolo Bonzini.
73894 2008-09-24  Bruno Haible  <bruno@clisp.org>
73896         Ensure that a filename ending in a slash cannot be used to access a
73897         non-directory.
73898         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73899         to check whether it's really a directory.
73900         * lib/fopen.c: Include fcntl.h, unistd.h.
73901         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73902         and fdopen().
73903         * modules/fopen (Depends-on): Add unistd.
73904         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73905         * tests/test-fopen.c (main): Likewise.
73906         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73907         * doc/posix-functions/fopen.texi: Likewise.
73908         Reported by Eric Blake.
73910 2008-09-23  Eric Blake  <ebb9@byu.net>
73912         c-stack: avoid compiler optimizations when provoking overflow
73913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73914         recursion harder to optimize, to ensure a stack overflow occurs.
73915         * tests/test-c-stack.c (recurse): Likewise.
73916         Borrowed from libsigsegv.
73918         c-stack: work around Irix sigaltstack bug
73919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73920         whether sigaltstack uses wrong end of stack_t (copied in part from
73921         libsigsegv).
73922         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73923         Irix bug, without requiring an over-allocation.
73924         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73925         bug.
73927         fopen: document mingw bug on directories
73928         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73929         not allowing a stream visiting a directory, even though reading
73930         from such a stream is not portable.
73932 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73934         * lib/poll.c: Rewrite.
73935         * modules/poll: Depend on alloca.
73937 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73939         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73940         instead define prototypes for a full set of wrappers.  Ensure
73941         that Cygwin does not use the compatibility code, which is only
73942         for MinGW.
73943         * lib/winsock.c: New.
73944         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73945         * modules/sys_socket: Add lib/winsock.c.
73947         * modules/poll-tests: Add errno and perror.
73948         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73952         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73954 2008-09-23  Bruno Haible  <bruno@clisp.org>
73956         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73957         * doc/glibc-functions/*: Likewise.
73959 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73961         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73962         success.
73964 2008-09-22  Eric Blake  <ebb9@byu.net>
73965             Bruno Haible  <bruno@clisp.org>
73967         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73968         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73969         supply %A but mishandle pseudo-NaN.
73970         Reported by Simon Josefsson.
73972 2008-09-21  Bruno Haible  <bruno@clisp.org>
73974         * tests/test-lock.c (main): Tweak skip message.
73975         * tests/test-tls.c (main): Likewise.
73977 2008-09-21  Bruno Haible  <bruno@clisp.org>
73979         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73980         whether 'struct sigaction' has sa_sigaction here...
73981         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73982         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73984 2008-09-21  Bruno Haible  <bruno@clisp.org>
73986         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73987         section.
73988         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73989         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73990         the new section.
73991         (Support for obsolete systems lacking POSIX:2001): New section.
73992         (String handling <string.h>): Move strdup to the new section.
73993         Suggested by Simon Josefsson and Paolo Bonzini.
73995 2008-09-21  Bruno Haible  <bruno@clisp.org>
73997         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73998         exponents in %e and %g results on 'long double'. Needed for mingw's
73999         improved *printf functions.
74000         * tests/test-vasprintf-posix.c (test_function): Likewise.
74001         * tests/test-snprintf-posix.h (test_function): Likewise.
74002         * tests/test-sprintf-posix.h (test_function): Likewise.
74003         Reported by Eric Blake.
74005 2008-09-21  Bruno Haible  <bruno@clisp.org>
74007         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
74008         * tests/test-sprintf-posix.h (test_function): Likewise.
74010 2008-09-21  Bruno Haible  <bruno@clisp.org>
74012         * modules/getpass (Depends-on): Add strdup-posix.
74014         New module 'strdup-posix'.
74015         * modules/strdup-posix: New file.
74016         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
74017         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
74018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74019         REPLACE_STRDUP.
74020         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
74021         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
74022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74023         strdup-posix.
74025         * modules/strdup (Depends-on): Remove malloc-posix.
74027 2008-09-20  Bruno Haible  <bruno@clisp.org>
74029         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
74030         Wildenhues.
74032 2008-09-20  Bruno Haible  <bruno@clisp.org>
74034         Ensure that wint_t gets defined on IRIX 5.3.
74035         * lib/wchar.in.h (wint_t): Define if not defined by the system.
74036         * lib/wctype.in.h (wint_t): Likewise.
74037         (__wctype_wint_t): Remove type.
74038         (isw*): Use wint_t instead of __wctype_wint_t.
74039         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
74040         * modules/wchar (Files): Add m4/wint_t.m4.
74041         (Makefile.am): Substitute HAVE_WINT_T.
74042         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
74043         * tests/test-wctype.c: Check that wint_t is defined.
74044         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
74045         * doc/posix-headers/wctype.texi: Likewise.
74046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74048 2008-09-18  Bruno Haible  <bruno@clisp.org>
74050         * gnulib-tool (func_exit): Update comment.
74052 2008-09-18  Simon Josefsson  <simon@josefsson.org>
74054         * modules/getaddrinfo (Depends-on): Remove strdup, this module
74055         assumes strdup exists and does not depend on strdup to return
74056         ENOMEM on out of memory conditions.
74058 2008-09-18  Bruno Haible  <bruno@clisp.org>
74060         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
74061         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
74062         digits for the exponent.
74064 2008-09-18  Jim Meyering  <meyering@redhat.com>
74065             Bruno Haible  <bruno@clisp.org>
74067         * lib/vasnprintf.c (decimal_point_char): Define also if
74068         NEED_PRINTF_INFINITE_LONG_DOUBLE.
74070 2008-09-16  Bruno Haible  <bruno@clisp.org>
74071         and Eric Blake  <ebb9@byu.net>
74073         vasnprintf: support Irix 5.3
74074         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
74075         that mishandle long double infinity.
74076         Reported by Tom G. Christensen.
74078 2008-09-16  Bruno Haible  <bruno@clisp.org>
74080         * doc/glibc-functions/scandir.texi: Mention the function is missing on
74081         Solaris 9.
74082         * doc/glibc-functions/alphasort.texi: Likewise.
74083         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
74085 2008-09-16  Jim Meyering  <meyering@redhat.com>
74087         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
74088         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
74089         a umask modification leak out of a subshell.  Otherwise, the
74090         opensolaris /bin/sh would be accepted and thus cause unwarranted
74091         failures in the coreutils test suite.
74093 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
74095         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
74096         to succeed.
74098 2008-09-16  Jim Meyering  <meyering@redhat.com>
74100         avoid spurious test failure when library is built without ACL support
74101         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
74102         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
74103         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
74104         * tests/test-copy-acl.sh: Likewise.
74106 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74108         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
74109         based on character occurrence counts.
74111 2008-09-15  Eric Blake  <ebb9@byu.net>
74113         tests: avoid some compiler warnings
74114         * tests/test-memchr.c (main): Pass NULL indirectly.
74115         * tests/test-closein.c (main): Avoid unused variable.
74117 2008-09-15  Bruno Haible  <bruno@clisp.org>
74119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
74120         are missing on OpenBSD 4.0 individually.
74121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74123 2008-09-15  Bruno Haible  <bruno@clisp.org>
74125         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
74126         * doc/posix-functions/strerror.texi: Mention also Cygwin.
74127         * doc/posix-functions/perror.texi: Likewise.
74128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
74129         is missing.
74130         Reported by Eric Blake.
74132         * lib/errno.in.h: Use replacement values >= 2000.
74133         Reported by Eric Blake.
74135 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74137         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
74138         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
74139         limit.
74140         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
74141         compareseq was aborted.
74143 2008-09-14  Bruno Haible  <bruno@clisp.org>
74145         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
74146         yvec_edit_count.
74147         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
74148         (fstrcmp_bounded): Simplify result computation accordingly.
74150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74152         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
74153         (fstrcmp): Define in terms of fstrcmp_bounded.
74154         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
74155         lower_bound argument.
74156         Return quickly if the result is certainly < lower_bound.
74157         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
74159 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74161         * lib/diffseq.h (EARLY_ABORT): New macro.
74162         (compareseq): Change return type to bool. Return true when EARLY_ABORT
74163         evaluates to true.
74165 2008-09-14  Bruno Haible  <bruno@clisp.org>
74167         * modules/perror-tests: New file.
74168         * tests/test-perror.sh: New file.
74169         * tests/test-perror.c: New file.
74171         New module 'perror'.
74172         * lib/stdio.in.h (perror): New declaration.
74173         * lib/perror.c: New file.
74174         * m4/perror.m4: New file.
74175         * modules/perror: New file.
74176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
74177         * doc/posix-functions/perror.texi: Mention the perror module.
74178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
74179         REPLACE_PERROR.
74180         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
74181         REPLACE_PERROR.
74183 2008-09-14  Bruno Haible  <bruno@clisp.org>
74185         * modules/stdio (Makefile.am): Reorder to match the order in
74186         lib/stdio.in.h.
74187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74189 2008-09-13  Bruno Haible  <bruno@clisp.org>
74191         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
74193 2008-09-13  Bruno Haible  <bruno@clisp.org>
74195         Extend strerror to cover the added errno values.
74196         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
74197         (rpl_strerror): Provide error messages for the added errno values and
74198         for the WSA* values.
74199         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
74200         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
74201         strerror.
74202         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
74203         * modules/strerror (Depends-on): Add errno.
74204         * doc/posix-functions/strerror.texi: Document the change.
74205         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
74206         and EOVERFLOW.
74208 2008-09-13  Bruno Haible  <bruno@clisp.org>
74210         * modules/EOVERFLOW: Remove file.
74211         * m4/eoverflow.m4: Remove file.
74212         * modules/EOVERFLOW-tests: Remove file.
74213         * tests/test-EOVERFLOW.c: Remove file.
74214         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
74215         * modules/ftell (Depends-on): Likewise.
74216         * modules/getdelim (Depends-on): Likewise.
74217         * modules/getugroups (Depends-on): Likewise.
74218         * modules/poll (Depends-on): Likewise.
74219         * modules/snprintf (Depends-on): Likewise.
74220         * modules/sprintf-posix (Depends-on): Likewise.
74221         * modules/vasnprintf (Depends-on): Likewise.
74222         * modules/vasprintf (Depends-on): Likewise.
74223         * modules/vfprintf-posix (Depends-on): Likewise.
74224         * modules/vsnprintf (Depends-on): Likewise.
74225         * modules/vsprintf-posix (Depends-on): Likewise.
74226         * modules/xvasprintf (Depends-on): Likewise.
74227         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74228         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
74229         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
74230         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
74231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74232         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
74233         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
74234         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
74235         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74236         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
74237         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
74238         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
74239         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74240         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
74241         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
74242         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
74243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74244         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
74245         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
74246         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
74247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74248         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
74249         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
74250         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
74251         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
74252         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74253         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
74254         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
74255         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
74256         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
74257         * MODULES.html.sh: Remove EOVERFLOW.
74258         * NEWS: Mention the change.
74260 2008-09-13  Bruno Haible  <bruno@clisp.org>
74262         * modules/errno-tests: New file.
74263         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
74265         * lib/errno.in.h: New file.
74266         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
74267         * modules/errno: New file.
74268         * doc/posix-headers/errno.texi: Update documentation.
74269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
74271 2008-09-13  Bruno Haible  <bruno@clisp.org>
74273         * tests/test-poll.c: Use #if for native Windows, rather than testing
74274         __MSVCRT__.
74276 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74277             Bruno Haible  <bruno@clisp.org>
74279         * lib/glob.c: Don't include <pwd.h> on native Windows.
74280         (WINDOWS32): New macro.
74281         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
74283 2008-09-13  Bruno Haible  <bruno@clisp.org>
74285         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
74286         (ETIMEDOUT): Remove macro.
74287         (glthread_cond_timedwait_multithreaded): New declaration.
74288         (glthread_cond_timedwait): Use it.
74289         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
74290         (glthread_cond_timedwait_multithreaded): New function.
74292 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74294         * modules/poll-tests: Do not check for io.h.
74295         * tests/test-poll.c: Check for __MSVCRT__ instead.
74297 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74299         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
74300         * modules/poll-tests: Add inet_pton, stdbool, sockets.
74301         * tests/test-poll.c: Use them.  Use _pipe on Windows.
74303 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74305         * modules/poll-tests: New.
74306         * tests/test-poll.c: New.
74308 2008-09-12  Eric Blake  <ebb9@byu.net>
74310         frexp: test for NetBSD failure on -0.0
74311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
74312         not all, bugs from NetBSD 3.0 have been fixed.
74313         * doc/posix-functions/frexp.texi (frexp): Document bug.
74314         Reported by Thomas Klausner.
74316         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
74317         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
74318         literal -0.0.
74319         Reported by Jonathan C. Patschke <jp@centtech.com>.
74321 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74323         * lib/glthread/cond.h: Use dummy implementation also if
74324         USE_WIN32_THREADS.
74326 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74328         * modules/fnmatch-posix (License): Change to LGPLv2+.
74329         * modules/fnmatch-gnu (License): Likewise.
74331 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74333         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
74335 2008-09-11  Jim Meyering  <meyering@redhat.com>
74337         * users.txt: Add gtk-vnc.
74339 2008-09-08  Simon Josefsson  <simon@josefsson.org>
74341         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
74342         rotate amounts.
74344         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
74345         required for 16-bit and 8-bit rotates.
74346         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
74347         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
74348         UINT8_MAX instead of hard-coded constants.
74349         Suggested by Paul Eggert.
74351 2008-09-07  Bruno Haible  <bruno@clisp.org>
74353         * tests/test-striconveh.c (main): Check behaviour when converting from
74354         UTF-7.
74356         Make striconveh work better with stateful encodings.
74357         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
74358         that iconv does not increment the inptr when returning -1/EINVAL.
74360 2008-09-07  Bruno Haible  <bruno@clisp.org>
74362         * build-aux/config.rpath: Update according to libtool-2.2.6.
74363         * build-aux/config.libpath: Likewise.
74365 2008-09-06  Bruno Haible  <bruno@clisp.org>
74367         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
74368         * lib/freadptr.c (freadptr): Likewise.
74369         * lib/freadseek.c (freadptrinc): Likewise.
74370         Reported by Simon Josefsson.
74372 2008-09-06  Bruno Haible  <bruno@clisp.org>
74374         * modules/freadptr (License): Change to LGPLv2+.
74375         * modules/freadseek (License): Likewise.
74376         Suggested by Eric Blake.
74378         * modules/memchr2 (License): Change to LGPLv2+.
74379         Approved by Eric Blake.
74381 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74382             Bruno Haible  <bruno@clisp.org>
74384         Make gnulib-tool work with native 'sed' on AIX.
74385         * gnulib-tool (sed_noop): New variable.
74386         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
74387         func_add_or_update, func_create_testdir): Use it to initialize sed
74388         script variables.
74389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74391 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
74392             Bruno Haible  <bruno@clisp.org>
74394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
74395         also works after #include directives.
74397 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
74399         getdate.y: reject an out-of-range timezone value
74400         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
74401         the range [-24...+24].  When specified with only one or two digits,
74402         * tests/test-getdate.c: Tests for the fix.
74403         * doc/getdate.texi: Document this change.
74405 2008-09-03  Bruno Haible  <bruno@clisp.org>
74407         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
74409 2008-09-02  Simon Josefsson  <simon@josefsson.org>
74411         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
74412         <bruce.korb@gmail.com> with ideas from Ben Pfaff
74413         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
74414         Blake <ebb9@byu.net>.
74416         * tests/test-bitrotate.c: Add more test vectors.
74418 2008-09-02  Eric Blake  <ebb9@byu.net>
74420         vasnprintf-posix: handle large precision via %.*d
74421         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
74422         when handling it ourselves.
74423         * tests/test-vasnprintf-posix.c (test_function): Add test.
74424         * tests/test-snprintf-posix.h (test_function): Likewise.
74425         * tests/test-sprintf-posix.h (test_function): Likewise.
74426         * tests/test-vasprintf-posix.c (test_function): Likewise.
74427         Reported by Alain Guibert.
74429 2008-09-01  Eric Blake  <ebb9@byu.net>
74431         c-stack: make configure-time check more robust
74432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
74433         successful sigaction call.
74434         Reported by Tom G. Christensen.
74436 2008-09-01  Bruno Haible  <bruno@clisp.org>
74438         New module 'findprog-lgpl'.
74439         * modules/findprog-lgpl: New file.
74440         * lib/findprog-lgpl.c: New file.
74441         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
74442         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
74443         to decide whether to use strdup or xstrdup, concatenated_filename or
74444         xconcatenated_filename.
74446 2008-09-01  Bruno Haible  <bruno@clisp.org>
74448         Split module 'concat-filename' into 'concat-filename' (LGPL) and
74449         'xconcat-filename' (GPL).
74450         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
74451         (License): Change to LGPLv2+.
74452         * modules/xconcat-filename: New file.
74453         * lib/concat-filename.h (concatenated_filename): Change specification.
74454         (xconcatenated_filename): New declaration.
74455         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
74456         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
74457         memory situations.
74458         * lib/xconcat-filename.c: New file.
74459         * NEWS: Mention the change.
74460         * lib/findprog.c: Include concat-filename.h, not filename.h.
74461         (find_in_path): Use xconcatenated_filename instead of
74462         concatenated_filename.
74463         * lib/javacomp.c: Include concat-filename.h, not filename.h.
74464         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
74465         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
74466         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
74467         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
74468         instead of concatenated_filename.
74469         * lib/javaexec.c: Include concat-filename.h, not filename.h.
74470         (execute_java_class): Use xconcatenated_filename instead of
74471         concatenated_filename.
74472         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
74473         * modules/javacomp (Depends-on): Likewise.
74474         * modules/javaexec (Depends-on): Likewise.
74476 2008-09-01  Bruno Haible  <bruno@clisp.org>
74478         Split module 'filename' into 'filename' and 'concat-filename'.
74479         * modules/filename: Keep only lib/filename.h.
74480         (License): Change to LGPLv2+.
74481         * modules/concat-filename: New file, extracted from modules/filename.
74482         * lib/filename.h (concatenated_filename): Remove declaration.
74483         * lib/concat-filename.h: New file, extracted from lib/filename.h.
74484         * lib/concat-filename.c: Include concat-filename.h.
74485         * NEWS: Mention the change.
74487 2008-09-01  Simon Josefsson  <simon@josefsson.org>
74489         * lib/bitrotate.h (rotl8, rotr8): Add.
74491         * modules/bitrotate (configure.ac): Need
74492         AC_REQUIRE([AC_C_INLINE]).
74493         (Description): Mention stdint.h.  Reported by Bruno Haible
74494         <bruno@clisp.org>.
74496         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
74497         Paolo Bonzini <bonzini@gnu.org>.
74499 2008-08-31  Bruno Haible  <bruno@clisp.org>
74501         Assume Solaris specific bi-arch conventions on Solaris systems.
74502         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
74503         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
74504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
74505         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
74506         like acl_libdirstem.
74507         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
74508         acl_libdirstem.
74509         * NEWS: Mention the change.
74510         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
74512 2008-08-31  Jim Meyering  <meyering@redhat.com>
74514         * lib/strftime.h: Add comments describing the two added arguments.
74516         remove duplicate #include directives
74517         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
74518         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
74520 2008-08-31  Bruno Haible  <bruno@clisp.org>
74522         New module 'sigpipe-die'.
74523         * modules/sigpipe-die: New file.
74524         * lib/sigpipe-die.h: New file.
74525         * lib/sigpipe-die.c: New file.
74526         * MODULES.html.sh (Signal handling): Add sigpipe-die.
74528 2008-08-31  Bruno Haible  <bruno@clisp.org>
74530         Don't override previously installed signal handlers.
74531         * lib/fatal-signal.c (saved_sigactions): New variable.
74532         (uninstall_handlers): Reset the signal to the saved handler, not
74533         to SIG_DFL (except when ignored).
74534         (install_handlers): Save the previous handlers.
74536 2008-08-30  Bruno Haible  <bruno@clisp.org>
74538         * gnulib-tool (func_reset_sigpipe): New function.
74539         (func_get_automake_snippet, func_modules_transitive_closure,
74540         func_import): Invoke it before a join command that reads from stdin,
74541         to avoid "echo: write error: Broken pipe" error messages on stderr.
74542         Reported by Sam Steingold <sds@gnu.org>.
74544 2008-08-30  Bruno Haible  <bruno@clisp.org>
74546         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
74547         Code copied from m4/open.m4.
74548         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
74549         access and the filename ends in a slash. Code copied from lib/open.c.
74550         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
74551         * tests/test-fopen.c (main): Check against bug with trailing slash.
74553 2008-08-29  Bruno Haible  <bruno@clisp.org>
74555         Avoid some "gcc -pedantic" warnings.
74556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
74557         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
74558         * lib/dirent.in.h: Likewise.
74559         * lib/fcntl.in.h: Likewise.
74560         * lib/float.in.h: Likewise.
74561         * lib/iconv.in.h: Likewise.
74562         * lib/inttypes.in.h: Likewise.
74563         * lib/locale.in.h: Likewise.
74564         * lib/math.in.h: Likewise.
74565         * lib/netinet_in.in.h: Likewise.
74566         * lib/search.in.h: Likewise.
74567         * lib/signal.in.h: Likewise.
74568         * lib/stdarg.in.h: Likewise.
74569         * lib/stdint.in.h: Likewise.
74570         * lib/stdio.in.h: Likewise.
74571         * lib/stdlib.in.h: Likewise.
74572         * lib/string.in.h: Likewise.
74573         * lib/strings.in.h: Likewise.
74574         * lib/sys_select.in.h: Likewise.
74575         * lib/sys_socket.in.h: Likewise.
74576         * lib/sys_stat.in.h: Likewise.
74577         * lib/sys_time.in.h: Likewise.
74578         * lib/sysexits.in.h: Likewise.
74579         * lib/time.in.h: Likewise.
74580         * lib/unistd.in.h: Likewise.
74581         * lib/wchar.in.h: Likewise.
74582         * lib/wctype.in.h: Likewise.
74583         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
74584         * modules/fchdir (Makefile.am): Likewise.
74585         * modules/fcntl (Makefile.am): Likewise.
74586         * modules/float (Makefile.am): Likewise.
74587         * modules/iconv_open (Makefile.am): Likewise.
74588         * modules/inttypes (Makefile.am): Likewise.
74589         * modules/locale (Makefile.am): Likewise.
74590         * modules/math (Makefile.am): Likewise.
74591         * modules/netinet_in (Makefile.am): Likewise.
74592         * modules/search (Makefile.am): Likewise.
74593         * modules/signal (Makefile.am): Likewise.
74594         * modules/stdarg (Makefile.am): Likewise.
74595         * modules/stdint (Makefile.am): Likewise.
74596         * modules/stdio (Makefile.am): Likewise.
74597         * modules/stdlib (Makefile.am): Likewise.
74598         * modules/string (Makefile.am): Likewise.
74599         * modules/strings (Makefile.am): Likewise.
74600         * modules/sys_select (Makefile.am): Likewise.
74601         * modules/sys_socket (Makefile.am): Likewise.
74602         * modules/sys_stat (Makefile.am): Likewise.
74603         * modules/sys_time (Makefile.am): Likewise.
74604         * modules/sysexits (Makefile.am): Likewise.
74605         * modules/time (Makefile.am): Likewise.
74606         * modules/unistd (Makefile.am): Likewise.
74607         * modules/wchar (Makefile.am): Likewise.
74608         * modules/wctype (Makefile.am): Likewise.
74609         Reported by Reuben Thomas <rrt@sc3d.org>.
74611 2008-08-29  Bruno Haible  <bruno@clisp.org>
74613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
74614         any more.
74616 2008-08-29  Simon Josefsson  <simon@josefsson.org>
74618         * MODULES.html.sh (Misc): Add bitrotate.
74620         * modules/bitrotate: New file.
74622         * lib/bitrotate.h: New file.
74624         * modules/bitrotate-tests: New file.
74626         * tests/test-bitrotate.c: New file.
74628         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
74629         on the bitrotate module.
74631         * lib/arctwo.c: Use new bitrotate module.
74633 2008-08-29  Jim Meyering  <meyering@redhat.com>
74635         bootstrap: merge changes from coreutils
74636         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
74637         of copied files.  Remove a kludge, now that this is fixed.
74638         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
74639         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
74640         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
74642 2008-08-29  Bruno Haible  <bruno@clisp.org>
74644         * MODULES.html.sh: Remove --cvs-urls option.
74646 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
74648         maint.mk: adjust to file name change
74649         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
74651 2008-08-28  Jim Meyering  <meyering@redhat.com>
74653         * modules/getndelim2 (License): Relicense to LGPLv2+.
74654         Approved by Richard Stallman for the version of 1995, and by
74655         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
74657 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
74659         * lib/getdelim.c (flockfile, funlockfile): Make all of them
74660         dummy if one is not available.  Do not touch them if
74661         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
74662         (getc_maybe_unlocked): New.
74663         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
74665 2008-08-26  Eric Blake  <ebb9@byu.net>
74667         doc/INSTALL: resync from autoconf
74668         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
74669         (INSTALL_PRELUDE): Delete; this is done more efficiently by
74670         moving...
74671         * install.texi [!autoconf]: ...here.  Resync from autoconf.
74672         * INSTALL: Regenerate.
74673         * INSTALL.ISO: New file.
74674         * INSTALL.UTF-8: Likewise.
74676 2008-08-26  Jim Meyering  <meyering@redhat.com>
74678         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
74679         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
74680         these definitions conditional, so that they may be overridden, too.
74682 2008-08-26  Bruno Haible  <bruno@clisp.org>
74684         Generate INSTALL file variants with prettier quotes.
74685         * doc/Makefile (INSTALL_PRELUDE): New macro.
74686         (INSTALL): Use it.
74687         (INSTALL.ISO, INSTALL.UTF-8): New rules.
74689 2008-08-26  Bruno Haible  <bruno@clisp.org>
74691         Run makeinfo in an English locale.
74692         * doc/Makefile (MAKEINFO): New variable.
74694 2008-08-26  Bruno Haible  <bruno@clisp.org>
74696         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
74697         Suggested by Eric Blake.
74699 2008-08-25  Bruno Haible  <bruno@clisp.org>
74701         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
74703 2008-08-25  Eric Blake  <ebb9@byu.net>
74705         c-stack: test that stack overflow can be caught
74706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
74707         that platform allows handling stack overflow; at least OS/2 EMX
74708         has sigaltstack, but crashes before transferring control to
74709         handler on stack overflow.
74710         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
74711         check for HAVE_STACK_OVERFLOW_HANDLING.
74712         Reported by Elbert Pol.
74714 2008-08-25  Bruno Haible  <bruno@clisp.org>
74716         * doc/posix-functions/strftime.texi: Fix description of strftime
74717         module.
74719 2008-08-24  Bruno Haible  <bruno@clisp.org>
74721         * tests/uniwidth/test-uc_width2.c: New file.
74722         * tests/uniwidth/test-uc_width2.sh: New file.
74723         * modules/uniwidth/width-tests (Files): Add the new files.
74724         (TESTS): Add uniwidth/test-uc_width2.sh.
74725         (TESTS_ENVIRONMENT): New variable.
74726         (check_PROGRAMS): Add test-uc_width2.
74727         (test_uc_width2_SOURCES): New variable.
74729         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
74730         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
74731         not 0x00AB.
74732         Reported by Alexander V. Lukyanov <lav@netis.ru>.
74734 2008-08-22  Eric Blake  <ebb9@byu.net>
74736         test-lock, test-tls: mention why a test is skipped
74737         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
74738         skipped.
74739         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
74741         count-one-bits: relax license
74742         * modules/count-one-bits (License): Relicense to LGPLv2+.
74743         Suggested by Ludovic Courtès, approved by Ben Pfaff.
74745 2008-08-22  Andreas Schwab  <schwab@suse.de>
74747         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
74748         Remove spurious space in assignment.
74750 2008-08-21  Simon Josefsson  <simon@josefsson.org>
74752         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
74753         Paul Eggert <eggert@CS.UCLA.EDU>.
74755 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
74757         * modules/gettext: Add m4/threadlib.m4.
74759 2008-08-19  Eric Blake  <ebb9@byu.net>
74761         test-c-stack: fix compilation failure on FreeBSD 5.0
74762         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
74763         headers before <sys/resource.h>.
74764         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
74765         the bug.
74766         Reported by Nelson H. F. Beebe.
74768         strverscmp: migrate from "strverscmp.h" to <string.h>
74769         * modules/string (Makefile.am): Add new hooks.
74770         * modules/strverscmp (Files): Remove strverscmp.h.
74771         (Depends-on): Add string.
74772         (configure.ac): Add indicator.
74773         (Include): Mention new header.
74774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
74775         defaults.
74776         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
74777         results.
74778         * lib/strverscmp.h: Delete.
74779         * lib/string.in.h (strverscmp): Provide declaration, when needed.
74780         * tests/test-strverscmp.c (includes): Adjust client.
74781         * lib/check-version.c (includes): Likewise.
74782         * NEWS: Document the change.
74784         strverscmp: add unit test
74785         * modules/strverscmp-tests: New file.
74786         * tests/test-strverscmp.c: Likewise.
74788 2008-08-19  Simon Josefsson  <simon@josefsson.org>
74790         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
74791         regarding Windows crypto stuff, from Mono.
74793 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
74795         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
74796         if present, for intel RND.  Return error on failures.
74798 2008-08-18  Ben Pfaff  <blp@gnu.org>
74800         gitlog-to-changelog: give better diagnostic for failed pipe-open
74801         * build-aux/gitlog-to-changelog: Improve error message: suggest
74802         that the version of Git may be too old.
74804 2008-08-18  Simon Josefsson  <simon@josefsson.org>
74806         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
74807         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
74809 2008-08-18  Bruno Haible  <bruno@clisp.org>
74811         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
74812         pthread_in_use().
74814 2008-08-18  Bruno Haible  <bruno@clisp.org>
74816         * lib/glthread/threadlib.c: Include <pthread.h>.
74818 2008-08-18  Bruno Haible  <bruno@clisp.org>
74820         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
74821         glthread_recursive_lock_* macros.
74822         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
74823         Fix syntax error.
74825 2008-08-18  Bruno Haible  <bruno@clisp.org>
74827         * lib/glthread/thread.c: Avoid forcing a context switch right after
74828         thread creation.
74830 2008-08-17  Bruno Haible  <bruno@clisp.org>
74832         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
74833         * lib/glthread/thread.h: Provide Win32 specific implementation.
74834         * modules/thread (Files): Add lib/glthread/thread.c.
74835         (Depends-on): Add lock.
74836         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
74838 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74840         New module 'yield'.
74841         * modules/yield: New file.
74842         * lib/glthread/yield.h: New file.
74843         * m4/yield.m4: New file.
74844         * MODULES.html.sh (Multithreading): Add yield.
74846 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74848         New module 'thread'.
74849         * modules/thread: New file.
74850         * lib/glthread/thread.h: New file.
74851         * m4/thread.m4: New file.
74852         * MODULES.html.sh (Multithreading): Add thread.
74854 2008-08-17  Bruno Haible  <bruno@clisp.org>
74856         * lib/glthread/lock.h: Include <stdlib.h> always.
74857         * lib/glthread/tls.h: Likewise.
74858         * lib/glthread/cond.h: Likewise.
74860 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74862         New module 'cond'.
74863         * modules/cond: New file.
74864         * lib/glthread/cond.h: New file.
74865         * lib/glthread/cond.c: New file.
74866         * m4/cond.m4: New file.
74867         * MODULES.html.sh (Multithreading): Add cond.
74869 2008-08-16  Eric Blake  <ebb9@byu.net>
74871         c-stack: fix regression on Irix 5.3 from 2008-06-21
74872         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74873         sa_sigaction...
74874         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74875         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74877         * modules/signal (Makefile.am): Use the value.
74878         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74879         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74880         * doc/posix-headers/signal.texi (signal.h): Document this
74881         portability issue.
74882         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74883         Reported by Tom G. Christensen.
74885 2008-08-17  Bruno Haible  <bruno@clisp.org>
74887         New module 'threadlib'.
74888         * modules/threadlib: New file.
74889         * lib/glthread/threadlib.c: New file, extracted from
74890         lib/glthread/lock.c.
74891         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74892         functions.
74893         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74894         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74895         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74896         macros.
74897         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74898         (gl_DISABLE_THREADS): Remove macro.
74899         * modules/lock (Files): Remove build-aux/config.rpath.
74900         (Depends-on): Remove havelib. Add threadlib.
74901         (configure.ac-early): Remove section.
74902         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74903         * modules/tls (Depends-on): Remove lock. Add threadlib.
74904         (Link): New section, copied from threadlib.
74905         * MODULES.html.sh (Multithreading): Add threadlib.
74907 2008-08-14  Bruno Haible  <bruno@clisp.org>
74909         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74910         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74911         glthread_rwlock_unlock, glthread_rwlock_destroy,
74912         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74913         glthread_recursive_lock_destroy): Define as macros always.
74914         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74915         glthread_lock_lock.
74916         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74917         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74918         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74919         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74920         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74921         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74922         (glthread_recursive_lock_lock_func): Renamed from
74923         glthread_recursive_lock_lock.
74924         (glthread_recursive_lock_unlock_func): Renamed from
74925         glthread_recursive_lock_unlock.
74926         (glthread_recursive_lock_destroy_func): Renamed from
74927         glthread_recursive_lock_destroy.
74929 2008-08-14  Bruno Haible  <bruno@clisp.org>
74931         * lib/glthread/lock.h: Renamed from lib/lock.h.
74932         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74933         * lib/glthread/tls.h: Renamed from lib/tls.h.
74934         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74935         * lib/fstrcmp.c: Update includes.
74936         * lib/strsignal.c: Update includes.
74937         * modules/lock (Files, Makefile.am): Update.
74938         (Include): Change to "glthread/lock.h".
74939         * modules/tls (Files, Makefile.am): Update.
74940         (Include): Change to "glthread/tls.h".
74941         * tests/test-lock.c: Update includes.
74942         * tests/test-tls.c: Update includes.
74943         * NEWS: Mention the renamed header files.
74945 2008-08-11  Jim Meyering  <meyering@redhat.com>
74947         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74949 2008-08-11  Eric Blake  <ebb9@byu.net>
74951         test-c-stack: avoid C99-ism
74952         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74953         before statement.
74954         Reported by Alain Guibert.
74956 2008-08-10  Jim Meyering  <meyering@redhat.com>
74958         ensure that return value of uinttostr et al are not ignored
74959         * lib/inttostr.h (__GNUC_PREREQ): Define.
74960         (__attribute_warn_unused_result__): Define.
74961         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74963 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74965         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74966         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74968 2008-08-07  Jim Meyering  <meyering@redhat.com>
74970         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74972         * modules/mkstemp (License): Relicense under LGPLv2+.
74973         * modules/tempname (License): Likewise.
74975 2008-08-06  Bruno Haible  <bruno@clisp.org>
74977         * lib/poll.c (poll): Further micro-optimization.
74979 2008-08-06  Jim Meyering  <meyering@redhat.com>
74981         inet_pton.c: use locale-independent tolower
74982         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74983         (inet_pton6): Use c_tolower rather than tolower.
74984         * modules/inet_pton (Depends-on): Add c-ctype.
74986 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74988         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74989         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74991 2008-08-06  Jim Meyering  <meyering@redhat.com>
74993         * modules/inet_pton (License): Relicense under LGPLv2+.
74995 2008-08-03  Bruno Haible  <bruno@clisp.org>
74997         Additional non-aborting API for lock and tls.
74998         * lib/lock.h: Include <errno.h>.
74999         (glthread_lock_init): New macro/function.
75000         (gl_lock_init): Define as wrapper around glthread_lock_init.
75001         (glthread_lock_lock): New macro/function.
75002         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
75003         (glthread_lock_unlock): New macro/function.
75004         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
75005         (glthread_lock_destroy): New macro/function.
75006         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
75007         (glthread_rwlock_init): New macro/function.
75008         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
75009         (glthread_rwlock_rdlock): New macro/function.
75010         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
75011         (glthread_rwlock_wrlock): New macro/function.
75012         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
75013         (glthread_rwlock_unlock): New macro/function.
75014         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
75015         (glthread_rwlock_destroy): New macro/function.
75016         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
75017         (glthread_recursive_lock_init): New macro/function.
75018         (gl_recursive_lock_init): Define as wrapper around
75019         glthread_recursive_lock_init.
75020         (glthread_recursive_lock_lock): New macro/function.
75021         (gl_recursive_lock_lock): Define as wrapper around
75022         glthread_recursive_lock_lock.
75023         (glthread_recursive_lock_unlock): New macro/function.
75024         (gl_recursive_lock_unlock): Define as wrapper around
75025         glthread_recursive_lock_unlock.
75026         (glthread_recursive_lock_destroy): New macro/function.
75027         (gl_recursive_lock_destroy): Define as wrapper around
75028         glthread_recursive_lock_destroy.
75029         (glthread_once): New macro/function.
75030         (gl_once): Define as wrapper around glthread_once.
75031         Update function declarations.
75032         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
75033         glthread_rwlock_init. Return error code.
75034         (glthread_rwlock_rdlock_multithreaded): Renamed from
75035         glthread_rwlock_rdlock. Return error code.
75036         (glthread_rwlock_wrlock_multithreaded): Renamed from
75037         glthread_rwlock_wrlock. Return error code.
75038         (glthread_rwlock_unlock_multithreaded): Renamed from
75039         glthread_rwlock_unlock. Return error code.
75040         (glthread_rwlock_destroy_multithreaded): Renamed from
75041         glthread_rwlock_destroy. Return error code.
75042         (glthread_recursive_lock_init_multithreaded): Renamed from
75043         glthread_recursive_lock_init. Return error code.
75044         (glthread_recursive_lock_lock_multithreaded): Renamed from
75045         glthread_recursive_lock_lock. Return error code.
75046         (glthread_recursive_lock_unlock_multithreaded): Renamed from
75047         glthread_recursive_lock_unlock. Return error code.
75048         (glthread_recursive_lock_destroy_multithreaded): Renamed from
75049         glthread_recursive_lock_destroy. Return error code.
75050         (glthread_once_call): Make static.
75051         (glthread_once_multithreaded): Renamed from glthread_once.
75052         * lib/tls.h: Include <errno.h>.
75053         (glthread_tls_key_init): New macro/function.
75054         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
75055         (glthread_tls_set): New macro/function.
75056         (gl_tls_set): Define as wrapper around glthread_tls_set.
75057         (glthread_tls_key_destroy): New macro/function.
75058         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
75059         Update function declarations.
75060         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
75061         glthread_tls_get.
75062         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75064 2008-08-04  Eric Blake  <ebb9@byu.net>
75066         gnumakefile: use space, not TAB, outside of targets
75067         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
75069 2008-08-02  Jim Meyering  <meyering@redhat.com>
75071         getdate.y: avoid locale-dependent date parsing failure
75072         In Turkish locales, getdate would fail to recognize keywords
75073         containing a lowercase "i".  The solution is not to rely on
75074         locale-sensitive case-conversion.
75075         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
75076         (lookup_word): Use c_toupper in place of toupper.
75077         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
75078         Reported by Vefa Bicakci <bicave@superonline.com> in
75079         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
75080         * modules/getdate (Depends-on): Add c-ctype.
75082 2008-08-02  Bruno Haible  <bruno@clisp.org>
75084         * gnulib-tool (func_import): When updating or creating a .gitignore
75085         file, prepend each added line with a slash, and ignore leading slashes
75086         from the existing lines.
75087         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
75089 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75091         Portability fix for GNU make 3.79.1.
75092         * top/GNUmakefile: Avoid 'else COND', which older GNU make
75093         versions do not understand.
75095 2008-08-01  Bruno Haible  <bruno@clisp.org>
75097         Work around bug of HP-UX 10.20 cc with -0.0 literal.
75098         * tests/test-isnanf.h (zero): New variable.
75099         (main): Avoid literal -0.0f.
75100         * tests/test-isnand.h (zero): New variable.
75101         (main): Avoid literal -0.0.
75102         * tests/test-isnanl.h (zero): New variable.
75103         (main): Avoid literal -0.0L.
75104         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
75105         (test_float, test_double, test_long_double): Avoid literals -0.0f,
75106         -0.0, -0.0L.
75107         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
75108         (test_signbitd): Avoid literal -0.0.
75109         (test_signbitl): Avoid literal -0.0L.
75110         * tests/test-ceilf1.c (zero): New variable.
75111         (main): Avoid literal -0.0f.
75112         * tests/test-ceill.c (zero): New variable.
75113         (main): Avoid literal -0.0L.
75114         * tests/test-floorf1.c (zero): New variable.
75115         (main): Avoid literal -0.0f.
75116         * tests/test-floorl.c (zero): New variable.
75117         (main): Avoid literal -0.0L.
75118         * tests/test-roundf1.c (zero): New variable.
75119         (main): Avoid literal -0.0f.
75120         * tests/test-round1.c (zero): New variable.
75121         (main): Avoid literal -0.0.
75122         * tests/test-roundl.c (zero): New variable.
75123         (main): Avoid literal -0.0L.
75124         * tests/test-truncf1.c (zero): New variable.
75125         (main): Avoid literal -0.0f.
75126         * tests/test-trunc1.c (zero): New variable.
75127         (main): Avoid literal -0.0.
75128         * tests/test-truncl.c (zero): New variable.
75129         (main): Avoid literal -0.0L.
75130         * tests/test-frexp.c (zero): New variable.
75131         (main): Avoid literal -0.0.
75132         * tests/test-frexpl.c (zero): New variable.
75133         (main): Avoid literal -0.0L.
75134         * tests/test-ldexpl.c (zero): New variable.
75135         (main): Avoid literal -0.0L.
75136         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
75137         (zerod, zerol): New variables.
75138         (test_function): Avoid literals -0.0, -0.0L.
75139         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
75140         (zerod, zerol): New variables.
75141         (test_function): Avoid literals -0.0, -0.0L.
75142         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
75143         (zerod, zerol): New variables.
75144         (test_function): Avoid literals -0.0, -0.0L.
75145         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
75146         (zerod, zerol): New variables.
75147         (test_function): Avoid literals -0.0, -0.0L.
75148         * tests/test-strtod.c (zero): New variable.
75149         (main): Avoid literal -0.0.
75150         Reported by Jonathan C. Patschke <jp@centtech.com>.
75152 2008-07-31  Jim Meyering  <meyering@redhat.com>
75154         sha256.h: correct definition of SHA224_DIGEST_SIZE
75155         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
75156         Reported by Paulie Pena IV <paulie4@gmail.com>.
75157         Define as 224 / 8, rather than as a literal.
75158         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
75159         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
75160         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
75162 2008-07-31  Bruno Haible  <bruno@clisp.org>
75164         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
75165         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
75166         Reported by Jonathan Patschke <jp@centtech.com>.
75168 2008-07-31  Bruno Haible  <bruno@clisp.org>
75170         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
75171         Reported by Paolo Bonzini <bonzini@gnu.org>.
75173 2008-07-30  Eric Blake  <ebb9@byu.net>
75175         test-strtod: allow compilation without -lm
75176         * tests/test-strtod.c (main): Avoid link dependence on fabs.
75177         Reported by Dennis Clarke <blastwave@gmail.com>.
75179 2008-07-28  Jim Meyering  <meyering@redhat.com>
75181         bootstrap: work also when there are no .po files in po/
75182         * build-aux/bootstrap (update_po_files): Complete the change
75183         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
75185 2008-07-27  Jim Meyering  <meyering@redhat.com>
75187         * users.txt: Add zile.
75189 2008-07-26  Ben Pfaff  <blp@gnu.org>
75191         Add missing dependencies on new m4/exponent[fdl].m4 files.
75192         * modules/isnanf-nolibm: Add m4/exponentf.m4.
75193         * modules/isnand-nolibm: Add m4/exponentd.m4.
75194         * modules/isnanl-nolibm: Add m4/exponentl.m4.
75195         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
75196         m4/isnan[fdl].m4, because the macros actually used moved.
75197         Reported by Jim Meyering.
75199 2008-07-14  Ben Pfaff  <blp@gnu.org>
75201         Add isinf module.
75202         * lib/isinf.c: New file.
75203         * lib/math.in.h: Define isinf macro if we have decided to replace
75204         it.
75205         * m4/isinf.m4: New file.
75206         * m4/math_h.m4: Initialize and substitute variables for isinf
75207         module.
75208         * modules/isinf: New file.
75209         * modules/isinf-tests: New file.
75210         * modules/math: Add substitutions for new module.
75211         * tests/test-isinf.c: New file.
75212         * doc/posix-functions/isinf.texi: Mention new module.
75213         * MODULES.html.sh: Mention new module.
75215 2008-07-14  Ben Pfaff  <blp@gnu.org>
75217         Factor out some macros for use by additional modules.
75218         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
75219         exponentf.m4.
75220         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
75221         exponentd.m4.
75222         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
75223         file exponentl.m4.
75224         * m4/exponentf.m4: New file.
75225         * m4/exponentd.m4: New file.
75226         * m4/exponentl.m4: New file.
75227         * modules/isnanf: Use new file m4/exponentf.m4.
75228         * modules/isnand: Use new file m4/exponentd.m4.
75229         * modules/isnanl: Use new file m4/exponentl.m4.
75231 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
75233         mktime.c: normalize tp->tm_isdst value to -1/0/1.
75234         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
75235         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
75236         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
75238         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
75239         readlink on platforms without PATH_MAX.
75241 2008-07-21  Eric Blake  <ebb9@byu.net>
75243         Warn, not fail, on stale version.
75244         * top/GNUmakefile (_curr-ver): Tone down previous patch.
75246         Don't allow installation with stale devel version number.
75247         * top/GNUmakefile (_is-install-target): New macro.
75248         (_curr-ver): Forbid installation with stale version number.
75250 2008-07-20  Bruno Haible  <bruno@clisp.org>
75252         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
75253         TESTS_ENVIRONMENT.
75254         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
75256 2008-07-20  Bruno Haible  <bruno@clisp.org>
75258         * lib/c-stack.h (c_stack_action): Add documentation.
75259         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
75261 2008-07-20  Bruno Haible  <bruno@clisp.org>
75263         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
75264         * modules/readlink (License): Likewise.
75266 2008-07-17  Eric Blake  <ebb9@byu.net>
75268         * modules/c-stack (Link): Fix typo.
75270         Make c-stack use libsigsegv, when available.
75271         * modules/c-stack (Depends-on): Add libsigsegv.
75272         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
75273         needed.
75274         * lib/c-stack.c (SIGSTKSZ): Define fallback.
75275         (segv_handler, overflow_handler, c_stack_action)
75276         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
75277         implementation when libsigsegv is available, but only when using
75278         the library is necessary.
75279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
75280         comment, explaining why XSI check fails on Linux.
75281         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
75282         * tests/test-c-stack2.sh: Tweak skip message.
75283         * NEWS: Document new link-time requirements.
75285 2008-07-16  Eric Blake  <ebb9@byu.net>
75287         c-stack: Expose false positives when not using libsigsegv.
75288         * modules/c-stack-tests (Files): Expand test.
75289         * tests/test-c-stack.c (main): Add means to conditionally trigger
75290         non-overflow SIGSEGV.
75291         * tests/test-c-stack2.sh: New file.
75293 2008-07-14  Bruno Haible  <bruno@clisp.org>
75295         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
75296         Reported by Eric Blake.
75298 2008-07-14  Sam Steingold  <sds@gnu.org>
75299             Bruno Haible  <bruno@clisp.org>
75301         New module libsigsegv.
75302         * modules/libsigsegv: New file.
75303         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
75304         modifications.
75305         * MODULES.html.sh (Signal handling): New section.
75307 2008-07-14  Bruno Haible  <bruno@clisp.org>
75309         * modules/unictype/ctype-* (Description): Add the word "function".
75310         Improves the resulting doc in MODULES.html.
75312 2008-07-12  Ben Pfaff  <blp@gnu.org>
75314         Add longlong module.
75315         * modules/longlong: New file.
75317 2008-07-12  Bruno Haible  <bruno@clisp.org>
75319         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
75320         to empty.
75322 2008-07-10  Ben Pfaff  <blp@gnu.org>
75324         Add isnan module.
75325         * doc/posix-functions/isnan.texi: Mention new module.
75326         * lib/math.in.h: Define isnan macro if we have decided to replace
75327         it.
75328         * m4/isnan.m4: New file.
75329         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
75330         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
75331         also.
75332         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
75333         redundancy.
75334         * m4/math_h.m4: Initialize and substitute variables for isnan
75335         module.
75336         * modules/isnan: New file.
75337         * modules/isnan-tests: New file.
75338         * modules/math: Add substitutions for new module.
75339         * tests/test-isnan.c: New file.
75340         * MODULES.html.sh: Mention new module.
75342 2008-07-10  Ben Pfaff  <blp@gnu.org>
75344         Add isnanf module.
75345         * lib/isnanf.m4: New file.
75346         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
75347         (gl_HAVE_ISNANF_IN_LIBM): New macro.
75348         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
75349         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
75350         * modules/isnanf: New file.
75351         * modules/isnanf-tests: New file.
75352         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
75353         files.
75354         * tests/test-isnanf-nolibm.c: factored most of its contents into
75355         new file tests/test-isnanf.h.
75356         * tests/test-isnanf.h: New file.
75357         * tests/test-isnanf.c: New file.
75358         * MODULES.html.sh: Mention new module.
75359         * doc/glibc-functions/isnanf.texi: Mention new module.
75361 2008-07-10  Ben Pfaff  <blp@gnu.org>
75363         Add isnand module.
75364         * lib/isnand.h: New file.
75365         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
75366         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
75367         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
75368         functionality also.
75369         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
75370         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
75371         (gl_HAVE_ISNAND_IN_LIBM): New macro.
75372         * modules/isnand: New file.
75373         * modules/isnand-tests: New file.
75374         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
75375         files.
75376         * tests/test-isnand-nolibm.c: factored most of its contents into
75377         new file tests/test-isnand.h.
75378         * tests/test-isnand.h: New file.
75379         * tests/test-isnand.c: New file.
75380         * MODULES.html.sh: Mention new module.
75382 2008-07-10  Ben Pfaff  <blp@gnu.org>
75384         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
75385         * lib/isnand.h: Rename lib/isnand-nolibm.h.
75386         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
75387         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
75388         * modules/isnanf-nolibm: Update references to renamed files.
75389         * modules/isnand-nolibm: Likewise.
75390         * modules/isnanf-nolibm-tests: Likewise.
75391         * modules/isnand-nolibm-tests: Likewise.
75392         * lib/frexp.c: Likewise.
75393         * lib/isfinite.c: Likewise.
75394         * lib/signbitd.c: Likewise.
75395         * lib/signbitf.c: Likewise.
75396         * lib/vasnprintf.c: Likewise.
75397         * tests/test-ceilf1.c: Likewise.
75398         * tests/test-ceilf2.c: Likewise.
75399         * tests/test-floorf1.c: Likewise.
75400         * tests/test-floorf2.c: Likewise.
75401         * tests/test-frexp.c: Likewise.
75402         * tests/test-round1.c: Likewise.
75403         * tests/test-round2.c: Likewise.
75404         * tests/test-roundf1.c: Likewise.
75405         * tests/test-strtod.c: Likewise.
75406         * tests/test-trunc1.c: Likewise.
75407         * tests/test-trunc2.c: Likewise.
75408         * tests/test-truncf1.c: Likewise.
75409         * tests/test-truncf2.c: Likewise.
75410         * NEWS: Mention the renamed header files.
75412 2008-07-11  Jim Meyering  <meyering@redhat.com>
75414         vc-list-files: make the last-resort awk code more portable
75415         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
75416         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
75417         does not support it.
75419 2008-07-10  Eric Blake  <ebb9@byu.net>
75421         Work with tar's bootstrap.
75422         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
75423         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
75424         an m4 comment.
75426 2008-07-09  Jim Meyering  <meyering@redhat.com>
75428         posix-shell.m4: fix typo that made this test malfunction
75429         * m4/posix-shell.m4: Remove capitalization in variable name.
75431 2008-07-08  Bruno Haible  <bruno@clisp.org>
75433         * m4/onceonly.m4: Update comments.
75434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75436 2008-07-04  Jim Meyering  <meyering@redhat.com>
75438         * users.txt: Add vc-dwim.
75439         (bison, coreutils): Use the gitweb URL.
75441 2008-07-03  Jim Meyering  <meyering@redhat.com>
75443         * users.txt: Add libffcall.  From Sam Steingold.
75445 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
75447         getdate.y: do not ignore TZ with relative day, month or year offset
75448         * lib/getdate.y (get_date): Move the tz-handling block to follow the
75449         relative-date-handling, since otherwise, the latter would clobber the
75450         sole output (an updated Start value) of the tz-handling block.
75451         * tests/test-getdate.c: Tests for the fix
75453 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75455         Recognize 'foo_LIBRARIES += libgnu.a'.
75456         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
75457         makefile snippet has already specified an installation location,
75458         also using '+='.
75460 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
75462         getdate.y: factor out common actions
75463         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
75464         Use them in place of open-coded actions.
75466 2008-07-01  Simon Josefsson  <simon@josefsson.org>
75468         Add self-test for getdate module.
75469         * modules/getdate-tests: New file.
75470         * tests/test-getdate.c: New file.
75472 2008-06-29  Bruno Haible  <bruno@clisp.org>
75474         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
75475         .gitignore.
75476         Reported by Sylvain Beucler <beuc@beuc.net>.
75478 2008-06-29  Bruno Haible  <bruno@clisp.org>
75480         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
75481         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
75483 2008-06-29  Bruno Haible  <bruno@clisp.org>
75485         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
75486         EXTRA_DIST.
75487         Reported by Sylvain Beucler <beuc@beuc.net>.
75489 2008-06-26  Jim Meyering  <meyering@redhat.com>
75491         make several modules depend on the "open" module
75492         This provides slightly increased consistency when opening-for-write
75493         the name of a non-directory spelled with a trailing slash.
75494         * modules/chdir-safer: Likewise.
75495         * modules/chown: Likewise.
75496         * modules/clean-temp: Likewise.
75497         * modules/copy-file: Likewise.
75498         * modules/fchdir: Likewise.
75499         * modules/fcntl-safer: Likewise.
75500         * modules/pipe: Likewise.
75501         * modules/utime: Likewise.
75502         Prompted by Eric Blake and Bruno Haible.
75504 2008-06-24  Andreas Schwab  <schwab@suse.de>
75506         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
75507         literals can be used as initializers for global variables.
75509 2008-06-23  Eric Blake  <ebb9@byu.net>
75511         Make gnulib-cache.m4 easier to diff.
75512         * gnulib-tool (func_import): Allow newlines when reading cached
75513         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
75515 2008-06-23  Bruno Haible  <bruno@clisp.org>
75517         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
75518         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
75519         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
75520         m4/signalblocking.m4.
75521         (gl_PREREQ_SIGACTION): Don't invoke it.
75522         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
75523         gl_PREREQ_SIG_HANDLER_H.
75524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75525         Don't check for sigaction here.
75527 2008-06-23  Bruno Haible  <bruno@clisp.org>
75529         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
75530         (install_handlers): Don't set the SA_RESETHAND flag.
75532 2008-06-23  Bruno Haible  <bruno@clisp.org>
75534         * m4/sigaction.m4: Comment fixes.
75535         * lib/signal.in.h: Likewise.
75537 2008-06-23  Eric Blake  <ebb9@byu.net>
75539         Fix typo.
75540         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
75542         Avoid SA_ namespace.
75543         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
75544         Reported by Ralf Wildenhues.
75546         Avoid test failure due to SA_RESTORER.
75547         * tests/test-sigaction.c (SA_MASK): New macro.
75548         (main): Avoid failing due to extension flags being set.
75549         Reported by Jim Meyering.
75551         Revert use of sig-handler.h in sigprocmask.c.
75552         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
75553         it requires the existence of struct sigaction.
75554         * lib/sigprocmask.c (handler_t): Restore typedef.
75555         (rpl_signal, old_handlers): Use local type.
75557 2008-06-22  Bruno Haible  <bruno@clisp.org>
75559         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
75560         conditionally.
75561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75563 2008-06-22  Bruno Haible  <bruno@clisp.org>
75565         * doc/posix-functions/siginterrupt.texi: Move note.
75567         * lib/signal.in.h (SA_RESTART): New macro.
75568         * lib/sigaction.c: Update comment.
75570         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
75572         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
75573         (gl_PREREQ_SIGPROCMASK): Invoke it.
75574         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
75576         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
75578         * lib/sigprocmask.c: Update a comment.
75580 2008-06-21  Eric Blake  <ebb9@byu.net>
75582         Use sigaction module rather than signal().
75583         * modules/c-stack (Depends-on): Add sigaction.
75584         * modules/fatal-signal (Depends-on): Likewise.
75585         * modules/nanosleep (Depends-on): Likewise.
75586         * modules/sigprocmask (Files): Add sig-handler.h.
75587         * modules/sigaction (Files): Likewise.
75588         * lib/sig-handler.h (get_handler): New file, suggested by Paul
75589         Eggert.
75590         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
75591         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
75592         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
75593         (init_fatal_signals): Likewise.
75594         * lib/nanosleep.c (rpl_nanosleep): Likewise.
75595         (siginterrupt): Delete fallback.
75596         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
75597         instead.
75598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
75599         siginterrupt.
75601         New module sigaction, for mingw.
75602         * modules/sigaction: New module...
75603         * modules/sigaction-tests: ...and its test.
75604         * m4/sigaction.m4: New file.
75605         * lib/sigaction.c: Likewise.
75606         * tests/test-sigaction.c: Likewise.
75607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
75608         * modules/signal (Makefile.am): Likewise.
75609         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
75610         needed.
75611         * doc/posix-headers/signal.texi (signal.h): Mention provided
75612         types.
75613         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
75614         that sigaction is preferable.
75615         * doc/posix-functions/sigaction.texi (sigaction): Mention new
75616         module.
75617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75618         sigaction.
75620         Improve robustness of sigprocmask by overriding signal.
75621         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
75622         is in use.
75623         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
75624         (SIGKILL, SIGSTOP): Provide fallbacks.
75625         (rpl_signal): Implement.
75626         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
75627         signal can be called inside handlers.
75629         Fix nanosleep module on mingw.
75630         * modules/nanosleep (Depends-on): Add sys_select.
75631         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
75633         Fix licensing of sigprocmask.
75634         * modules/raise (License): Relicense as LGPL.
75636 2008-06-21  Bruno Haible  <bruno@clisp.org>
75638         * lib/propername.c (proper_name_utf8): Don't use the transliterated
75639         result if it contains question marks.
75640         Reported by Michael Geng <linux@michaelgeng.de>.
75642 2008-06-19  Bruno Haible  <bruno@clisp.org>
75644         Fix CVS-ism.
75645         * doc/gnulib.texi: Include updated-stamp.texi.
75646         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
75647         (updated-stamp.texi): New rule.
75648         (gnulib.info): Depend on it.
75649         * doc/.gitignore: Add updated-stamp.texi.
75650         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
75652 2008-06-19  Bruno Haible  <bruno@clisp.org>
75654         * doc/Makefile (gnulib.info): Update and simplify dependencies.
75655         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75657 2008-06-19  Eric Blake  <ebb9@byu.net>
75659         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
75660         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
75661         Reported by Stepan Kasal.
75663 2008-06-18  Bruno Haible  <bruno@clisp.org>
75665         * lib/fatal-signal.c (init_fatal_signals): Add comment.
75666         Reported by Eric Blake.
75668 2008-06-18  Eric Blake  <ebb9@byu.net>
75670         Work around cygwin 1.5.25 strsignal bug.
75671         * tests/test-strsignal.c: Allow for const char *.
75672         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
75674 2008-06-18  Simon Josefsson  <simon@josefsson.org>
75676         * users.txt: Update URL to article and add author/date
75677         information.
75679 2008-06-17  Bruno Haible  <bruno@clisp.org>
75681         New macro gl_DISABLE_THREADS.
75682         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
75683         if the user did not pass --enable-threads or --disable-threads option.
75684         (gl_DISABLE_THREADS): New macro.
75685         Reported by Eric Blake <ebb9@byu.net>.
75687 2008-06-17  Bruno Haible  <bruno@clisp.org>
75689         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
75690         when the macro ignores it.
75691         Based on a patch by Eric Blake <ebb9@byu.net>.
75693 2008-06-17  Bruno Haible  <bruno@clisp.org>
75695         * modules/tls (License): Change to LGPLv2+.
75696         Reported by Eric Blake.
75698 2008-06-17  Eric Blake  <ebb9@byu.net>
75700         Simplify c-stack prerequisites.
75701         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
75702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
75703         no longer requires <ucontext.h> to exist.  Optimize setrlimit
75704         check.
75705         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
75706         <sys/resource.h>.
75708         Move c-stack test into testsuite.
75709         * modules/c-stack-tests: New file.
75710         * lib/c-stack.c [DEBUG]: Move test program...
75711         * tests/test-c-stack.c: ...into this new file.  Skip rather than
75712         fail test if sigaltstack is lacking.
75713         * tests/test-c-stack.sh: New driver file.
75715 2008-06-16  Eric Blake  <ebb9@byu.net>
75717         Use raise module consistently.
75718         * modules/fatal-signal (Depends-on): Add raise.
75719         * modules/sigprocmask (Depends-on): Likewise.
75720         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
75721         * lib/sigprocmask.c (sigprocmask): Likewise.
75722         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
75725         Fix compliance bug in sigpending.
75726         * lib/sigprocmask.c (sigpending): Return pending array via
75727         parameter, not return value.
75729 2008-06-14  Eric Blake  <ebb9@byu.net>
75731         Improve obstack-printf test code.
75732         * tests/test-obstack-printf.c (test_function): Fix comment, and
75733         simplify usage of obstack_* in macros.  Add a test for coverage.
75734         Reported by Bruno Haible.
75736 2008-06-14  Bruno Haible  <bruno@clisp.org>
75738         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
75739         array size as a constant, not as a const variable.
75740         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
75741         AC_USE_SYSTEM_EXTENSIONS.
75742         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75743         Test whether the obstack_printf function actually exists.
75744         * modules/obstack-printf (Depends-on): Add extensions.
75745         (Include): Remove obstack.h.
75746         * modules/obstack-printf-posix (Depends-on): Add extensions.
75747         (Include): Remove obstack.h.
75749 2008-06-13  Eric Blake  <ebb9@byu.net>
75751         Add obstack-printf and obstack-printf-posix modules.
75752         * modules/obstack-printf: New file.
75753         * modules/obstack-printf-posix: Likewise.
75754         * MODULES.html.sh (Misc): Mention them.
75755         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75756         Likewise.
75757         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75758         Likewise.
75759         * modules/stdio (Makefile.am): Accomodate new modules.
75760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75761         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
75762         Declare.
75763         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
75764         functions.
75765         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
75766         (gl_REPLACE_OBSTACK_PRINTF): New macros
75767         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
75768         * tests/test-obstack-printf.c: New file.
75769         * modules/obstack-printf-tests: Likewise.
75770         * modules/obstack-printf-posix-tests: Likewise.
75772 2008-06-11  Bruno Haible  <bruno@clisp.org>
75774         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
75775         * lib/open.c: Include errno.h.
75776         (open): Fail when attempting to write to a file that has a trailing
75777         slash.
75778         * tests/test-open.c (main): Test against trailing slash bug.
75779         * doc/posix-functions/open.texi: Mention the trailing slash bug.
75781 2008-06-10  Bruno Haible  <bruno@clisp.org>
75783         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
75784         for $? to work inside the trap command, with various /bin/sh-s.
75785         * tests/test-vc-list-files-cvs.sh: Likewise.
75787 2008-06-10  Bruno Haible  <bruno@clisp.org>
75789         * lib/acl-internal.h: Don't include gettext.h here.
75790         * lib/set-mode-acl.c: Include gettext.h here.
75791         * lib/copy-acl.c: Likewise.
75793 2008-06-10  Bruno Haible  <bruno@clisp.org>
75795         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
75796         * lib/wait-process.c (wait_subprocess): Likewise.
75797         * lib/execute.h (execute): Add termsigp argument.
75798         * lib/execute.c (execute): Likewise.
75799         * lib/csharpcomp.c (compile_csharp_using_pnet,
75800         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
75801         * lib/csharpexec.c (execute_csharp_using_pnet,
75802         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
75803         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
75804         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
75805         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
75806         is_jikes_present): Update.
75807         * lib/javaexec.c (execute_java_class): Update.
75808         * lib/javaversion.c (execute_and_read_line): Update.
75809         * NEWS: Document the changes.
75810         Reported by Eric Blake.
75812 2008-06-10  Eric Blake  <ebb9@byu.net>
75814         Add missing include.
75815         * tests/test-strstr.c (includes): Add <signal.h>.
75816         * tests/test-strcasestr.c (includes): Likewise.
75817         * tests/test-memmem.c (includes): Likewise.
75819 2008-06-10  Bruno Haible  <bruno@clisp.org>
75821         * lib/wait-process.c (wait_subprocess): Add an assertion.
75823 2008-06-10  Bruno Haible  <bruno@clisp.org>
75825         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
75827 2008-06-10  Bruno Haible  <bruno@clisp.org>
75829         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
75830         using alarm().
75831         * tests/test-strcasestr.c (main): Likewise.
75832         * tests/test-strstr.c (main): Likewise.
75834 2008-06-09  Bruno Haible  <bruno@clisp.org>
75836         Work around the Solaris 10 ACE ACLs ABI change.
75837         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
75838         declare if ACL_NO_TRIVIAL is present.
75839         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
75840         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
75841         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
75842         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
75843         define if ACL_NO_TRIVIAL is present.
75844         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
75845         and use the current ABI.
75846         (file_has_acl): Use same #if condition as elsewhere.
75847         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
75848         in use, and use the current ABI.
75849         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75850         Reported by Jim Meyering.
75852 2008-06-09  Eric Blake  <ebb9@byu.net>
75854         Work around environments that (stupidly) ignore SIGALRM.
75855         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75856         before using alarm().
75857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75858         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75859         Reported by Ian Beckwith <ianb@erislabs.net>.
75861         Produce autobuild blurb earlier in log.
75862         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75864 2008-06-09  Jim Meyering  <meyering@redhat.com>
75865         and Ondřej Vašík  <ovasik@redhat.com>
75867         utimens.c: correct kernel bug work-around
75868         Ondřej Vašík found that the invalid return value of 280 indicates
75869         failure, not success, and the kernel bug we're trying to work
75870         around affects not just the utimensat call, but also the fallback
75871         futimens call.
75872         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75873         not success.
75874         [HAVE_FUTIMENS]: Use the same work-around, here.
75876 2008-06-09  Jim Meyering  <meyering@redhat.com>
75878         add more guards around definition of ACE_-related code
75879         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75880         ALLOW and ACE_OWNER are also defined.
75882 2008-06-08  Bruno Haible  <bruno@clisp.org>
75884         * lib/acl-internal.h: Add me as co-author.
75885         * lib/file-has-acl.c: Likewise.
75886         * lib/set-mode-acl.c: Likewise.
75887         * lib/copy-acl.c: Likewise.
75889 2008-06-08  Bruno Haible  <bruno@clisp.org>
75891         Add support for AIX ACLs.
75892         * lib/acl-internal.h (acl_nontrivial): New declaration.
75893         * lib/file-has-acl.c (acl_nontrivial): New function.
75894         (file_has_acl): Add implementation using AIX 4 ACL API.
75895         * lib/set-mode-acl.c (qset_acl): Likewise.
75896         * lib/copy-acl.c (qcopy_acl): Likewise.
75898 2008-06-08  Bruno Haible  <bruno@clisp.org>
75900         Add support for HP-UX ACLs.
75901         * lib/acl-internal.h (acl_nontrivial): New declaration.
75902         * lib/file-has-acl.c (acl_nontrivial): New function.
75903         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75904         * lib/set-mode-acl.c (qset_acl): Likewise.
75905         * lib/copy-acl.c (qcopy_acl): Likewise.
75907 2008-06-08  Bruno Haible  <bruno@clisp.org>
75909         Add support for Cygwin ACLs.
75910         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75911         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75912         the chmod_or_fchmod call.
75913         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75915 2008-06-08  Bruno Haible  <bruno@clisp.org>
75917         Fix bug with setuid modes in Solaris 10+ code.
75918         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75919         succeeded, when the mode contains some special bits.
75921 2008-06-08  Bruno Haible  <bruno@clisp.org>
75923         Add support for Solaris 7..10 ACLs.
75924         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75925         declarations.
75926         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75927         functions.
75928         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75929         * lib/set-mode-acl.c (qset_acl): Likewise.
75930         * lib/copy-acl.c (qcopy_acl): Likewise.
75932 2008-06-08  Bruno Haible  <bruno@clisp.org>
75934         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75935         declaration.
75936         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75937         (acl_access_nontrivial): Remove MacOS X case.
75938         (file_has_acl): Use acl_extended_nontrivial.
75939         * lib/copy-acl.c (qcopy_acl): Likewise.
75941 2008-06-08  Bruno Haible  <bruno@clisp.org>
75943         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75945 2008-06-08  Jim Meyering  <meyering@redhat.com>
75947         * modules/acl (Maintainer): Add Bruno Haible.
75949 2008-06-07  Bruno Haible  <bruno@clisp.org>
75951         Improve support for Tru64 ACLs.
75952         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75953         ACL on OSF/1.
75955 2008-06-07  Bruno Haible  <bruno@clisp.org>
75957         Add support for MacOS X ACLs.
75958         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75959         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75960         * lib/set-mode-acl.c (qset_acl): Likewise.
75961         * lib/copy-acl.c (qcopy_acl): Likewise.
75963 2008-06-07  Bruno Haible  <bruno@clisp.org>
75965         Fix memory leak introduced on 2008-05-22.
75966         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75967         use.
75969 2008-06-07  Bruno Haible  <bruno@clisp.org>
75971         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75972         to construct an empty ACL.
75974 2008-06-07  Bruno Haible  <bruno@clisp.org>
75976         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75977         precisely.
75978         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75980 2008-06-07  Bruno Haible  <bruno@clisp.org>
75982         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75983         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75985 2008-06-07  Bruno Haible  <bruno@clisp.org>
75987         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75988         regardless of POSIX.
75989         * doc/posix-functions/_longjmp.texi: Likewise.
75990         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75991         SystemV platform in this case.
75993 2008-06-06  Eric Blake  <ebb9@byu.net>
75995         Document abort() bugs.
75996         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75998         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75999         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
76000         sigsetjmp.
76001         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
76002         siglongjmp, but only as a macro.
76003         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
76004         is obsolete.
76005         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
76007         Tweak documentation to cover cygwin argz bugs.
76008         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
76009         argz bug fix; no code change needed since no cygwin releases
76010         occurred between the last fix and the bug being tested.
76011         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
76012         module and recently fixed cygwin bugs.
76013         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
76014         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
76015         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
76016         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
76017         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
76018         Likewise.
76019         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
76020         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
76021         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
76022         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
76023         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
76024         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
76025         Likewise.
76027         Avoid gcc warning on cygwin.
76028         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
76029         !ACL_NO_TRIVIAL]: Avoid unused variable.
76031 2008-06-05  Eric Blake  <ebb9@byu.net>
76033         Be tolerant of UNKNOWN version in gnulib-tool test dir.
76034         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
76035         git-version-gen fails to come up with a version.
76036         Reported by Simon Josefsson.
76038 2008-06-05  Jim Meyering  <meyering@redhat.com>
76039             Paul Eggert  <eggert@cs.ucla.edu>
76041         utimens.c: work around a probable Linux kernel bug
76042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
76043         appears to be a kernel bug that causes utimensat to return 280
76044         instead of 0, indicating success.
76046 2008-06-04  Bruno Haible  <bruno@clisp.org>
76048         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
76049         2008-06-01 commit.
76051 2008-06-04  Bruno Haible  <bruno@clisp.org>
76053         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
76054         * lib/file-has-acl.c (acl_access_nontrivial): New function.
76055         (file_has_acl): Use it. Save errno afterwards.
76056         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
76058 2008-06-03  Bruno Haible  <bruno@clisp.org>
76060         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
76061         draft code. Simplify #ifs.
76062         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
76063         Put Solaris code after POSIX-draft code. Fix comments regarding
76064         Solaris 10, HP-UX. Mention Cygwin.
76065         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
76067 2008-06-03  Eric Blake  <ebb9@byu.net>
76069         Provide fallback for older kernels.
76070         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
76071         Provide runtime fallback if kernel lacks support.
76072         Reported by Mike Frysinger.
76074 2008-06-02  Bruno Haible  <bruno@clisp.org>
76076         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
76077         it exists.
76079 2008-06-02  Bruno Haible  <bruno@clisp.org>
76081         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
76082         * lib/copy-acl.c (qcopy_acl): Update comment.
76084 2008-06-02  Bruno Haible  <bruno@clisp.org>
76086         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
76087         like ACL APIs.
76089 2008-06-02  Bruno Haible  <bruno@clisp.org>
76091         * tests/test-file-has-acl.sh: Use different code for Cygwin.
76092         * tests/test-set-mode-acl.sh: Likewise.
76093         * tests/test-copy-acl.sh: Likewise.
76094         * tests/test-copy-file.sh: Likewise.
76096 2008-06-02  Bruno Haible  <bruno@clisp.org>
76098         * tests/test-file-has-acl.sh: Remove unused code.
76100 2008-06-01  Bruno Haible  <bruno@clisp.org>
76102         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
76103         (copy_acl): Just a wrapper around qcopy_acl that emits the error
76104         messages.
76105         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
76107 2008-06-01  Bruno Haible  <bruno@clisp.org>
76109         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
76110         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
76111         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
76112         APIs.
76113         * modules/acl-tests (configure.ac): Remove tests now contained in
76114         m4/acl.m4.
76116 2008-06-02  Jim Meyering  <meyering@redhat.com>
76118         announce-gen: use a better key-server host name
76119         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
76120         it may be more consistently reliable.  Suggested by Werner Koch
76121         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
76123 2008-06-01  Bruno Haible  <bruno@clisp.org>
76125         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
76126         Reported by Voroskoi Andras <voroskoi@gmail.com>.
76128 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
76130         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
76132 2008-06-01  Bruno Haible  <bruno@clisp.org>
76134         New ACL tests.
76135         * tests/test-file-has-acl.sh: New file.
76136         * tests/test-file-has-acl.c: New file.
76137         * tests/test-set-mode-acl.sh: New file.
76138         * tests/test-set-mode-acl.c: New file.
76139         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
76140         * tests/test-copy-acl.c: New file.
76141         * modules/acl-tests: New file, based on modules/copy-file-tests.
76142         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
76143         (Depends-on): Add acl-tests.
76144         (configure.ac): Remove checks.
76145         (Makefile.am): Don't create test-sameacls program here any more.
76147 2008-06-01  Bruno Haible  <bruno@clisp.org>
76149         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
76150         * tests/test-sameacls.c: Include progname.h.
76151         (main): Invoke set_program_name. Portability fixes for MacOS X,
76152         Solaris, HP-UX.
76154 2008-06-01  Bruno Haible  <bruno@clisp.org>
76156         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
76157         function.
76158         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
76160 2008-06-01  Bruno Haible  <bruno@clisp.org>
76162         * modules/rpmatch (Depends-on): Add strdup.
76164 2008-06-01  Bruno Haible  <bruno@clisp.org>
76166         * lib/pipe.c: Include unistd-safer.h.
76167         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
76168         * modules/pipe (Depends-on): Add unistd-safer.
76170 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76172         * modules/autobuild (configure.ac): Call AB_INIT.
76174 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76176         * tests/test-getaddrinfo.c: Don't print debug messages by default.
76177         Suggested by Bruno Haible <bruno@clisp.org>.
76179 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76181         * tests/test-base64.c: Cast size_t to unsigned long when invoking
76182         printf.  Use %lu instead of %d.  Reported by Bruno Haible
76183         <bruno@clisp.org>.
76185 2008-05-29  Eric Blake  <ebb9@byu.net>
76187         Prefer new POSIX 200x interfaces over futimesat.
76188         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
76189         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
76190         when available.
76191         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
76193 2008-05-28  Bruno Haible  <bruno@clisp.org>
76195         * modules/stpcpy (License): Change to LGPLv2+.
76196         Requested by David Lutterkort <dlutter@redhat.com>.
76198 2008-05-27  Bruno Haible  <bruno@clisp.org>
76200         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
76201         current mingw.
76202         Reported by Jose E. Marchesi <jemarch@gnu.org>.
76204 2008-05-27  Bruno Haible  <bruno@clisp.org>
76206         * modules/iconv_open (Link): New section, from module 'iconv'.
76207         * modules/striconv (Link): Likewise.
76208         * modules/striconveh (Link): Likewise.
76209         * modules/xstriconv (Link): Likewise.
76210         * modules/unicodeio (Link): Likewise.
76211         * modules/propername (Link): Likewise.
76212         Reported by Jim Meyering.
76214 2008-05-26  Jim Meyering  <meyering@redhat.com>
76216         sha256: do not artificially restrict buffer length to be < 2^32
76217         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
76218         uint32_t to size_t.
76219         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
76220         to match.
76222         avoid unaligned access errors, e.g., on sparc
76223         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
76224         direct access through a possibly-unaligned uint64* pointer.
76225         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
76226         direct access through a possibly-unaligned uint32* pointer.
76227         Prompted by this patch from Tom "spot" Callaway:
76228         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
76230         sha512.c: fix typo in comment
76231         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
76233 2008-05-25  Bruno Haible  <bruno@clisp.org>
76235         * lib/set-mode-acl.c: Renamed from lib/acl.c.
76236         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
76237         (Makefile.am): Update lib_SOURCES.
76239 2008-05-25  Bruno Haible  <bruno@clisp.org>
76241         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
76243 2008-05-25  Jim Meyering  <meyering@redhat.com>
76245         useless-if-before-free: freed expr may have white-space differences
76246         * build-aux/useless-if-before-free: Recognize cases in which the
76247         freed expression differs from the tested one in embedded white
76248         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
76249         $1 was used, so we can't make any regexp shy.  Improved tests now
76250         detect this.
76252         useless-if-before-free: accept white space in the expression.
76253         * build-aux/useless-if-before-free: For now, any white space
76254         in the expression must be identical in the free argument.
76256         useless-if-before-free: efficiency tweak
76257         * build-aux/useless-if-before-free: Make the expression-matching
76258         regexp "shy".
76259         Make the *outer* regexp shy, not the expr-matching one.
76261         update code-in-comment to accept cast of free arg
76262         * build-aux/useless-if-before-free: Update regexp.
76264 2008-05-25  Bruno Haible  <bruno@clisp.org>
76266         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
76267         * modules/copy-file-tests (Files, Makefile.am): Update.
76268         * tests/test-copy-file.c (func_test_copy): Update.
76270 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
76272         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
76274 2008-05-23  Bruno Haible  <bruno@clisp.org>
76276         Improve support for ACLs on OSF/1.
76277         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
76278         Remove fallback for unknown flavors of ACLs.
76280 2008-05-22  Bruno Haible  <bruno@clisp.org>
76282         Add support for ACLs on OSF/1.
76283         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
76284         replacements.
76285         (acl_free_text): New macro fallback.
76286         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
76287         acl_free.
76288         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
76289         acl_free_text function. Require AC_C_INLINE.
76291 2008-05-22  Bruno Haible  <bruno@clisp.org>
76293         Make copy_acl work on MacOS X 10.5.
76294         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
76295         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
76296         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
76297         If MODE_INSIDE_ACL, don't assume that every system has the same text
76298         representation for ACLs as FreeBSD.
76299         * lib/copy-acl.c (copy_acl): Add support for platforms with
76300         !MODE_INSIDE_ACL.
76301         * lib/file-has-acl.c (file_has_acl): Likewise.
76302         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
76303         FreeBSD, MacOS X, or IRIX, respectively.
76305 2008-05-22  Bruno Haible  <bruno@clisp.org>
76307         * lib/acl.h: Don't include <sys/acl.h>.
76308         (GETACLCNT): Move fallback to lib/acl-internal.h.
76309         * lib/acl-internal.h: Include <sys/acl.h> here.
76310         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
76312 2008-05-22  Bruno Haible  <bruno@clisp.org>
76314         Split off copy_acl function to separate file.
76315         * lib/copy-acl.c: New file, extracted from lib/acl.c.
76316         * lib/acl.c (copy_acl): Moved function to separate file.
76317         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
76318         * modules/acl (Files): Add lib/copy-acl.c.
76319         (Makefiles.am): Augment lib_SOURCES.
76321 2008-05-22  Bruno Haible  <bruno@clisp.org>
76323         * modules/copy-file-tests: New file.
76324         * tests/test-copy-file.sh: New file.
76325         * tests/test-copy-file.c: New file.
76326         * tests/test-copy-file-sameacls.c: New file.
76328 2008-05-22  Eric Blake  <ebb9@byu.net>
76330         Avoid gcc warning.
76331         * tests/test-memcmp.c (main): Pass NULL indirectly.
76333 2008-05-21  Bruno Haible  <bruno@clisp.org>
76335         Add reference doc about ACLs.
76336         * doc/acl-resources.txt: New file.
76337         * doc/acl-cygwin.txt: New file.
76339 2008-05-21  Bruno Haible  <bruno@clisp.org>
76341         Avoid one more warning from gcc.
76342         * lib/vasnprintf.c (IF_LINT): Update comments.
76343         (VASNPRINTF): Use it also for the 'prefix' array initializer.
76345 2008-05-21  Jim Meyering  <meyering@redhat.com>
76347         avoid a warning from gcc
76348         * lib/vasnprintf.c (IF_LINT): Define.
76349         (scale10_round_decimal_long_double):
76350         Use it to avoid a "may be used uninitialized" warning.
76351         (scale10_round_decimal_double): Likewise.
76353 2008-05-21  Simon Josefsson  <simon@josefsson.org>
76355         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
76356         declared.
76358 2008-05-20  Bruno Haible  <bruno@clisp.org>
76360         * tests/test-memcmp.c (main): Test also the sign of the result. Test
76361         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
76363 2008-05-20  Simon Josefsson  <simon@josefsson.org>
76365         * modules/memcmp-tests: New file.
76366         * tests/test-memcmp.c: New file.
76368 2008-05-19  Bruno Haible  <bruno@clisp.org>
76370         * modules/propername (Notice, configure.ac): Put quoted "..." into
76371         --keyword option.
76372         * lib/propername.h: Update comments accordingly.
76373         Reported by Eric Blake.
76375 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
76377         * modules/getpass-gnu (Depends-on): Add fseeko.
76379 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76381         * modules/base64-tests: New file.
76383 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
76385         * lib/base64.c (base64_decode_ctx): If a decode context structure
76386         was passed in use it to ignore newlines.  If a context structure
76387         was _not_ passed in, continue to treat newlines as garbage (this
76388         is the historical behavior).  Formerly base64_decode.
76389         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76390         takes a decode context structure.
76391         * lib/base64.h (base64_decode): Macro for four-argument calls.
76392         (base64_decode_alloc): Likewise.
76393         * lib/base64.c (base64_decode_ctx): If a decode context structure
76394         was passed in use it to ignore newlines.  If a context structure
76395         was _not_ passed in, continue to treat newlines as garbage (this
76396         is the historical behavior).  Formerly base64_decode.
76397         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76398         takes a decode context structure.
76399         * lib/base64.h (base64_decode): Macro for four-argument calls.
76400         (base64_decode_alloc): Likewise.
76402 2008-05-19  Jim Meyering  <meyering@redhat.com>
76404         avoid a warning from gcc
76405         * lib/trim.c (IF_LINT): Define.
76406         (trim2): Use it to avoid a "may be used uninitialized" warning.
76408         Fix doc typo.
76409         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
76411 2008-05-19  Bruno Haible  <bruno@clisp.org>
76413         * doc/glibc-functions/getpass.texi: Document limits of other
76414         implementations.
76416 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76417             Bruno Haible <bruno@clisp.org>
76419         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
76421 2008-05-18  Bruno Haible  <bruno@clisp.org>
76423         * modules/propername: New file, from GNU gettext.
76424         * lib/propername.h: New file, from GNU gettext.
76425         * lib/propername.c: New file, from GNU gettext.
76426         * MODULES.html.sh (Internationalization functions): Add propername.
76428 2008-05-16  Jim Meyering  <meyering@redhat.com>
76429             Bruno Haible  <bruno@clisp.org>
76431         Avoid some warnings from "gcc -Wshadow".
76432         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
76434 2008-05-15  Eric Blake  <ebb9@byu.net>
76436         Extend previous patch to cygwin 1.7.0.
76437         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
76438         fast implementation in cygwin >= 1.7.0.
76439         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76442 2008-05-15  Bruno Haible  <bruno@clisp.org>
76444         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
76445         implementation in glibc >= 2.9.
76446         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76449 2008-05-15  Bruno Haible  <bruno@clisp.org>
76451         * MODULES.html.sh (Internationalization functions): Remove linebreak.
76452         (Unicode string functions): Add unilbrk/*.
76453         Reported by Karl Berry.
76455 2008-05-15  Eric Blake  <ebb9@byu.net>
76457         Fix violation of <stdbool.h> replacement in regex.
76458         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
76459         * lib/regexec.c (re_search_internal): Likewise.
76460         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
76462 2008-05-15  Jim Meyering  <meyering@redhat.com>
76464         avoid distracting test output when git or cvs is not found
76465         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
76466         * tests/test-vc-list-files-git.sh: Likewise.
76468 2008-05-15  Eric Blake  <ebb9@byu.net>
76470         Glibc finally accepted the memmem speedup code, bugzilla #5514.
76471         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
76472         glibc version.
76473         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
76474         * doc/posix-functions/strstr.texi (strstr): Likewise.
76475         * lib/str-two-way.h (MAX): Sychronize with glibc.
76477 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
76479         * lib/regcomp.c (optimize_utf8): Add a note on why we test
76480         opr.ctx_type.
76481         (calc_first): Initialize constraint field.
76482         (duplicate_node_closure): Use it instead of special casing ANCHORS.
76483         Fix grammar.
76484         (duplicate_node): Merge constraint field for all node types.
76485         (calc_eclosure_iter): Look at constraint field for all node types.
76486         * lib/regex_internal.c (create_cd_newstate): Don't look at
76487         opr.ctx_type.
76489 2008-05-14  Bruno Haible  <bruno@clisp.org>
76491         Help GCC to do better code generation.
76492         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
76493         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
76494         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
76495         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
76496         Declare with attribute 'malloc' if supported.
76498 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
76500         use "echo STR|wc -c" rather than unportable "expr length STR"
76501         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
76502         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
76504 2008-05-14  Jim Meyering  <meyering@redhat.com>
76506         use dd ibs=$n count=1 ... rather than less-portable head -c$n
76507         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
76508         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
76509         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
76510         via Collin Lasse.
76512 2008-05-14  Eric Blake  <ebb9@byu.net>
76514         Avoid quadratic growth in gl_LIBSOURCES.
76515         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
76516         Suggested by Bruno Haible.
76518         Test xmemdup0.
76519         * modules/xmemdup0-tests: New file.
76520         * tests/test-xmemdup0.c: Likewise.
76522 2008-05-13  Eric Blake  <ebb9@byu.net>
76524         Split xmemdup0 into its own module.
76525         * modules/xmemdup0: New file.
76526         * lib/xmemdup0.h: Likewise.
76527         * lib/xmemdup0.c: Likewise.
76528         * MODULES.html.sh (Memory management functions): Add xmemdup0.
76529         * lib/xalloc.h (xmemdup0): Remove.
76530         * lib/xmalloc.c (xmemdup0): Likewise.
76532 2008-05-13  Eric Blake  <ebb9@byu.net>
76533             Bruno Haible  <bruno@clisp.org>
76535         Reduce number of forks required during autoconf.
76536         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
76537         and gl_LIBSOURCES_DIR.
76538         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
76539         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
76540         m4_syscmd per file.
76541         <m4_foreach_w>: Move...
76542         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
76544 2008-05-13  Eric Blake  <ebb9@byu.net>
76546         * gnulib-tool: Fix various comment typos.
76548 2008-05-12  Bruno Haible  <bruno@clisp.org>
76550         Tailor the linebreaking algorithm.
76551         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
76553 2008-05-12  Bruno Haible  <bruno@clisp.org>
76555         Update to Unicode 5.0.0.
76556         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76557         LBP_JV, LBP_JT. Redistribute values.
76558         (unilbrk_table): Change size.
76559         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
76560         Unicode TR#14 rev. 22.
76561         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76562         LBP_JV, LBP_JT. Redistribute values.
76563         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
76564         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
76565         Update.
76566         * lib/unilbrk/lbrkprop1.h: Regenerated.
76567         * lib/unilbrk/lbrkprop2.h: Regenerated.
76568         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
76569         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
76570         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
76571         Likewise.
76572         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
76573         Likewise.
76574         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
76575         result.
76576         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
76577         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
76578         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
76579         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
76580         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
76581         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
76583 2008-05-11  Bruno Haible  <bruno@clisp.org>
76585         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
76587 2008-05-11  Bruno Haible  <bruno@clisp.org>
76589         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
76590         * modules/unilbrk/gen-lbrk: New file.
76592 2008-05-11  Bruno Haible  <bruno@clisp.org>
76594         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
76595         * m4/sha512.m4 (gl_SHA512): Likewise.
76597 2008-05-11  Jim Meyering  <meyering@redhat.com>
76599         New modules: crypto/sha256, crypto/sha512 (from coreutils)
76600         * modules/crypto/sha256: New file.
76601         * modules/crypto/sha512: Likewise.
76602         * lib/sha256.c: Likewise.
76603         * lib/sha256.h: Likewise.
76604         * lib/sha512.c: Likewise.
76605         * lib/sha512.h: Likewise.
76606         * lib/u64.h: Likewise.
76607         * m4/sha256.m4: Likewise.
76608         * m4/sha512.m4: Likewise.
76609         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
76611 2008-05-10  Bruno Haible  <bruno@clisp.org>
76613         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
76614         (Input/Output <stdio.h>): Add xprintf.
76615         (Signal handling <signal.h>): Add strsignal.
76616         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
76617         (Core language properties): Add func.
76618         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
76619         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
76620         strings.
76621         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
76622         (Input/output): New section.
76623         (File system functions): Add openat-die, stat-macros.
76624         (Networking functions): Add sockets.
76625         (Unicode string functions): Add unictype/*.
76626         (Support for building libraries and executables): Add gperf.
76627         (Support for building documentation): Add agpl-3.0.
76628         (Misc): Add nocrash.
76630 2008-05-10  Bruno Haible  <bruno@clisp.org>
76632         * modules/unictype/gen-ctype: New file.
76634 2008-05-10  Jim Meyering  <meyering@redhat.com>
76636         Make chdir-safer.c more efficient on a system with no symlinks.
76637         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
76638         also if ELOOP is zero.  Suggested by Bruno Haible.
76640         Make chdir-safer.c slightly safer.
76641         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
76642         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
76644         Avoid compile failure on systems without ELOOP (like mingw).
76645         * lib/chdir-safer.c (ELOOP): Define if not already defined.
76646         Reported by Bruno Haible.
76648 2008-05-10  Bruno Haible  <bruno@clisp.org>
76650         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
76651         (is_utf8_encoding): Use a case-insensitive comparison.
76652         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
76653         streq.
76655 2008-05-10  Bruno Haible  <bruno@clisp.org>
76657         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
76658         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
76659         * lib/unilbrk/ulc-common.h (iconv_string_length,
76660         iconv_string_keeping_offsets): Remove declarations.
76661         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
76662         Don't include <iconv.h>, streq.h, xsize.h.
76663         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
76664         conversion.
76665         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
76666         <iconv.h>, streq.h, xsize.h.
76667         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
76668         conversion.
76669         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
76670         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
76671         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
76672         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
76674 2008-05-10  Bruno Haible  <bruno@clisp.org>
76676         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
76677         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
76679         * modules/unilbrk/u32-width-linebreaks-tests: New file.
76680         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
76682         * modules/unilbrk/u16-width-linebreaks-tests: New file.
76683         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
76685         * modules/unilbrk/u8-width-linebreaks-tests: New file.
76686         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
76688         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
76689         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
76691         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
76692         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
76694         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
76695         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
76697         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
76698         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
76700 2008-05-10  Bruno Haible  <bruno@clisp.org>
76702         Split up 'linebreak' module.
76703         * lib/unilbrk.h: New file, based on lib/linebreak.h.
76704         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
76705         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
76706         modifications.
76707         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
76708         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
76709         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
76710         lib/linebreak.c.
76711         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
76712         lib/linebreak.c.
76713         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
76714         lib/linebreak.c.
76715         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
76716         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
76717         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
76718         lib/linebreak.c.
76719         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
76720         lib/linebreak.c.
76721         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
76722         lib/linebreak.c.
76723         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
76724         lib/linebreak.c.
76725         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
76726         lib/linebreak.c.
76727         * modules/unilbrk/base: New file.
76728         * modules/unilbrk/tables: New file.
76729         * modules/unilbrk/u8-possible-linebreaks: New file.
76730         * modules/unilbrk/u16-possible-linebreaks: New file.
76731         * modules/unilbrk/u32-possible-linebreaks: New file.
76732         * modules/unilbrk/ulc-common: New file.
76733         * modules/unilbrk/ulc-possible-linebreaks: New file.
76734         * modules/unilbrk/u8-width-linebreaks: New file.
76735         * modules/unilbrk/u16-width-linebreaks: New file.
76736         * modules/unilbrk/u32-width-linebreaks: New file.
76737         * modules/unilbrk/ulc-width-linebreaks: New file.
76738         * lib/linebreak.h: Remove file.
76739         * lib/linebreak.c: Remove file.
76740         * m4/linebreak.m4: Remove file.
76741         * modules/linebreak: Remove file.
76742         * NEWS: Mention the changes.
76744 2008-05-09  Eric Blake  <ebb9@byu.net>
76746         Add xmemdup0.
76747         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
76748         implementation.
76749         * lib/xmalloc.c (xmemdup0): New C implementation.
76751 2008-05-08  Bruno Haible  <bruno@clisp.org>
76753         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
76755 2008-05-07  Eric Blake  <ebb9@byu.net>
76757         Support cross-compilation of <wctype.h>.
76758         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
76759         AC_CACHE_CHECK.
76761 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
76763         * build-aux/vc-list-files: Add support for bzr.
76765 2008-05-03  Jim Meyering  <meyering@redhat.com>
76767         avoid failed assertion with tight malloc
76768         * tests/test-getndelim2.c: Correct an off-by-one assertion.
76770 2008-05-03  Simon Josefsson  <simon@josefsson.org>
76772         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
76773         are needed from arpa/inet.h.
76774         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
76775         Reported by Bruno Haible.
76777 2008-05-02  Jim Meyering  <meyering@redhat.com>
76779         avoid compilation error on FreeBSD 6
76780         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
76782 2008-05-01  Jim Meyering  <meyering@redhat.com>
76784         useless-if-before-free: correct --help's exit status description
76785         * build-aux/useless-if-before-free (usage): Like grep, exit 0
76786         for one or more matches, etc.  Reported by Bruno Haible.
76788         vc-list-files: make the stand-alone gnulib test work
76789         * modules/vc-list-files-tests (configure.ac):
76790         Define and AC_SUBST abs_aux_dir.
76791         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
76792         $(abs_top_srcdir) to each script and having each of them
76793         duplicate the work of setting PATH, set PATH here, using
76794         the new variable, abs_aux_dir instead.
76795         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
76796         * tests/test-vc-list-files-git.sh: Likewise.
76797         Reported by Bruno Haible.
76799 2008-05-01  Bruno Haible  <bruno@clisp.org>
76801         * lib/getndelim2.c (getndelim2): Fix newsize computation during
76802         reallocation. Rename 'done' to 'found_delimiter'.
76804 2008-05-01  Jim Meyering  <meyering@redhat.com>
76806         vc-list-files: accommodate /bin/sh like the one from Solaris 10
76807         * build-aux/vc-list-files: Use `...`, not $(...).
76809 2008-04-30  Jim Meyering  <meyering@redhat.com>
76811         add tests for vc-list-files
76812         * modules/vc-list-files-tests: New module.
76813         * tests/test-vc-list-files-cvs.sh: New file.
76814         * tests/test-vc-list-files-git.sh: New file.
76816         avoid a warning from gcc
76817         * lib/getndelim2.c (IF_LINT): Define.
76818         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
76820         vc-list-files: work properly with build-aux/cvsu, too
76821         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
76822         to all cvs-based clauses.
76824         vc-list-files: work properly in the CVS+awk case, too
76825         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
76827         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
76828         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
76829         take more than one file argument, so .  Add quotes, just in case $dir
76830         ever contains a shell meta-character.  Prompted by Soren Hansen in
76831         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
76833 2008-04-29  Eric Blake  <ebb9@byu.net>
76835         Optimize getndelim2 to use block operations when possible.
76836         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
76837         freadseek, and memchr2.
76838         * lib/getndelim2.c (getndelim2): Use them for block reads.
76840 2008-04-29  Bruno Haible  <bruno@clisp.org>
76842         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
76843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76844         * modules/inet_ntop (Depends-on): Add extensions.
76845         * modules/inet_pton (Depends-on): Likewise.
76846         Reported by Simon Josefsson.
76848 2008-04-29  Jim Meyering  <meyering@redhat.com>
76850         When the is more than one match in a block, match all of them.
76851         * build-aux/useless-if-before-free: Iterate through each block
76852         until there are no more matches.
76854         Fix broken useless-if-before-free script.
76855         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76856         the expression to match cast of argument to free-like function.
76858 2008-04-29  Eric Blake  <ebb9@byu.net>
76860         Use new header.
76861         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76863 2008-04-29  Jim Meyering  <meyering@redhat.com>
76865         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76866         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76867         by gnulib to exist and to declare e.g., inet_ntop.
76868         Don't include "inet_ntop.h", now removed.
76870         * m4/arpa_inet_h.m4: Remove trailing blanks.
76872 2008-04-29  Eric Blake  <ebb9@byu.net>
76874         Silence valgrind on safe reads beyond potential array bounds.
76875         * lib/rawmemchr.valgrind: New file.
76876         * lib/strchrnul.valgrind: Likewise.
76877         * modules/rawmemchr (Files): Distribute new file.
76878         * modules/strchrnul (Files): Likewise.
76879         Suggested by Bruno Haible.
76881 2008-04-29  Bruno Haible  <bruno@clisp.org>
76883         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76884         (inet_ntop, inet_pton): Change portability warning's wording.
76885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76886         Invoke gl_CHECK_NEXT_HEADERS.
76887         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76888         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76889         set ARPA_INET_H.
76890         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76891         * modules/arpa_inet (Description): No longer only for systems that
76892         lack it.
76893         (Depends-on): Add include_next.
76894         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76895         HAVE_ARPA_INET_H.
76897 2008-04-29  Jim Meyering  <meyering@redhat.com>
76899         * modules/mkdir (License): Re-license as LGPLv2+.
76901 2008-04-29  Bruno Haible  <bruno@clisp.org>
76903         * modules/rawmemchr (Maintainer): Set to Eric.
76904         * modules/strchrnul (Maintainer): Likewise.
76906 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76908         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76909         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76911         * modules/arpa_inet (arpa/inet.h): Use them.
76913 2008-04-28  Eric Blake  <ebb9@byu.net>
76915         Test getndelim2.
76916         * modules/getndelim2-tests: New file.
76917         * tests/test-getndelim2.c: Likewise.
76918         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76919         stream.
76920         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76922         * MODULES.html.sh: Document new module.
76924 2008-04-20  Bruno Haible  <bruno@clisp.org>
76926         * lib/c-stack.c (die): Use raise.
76927         * modules/c-stack (Depends-on): Add raise.
76929 2008-04-28  Bruno Haible  <bruno@clisp.org>
76931         Expect rpmatch to be declared.
76932         * lib/yesno.c (rpmatch): Remove declaration.
76934         Declare rpmatch.
76935         * lib/stdlib.in.h (rpmatch): New declaration.
76936         * lib/rpmatch.c: Include <stdlib.h> first.
76937         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76938         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76940         HAVE_RPMATCH.
76941         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76943         (Include): Set to <stdlib.h>.
76944         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76945         HAVE_RPMATCH.
76946         * NEWS: Document the change.
76948 2008-04-28  Bruno Haible  <bruno@clisp.org>
76950         Change rpmatch to use nl_langinfo when appropriate.
76951         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76952         (N_): New macro.
76953         (localized_pattern): New function/macro.
76954         (try): Remove match, nomatch arguments. Copy the pattern into safe
76955         memory before caching it.
76956         (rpmatch): Use localized_pattern. Add translator comments.
76957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76958         Suggested by Eric Blake.
76959         * modules/rpmatch (Depends-on): Add stdbool.
76961 2008-04-28  Eric Blake  <ebb9@byu.net>
76963         Add rawmemchr module, matching glibc.
76964         * modules/string (Makefile.am): New indicator.
76965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76966         * lib/string.in.h (rawmemchr): Declare when appropriate.
76967         * modules/rawmemchr: New file.
76968         * m4/rawmemchr.m4: Likewise.
76969         * lib/rawmemchr.c: Likewise.
76970         * modules/rawmemchr-tests: Likewise.
76971         * tests/test-rawmemchr.c: Likewise.
76972         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76973         module.
76974         * modules/strchrnul (Depends-on): Add rawmemchr.
76975         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76977         Whitespace cleanup.
76978         * tests/test-strchrnul.c: Reindent.
76979         * lib/strchrnul.c: Likewise.
76981         Optimize and test strchrnul.
76982         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76983         * modules/strchrnul-tests: New file.
76984         * tests/test-strchrnul.c: Likewise.
76986         Remove intprops dependency.
76987         * modules/memchr (Depends-on): Remove intprops.
76988         * modules/memrchr (Depends-on): Likewise.
76989         * modules/memchr2 (Depends-on): Likewise.
76990         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76991         * lib/memrchr.c (__memrchr): Likewise.
76992         * lib/memrchr2.c (memchr2): Likewise.
76993         Reported by Simon Josefsson.
76995 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76997         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76998         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77000 2008-04-28  Simon Josefsson  <simon@josefsson.org>
77002         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
77004         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
77006         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
77008         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
77009         declarations.
77010         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
77012         * m4/inet_pton.m4: Don't check for header files.
77014         * m4/inet_ntop.m4: Don't check for header files.
77016 2008-04-28  Simon Josefsson  <simon@josefsson.org>
77018         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
77019         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
77020         trigger for cygwin).
77021         Reported by Bruno Haible  <bruno@clisp.org>.
77023 2008-04-28  Bruno Haible  <bruno@clisp.org>
77025         * doc/posix-functions/strdup.texi: Mention mingw problem.
77027 2008-04-27  Bruno Haible  <bruno@clisp.org>
77029         * modules/stat-time-tests (Depends-on): Add sleep.
77030         * tests/test-stat-time.c (force_unlink): New function.
77031         (cleanup): Use it.
77032         (test_mtime): Remove the ctime related tests.
77033         (test_ctime): New function, containing the ctime related tests.
77034         (main): Call test_ctime, except on native Windows platforms.
77036 2008-04-27  Bruno Haible  <bruno@clisp.org>
77038         * lib/rpmatch.c (rpmatch): Add some comments.
77039         Reported by James Youngman <jay@gnu.org>.
77041 2008-04-27  Bruno Haible  <bruno@clisp.org>
77043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
77044         quiet NaNs.
77046 2008-04-27  Bruno Haible  <bruno@clisp.org>
77048         Make test-yesno.sh work on mingw.
77049         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
77050         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
77051         (main): Set stdin to binary mode.
77052         * modules/yesno-tests (Depends-on): Add binary-io.
77054 2008-04-27  Bruno Haible  <bruno@clisp.org>
77056         Fix 'isfinite' on x86, x86_64, ia64 platforms.
77057         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
77058         argument that lie outside the IEEE 854 domain.
77059         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
77060         (gl_ISFINITE): Use it.
77061         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
77063 2008-04-27  Bruno Haible  <bruno@clisp.org>
77065         Allow local renaming in config.h.
77066         * lib/memrchr.c (memrchr): Don't undefine outside libc.
77068 2008-04-27  Bruno Haible  <bruno@clisp.org>
77070         * lib/memchr.c (__memchr): Change type of 'i'.
77071         * lib/memchr2.c (memchr2): Likewise.
77073 2008-04-26  Eric Blake  <ebb9@byu.net>
77074         and Bruno Haible  <bruno@clisp.org>
77076         Optimize and test memrchr.
77077         * modules/memrchr (Depends-on): Add intprops.
77078         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
77079         * modules/memrchr-tests: New file.
77080         * tests/test-memrchr.c: New file.
77082 2008-04-26  Bruno Haible  <bruno@clisp.org>
77084         Add tentative support for DragonFly BSD.
77085         * lib/stdio-impl.h: Add macros for DragonFly BSD.
77086         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
77087         fp.
77088         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
77089         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
77090         * lib/fpurge.c (fpurge): Likewise.
77091         * lib/freadable.c (freaadable): Likewise.
77092         * lib/freadahead.c (freadahead): Likewise.
77093         * lib/freading.c (freading): Likewise.
77094         * lib/freadptr.c (freadptr): Likewise.
77095         * lib/freadseek.c (freadptrinc): Likewise.
77096         * lib/fseeko.c (fseeko): Likewise.
77097         * lib/fseterr.c (fseterr): Likewise.
77098         * lib/fwritable.c (fwritable): Likewise.
77099         * lib/fwriting.c (fwriting): Likewise.
77101 2008-04-26  Bruno Haible  <bruno@clisp.org>
77103         * lib/stdio-impl.h: New file.
77104         * lib/fbufmode.c: Include stdio-impl.h.
77105         (fbufmode): Use fp_, remove redundant #defines.
77106         * lib/fflush.c: Include stdio-impl.h.
77107         (clear_ungetc_buffer): Remove redundant #defines.
77108         * lib/fpurge.c: Include stdio-impl.h.
77109         (fpurge): Remove redundant #defines.
77110         * lib/freadable.c: Include stdio-impl.h.
77111         (freadable): Remove redundant #defines.
77112         * lib/freadahead.c: Include stdio-impl.h.
77113         (freadahead): Remove redundant #defines.
77114         * lib/freading.c: Include stdio-impl.h.
77115         (freading): Remove redundant #defines.
77116         * lib/freadptr.c: Include stdio-impl.h.
77117         (freadptr): Remove redundant #defines.
77118         * lib/freadseek.c: Include stdio-impl.h.
77119         (freadptrinc): Remove redundant #defines.
77120         * lib/fseeko.c: Include stdio-impl.h.
77121         (rpl_fseeko): Remove redundant #defines.
77122         * lib/fseterr.c: Include stdio-impl.h.
77123         (fseterr): Remove redundant #defines.
77124         * lib/fwritable.c: Include stdio-impl.h.
77125         (fwritable: Remove redundant #defines.
77126         * lib/fwriting.c: Include stdio-impl.h.
77127         (fwriting): Remove redundant #defines.
77128         * modules/fbufmode (Files): Add lib/stdio-impl.h.
77129         * modules/fflush (Files): Likewise.
77130         * modules/fpurge (Files): Likewise.
77131         * modules/freadable (Files): Likewise.
77132         * modules/freadahead (Files): Likewise.
77133         * modules/freading (Files): Likewise.
77134         * modules/freadptr (Files): Likewise.
77135         * modules/freadseek (Files): Likewise.
77136         * modules/fseeko (Files): Likewise.
77137         * modules/fseterr (Files): Likewise.
77138         * modules/fwritable (Files): Likewise.
77139         * modules/fwriting (Files): Likewise.
77141 2008-04-26  Bruno Haible  <bruno@clisp.org>
77143         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
77144         restore_seek_optimization, update_fpos_cache): New functions, extracted
77145         from rpl_fflush.
77146         (rpl_fflush): Use them.
77147         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
77148         (gl_REPLACE_FFLUSH): Use it.
77150 2008-04-26  Bruno Haible  <bruno@clisp.org>
77152         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
77153         on Solaris.
77154         * tests/test-xstrtoimax.sh: Likewise.
77155         * tests/test-xstrtoumax.sh: Likewise.
77156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77158 2008-04-26  Bruno Haible  <bruno@clisp.org>
77160         * modules/memchr-tests: New file.
77161         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
77163 2008-04-26  Eric Blake  <ebb9@byu.net>
77164             Bruno Haible  <bruno@clisp.org>
77166         * lib/memchr.c: Include intprops.h.
77167         (__memchr): Optimize parallel detection of matching bytes. Rename local
77168         variables. Add explanatory comments.
77170 2008-04-26  Bruno Haible  <bruno@clisp.org>
77172         Fix module 'memchr', broken since 2000-10-28.
77173         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
77175 2008-04-26  Bruno Haible  <bruno@clisp.org>
77177         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
77178         comments.
77180 2008-04-25  Eric Blake  <ebb9@byu.net>
77182         Use native fstatat on cygwin 1.7.0.
77183         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
77184         first.
77186 2008-04-23  Eric Blake  <ebb9@byu.net>
77188         Improve memchr2 performance.
77189         * lib/memchr2.c (memchr2): Further optimize parallel detection of
77190         NUL bytes.
77191         * modules/memchr2 (Depends-on): Use intprops.h.
77193 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77195         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
77196         an inline function instead of a CPP macro.  Patch by Ben Pfaff
77197         <blp@cs.stanford.edu>.
77199 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77201         * lib/arpa_inet.in.h: New file.
77203         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
77204         (Makefile.am): Sed in substitute header file.
77206         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
77207         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
77209         * modules/inet_ntop (configure.ac): Use
77210         gl_ARPA_INET_MODULE_INDICATOR.
77212         * modules/inet_pton (configure.ac): Use
77213         gl_ARPA_INET_MODULE_INDICATOR.
77215 2008-04-22  Jim Meyering  <meyering@redhat.com>
77217         * modules/verify (License): Re-license as LGPLv2+.
77219 2008-04-22  Simon Josefsson  <simon@josefsson.org>
77221         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
77222         parameter to void* as per POSIX standard (MinGW uses char*).
77224 2008-04-21  Bruno Haible  <bruno@clisp.org>
77226         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77227         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77228         Define to replacements if REPLACE_ISWCNTRL is 1.
77229         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
77230         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
77231         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
77232         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
77233         what it fixes.
77234         * doc/posix-functions/iswalpha.texi: Likewise.
77235         * doc/posix-functions/iswblank.texi: Likewise.
77236         * doc/posix-functions/iswcntrl.texi: Likewise.
77237         * doc/posix-functions/iswdigit.texi: Likewise.
77238         * doc/posix-functions/iswgraph.texi: Likewise.
77239         * doc/posix-functions/iswlower.texi: Likewise.
77240         * doc/posix-functions/iswprint.texi: Likewise.
77241         * doc/posix-functions/iswpunct.texi: Likewise.
77242         * doc/posix-functions/iswspace.texi: Likewise.
77243         * doc/posix-functions/iswupper.texi: Likewise.
77244         * doc/posix-functions/iswxdigit.texi: Likewise.
77245         Reported by Alain Guibert.
77247 2008-04-21  Bruno Haible  <bruno@clisp.org>
77249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
77250         Patch by Alain Guibert.
77252 2008-04-21  Bruno Haible  <bruno@clisp.org>
77254         Fix test failures on mingw.
77255         * tests/test-xstrtol.c (print_no_progname): New function.
77256         (main): Install it in error_print_progname hook.
77257         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
77258         * tests/test-xstrtoimax.sh: Likewise.
77259         * tests/test-xstrtoumax.sh: Likewise.
77261 2008-04-21  Bruno Haible  <bruno@clisp.org>
77263         Fix test failure on mingw.
77264         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
77266 2008-04-21  Bruno Haible  <bruno@clisp.org>
77268         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
77269         Actually assign a value.
77271 2008-04-20  Bruno Haible  <bruno@clisp.org>
77273         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
77274         take 2.
77275         * lib/canonicalize.c (canonicalize_file_name): Elide if the
77276         'canonicalize-lgpl' module is also used.
77277         * lib/canonicalize-lgpl.c: Undo last change.
77278         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
77280 2008-04-20  Bruno Haible  <bruno@clisp.org>
77282         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
77283         config.h. Provide _mkdir based fallback for mingw.
77284         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
77285         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
77286         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
77287         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
77288         rather than defining mkdir in config.h.
77289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
77290         (gl_SYS_STAT_H_DEFAULTS): New macro.
77291         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
77292         HAVE_IO_H any more.
77293         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
77294         HAVE_DECL_MKDIR and HAVE_IO_H.
77296 2008-04-20  Bruno Haible  <bruno@clisp.org>
77298         * lib/isapipe.c: Port to native Windows platforms.
77300 2008-04-20  Bruno Haible  <bruno@clisp.org>
77302         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
77304 2008-04-21  Eric Blake  <ebb9@byu.net>
77306         Work around preprocessors that don't handle UINTMAX_MAX.
77307         * lib/memchr2.c (memchr2): Avoid embedded #if.
77308         Reported by Alain Guibert, fix suggested by Bruno Haible.
77310 2008-04-21  Simon Josefsson  <simon@josefsson.org>
77312         * doc/posix-functions/strftime.texi (strftime): Explain better
77313         Windows incompatibility.  Suggested by Micah Cowan
77314         <micah@cowan.name>.
77316 2008-04-20  Bruno Haible  <bruno@clisp.org>
77318         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
77319         unistr/u8-mblen.
77321 2008-04-20  Bruno Haible  <bruno@clisp.org>
77323         Fix test failure on platforms with non-GNU iconv.
77324         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
77325         (U_TO_U8): Use it, rather than u16_to_u8.
77326         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
77327         units at the end of the input string.
77328         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
77330 2008-04-20  Bruno Haible  <bruno@clisp.org>
77332         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
77333         when the resulting length is 0.
77334         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
77336 2008-04-20  Bruno Haible  <bruno@clisp.org>
77338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
77339         works.
77340         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
77342 2008-04-20  Bruno Haible  <bruno@clisp.org>
77344         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
77345         * modules/tsearch-tests (configure.ac): Test for initstate function.
77347 2008-04-20  Bruno Haible  <bruno@clisp.org>
77349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
77350         for nlink_t if missing.
77351         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
77353 2008-04-19  Bruno Haible  <bruno@clisp.org>
77355         Work around snprintf bug on Linux libc5.
77356         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
77357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
77358         gl_SNPRINTF_SIZE1.
77359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77360         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
77361         that test failed.
77362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
77363         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
77364         * modules/snprintf (Files): Add m4/printf.m4.
77365         * modules/vsnprintf (Files): Likewise.
77366         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
77367         * doc/posix-functions/vsnprintf.texi: Likewise.
77369 2008-04-19  Bruno Haible  <bruno@clisp.org>
77371         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
77372         from 0.0058 to less than 10^-7.
77374 2008-04-19  Bruno Haible  <bruno@clisp.org>
77376         Fix rounding when a precision is given.
77377         * lib/vasnprintf.c (is_borderline): New function.
77378         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
77379         9...9x.
77380         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
77381         %e, %g.
77382         * tests/test-vasprintf-posix.c (test_function): Likewise.
77383         * tests/test-snprintf-posix.h (test_function): Likewise.
77384         * tests/test-sprintf-posix.h (test_function): Likewise.
77385         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
77386         * tests/test-printf-posix.h (test_function): Likewise.
77387         * tests/test-printf-posix.output: Update.
77388         Reported by John Darrington <john@darrington.wattle.id.au> via
77389         Ben Pfaff <blp@cs.stanford.edu>.
77391 2008-04-18  Simon Josefsson  <simon@josefsson.org>
77393         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
77394         Suggested by Bruno Haible <bruno@clisp.org>.
77396 2008-04-17  Bruno Haible  <bruno@clisp.org>
77398         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
77399         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
77400         implementation.
77401         Patch by Bruce Merry <bmerry@gmail.com>.
77403 2008-04-17  Simon Josefsson  <simon@josefsson.org>
77405         * doc/posix-functions/strftime.texi (strftime): Mention that %e
77406         doesn't work under Windows.
77408 2008-04-16  Bruno Haible  <bruno@clisp.org>
77410         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
77411         New macros.
77412         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
77413         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
77414         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
77415         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
77416         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
77417         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
77418         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
77419         macros.
77420         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
77421         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
77422         Northern Sotho, Uighur.
77424 2008-04-16  Bruno Haible  <bruno@clisp.org>
77426         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
77427         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
77428         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
77429         Reported by Daniel Bergström <daniel@octocode.com>.
77431 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
77432             Bruno Haible  <bruno@clisp.org>
77434         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
77435         function.
77436         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
77437         New functions, mostly extracted from gl_locale_name_default.
77438         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
77440 2008-04-16  Eric Blake  <ebb9@byu.net>
77442         Adjust strtod detection to catch glibc 2.7 bug.
77443         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
77444         Reported by John Gatewood Ham.
77446 2008-04-16  Bruno Haible  <bruno@clisp.org>
77448         Add tentative support for Linux libc5.
77449         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
77450         * lib/fpurge.c (fpurge): Likewise.
77451         * lib/freadable.c (freadable): Likewise.
77452         * lib/freadahead.c (freadahead): Likewise.
77453         * lib/freading.c (freading): Likewise.
77454         * lib/freadptr.c (freadptr): Likewise.
77455         * lib/freadseek.c (freadptrinc): Likewise.
77456         * lib/fseeko.c (rpl_fseeko): Likewise.
77457         * lib/fseterr.c (fseterr): Likewise.
77458         * lib/fwritable.c (fwritable): Likewise.
77459         * lib/fwriting.c (fwriting): Likewise.
77460         Reported by Alain Guibert <alguibert+bts@free.fr>.
77462 2008-04-15  Bruno Haible  <bruno@clisp.org>
77464         * modules/mathl (configure.ac): Define module indicator.
77466 2008-04-15  Bruno Haible  <bruno@clisp.org>
77468         * lib/logl.c (logl): Remove unused variables.
77470 2008-04-15  Bruno Haible  <bruno@clisp.org>
77472         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
77473         fails.
77475 2008-04-15  Bruno Haible  <bruno@clisp.org>
77477         * lib/trim.c (trim2): Fix argument of isspace() macro.
77479 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
77481         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
77482         to 0.
77483         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
77485 2008-04-14  Bruno Haible  <bruno@clisp.org>
77487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
77488         AC_LANG_PROGRAM argument.
77489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
77490         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
77491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77492         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
77493         * m4/math_h.m4 (gl_MATH_H): Likewise.
77494         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
77495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77496         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
77497         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
77498         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77499         * m4/regex.m4 (gl_REGEX): Likewise.
77500         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
77501         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
77502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
77504         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
77505         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
77507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
77509 2008-04-14  Jim Meyering  <meyering@redhat.com>
77511         test-strtod: fix typos: s/abs/fabs/
77512         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
77514 2008-04-13  Bruno Haible  <bruno@clisp.org>
77516         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
77517         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
77518         module is also used and while not building the reloc-wrapper.
77520 2008-04-13  Bruno Haible  <bruno@clisp.org>
77522         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
77524 2008-04-13  Bruno Haible  <bruno@clisp.org>
77526         Fix AIX compilation failure introduced on 2008-04-02.
77527         * tests/test-frexp.c (exp): Undefine before redefining.
77528         * tests/test-frexpl.c (exp): Likewise.
77530 2008-04-13  Bruno Haible  <bruno@clisp.org>
77532         Work around a HP-UX stdio bug.
77533         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
77534         * tests/test-ftello.c (main): Likewise.
77535         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
77536         * doc/posix-functions/ftello.texi: Likewise.
77538 2008-04-13  Bruno Haible  <bruno@clisp.org>
77540         Make test-signbit pass on HP-UX/hppa.
77541         * tests/test-signbit.c (minus_zerol): New variable.
77542         (test_signbitl): Use it.
77544 2008-04-13  Bruno Haible  <bruno@clisp.org>
77546         Make truncl work on OSF/1 4.0.
77547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
77548         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77549         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
77551         HAVE_DECL_TRUNCL.
77552         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
77553         HAVE_DECL_TRUNCL.
77554         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
77556 2008-04-13  Bruno Haible  <bruno@clisp.org>
77558         * lib/unictype.h: Remove trailing comma from enumeration definitions.
77560 2008-04-13  Bruno Haible  <bruno@clisp.org>
77562         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
77563         expression, so as to avoid HP-UX 11 cc compiler bug.
77565 2008-04-13  Bruno Haible  <bruno@clisp.org>
77567         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
77569 2008-04-13  Bruno Haible  <bruno@clisp.org>
77571         * lib/git-merge-changelog.c: Remove empty declaration outside of
77572         functions.
77574 2008-04-13  Bruno Haible  <bruno@clisp.org>
77576         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
77578 2008-04-13  Bruno Haible  <bruno@clisp.org>
77580         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
77581         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
77582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
77583         also if it exists but lacks definitions of the SHUT_* macros.
77584         * modules/sys_socket (Description): Update.
77585         Reported by Elbert Pol <e.pol@chello.nl>.
77587 2008-04-13  Bruno Haible  <bruno@clisp.org>
77589         * lib/localcharset.c (OS2): Don't redefine if already defined.
77590         Reported by Elbert Pol <e.pol@chello.nl>.
77592 2008-04-13  Bruno Haible  <bruno@clisp.org>
77594         * lib/binary-io.h [__EMX__]: Include <io.h>.
77595         Reported by Elbert Pol <e.pol@chello.nl>.
77597 2008-04-12  Bruno Haible  <bruno@clisp.org>
77599         * lib/fpucw.h: Enable the definitions also for x86_64.
77600         Needed for NetBSD/x86_64.
77601         Reported by Thomas Klausner <tk@giga.or.at>.
77603 2008-04-12  Bruno Haible  <bruno@clisp.org>
77605         * tests/test-strtod.c: Include isnand.h.
77606         (main): Use isnand instead of isnan.
77607         Reported by Jim Meyering.
77609 2008-04-12  Bruno Haible  <bruno@clisp.org>
77611         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
77612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77614 2008-04-12  Jim Meyering  <meyering@redhat.com>
77616         * m4/math_h.m4 (gl_MATH_H): Fix typos.
77618 2008-04-12  Bruno Haible  <bruno@clisp.org>
77620         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
77621         Reported by Elbert Pol <e.pol@chello.nl>.
77623 2008-04-12  Eric Blake  <ebb9@byu.net>
77625         Work around Solaris 10 math.h bug.
77626         * m4/math_h.m4 (gl_MATH_H): Check for bug.
77627         (gl_MATH_H_DEFAULTS): Set up default.
77628         * modules/math (Makefile.am): Replace new indicators.
77629         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
77630         * tests/test-math.c (main): Test this.
77631         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
77632         * doc/posix-headers/math.texi (math.h): Mention bug.
77633         Reported by Nelson H. F. Beebe and Jim Meyering.
77635 2008-04-11  Bruno Haible  <bruno@clisp.org>
77637         Adapt to future versions of Apple GCC.
77638         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
77639         Reported by Peter O'Gorman <peter@pogma.com>.
77641 2008-04-11  Bruno Haible  <bruno@clisp.org>
77643         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
77645 2008-04-11  Bruno Haible  <bruno@clisp.org>
77647         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
77649         * modules/getaddrinfo-tests (Makefile.am): Define
77650         test_getaddrinfo_LDADD.
77652 2008-04-11  Bruno Haible  <bruno@clisp.org>
77654         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
77655         (init): Fix syntax error.
77656         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
77657         is declared.
77659 2008-04-11  Bruno Haible  <bruno@clisp.org>
77661         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
77662         * modules/glob (Depends-on): Add stdbool.
77664 2008-04-11  Bruno Haible  <bruno@clisp.org>
77666         * lib/trim.c: Include <string.h>.
77668 2008-04-11  Eric Blake  <ebb9@byu.net>
77670         Avoid compile failure on OS/2.
77671         * lib/regex_internal.h (internal_function): Disable optimization
77672         on OS/2 (__EMX__), where it caused compiler error.
77673         Reported by Elbert Pol.
77675 2008-04-11  Bruno Haible  <bruno@clisp.org>
77677         Flush the standard error stream before aborting. Needed on mingw.
77678         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
77679         * tests/test-array_list.c (ASSERT): Likewise.
77680         * tests/test-array_oset.c (ASSERT): Likewise.
77681         * tests/test-avltree_list.c (ASSERT): Likewise.
77682         * tests/test-avltree_oset.c (ASSERT): Likewise.
77683         * tests/test-avltreehash_list.c (ASSERT): Likewise.
77684         * tests/test-binary-io.c (ASSERT): Likewise.
77685         * tests/test-byteswap.c (ASSERT): Likewise.
77686         * tests/test-c-ctype.c (ASSERT): Likewise.
77687         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
77688         * tests/test-c-strcasestr.c (ASSERT): Likewise.
77689         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
77690         * tests/test-c-strstr.c (ASSERT): Likewise.
77691         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
77692         * tests/test-canonicalize.c (ASSERT): Likewise.
77693         * tests/test-carray_list.c (ASSERT): Likewise.
77694         * tests/test-ceilf1.c (ASSERT): Likewise.
77695         * tests/test-ceilf2.c (ASSERT): Likewise.
77696         * tests/test-ceill.c (ASSERT): Likewise.
77697         * tests/test-count-one-bits.c (ASSERT): Likewise.
77698         * tests/test-fbufmode.c (ASSERT): Likewise.
77699         * tests/test-fflush2.c (ASSERT): Likewise.
77700         * tests/test-floorf1.c (ASSERT): Likewise.
77701         * tests/test-floorf2.c (ASSERT): Likewise.
77702         * tests/test-floorl.c (ASSERT): Likewise.
77703         * tests/test-fopen.c (ASSERT): Likewise.
77704         * tests/test-fpending.c (ASSERT): Likewise.
77705         * tests/test-fprintf-posix.c (ASSERT): Likewise.
77706         * tests/test-fpurge.c (ASSERT): Likewise.
77707         * tests/test-freadable.c (ASSERT): Likewise.
77708         * tests/test-freadahead.c (ASSERT): Likewise.
77709         * tests/test-freading.c (ASSERT): Likewise.
77710         * tests/test-freadptr.c (ASSERT): Likewise.
77711         * tests/test-freadptr2.c (ASSERT): Likewise.
77712         * tests/test-freadseek.c (ASSERT): Likewise.
77713         * tests/test-freopen.c (ASSERT): Likewise.
77714         * tests/test-frexp.c (ASSERT): Likewise.
77715         * tests/test-frexpl.c (ASSERT): Likewise.
77716         * tests/test-fseek.c (ASSERT): Likewise.
77717         * tests/test-fseeko.c (ASSERT): Likewise.
77718         * tests/test-fstrcmp.c (ASSERT): Likewise.
77719         * tests/test-ftell.c (ASSERT): Likewise.
77720         * tests/test-ftello.c (ASSERT): Likewise.
77721         * tests/test-func.c (ASSERT): Likewise.
77722         * tests/test-fwritable.c (ASSERT): Likewise.
77723         * tests/test-fwriting.c (ASSERT): Likewise.
77724         * tests/test-getdelim.c (ASSERT): Likewise.
77725         * tests/test-getline.c (ASSERT): Likewise.
77726         * tests/test-i-ring.c (ASSERT): Likewise.
77727         * tests/test-iconv-utf.c (ASSERT): Likewise.
77728         * tests/test-iconv.c (ASSERT): Likewise.
77729         * tests/test-isfinite.c (ASSERT): Likewise.
77730         * tests/test-isnand.c (ASSERT): Likewise.
77731         * tests/test-isnanf.c (ASSERT): Likewise.
77732         * tests/test-isnanl.h (ASSERT): Likewise.
77733         * tests/test-ldexpl.c (ASSERT): Likewise.
77734         * tests/test-linked_list.c (ASSERT): Likewise.
77735         * tests/test-linkedhash_list.c (ASSERT): Likewise.
77736         * tests/test-localename.c (ASSERT): Likewise.
77737         * tests/test-lseek.c (ASSERT): Likewise.
77738         * tests/test-mbscasecmp.c (ASSERT): Likewise.
77739         * tests/test-mbscasestr1.c (ASSERT): Likewise.
77740         * tests/test-mbscasestr2.c (ASSERT): Likewise.
77741         * tests/test-mbscasestr3.c (ASSERT): Likewise.
77742         * tests/test-mbscasestr4.c (ASSERT): Likewise.
77743         * tests/test-mbschr.c (ASSERT): Likewise.
77744         * tests/test-mbscspn.c (ASSERT): Likewise.
77745         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
77746         * tests/test-mbspbrk.c (ASSERT): Likewise.
77747         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
77748         * tests/test-mbsrchr.c (ASSERT): Likewise.
77749         * tests/test-mbsspn.c (ASSERT): Likewise.
77750         * tests/test-mbsstr1.c (ASSERT): Likewise.
77751         * tests/test-mbsstr2.c (ASSERT): Likewise.
77752         * tests/test-mbsstr3.c (ASSERT): Likewise.
77753         * tests/test-memchr2.c (ASSERT): Likewise.
77754         * tests/test-memmem.c (ASSERT): Likewise.
77755         * tests/test-open.c (ASSERT): Likewise.
77756         * tests/test-printf-frexp.c (ASSERT): Likewise.
77757         * tests/test-printf-frexpl.c (ASSERT): Likewise.
77758         * tests/test-printf-posix.c (ASSERT): Likewise.
77759         * tests/test-quotearg.c (ASSERT): Likewise.
77760         * tests/test-rbtree_list.c (ASSERT): Likewise.
77761         * tests/test-rbtree_oset.c (ASSERT): Likewise.
77762         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
77763         * tests/test-round1.c (ASSERT): Likewise.
77764         * tests/test-roundf1.c (ASSERT): Likewise.
77765         * tests/test-roundl.c (ASSERT): Likewise.
77766         * tests/test-signbit.c (ASSERT): Likewise.
77767         * tests/test-sleep.c (ASSERT): Likewise.
77768         * tests/test-snprintf-posix.c (ASSERT): Likewise.
77769         * tests/test-snprintf.c (ASSERT): Likewise.
77770         * tests/test-sprintf-posix.c (ASSERT): Likewise.
77771         * tests/test-stat-time.c (ASSERT): Likewise.
77772         * tests/test-strcasestr.c (ASSERT): Likewise.
77773         * tests/test-strerror.c (ASSERT): Likewise.
77774         * tests/test-striconv.c (ASSERT): Likewise.
77775         * tests/test-striconveh.c (ASSERT): Likewise.
77776         * tests/test-striconveha.c (ASSERT): Likewise.
77777         * tests/test-strsignal.c (ASSERT): Likewise.
77778         * tests/test-strstr.c (ASSERT): Likewise.
77779         * tests/test-strtod.c (ASSERT): Likewise.
77780         * tests/test-trunc1.c (ASSERT): Likewise.
77781         * tests/test-trunc2.c (ASSERT): Likewise.
77782         * tests/test-truncf1.c (ASSERT): Likewise.
77783         * tests/test-truncf2.c (ASSERT): Likewise.
77784         * tests/test-truncl.c (ASSERT): Likewise.
77785         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
77786         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
77787         * tests/test-vasnprintf.c (ASSERT): Likewise.
77788         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
77789         * tests/test-vasprintf.c (ASSERT): Likewise.
77790         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
77791         * tests/test-vprintf-posix.c (ASSERT): Likewise.
77792         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
77793         * tests/test-vsnprintf.c (ASSERT): Likewise.
77794         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
77795         * tests/test-wcwidth.c (ASSERT): Likewise.
77796         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
77797         * tests/test-xprintf-posix.c (ASSERT): Likewise.
77798         * tests/test-xvasprintf.c (ASSERT): Likewise.
77799         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
77800         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
77801         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
77802         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
77803         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
77804         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
77805         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
77806         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
77807         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
77808         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
77809         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
77810         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
77811         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
77812         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
77813         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
77814         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
77815         * tests/unictype/test-block_list.c (ASSERT): Likewise.
77816         * tests/unictype/test-block_of.c (ASSERT): Likewise.
77817         * tests/unictype/test-block_test.c (ASSERT): Likewise.
77818         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
77819         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
77820         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
77821         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
77822         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
77823         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
77824         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
77825         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
77826         * tests/unictype/test-combining.c (ASSERT): Likewise.
77827         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
77828         * tests/unictype/test-digit.c (ASSERT): Likewise.
77829         * tests/unictype/test-mirror.c (ASSERT): Likewise.
77830         * tests/unictype/test-numeric.c (ASSERT): Likewise.
77831         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
77832         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
77833         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
77834         * tests/unictype/test-scripts.c (ASSERT): Likewise.
77835         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
77836         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
77837         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
77838         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
77839         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
77840         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
77841         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
77842         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
77843         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
77844         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
77845         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
77846         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
77847         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
77848         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
77849         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77850         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77851         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77852         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77853         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77854         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77855         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77856         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77857         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77858         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77859         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77860         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77861         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77862         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77863         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77864         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77865         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77866         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77867         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77868         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77869         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77870         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77871         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77872         Reported by Eric Blake.
77874 2008-04-11  Bruno Haible  <bruno@clisp.org>
77876         * lib/wchar.in.h: Tweak comment.
77878 2008-04-11  Bruno Haible  <bruno@clisp.org>
77880         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77881         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77882         gl_COMMON.
77883         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77885 2008-04-11  Bruno Haible  <bruno@clisp.org>
77887         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77889 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77891         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77892         of attempting to use non-existing /dev/*random.  Based on patch
77893         from Adam Strzelecki <ono@java.pl> in
77894         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77896 2008-04-08  Bruno Haible  <bruno@clisp.org>
77898         Add tentative support for emx+gcc.
77899         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77900         * lib/fpurge.c (fpurge): Likewise.
77901         * lib/freadable.c (freadable): Likewise.
77902         * lib/freadahead.c (freadahead): Likewise.
77903         * lib/freading.c (freading): Likewise.
77904         * lib/freadptr.c (freadptr): Likewise.
77905         * lib/freadseek.c (freadptrinc): Likewise.
77906         * lib/fseeko.c (rpl_fseeko): Likewise.
77907         * lib/fseterr.c (fseterr): Likewise.
77908         * lib/fwritable.c (fwritable): Likewise.
77909         * lib/fwriting.c (fwriting): Likewise.
77910         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77912 2008-04-09  Eric Blake  <ebb9@byu.net>
77914         Avoid some autoconf warnings.
77915         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77916         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77917         * m4/afs.m4 (gl_AFS): Likewise.
77918         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77919         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77921         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77922         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77923         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77924         (AC_CHECK_DECLS_ONCE): Likewise.
77925         Rename file...
77926         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77927         gnulib-tool requires autoconf 2.59 or better.
77928         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77930 2008-04-08  Eric Blake  <ebb9@byu.net>
77932         Use 'git describe --match' if present (added in git 1.5.5).
77933         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77934         if possible.
77936 2008-04-08  Bruno Haible  <bruno@clisp.org>
77938         Add tentative support for OpenServer.
77939         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77940         _ptr, _cnt.
77941         * lib/fpurge.c (fpurge): Likewise.
77942         * lib/freadable.c (freadable): Likewise.
77943         * lib/freadahead.c (freadahead): Likewise.
77944         * lib/freading.c (freading): Likewise.
77945         * lib/freadptr.c (freadptr): Likewise.
77946         * lib/freadseek.c (freadptrinc): Likewise.
77947         * lib/fseeko.c (rpl_fseeko): Likewise.
77948         * lib/fseterr.c (fseterr): Likewise.
77949         * lib/fwritable.c (fwritable): Likewise.
77950         * lib/fwriting.c (fwriting): Likewise.
77951         Reported by Roger Cornelius <rac@tenzing.org> and
77952         Brian K. White <brian@aljex.com>.
77954 2008-04-06  Jim Meyering  <meyering@redhat.com>
77956         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77958 2008-04-06  Bruno Haible  <bruno@clisp.org>
77960         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77961         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77962         * tests/test-printf-posix.sh: Likewise.
77963         * tests/test-vfprintf-posix.sh: Likewise.
77964         * tests/test-vprintf-posix.sh: Likewise.
77965         * tests/test-xprintf-posix.sh: Likewise.
77967 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77969         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77970         hide error from 'ls', needed on OS/2.
77971         Report by Elbert Pol <elbert.pol@gmail.com>.
77973 2008-04-04  Eric Blake  <ebb9@byu.net>
77975         Make test-fseeko.c failures meaningful.
77976         * tests/test-fseeko.c: Print line number on failure.
77977         * tests/test-fseek.c: Likewise.
77978         Reported by Nelson H. F. Beebe.
77980         Improve strtod bug detection check.
77981         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77982         required for Solaris 10.
77983         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77985 2008-04-04  Bruno Haible  <bruno@clisp.org>
77987         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77988         by m4/setenv.m4.
77990 2008-04-03  Eric Blake  <ebb9@byu.net>
77992         Ensure sane .version contents.
77993         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77994         version string.
77995         * build-aux/git-version-gen: Improve documentation.
77997         Make GNU make output nicer.
77998         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77999         MAKECMDGOALS to enforce message for all command line targets.  Set
78000         srcdir for use in maint.mk.
78002         Another maintainer tweak.
78003         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
78004         a target that regenerates version.
78006 2008-04-03  Jim Meyering  <meyering@redhat.com>
78008         vc-list-files: don't cause coreutils "make po-check" failure
78009         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
78011 2008-04-03  Eric Blake  <ebb9@byu.net>
78013         Allow VPATH usage of vc-list-files.
78014         * build-aux/vc-list-files (scriptversion): Add timestamp.
78015         (options): Add --help, --version, -C.
78016         (CVS): Support installed cvsu.
78018 2008-04-02  Bruno Haible  <bruno@clisp.org>
78020         Avoid some "statement with no effect" warnings from gcc.
78021         * tests/test-wctype.c (main): Explicitly ignore unused values.
78022         Reported by Jim Meyering.
78024 2008-04-02  Jim Meyering  <meyering@redhat.com>
78026         Avoid some warnings from "gcc -Wshadow".
78027         * tests/test-frexp.c (exp): Define to a different identifier.
78028         * tests/test-frexpl.c (exp): Likewise.
78030 2008-04-03  Jim Meyering  <meyering@redhat.com>
78032         bootstrap: remove dangling *.[ch] symlinks from lib
78033         * build-aux/bootstrap [dangling symlink removal]: Move find's
78034         -depth option to precede all others, to avoid a warning.
78035         Remove *.[ch] files too, and from "$source_base" (usually lib/).
78037 2008-04-02  Bruno Haible  <bruno@clisp.org>
78039         Avoid some warnings from "gcc -Wshadow".
78040         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
78041         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
78042         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
78043         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
78044         Reported by Jim Meyering.
78046 2008-04-01  Bruno Haible  <bruno@clisp.org>
78048         Fix test to work on IRIX 6.5 with cc.
78049         * tests/test-math.c (numeric_equal): New function.
78050         (main): Use it.
78052 2008-04-01  Bruno Haible  <bruno@clisp.org>
78054         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
78056 2008-04-01  Bruno Haible  <bruno@clisp.org>
78058         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
78059         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78060         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
78061         (Depends-on): Remove math.
78063         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
78064         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78065         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
78066         (Depends-on): Remove math.
78068         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
78069         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78070         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
78071         (Depends-on): Remove math.
78072         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
78073         (Depends-on): Remove math.
78075         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
78076         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78077         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
78078         (Depends-on): Remove math.
78079         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
78080         (Depends-on): Remove math.
78082         * tests/test-round1.c: Include nan.h.
78083         (main): Use NaNd instead of NAN.
78084         * modules/round-tests (Files): Add tests/nan.h.
78086         * tests/test-trunc1.c: Include nan.h.
78087         (main): Use NaNd instead of NAN.
78088         * modules/trunc-tests (Files): Add tests/nan.h.
78090         * tests/test-roundf1.c: Include nan.h.
78091         (main): Use NaNf instead of NAN.
78092         * modules/roundf-tests (Files): Add tests/nan.h.
78094         * tests/test-truncf1.c: Include nan.h.
78095         (main): Use NaNf instead of NAN.
78096         * modules/truncf-tests (Files): Add tests/nan.h.
78098         * tests/test-ceilf1.c: Include nan.h.
78099         (main): Use NaNf instead of NAN.
78100         * modules/ceilf-tests (Files): Add tests/nan.h.
78102         * tests/test-floorf1.c: Include nan.h.
78103         (main): Use NaNf instead of NAN.
78104         * modules/floorf-tests (Files): Add tests/nan.h.
78106         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
78107         (main): Use NaNf instead of NAN.
78108         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
78110         * tests/test-isnand.c: Include nan.h instead of <math.h>.
78111         (main): Use NaNd instead of NAN.
78112         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
78114         * tests/test-frexp.c: Include nan.h.
78115         (main): Use NaNd instead of NAN.
78116         * modules/frexp-tests (Files): Add tests/nan.h.
78118         * lib/isnan.c: Don't include <math.h>.
78119         (FUNC): Don't use NAN macro.
78120         * modules/isnand-nolibm (Depends-on): Remove math.
78121         * modules/isnanf-nolibm (Depends-on): Remove math.
78122         * modules/isnanl (Depends-on): Remove math.
78123         * modules/isnanl-nolibm (Depends-on): Remove math.
78125         * tests/nan.h: New file.
78127 2008-04-01  Eric Blake  <ebb9@byu.net>
78129         Fix typos.
78130         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
78131         values to be the right type.
78133         For now, cater to gnulib strtod inaccuracies.
78134         * tests/test-strtod.c (main): Allow 1-ulp error on expected
78135         fractional results.  While not as nice from a QoI perspective, it
78136         is a quicker patch than correctly implementing decimal to binary
78137         rounding.
78139 2008-03-31  Eric Blake  <ebb9@byu.net>
78141         Guarantee a definition of NAN.
78142         * lib/math.in.h (NAN): Define if missing.
78143         * tests/test-math.c (main): Test it.
78144         * doc/posix-headers/math.texi (math.h): Document this.
78145         * lib/isnan.c (rpl_isnand): Use it.
78146         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
78147         * tests/test-floorf1.c (NaN): Likewise.
78148         * tests/test-frexp.c (NaN): Likewise.
78149         * tests/test-isnand.c (NaN): Likewise.
78150         * tests/test-isnanf.c (NaN): Likewise.
78151         * tests/test-round1.c (NaN): Likewise.
78152         * tests/test-roundf1.c (NaN): Likewise.
78153         * tests/test-snprintf-posix.h (NaN): Likewise.
78154         * tests/test-sprintf-posix.h (NaN): Likewise.
78155         * tests/test-trunc1.c (NaN): Likewise.
78156         * tests/test-truncf1.c (NaN): Likewise.
78157         * tests/test-vasnprintf-posix.c (NaN): Likewise.
78158         * tests/test-vasprintf-posix.c (NaN): Likewise.
78159         * modules/isnand-nolibm (Depends-on): Add math.
78160         * modules/isnanf-nolibm (Depends-on): Likewise.
78161         * modules/isnanl (Depends-on): Likewise.
78162         * modules/isnanl-nolibm (Depends-on): Likewise.
78163         * modules/snprintf-posix-tests (Depends-on): Likewise.
78164         * modules/sprintf-posix-tests (Depends-on): Likewise.
78165         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
78166         * modules/vsprintf-posix-tests (Depends-on): Likewise.
78167         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
78168         * modules/vasprintf-posix-tests (Depends-on): Likewise.
78170 2008-03-31  Bruno Haible  <bruno@clisp.org>
78172         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
78173         * doc/posix-functions/strtod.texi: Likewise.
78175 2008-03-31  Bruno Haible  <bruno@clisp.org>
78177         * tests/test-strtod.c (main): Don't use C99 syntax.
78179 2008-03-31  Bruno Haible  <bruno@clisp.org>
78181         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
78182         Reported by Eric Blake.
78184 2008-03-31  Jim Meyering  <meyering@redhat.com>
78186         Don't compare actual signbit return values.
78187         * tests/test-strtod.c (main): Rather, compare only their
78188         zero/non-zero nature.
78190 2008-03-31  Eric Blake  <ebb9@byu.net>
78192         More strtod documentation.
78193         * doc/posix-functions/strtod.texi (strtod): Interpret more test
78194         failures as distinct bugs.
78196 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
78198         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
78199         Problem reported by Erik Benada in
78200         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
78202 2008-03-30  Bruno Haible  <bruno@clisp.org>
78204         * tests/test-strtod.c: Add comments about which assertion fails on which
78205         platform.
78206         * doc/posix-functions/strtod.texi: Add info about many more platforms.
78208 2008-03-30  Eric Blake  <ebb9@byu.net>
78210         Test signbit behavior on zeros.
78211         * tests/test-signbit.c (test_signbitf): Add tests for zero.
78212         (test_signbitd, test_signbitl): Likewise.
78214         More strtod touchups.
78215         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
78216         sign of negative underflow, for now.  Use .5, not .1.
78217         * doc/posix-functions/strtod.texi (strtod): Mention these
78218         limitations.
78219         Reported by Jim Meyering.
78221 2008-03-30  Bruno Haible  <bruno@clisp.org>
78223         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
78224         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
78226 2008-03-30  Bruno Haible  <bruno@clisp.org>
78228         Avoid failure when attempting to return empty iconv results on some
78229         platforms.
78230         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
78231         allocation, don't report ENOMEM when the resulting string is empty.
78233 2008-03-30  Bruno Haible  <bruno@clisp.org>
78235         Fix buffer overrun.
78236         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
78237         Don't consider the width for tmp_length. Check count against tmp_length
78238         before doing the padding. Ensure enough allocation during padding.
78240 2008-03-30  Eric Blake  <ebb9@byu.net>
78242         strtod touchups.
78243         * lib/strtod.c (strtod): Avoid compiler warnings.
78244         Reported by Jim Meyering.
78246 2008-03-30  Bruno Haible  <bruno@clisp.org>
78248         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
78249         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
78250         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
78251         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
78252         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
78253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
78254         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
78255         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
78257         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
78258         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
78259         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
78260         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
78261         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
78262         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
78263         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
78264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
78266         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
78267         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
78268         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
78269         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
78270         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
78271         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
78272         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
78273         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
78275         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
78276         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
78278         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
78279         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
78281         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
78282         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
78284         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
78285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
78286         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
78288         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
78289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
78290         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
78292         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
78293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
78294         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
78296         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
78297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
78298         * modules/vasprintf (Depends-on): Add EOVERFLOW.
78300         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
78301         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
78302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
78303         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
78304         (Depends-on): Add EOVERFLOW.
78305         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
78306         (Depends-on): Add EOVERFLOW.
78307         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78308         (Depends-on): Add EOVERFLOW.
78309         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78310         (Depends-on): Add EOVERFLOW.
78311         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78312         (Depends-on): Add EOVERFLOW.
78313         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78314         (Depends-on): Add EOVERFLOW.
78315         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78316         (Depends-on): Add EOVERFLOW.
78317         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78318         (Depends-on): Add EOVERFLOW.
78320         * lib/sprintf.c (EOVERFLOW): Remove fallback.
78321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
78322         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
78324         * lib/snprintf.c (EOVERFLOW): Remove fallback.
78325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
78326         * modules/snprintf (Depends-on): Add EOVERFLOW.
78328         * lib/poll.c (EOVERFLOW): Remove fallback.
78329         * modules/poll (Depends-on): Add EOVERFLOW.
78331         * lib/getugroups.c (EOVERFLOW): Remove fallback.
78332         * modules/getugroups (Depends-on): Add EOVERFLOW.
78334         * lib/getdelim.c (EOVERFLOW): Remove fallback.
78335         * modules/getdelim (Depends-on): Add EOVERFLOW.
78337         * lib/ftell.c (EOVERFLOW): Remove fallback.
78338         * modules/ftell (Depends-on): Add EOVERFLOW.
78340         * lib/fprintf.c (EOVERFLOW): Remove fallback.
78341         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
78342         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
78344         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
78346         * modules/EOVERFLOW-tests: New file.
78347         * tests/test-EOVERFLOW.c: New file.
78349         * modules/EOVERFLOW: New file.
78350         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
78352 2008-03-30  Bruno Haible  <bruno@clisp.org>
78354         Fix bug introduced on 2007-06-10.
78355         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
78356         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
78358 2008-03-30  Bruno Haible  <bruno@clisp.org>
78360         Improve freadseek's efficiency after ungetc.
78361         * lib/freadseek.c: Include freadahead.h.
78362         (freadptrinc): New function, extracted from freadseek.
78363         (freadseek): Use it in a loop. Use freadahead to determine the number
78364         of loop iterations.
78365         * modules/freadseek (Depends-on): Add freadahead.
78366         (configure.ac): Require AC_C_INLINE.
78368 2008-03-30  Bruno Haible  <bruno@clisp.org>
78370         * lib/freadseek.c (freadseek): Don't ignore the return value of
78371         freadptr.
78373 2008-03-29  Eric Blake  <ebb9@byu.net>
78375         Add hex float support.
78376         * modules/strtod (Depends-on): Add c-ctype.
78377         (Link): Mention POW_LIB.
78378         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
78379         whitespace between 'e' and exponent.
78380         * tests/test-strtod.c (main): Enable hex float tests.
78381         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
78382         now provides.
78384         Document various strtod bugs, with some fixes.
78385         * doc/posix-functions/strtod.texi (strtod): Document bugs with
78386         "-0x", "inf", "nan", and hex constants.
78387         * doc/posix-functions/atof.texi (atof): Likewise.
78388         * modules/stdlib (Makefile.am): Support strtod.
78389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
78390         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
78391         detect additional strtod bugs.
78392         * lib/stdlib.in.h (rpl_strtod): Add declarations.
78393         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
78394         bool where appropriate.  Parse 'inf' and 'nan'.
78395         * tests/test-strtod.c: New file.
78396         * modules/strtod (Depends-on): Add stdbool, stdlib.
78397         (configure.ac): Turn on module indicator.
78398         * modules/strtod-tests: New module.
78400 2008-03-29  Eric Blake  <ebb9@byu.net>
78402         Fix ftell on mingw.
78403         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
78404         * modules/ftell-tests (Depends-on): Add binary-io.
78405         * modules/ftello-tests (Depends-on): Likewise.
78406         * tests/test-ftell.c (main): Enhance test to cover behavior after
78407         ungetc.  Enforce binary mode.
78408         * tests/test-ftello.c (main): Likewise.
78410         Pass test-freadseek on cygwin.
78411         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
78412         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
78413         ungetc buffer.
78415         * tests/test-fflush2.c (main): Fix typo.
78417 2008-03-29  Bruno Haible  <bruno@clisp.org>
78419         * tests/test-fflush2.c (main): Temporarily disable the contents of
78420         this test.
78421         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
78422         Reported by Eric Blake.
78424 2008-03-28  Simon Josefsson  <simon@josefsson.org>
78426         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
78427         (GC_SHA224_DIGEST_SIZE): Add.
78429         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
78430         (gc_hash_digest_length): Likewise.
78431         (gc_hash_buffer): Likewise.
78433 2008-03-25  Bruno Haible  <bruno@clisp.org>
78435         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
78436         detail which gettext release to use.
78437         Reported by Simon Josefsson.
78439 2008-03-26  Jim Meyering  <meyering@redhat.com>
78441         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
78442         * modules/gnumakefile (clean-GNUmakefile): Also, use
78443         test ... && ... || : syntax rather than if-then ... fi.
78445         gnumakefile: Don't double-quote-expand $(VPATH) value.
78446         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
78448 2008-03-24  Eric Blake  <ebb9@byu.net>
78450         Alter GNUmakefile to install into top directory.
78451         * modules/maintainer-makefile: Split, and add dependency...
78452         * modules/gnumakefile: to this new module.
78453         * build-aux/GNUmakefile: Move...
78454         * top/GNUmakefile: ...here.
78455         * build-aux/maint.mk: Move...
78456         * top/maint.mk: ...here.
78457         * MODULES.html.sh (Support for maintaining...): Document new
78458         module.
78460 2008-03-23  Bruno Haible  <bruno@clisp.org>
78462         * gnulib-tool: New options --vc-files, --no-vc-files.
78463         (func_usage): Document them.
78464         (vc_files): New variable.
78465         (func_import): Consider vc_files.
78466         (func_create_testdir): Set vc_files to empty.
78467         Suggested by Jim Meyering and Karl Berry.
78469 2008-03-23  Bruno Haible  <bruno@clisp.org>
78471         Fix regex compilation error on HP-UX 11.
78472         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
78473         * modules/regex (Files): Add m4/mbstate_t.m4.
78474         Reported by Ton Voon <ton.voon@altinity.com>.
78476 2008-03-23  Bruno Haible  <bruno@clisp.org>
78478         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
78480 2008-03-23  Eric Blake  <ebb9@byu.net>
78481             Bruno Haible  <bruno@clisp.org>
78483         Install files from top/ in the destination directory.
78484         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
78485         augmentation also for the files from top/.
78486         (func_import, func_create_testdir): Rewrite file names:
78487         top/filename -> filename.
78489 2008-03-23  Bruno Haible  <bruno@clisp.org>
78491         Tweak "gnulib --version" output.
78492         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
78494 2008-03-23  Bruno Haible  <bruno@clisp.org>
78496         Tweak "gnulib --version" output.
78497         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
78498         rather than contents of ChangeLog, when possible.
78500 2008-03-21  Eric Blake  <ebb9@byu.net>
78502         More --version tweaks.
78503         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
78504         date of last ChangeLog entry.
78506 2008-03-21  Jim Meyering  <meyering@redhat.com>
78508         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
78510 2008-03-20  Eric Blake  <ebb9@byu.net>
78512         VPATH fix.
78513         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
78515 2008-03-20  Simon Josefsson  <simon@josefsson.org>
78517         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
78518         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
78520 2008-03-20  Eric Blake  <ebb9@byu.net>
78522         Sync GNUmakefile with coreutils.
78523         * build-aux/GNUmakefile (have-Makefile): Rename...
78524         (_have-Makefile): ...to this, for namespace consideration.
78525         (GNUmakefile.cfg): Include, if present.
78526         (_autoreconf): Define a default.
78527         (_is-dist-target): New rule for rebuilds to pick up intra-release
78528         version.
78529         (maint-cfg.mk): Rename...
78530         (cfg.mk): ...to this.
78532 2008-03-18  Jim Meyering  <meyering@redhat.com>
78534         New script and module: mktempd
78535         * MODULES.html.sh (maint+release support): Add mktempd.
78536         * build-aux/mktempd: New file.
78537         * modules/mktempd: New file.
78539 2008-03-15  Jim Meyering  <meyering@redhat.com>
78541         Undo last change.
78542         * lib/sha1.c, lib/md5.c: 63 != ~63.
78543         Reported by Andreas Schwab.
78545         sha1.c, md5.c: Hoist a redundant expression.
78546         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
78547         "ctx->buflen" only once, before calling *_process_block.
78548         * lib/md5.c (md5_process_bytes): Likewise.
78550 2008-03-14  Eric Blake  <ebb9@byu.net>
78552         Bump copyright year in files generated by gnulib-tool.
78553         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
78554         gnulib-tool, rather than hard-coding it.
78556         Fix 'gnulib-tool --version' output to work with git.
78557         * gnulib-tool (func_gnulib_dir): New function, extracted from...
78558         (startup): ...here.
78559         (func_version): Use it to invoke git-version-gen, rather than
78560         relying on CVS keyword expansion.  Modernize wording.
78561         (cvsdatestamp, last_checkin_date, version): Kill unused
78562         variables.
78564 2008-03-12  Jim Meyering  <meyering@redhat.com>
78566         Recognize optional cast of the argument to free.
78567         * build-aux/useless-if-before-free: Update regexps.
78569         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
78571 2008-03-11  Bruno Haible  <bruno@clisp.org>
78573         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
78574         by a single package.
78575         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
78576         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
78577         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
78578         Reported by Sam Steingold <sds@gnu.org>.
78580 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78582         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
78583         repositories.
78585 2008-03-11  Bruno Haible  <bruno@clisp.org>
78587         Avoid conflicts between local macro definitions.
78588         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
78589         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
78591 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
78592             Bruno Haible  <bruno@clisp.org>
78594         Make va_copy work with some version of xlc on AIX 5.1.
78595         * lib/stdarg.in.h: New file.
78596         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
78597         On AIX, use a <stdarg.h> file substitute.
78598         * modules/stdarg (Files): Add lib/stdarg.in.h.
78599         (Depends-on): Add include_next.
78600         (Makefile.am): Build a stdarg.h substitute if requested.
78601         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
78603 2008-03-10  Bruno Haible  <bruno@clisp.org>
78605         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
78606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78607         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78609 2008-03-10  Bruno Haible  <bruno@clisp.org>
78611         * modules/stdlib (Depends-on): Add include_next, remove
78612         absolute-header.
78614 2008-03-09  Bruno Haible  <bruno@clisp.org>
78616         * lib/freadahead.h (freadahead): Document more precisely.
78617         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
78618         the sum of both buffer sizes.
78619         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
78620         * NEWS: Document the change.
78622 2008-03-09  Bruno Haible  <bruno@clisp.org>
78624         Extend freadptr to return also the buffer size.
78625         * lib/freadptr.h (freadptr): Add sizep argument.
78626         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
78627         (freadptr): Add sizep argument. Determine buffer size like freadahead
78628         does.
78629         * tests/test-freadptr.c: Don't include freadahead.h.
78630         (main): Adapt for new calling convention of freadptr.
78631         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
78632         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
78633         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
78634         tests/test-freadptr2.sh.
78635         (Depends): Remove freadahead.
78636         (TESTS): Add test-freadptr2.sh.
78637         (check_PROGRAMS): Add test-freadptr2.
78639 2008-03-09  Bruno Haible  <bruno@clisp.org>
78641         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
78642         Report and solution by Simon Josefsson.
78644 2008-03-06  Bruno Haible  <bruno@clisp.org>
78646         Make fflush after ungetc work on BSD platforms.
78647         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
78648         * tests/test-fflush2.c: New file.
78649         * tests/test-fflush2.sh: New file.
78650         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
78651         tests/test-fflush2.c.
78652         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
78653         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
78655 2008-03-06  Eric Blake  <ebb9@byu.net>
78657         Likewise for ftello.
78658         * modules/ftello (Dependencies): Add extensions.
78659         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
78661 2008-03-06  Bruno Haible  <bruno@clisp.org>
78663         * modules/fseeko (Dependencies): Add extensions.
78664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
78665         Needed on glibc systems.
78667 2008-03-06  Bruno Haible  <bruno@clisp.org>
78669         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
78670         email address.
78671         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78673 2008-03-06  Bruno Haible  <bruno@clisp.org>
78675         * users.txt: Add libgnupdf.
78677 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
78679         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
78680         (Header File Substitutes, Function Substitutes,
78681         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
78682         (Build robot for gnulib): Fix typo.
78684 2008-03-06  Bruno Haible  <bruno@clisp.org>
78686         * doc/gnulib-tool.texi (VCS Issues): Small updates.
78687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78689 2008-03-06  Bruno Haible  <bruno@clisp.org>
78691         * doc/func.texi: New file, extracted from doc/gnulib.texi.
78692         * doc/gnulib.texi: Include it.
78694 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78696         * modules/func (License): Change license to unlimited; there was
78697         no LGPL parts in the module anyway.
78699 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78701         * modules/__func__: Renamed to modules/func.
78702         * modules/__func__-tests: Renamed to modules/func-tests.
78703         * tests/test-__func__.c: Renamed to tests/test-func.c.
78704         * m4/__func__.m4: Renamed to m4/func.m4.
78705         * doc/gnulib.texi (__func__): Section renamed to func.
78706         Suggested by Eric Blake <ebb9@byu.net>.
78708 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78710         * doc/gnulib.texi (__func__): Use C99 terminology when talking
78711         about __func__.  Make example self-contained.  Suggested by Eric
78712         Blake <ebb9@byu.net>.
78714         * tests/test-__func__.c (main): Avoid extraneous () around __func.
78715         Suggested by Eric Blake <ebb9@byu.net>.
78717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78719         * modules/__func__: New file.
78720         * modules/__func__-tests: New file.
78721         * tests/test-__func__.c: New file.
78722         * m4/__func__.m4: New file.
78723         * doc/gnulib.texi (__func__): Document __func__ module.
78725 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78727         * modules/byteswap (License): Re-license as LGPLv2+.
78729 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78731         * doc/Makefile: Add pdf target.
78733 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78735         * modules/inline (License): Use 'unlimited', since there are only
78736         *.m4 files in this module.
78738 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78739             Bruno Haible  <bruno@clisp.org>
78741         Add support for HP C 7.1 on OpenVMS 8.3.
78742         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
78744 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78746         Update VMS specifics.
78747         * lib/getopt.c [VMS]: Remove include of unixlib.h.
78749 2008-03-02  Jim Meyering  <meyering@redhat.com>
78751         Remove the last dependency on the "free" module.
78752         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
78753         Reported by Bob Proulx.
78755         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
78757         Remove useless "if" tests before free.  Deprecate "free" module.
78758         * doc/posix-functions/free.texi: Mention that this
78759         module is no longer useful.
78760         * modules/free (Notice): Say this module is obsolete.
78761         * modules/readutmp (Depends-on): Remove free.
78762         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
78763         * lib/putenv.c (putenv): Likewise.
78764         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
78765         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
78766         * tests/test-c-strcasestr.c (main): Likewise.
78767         * tests/test-c-strstr.c (main): Likewise.
78768         * tests/test-mbscasestr1.c (main): Likewise.
78769         * tests/test-mbscasestr2.c (main): Likewise.
78770         * tests/test-mbsstr1.c (main): Likewise.
78771         * tests/test-mbsstr2.c (main): Likewise.
78772         * tests/test-memmem.c (main): Likewise.
78773         * tests/test-strcasestr.c (main): Likewise.
78774         * tests/test-striconv.c (main): Likewise.
78775         * tests/test-striconveh.c (main): Likewise.
78776         * tests/test-striconveha.c (main): Likewise.
78777         * tests/test-strstr.c (main): Likewise.
78779         * build-aux/git-version-gen: Adjust a comment and the Usage string.
78781         bootstrap: sync from coreutils again
78782         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
78784 2008-03-01  Jim Meyering  <meyering@redhat.com>
78786         bootstrap: sync from coreutils
78787         * build-aux/bootstrap (update_po_files): Copy a .po file into place
78788         also when the target doesn't exist.
78790 2008-03-01  Eric Blake  <ebb9@byu.net>
78792         Fix bugs in last patch.
78793         * lib/memchr2.c (memchr2): Fix typo.
78794         * tests/test-memchr2.c: Test previous bug, and don't use GNU
78795         extension.
78796         Reported by Bruce Korb.
78798         New module 'memchr2'.
78799         * modules/memchr2: New file.
78800         * modules/memchr2-tests: Likewise.
78801         * lib/memchr2.h: Likewise.
78802         * lib/memchr2.c: Likewise, based on memchr.c.
78803         * tests/test-memchr2.c: New test.
78804         * MODULES.html.sh (String handling): Add memchr2.
78806 2008-02-29  Bruno Haible  <bruno@clisp.org>
78808         * modules/freadseek-tests: New file.
78809         * tests/test-freadseek.sh: New file.
78810         * tests/test-freadseek.c: New file.
78812         New module 'freadseek'.
78813         * modules/freadseek: New file.
78814         * lib/freadseek.h: New file.
78815         * lib/freadseek.c: New file.
78816         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
78818 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
78820         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
78821         wydawca.
78823         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
78824         program_invocation_name and program_invocation_short_name are
78825         present.
78827 2008-02-28  Bruno Haible  <bruno@clisp.org>
78829         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
78830         * tests/test-freadptr.sh: Also test non-seekable stdin.
78832 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
78834         * build-aux/bootstrap (source_base, m4_base)
78835         (doc_base, tests_base): New variables.
78836         (gnulib_tool_options): Do not hardcode base directories, use
78837         the above variables instead.
78839 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
78841         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
78843 2008-02-28  Bruno Haible  <bruno@clisp.org>
78845         * modules/freadptr-tests: New file.
78846         * tests/test-freadptr.sh: New file.
78847         * tests/test-freadptr.c: New file.
78849         New module 'freadptr'.
78850         * modules/freadptr: New file.
78851         * lib/freadptr.h: New file.
78852         * lib/freadptr.c: New file.
78853         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78855 2008-02-26  Karl Berry  <karl@freefriends.org>
78857         Sync from Libtool:
78858         * libltdl/argz.c (argz_add, argz_count): New functions.
78859         * libltdl/argz.in.h: Declare them.
78860         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78862 2008-02-22  Bruno Haible  <bruno@clisp.org>
78864         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78865         is a pointer type.  Needed for HP-UX 10.
78866         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78867         * doc/posix-functions/gmtime_r.texi: Likewise.
78868         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78870 2008-02-24  Bruno Haible  <bruno@clisp.org>
78872         * modules/environ-tests: New file.
78873         * tests/test-environ.c: New file.
78875         New module 'environ'.
78876         * modules/environ: New file.
78877         * lib/unistd.in.h (environ): New declaration.
78878         * m4/environ.m4: New file.
78879         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78880         after use.
78881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78882         HAVE_DECL_ENVIRON.
78883         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78884         HAVE_DECL_ENVIRON.
78885         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78886         wrong claim that 'environ' is missing on some systems.
78887         * modules/execute (Depends-on): Add environ.
78888         * lib/execute.c (environ): Remove fallback declaration.
78889         * modules/pipe (Depends-on): Add environ.
78890         * lib/pipe.c (environ): Remove fallback declaration.
78891         * modules/setenv (Depends-on): Add environ.
78892         * lib/setenv.c (environ): Remove fallback declaration.
78893         * modules/unsetenv (Depends-on): Add environ.
78894         * lib/unsetenv.c (environ): Remove fallback declaration.
78895         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78896         m4/environ.m4.
78897         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78898         (gl_PREREQ_UNSETENV): Likewise.
78900 2008-02-24  Bruno Haible  <bruno@clisp.org>
78902         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78904 2008-02-20  Bob Proulx  <bob@proulx.com>
78906         Enable use of older two part flavor 'git describe'.
78907         * build-aux/git-version-gen: If using the older two part flavor of
78908         git version then recreate the third part now present in the
78909         newer three part flavor of git describe.
78911 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78913         * lib/fts.c (fts_build): Typo correction to comment.
78915 2008-02-17  Bruno Haible  <bruno@clisp.org>
78917         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78918         generating no-op conflicts.
78920 2008-02-17  Bruno Haible  <bruno@clisp.org>
78922         Speed up by 10%.
78923         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78924         result_entries, rather than an index-based loop.
78926 2008-02-17  Bruno Haible  <bruno@clisp.org>
78928         Speed up by 25%.
78929         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78930         'hashcode_cached'.
78931         (entry_create): New function.
78932         (entry_hashcode): Use the cached hashcode if possible.
78933         (read_changelog_file, try_split_merged_entry): Use entry_create.
78935 2008-02-17  Bruno Haible  <bruno@clisp.org>
78937         Speed up from O(n^2) to O(n) for long ChangeLog files.
78938         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78939         (read_changelog_file): Change implementation of entries_reversed list
78940         to rbtreehash.
78941         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78943 2008-02-17  Bruno Haible  <bruno@clisp.org>
78945         New option --split-merged-entry.
78946         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78947         (find_paragraph_end, try_split_merged_entry): New functions.
78948         (long_options): Add option --split-merged-entry.
78949         (usage): Document option --split-merged-entry.
78950         (main): Implement option --split-merged-entry.
78951         Reported by Eric Blake.
78953 2008-02-17  Bruno Haible  <bruno@clisp.org>
78955         * lib/git-merge-changelog.c: Include c-strstr.h.
78956         (main): Support the "git pull --rebase" situation.
78957         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78958         Reported by Eric Blake.
78960 2008-02-16  Eric Blake  <ebb9@byu.net>
78962         Avoid doubling \ in common case of "c-maybe" quoting style.
78963         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78964         eliding outer quotes.
78965         * lib/quotearg.h: Document this.
78966         * tests/test-quotearg.c (result_strings, inputs, results_g)
78967         (flag_results, locale_results): Test it by adding a new string to
78968         each test group.
78969         (compare_strings): Test new string.
78971 2008-02-13  Eric Blake  <ebb9@byu.net>
78973         Avoid trigraph quoting in default output.
78974         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78975         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78976         unless explicitly requested.
78977         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78979 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78981         Don't rely on signed integer overflowing to negative value.
78982         * lib/getugroups.c (getugroups): Include <limits.h>.
78983         Instead, compare against INT_MAX, and increment only if the test passes.
78985 2008-02-13  Jim Meyering  <meyering@redhat.com>
78986         and Eric Blake  <ebb9@byu.net>
78988         Avoid shadowing warning and compile errors on Linux.
78989         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78990         forwarding macros on Linux.
78991         (dcgettext): Define a stub, for Linux.
78992         (results_g, main): Avoid warnings.
78994 2008-02-12  Eric Blake  <ebb9@byu.net>
78996         Silence warning in last patch.
78997         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78999         Quotearg part 4: add tests, fix c-maybe colon quoting.
79000         * lib/quotearg.h: Improve documentation.
79001         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
79002         escapes when adding outer quotes.  When quoting trigraphs, use
79003         valid C notation.  When quoting NUL, omit extra characters if next
79004         character is not digit.  Alter prototype.
79005         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
79006         callers.
79007         * modules/quotearg-tests: New module.
79008         * tests/test-quotearg.c: New test.
79010 2008-02-07  Eric Blake  <ebb9@byu.net>
79012         Quotearg part 3: add flag to control outer quote elision.
79013         * lib/quotearg.h (c_maybe_quoting_style): New style.
79014         (enum quoting_flags): Better documentation of flags.
79015         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
79016         c-maybe style.
79017         (quotearg_buffer_restyled): Handle new flag to elide outer
79018         quotes.
79020         Quotearg part 2: add flag that can control NUL elision.
79021         * lib/quotearg.h (set_quoting_flags): New prototype.
79022         * lib/quotearg.c (struct quoting_options): Add flag field.
79023         (set_quoting_flags): New function.
79024         (quotearg_buffer_restyled): Add flags parameter.
79025         (quotearg_alloc_mem): Set the flag if length cannot be returned.
79026         (quotearg_n_options): Set the flag, since length cannot be
79027         returned.
79028         (quoting_options_from_style): Default flags correctly.
79030         Quotearg part 1: more wrappers, restore quotearg_char state.
79031         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
79032         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
79033         (quotearg_colon_mem): New wrappers.
79034         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
79035         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
79036         functions.
79037         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
79038         (quotearg_colon_mem): New functions.
79040 2008-02-11  Bruno Haible  <bruno@clisp.org>
79042         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
79043         library in the current directory: it does not work with parallel make.
79044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79046 2008-02-11  Bruno Haible  <bruno@clisp.org>
79048         * .gitattributes: New file.
79050 2008-02-11  Jim Meyering  <meyering@redhat.com>
79052         useless-if-before-free: Fix reversed exit values.
79053         * build-aux/useless-if-before-free: Use correct values
79054         for EXIT_MATCH and EXIT_NO_MATCH.
79056         * build-aux/useless-if-before-free: Close stdout carefully.
79058 2008-02-10  Bruno Haible  <bruno@clisp.org>
79060         New module 'git-merge-changelog'.
79061         * modules/git-merge-changelog: New file.
79062         * lib/git-merge-changelog.c: New file.
79064 2008-02-10  Jim Meyering  <meyering@redhat.com>
79066         useless-if-before-free: New option: --list (-l).
79068         useless-if-before-free: Don't exit immediately upon open failure.
79069         * build-aux/useless-if-before-free: Exit 2 for errors.
79070         Upon failure to open a file, don't exit immediately.
79071         Rather, just warn and continue with any remaining files.
79073 2008-02-10  Bruno Haible  <bruno@clisp.org>
79075         New abstract list operation 'node_set_value'.
79076         * lib/gl_list.h (gl_list_node_set_value): New function.
79077         (struct gl_list_implementation): New field node_set_value.
79078         * lib/gl_list.c (gl_list_node_set_value): New function.
79079         * lib/gl_array_list.c (gl_array_node_set_value): New function.
79080         (gl_array_list_implementation): Update.
79081         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
79082         (gl_carray_list_implementation): Update.
79083         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
79084         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
79085         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
79086         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
79087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
79088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
79089         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
79090         Update.
79091         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
79092         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
79093         (gl_sublist_list_implementation): Update.
79095 2008-02-10  Bruno Haible  <bruno@clisp.org>
79097         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
79098         Needed when ELEMENT is #defined to 'some_type *'.
79100 2008-02-10  Jim Meyering  <meyering@redhat.com>
79102         New script and module: useless-if-before-free
79103         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
79104         * build-aux/useless-if-before-free: New file.
79105         * modules/useless-if-before-free: New file.
79107         * build-aux/gitlog-to-changelog: Use committer date, not author date.
79109         xstrtol_error: Fix typo.
79110         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
79111         s/exit_failure/exit_status/.
79113 2008-02-09  Jim Meyering  <meyering@redhat.com>
79115         New script and module: gitlog-to-changelog
79116         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
79117         * modules/gitlog-to-changelog: New file.
79118         * build-aux/gitlog-to-changelog: New file.
79120 2008-02-08  Jim Meyering  <meyering@redhat.com>
79122         Avoid two "parameter unused" warnings.
79123         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
79124         Mark "st" as used.
79126         Use "git COMMAND", not "git-COMMAND".
79127         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
79128         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
79129         * build-aux/git-version-gen: Use "git status", not "git-status".
79131 2008-02-07  Bruno Haible  <bruno@clisp.org>
79133         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
79134         Avoids a crash on Windows Vista.
79135         Reported by Adam Strzelecki <ono@java.pl> via
79136         Simon Josefsson <simon@josefsson.org>.
79138 2008-02-06  Bruno Haible  <bruno@clisp.org>
79140         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
79141         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
79142         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
79143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
79144         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79146         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
79147         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
79148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79155         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
79156         left-adjust flag.
79157         * tests/test-snprintf-posix.h (test_function): Likewise.
79158         * tests/test-sprintf-posix.h (test_function): Likewise.
79159         * tests/test-vasprintf-posix.c (test_function): Likewise.
79160         * doc/posix-functions/fprintf.texi: Update.
79161         * doc/posix-functions/printf.texi: Update.
79162         * doc/posix-functions/snprintf.texi: Update.
79163         * doc/posix-functions/sprintf.texi: Update.
79164         * doc/posix-functions/vfprintf.texi: Update.
79165         * doc/posix-functions/vprintf.texi: Update.
79166         * doc/posix-functions/vsnprintf.texi: Update.
79167         * doc/posix-functions/vsprintf.texi: Update.
79168         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79170 2008-02-06  Bruno Haible  <bruno@clisp.org>
79172         Fix bug introduced on 2008-01-26.
79173         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
79175 2008-02-06  Bruno Haible  <bruno@clisp.org>
79177         Fix bug introduced on 2007-06-10.
79178         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
79179         !NEED_PRINTF_FLAG_ZERO.
79181 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
79183         getloadavg: use libperfstat on AIX5
79184         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
79186 2008-02-03  Bruno Haible  <bruno@clisp.org>
79188         * lib/diffseq.h: Add comments about required #includes.
79189         Reported by Michael Biggs <gnulib@doubleplum.net>.
79191 2008-02-01  Bruno Haible  <bruno@clisp.org>
79193         * users.txt: Add gnuit.
79195 2008-01-31  Bruno Haible  <bruno@clisp.org>
79197         * lib/md4.c (set_uint32): Mark as inline.
79198         * lib/md5.c (set_uint32): Likewise.
79199         * lib/sha1.c (set_uint32): Likewise.
79200         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
79201         * m4/md5.m4 (gl_MD5): Likewise.
79202         * m4/sha1.m4 (gl_SHA1): Likewise.
79204 2008-01-31  Jim Meyering  <meyering@redhat.com>
79206         Use "sizeof VAR", rather than a literal "4".
79207         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
79208         * lib/md4.c (md4_read_ctx): Likewise.
79209         * lib/sha1.c (sha1_read_ctx): Likewise.
79211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79213         * tests/test-sha1.c: New file, based on test-md5.c.
79215         * modules/crypto/sha1-tests: New file.
79217 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79219         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
79221 2008-01-31  Jim Meyering  <meyering@redhat.com>
79223         Prefer "sizeof v" over the equivalent "4".
79224         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
79225         * lib/md5.c (set_uint32): Likewise.
79226         * lib/sha1.c (set_uint32): Likewise.
79228 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79230         * lib/sha1.c (set_uint32): Mark function as static.
79232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79234         md2: clarify comments to say that alignment is not required.
79235         * lib/md2.h: Remove warning about alignment in comment.
79236         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
79237         never been required.
79239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79241         md4: adapt alignment constraint fix from sha1.
79242         * lib/md4.c (set_uint32): New function, from sha1.c
79243         (md4_read_ctx): Use it.
79244         (md4_finish_ctx): Doc fix.
79245         * lib/md4.h: Doc fix.
79247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79249         md5: adapt alignment constraint fix from sha1.
79250         * lib/md5.c (set_uint32): New function, from sha1.c
79251         (md5_read_ctx): Use it.
79252         (md5_finish_ctx): Doc fix.
79253         * lib/md5.h: Doc fix.
79255 2008-01-30  Peter Palfrader  <weasel@debian.org>
79257         sha1: remove the result buffer alignment constraint
79258         * lib/sha1.c (set_uint32): New function.
79259         (sha1_read_ctx): Rewrite to remove the result buffer alignment
79260         constraint.
79261         (sha1_finish_ctx): Remove comment warning about alignment constraint.
79262         * lib/sha1.h: Likewise.
79264 2008-01-30  Andreas Schwab  <schwab@suse.de>
79265             Bruno Haible  <bruno@clisp.org>
79267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
79268         correct definition of LDBL_MIN_EXP.
79270 2008-01-30  Karl Berry  <karl@gnu.org>
79272         * config/srclist-update: try to preserve x bit on updates.
79273         * config/srclistvars.sh: update for karl.
79275 2008-01-29  Jim Meyering  <meyering@redhat.com>
79277         vasnprintf.c: Avoid warning about unused label
79278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
79279         "overflow" label definition and associated code with the
79280         same cpp condition that guards the sole use of that label.
79282 2008-01-26  Bruno Haible  <bruno@clisp.org>
79284         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
79285         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
79286         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
79287         * lib/isnanl-nolibm.h (isnanl): Likewise.
79288         Reported by Paul Eggert <eggert@cs.ucla.edu>.
79290 2008-01-26  Bruno Haible  <bruno@clisp.org>
79292         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
79293         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
79295 2008-01-26  Bruno Haible  <bruno@clisp.org>
79297         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
79298         GCC >= 4.0 built-in.
79299         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
79301 2008-01-26  Bruno Haible  <bruno@clisp.org>
79303         Rename isnan, applicable to 'double' only, to isnand.
79304         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
79305         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
79306         (configure.ac): Update.
79307         (Include): Replace "isnan.h" with "isnand.h".
79308         * m4/isnand.m4: Renamed from m4/isnan.m4.
79309         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
79310         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
79311         instead of isnan.c.
79312         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
79313         instead of HAVE_ISNAN_IN_LIBC.
79314         (isnand): Renamed from isnan.
79315         * lib/isnand.c: New file.
79316         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
79317         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
79318         (Makefile.am): Update.
79319         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
79320         Include isnand.h instead of isnan.h.
79321         (main): Test isnand instead of isnan.
79322         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
79323         isnan-nolibm.
79324         * modules/frexp (Depends-on): Likewise.
79325         * modules/frexp-tests (Depends-on): Likewise.
79326         * modules/frexp-nolibm (Depends-on): Likewise.
79327         * modules/frexp-nolibm-tests (Depends-on): Likewise.
79328         * modules/isfinite (Depends-on): Likewise.
79329         * modules/round-tests (Depends-on): Likewise.
79330         * modules/signbit (Depends-on): Likewise.
79331         * modules/signbit-tests (Depends-on): Likewise.
79332         * modules/snprintf-posix (Depends-on): Likewise.
79333         * modules/sprintf-posix (Depends-on): Likewise.
79334         * modules/trunc-tests (Depends-on): Likewise.
79335         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79336         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79337         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79338         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79339         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79340         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79341         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79342         * modules/vasnprintf-posix (Depends-on): Likewise.
79343         * modules/vasprintf-posix (Depends-on): Likewise.
79344         * modules/vfprintf-posix (Depends-on): Likewise.
79345         * modules/vsnprintf-posix (Depends-on): Likewise.
79346         * modules/vsprintf-posix (Depends-on): Likewise.
79347         * lib/frexp.c: Include isnand.h instead of isnan.h.
79348         (ISNAN): Set to isnand instead of isnan.
79349         * lib/isfinite.c: Include isnand.h instead of isnan.h.
79350         (gl_isfinited): Use isnand instead of isnan.
79351         * lib/signbitd.c: Include isnand.h instead of isnan.h.
79352         (gl_signbitd): Use isnand instead of isnan.
79353         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
79354         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
79355         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
79356         (main): Use isnand instead of isnan.
79357         * tests/test-round1.c: Include isnand.h.
79358         (main): Use isnand instead of isnan.
79359         * tests/test-round2.c: Include isnand.h instead of isnan.h.
79360         (ISNAN): Set to isnand instead of isnan.
79361         * tests/test-trunc1.c: Include isnand.h.
79362         (main): Use isnand instead of isnan.
79363         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
79364         (equal): Use isnand instead of isnan.
79365         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
79366         isnand-nolibm.
79367         * NEWS: Mention the change.
79369 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79370             Bruno Haible  <bruno@clisp.org>
79372         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
79373         the GCC builtins for signbits are present and set
79374         REPLACE_SIGNBIT_USING_GCC if so.
79375         * lib/math.in.h (signbit): Define using GCC builtins if
79376         REPLACE_SIGNBIT_USING_GCC is set.
79377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
79378         REPLACE_SIGNBIT_USING_GCC.
79379         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
79381 2008-01-25  Jim Meyering  <meyering@redhat.com>
79383         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
79384         * lib/poll.c: Include <config.h>, not "config.h".
79385         * tests/test-getaddrinfo.c: Likewise.
79387 2008-01-25  Simon Josefsson  <simon@josefsson.org>
79389         * modules/sockets-tests: New file.
79391 2008-01-24  Simon Josefsson  <simon@josefsson.org>
79393         * modules/sockets: New module, can be used to call WSA_Startup and
79394         WSA_Cleanup when needed.
79396         * lib/sockets.h, lib/sockets.c: New files.
79398         * m4/sockets.m4: New file.
79400         * tests/test-sockets.c: New file.
79402 2008-01-19  Bruno Haible  <bruno@clisp.org>
79404         * doc/posix-headers: Renamed from doc/headers.
79405         * doc/posix-functions: Renamed from doc/functions.
79406         * doc/gnulib.texi: Update.
79408 2008-01-19  Bruno Haible  <bruno@clisp.org>
79410         * doc/glibc-functions/strcasestr.texi: Include contents of
79411         doc/functions/strcasestr.texi, fixing the list of platforms.
79412         * doc/functions/strcasestr.texi: Remove file.
79414 2008-01-19  Bruno Haible  <bruno@clisp.org>
79416         * doc/glibc-functions/memmem.texi: Include contents of
79417         doc/functions/memmem.texi.
79418         * doc/functions/memmem.texi: Remove file.
79420 2008-01-18  Bruno Haible  <bruno@clisp.org>
79422         * doc/glibc-functions/*.texi: New files.
79423         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
79424         to use the new files.
79426 2008-01-17  Bruno Haible  <bruno@clisp.org>
79428         * tests/test-gethostname.c (main): Fix printf statement.
79430 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79432         * modules/gethostname-tests: New file.
79434         * tests/test-gethostname.c: New file.
79436 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79438         * lib/gethostname.c: Include string.h unconditionally, strncpy is
79439         used by the UNAME case.  Reported by Bruno Haible
79440         <bruno@clisp.org>.
79442 2008-01-17  Eric Blake  <ebb9@byu.net>
79444         Convert c-strcasestr to be more efficient.
79445         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
79446         (Depends-on): Add c-strcase, remove malloca, strnlen.
79447         * tests/test-c-strcasestr.c (main): Enhance test.
79448         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
79450 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
79452         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
79453         Use it in creating po/Makevars.
79455 2008-01-15  Simon Josefsson  <simon@josefsson.org>
79457         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
79458         Applications that requires it should initialize libgcrypt
79459         manually.
79461 2008-01-16  Simon Josefsson  <simon@josefsson.org>
79463         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
79465 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
79467         Fix problem with getdate on mingw32 reported by Simon Josefsson
79468         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
79469         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
79470         tzname", when deciding whether to declare tzname.
79471         * lib/strftime.c (tzname): Likewise.
79473 2008-01-15  Bruno Haible  <bruno@clisp.org>
79475         Work around a MacOS X 10.5 bug in frexpl().
79476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
79477         * doc/functions/frexpl.texi: Document the bug.
79478         Reported by Elias Pipping <pipping@gentoo.org>.
79480 2008-01-14  Eric Blake  <ebb9@byu.net>
79482         Touch up previous patch.
79483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
79484         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
79486         Convert strcasestr module to use Two-Way algorithm.
79487         * modules/strcasestr-simple: New module, based on the old
79488         strcasestr, but with Two-Way rather than KMP.
79489         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
79490         * lib/string.in.h (rpl_strcasestr): Declare.
79491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
79492         performance.
79493         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
79494         * modules/string (Makefile.am): Support strcasestr.
79495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79496         * modules/strcasestr-tests (Depends-on): Check for alarm.
79497         * tests/test-strcasestr.c: Augment test.
79498         * lib/str-two-way.h: Clean up stray macro.
79499         * NEWS: Document new module.
79500         * MODULES.html.sh (string handling): Likewise.
79501         * doc/functions/strcasestr.texi: New file.
79502         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
79503         here, since it is not a POSIX function.
79505 2008-01-14  Colin Watson  <cjwatson@debian.org>
79506             Bruno Haible  <bruno@clisp.org>
79508         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
79509         works fine; if not, set REPLACE_STRSIGNAL.
79510         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
79511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79512         REPLACE_STRSIGNAL.
79513         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
79514         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
79515         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
79517 2008-01-14  Bruno Haible  <bruno@clisp.org>
79519         * modules/strsignal (Include): Change to <string.h>.
79521 2008-01-14  Colin Watson  <cjwatson@debian.org>
79523         * modules/argp (Notice): Add a notice recommending to change
79524         XGETTEXT_OPTIONS.
79525         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
79527 2008-01-13  Colin Watson  <cjwatson@debian.org>
79529         * modules/strsignal-tests: New file.
79530         * tests/test-strsignal.c: New file.
79532         * lib/strsignal.c: New file, from glibc with modifications.
79533         * lib/siglist.h: New file, from glibc with modifications.
79534         * lib/string.in.h (strsignal): New declaration.
79535         * m4/strsignal.m4: New file.
79536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79537         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
79538         * modules/strsignal: New file.
79539         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
79540         HAVE_DECL_STRSIGNAL.
79542 2008-01-13  Bruno Haible  <bruno@clisp.org>
79544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
79545         locale encoding is not ASCII. Needed for OpenBSD 4.0.
79546         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79549 2008-01-13  Bruno Haible  <bruno@clisp.org>
79551         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
79552         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
79553         * lib/argp.h (__attribute__): Likewise.
79554         * lib/c-stack.c (__attribute__): Likewise.
79555         * lib/error.h (__attribute__): Likewise.
79556         * lib/fts.c (__attribute__): Likewise.
79557         * lib/openat.h (__attribute__): Likewise.
79558         * lib/stdio.in.h (__attribute__): Likewise.
79559         * lib/string.in.h (__attribute__): Likewise.
79560         * lib/utimens.c (__attribute__): Likewise.
79561         * lib/vasnprintf.h (__attribute__): Likewise.
79562         * lib/xalloc.h (__attribute__): Likewise.
79563         * lib/xprintf.h (__attribute__): Likewise.
79564         * lib/xstrtol.h (__attribute__): Likewise.
79565         * lib/xvasprintf.h (__attribute__): Likewise.
79567 2008-01-12  Bruno Haible  <bruno@clisp.org>
79569         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
79570         * doc/glibc-headers/a.out.texi: New file.
79571         * doc/glibc-headers/aliases.texi: New file.
79572         * doc/glibc-headers/alloca.texi: New file.
79573         * doc/glibc-headers/ar.texi: New file.
79574         * doc/glibc-headers/argp.texi: New file.
79575         * doc/glibc-headers/argz.texi: New file.
79576         * doc/glibc-headers/byteswap.texi: New file.
79577         * doc/glibc-headers/crypt.texi: New file.
79578         * doc/glibc-headers/endian.texi: New file.
79579         * doc/glibc-headers/envz.texi: New file.
79580         * doc/glibc-headers/err.texi: New file.
79581         * doc/glibc-headers/error.texi: New file.
79582         * doc/glibc-headers/execinfo.texi: New file.
79583         * doc/glibc-headers/fpu_control.texi: New file.
79584         * doc/glibc-headers/fstab.texi: New file.
79585         * doc/glibc-headers/fts.texi: New file.
79586         * doc/glibc-headers/getopt.texi: New file.
79587         * doc/glibc-headers/ieee754.texi: New file.
79588         * doc/glibc-headers/ifaddrs.texi: New file.
79589         * doc/glibc-headers/libintl.texi: New file.
79590         * doc/glibc-headers/mcheck.texi: New file.
79591         * doc/glibc-headers/mntent.texi: New file.
79592         * doc/glibc-headers/obstack.texi: New file.
79593         * doc/glibc-headers/paths.texi: New file.
79594         * doc/glibc-headers/printf.texi: New file.
79595         * doc/glibc-headers/pty.texi: New file.
79596         * doc/glibc-headers/resolv.texi: New file.
79597         * doc/glibc-headers/shadow.texi: New file.
79598         * doc/glibc-headers/sysexits.texi: New file.
79599         * doc/glibc-headers/ttyent.texi: New file.
79601 2008-01-12  Jim Meyering  <meyering@redhat.com>
79603         announce-gen: emit Gnulib's git-based version string.
79604         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
79605         New option --gnulib-version=V, where V is expected to be
79606         the output of running git describe in the gnulib directory.
79607         (get_tool_versions): Request feedback on xdelta.  I suspect it's
79608         not useful, and plan to stop publishing an xdelta file with each
79609         coreutils release.
79611         * build-aux/announce-gen: Also check for lzma-compressed files.
79613 2008-01-11  Bruno Haible  <bruno@clisp.org>
79615         * tests/test-memmem.c (main): Increase maximum allowed time.
79616         * tests/test-strstr.c (main): Likewise.
79618 2008-01-11  Bruno Haible  <bruno@clisp.org>
79620         * doc/functions/memmem.texi: Add more precisions about platforms.
79621         * doc/functions/strstr.texi: Likewise.
79623 2008-01-10  Eric Blake  <ebb9@byu.net>
79625         * m4/strstr.m4: Delete cruft from copy-n-paste.
79626         Reported by Bruno Haible.
79628 2008-01-10  Bruno Haible  <bruno@clisp.org>
79630         Make c-strstr rely on strstr.
79631         * lib/c-strstr.c: Don't include str-kmp.h.
79632         (c_strstr): Define in terms of strstr.
79633         * modules/c-strstr (Files): Remove lib/str-kmp.h.
79634         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
79636 2008-01-10  Bruno Haible  <bruno@clisp.org>
79638         * doc/gnulib.texi (String Functions in C Locale): New section.
79639         * doc/c-ctype.texi: New file.
79640         * doc/c-strcase.texi: New file.
79641         * doc/c-strcaseeq.texi: New file.
79642         * doc/c-strcasestr.texi: New file.
79643         * doc/c-strstr.texi: New file.
79644         * doc/c-strtod.texi: New file.
79645         * doc/c-strtold.texi: New file.
79647 2008-01-10  Eric Blake  <ebb9@byu.net>
79649         * lib/relocatable.h: Fix a comment.
79651 2008-01-10  Eric Blake  <ebb9@byu.net>
79653         Share two-way algorithm.
79654         * lib/str-two-way.h: New file, merged from...
79655         * lib/memmem.c: ...here...
79656         * lib/strstr.c: ...and here.
79657         * modules/memmem (Files): Use it.
79658         * modules/strstr (Files): Likewise.
79660         Avoid quadratic strstr implementations.
79661         * lib/strstr.c: New file.
79662         * m4/strstr.m4: Likewise.
79663         * modules/strstr: Likewise.
79664         * modules/strstr-tests: Likewise.
79665         * tests/test-strstr.c: Likewise.
79666         * lib/string.in.h (rpl_strstr): Declare.
79667         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
79668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
79669         * modules/string (Makefile.am): Likewise.
79670         * MODULES.html.sh (string handling): Mention new module.
79671         * doc/functions/strstr.texi (strstr): Document the bug.
79673 2008-01-10  Bruno Haible  <bruno@clisp.org>
79675         * lib/relocatable.h (relocate): State whether result is freshly
79676         allocated or not.
79677         * lib/relocatable.c (relocate): Return a freshly allocated string
79678         instead of a pointer to a privately held string.
79679         Reported by Sylvain Beucler <beuc@gnu.org>.
79681 2008-01-10  Colin Watson  <cjwatson@debian.org>
79683         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
79684         s/S_ISNLK/S_ISLNK/.
79686 2008-01-09  Bruno Haible  <bruno@clisp.org>
79688         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
79689         and other files.
79690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
79691         if it's only a guess.
79692         * modules/memmem: Simplify by depending on memmem-simple.
79694 2008-01-09  Bruno Haible  <bruno@clisp.org>
79696         Work around OpenBSD 4.0 tdelete() bug.
79697         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
79698         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
79699         macros and don't redefine the enum values.
79700         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
79701         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
79702         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
79704 2008-01-09  Bruno Haible  <bruno@clisp.org>
79706         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
79707         (main): Don't perform the tests if setlocale did not install a UTF-8
79708         locale. Needed on OpenBSD 4.0.
79709         * modules/wcwidth-tests (Depends-on): Add localcharset.
79711 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79713         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
79714         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
79715         * NEWS: announce this.
79716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
79718 2008-01-09  Simon Josefsson  <simon@josefsson.org>
79719         and Eric Blake  <ebb9@byu.net>
79721         Add memmem-simple module.
79722         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
79723         (gl_FUNC_MEMMEM): Separate performance from presence checks.
79724         * modules/memmem-simple: New file.
79725         * modules/memmem (Description): Tweak.
79726         * MODULES.html.sh (string handling): Mention new module.
79727         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
79728         addressed by memmem-simple.
79729         * NEWS: Document the difference.
79731 2008-01-09  Eric Blake  <ebb9@byu.net>
79733         Give gcc some memmem optimization hints.
79734         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
79735         (strcasestr): Declare as pure.
79736         * modules/memmem (Maintainer): Claim my implementation.
79738 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79740         Support AIX 6.1 and higher.
79741         * build-aux/config.libpath: Likewise.
79742         * build-aux/config.rpath: Likewise.
79744 2008-01-08  Jim Meyering  <meyering@redhat.com>
79745             Bruno Haible  <bruno@clisp.org>
79747         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
79748         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
79749         Reported by Peter Fales in
79750         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
79752 2008-01-08  Bruno Haible  <bruno@clisp.org>
79754         * modules/unictype/category-of (Depends-on): Add
79755         unictype/category-none.
79756         * modules/unictype/category-and-tests (Depends-on): Add
79757         unictype/category-{L,N,Lu,Nd}.
79758         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
79759         * modules/unictype/category-or-tests (Depends-on): Add
79760         unictype/category-{L,N}.
79761         * modules/unictype/category-name-tests (Depends-on): Add
79762         unictype/category-{Z,Nl}.
79763         Reported by Simon Josefsson.
79765 2008-01-08  Bruno Haible  <bruno@clisp.org>
79767         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
79768         convention better.
79769         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
79770         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
79771         Reported by Peter Miller <millerp@canb.auug.org.au>.
79773 2008-01-08  Eric Blake  <ebb9@byu.net>
79775         Rewrite memmem to guarantee linear complexity without malloc.
79776         * lib/memmem.c (memmem): Use Two-Way rather than
79777         Knuth-Morris-Pratt, to allow O(1) space usage.
79778         (critical_factorization, two_way_short_needle)
79779         (two_way_long_needle): New functions.
79780         (knuth_morris_pratt): Delete.
79781         * modules/memmem (Depends-on): No longer need malloca or stdbool.
79782         Add stdint.
79783         * tests/test-memmem.c (main): Add tests for periodic needle and
79784         sublinear performance.
79785         * doc/functions/memmem.texi (memmem): Document other deficiencies
79786         in cygwin and older glibc.
79788 2008-01-08  Bruno Haible  <bruno@clisp.org>
79790         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
79791         augmentation.
79793 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
79795         Add a configure time option: --disable-acl.
79796         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
79797         AC_ARG_ENABLE(acl).
79799 2008-01-06  Simon Josefsson  <simon@josefsson.org>
79801         * tests/test-localename.c: Don't include obsolete "setenv.h".
79803         * modules/localename-tests (Depends-on): Need unsetenv.
79805 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79807         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
79809 2008-01-06  Colin Watson  <cjwatson@debian.org>
79811         * users.txt: Add man-db.
79813 2008-01-07  Bruno Haible  <bruno@clisp.org>
79815         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
79816         previous section name.
79818 2008-01-07  Bruno Haible  <bruno@clisp.org>
79820         * lib/progname.c (set_program_name): Don't strip off a leading
79821         "lt-" prefix outside a .libs directory.
79822         Suggested by Paul Eggert.
79824 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
79825             Bruno Haible  <bruno@clisp.org>
79827         Improve memory cleanup in 'relocatable' module.
79828         * lib/relocatable.h (compute_curr_prefix): Change return type to
79829         'char *'.
79830         * lib/relocatable.c (compute_curr_prefix): Change return type to
79831         'char *'. Free curr_installdir after use.
79832         (relocate): Free curr_prefix_better after use.
79833         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
79835 2008-01-01  Bruno Haible  <bruno@clisp.org>
79837         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
79838         failure on older glibc systems.
79839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79841 2008-01-05  Eric Blake  <ebb9@byu.net>
79843         Avoid quadratic system memmem.
79844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
79845         Reported by Ralf Wildenhues.
79847         Fix memmem test for mingw.
79848         * modules/memmem-tests (configure.ac): Check for alarm.
79849         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79850         it.
79851         * doc/functions/memmem.texi: New file.
79852         * doc/gnulib.texi (Function Substitutes): Add memmem.
79853         Reported by Bruno Haible.
79855 2008-01-04  Bruno Haible  <bruno@clisp.org>
79857         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79858         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79859         gl_HEADER_STRING_H_DEFAULTS.
79861 2008-01-04  Eric Blake  <ebb9@byu.net>
79863         Shorten duration of memmem test.
79864         * tests/test-memmem.c (main): Use alarm to declare failure if test
79865         is taking too long.
79866         Reported by Ralf Wildenhues.
79868 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79870         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79871         string, needed by strerror.
79873 2008-01-03  Colin Watson  <cjwatson@debian.org>
79874             Bruno Haible  <bruno@clisp.org>
79876         * doc/gnulib-tool.texi (Localization): New section.
79878 2008-01-02  Bruno Haible  <bruno@clisp.org>
79880         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79881         variables to 'unsigned char *' type.
79882         Reported by Paul Eggert.
79884 2008-01-02  Jim Meyering  <jim@meyering.net>
79886         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79888 2007-12-31  Jim Meyering  <jim@meyering.net>
79890         Avoid use of private FTS type name.
79891         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79893 2007-12-30  Karl Berry  <karl@gnu.org>
79895         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79896         work around defect in Texinfo and/or the standalone Info browser.
79898 2007-12-30  Bruno Haible  <bruno@clisp.org>
79900         Unify 5 copies of the KMP code.
79901         * lib/str-kmp.h: New file.
79902         * lib/c-strcasestr.c: Include str-kmp.h.
79903         (knuth_morris_pratt): Remove function.
79904         (c_strcasestr): Update.
79905         * lib/c-strstr.c: Include str-kmp.h.
79906         (knuth_morris_pratt): Remove function.
79907         (c_strcasestr): Update.
79908         * lib/mbscasestr.c: Include str-kmp.h.
79909         (knuth_morris_pratt_unibyte): Remove function.
79910         * lib/mbsstr.c: Include str-kmp.h.
79911         (knuth_morris_pratt_unibyte): Remove function.
79912         * lib/strcasestr.c: Include str-kmp.h.
79913         (knuth_morris_pratt): Remove function.
79914         (strcasestr): Update.
79915         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79916         * modules/c-strstr (Files): Likewise.
79917         * modules/mbscasestr (Files): Likewise.
79918         * modules/mbsstr (Files): Likewise.
79919         * modules/strcasestr (Files): Likewise.
79920         Suggested by Paul Eggert.
79922 2007-12-30  Bruno Haible  <bruno@clisp.org>
79924         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79925         defined.
79927 2007-12-30  Bruno Haible  <bruno@clisp.org>
79929         * lib/xmalloca.h: Include xalloc.h.
79930         (xnmalloca): New macro.
79932 2007-12-30  Bruno Haible  <bruno@clisp.org>
79934         * lib/malloca.h (nmalloca): New macro.
79935         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79936         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79937         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79938         knuth_morris_pratt_multibyte): Likewise.
79939         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79940         knuth_morris_pratt_multibyte): Likewise.
79941         * lib/memmem.c (knuth_morris_pratt): Likewise.
79942         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79944 2007-12-25  Bruno Haible  <bruno@clisp.org>
79946         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79947         * lib/glob.c: Don't include openat.h.
79948         (link_exists2_p): Add back the code that deals with the
79949         !GLOB_ALTDIRFUNC case.
79950         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79951         let it do the filename concatenation.
79952         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79953         * modules/glob (Depends-on): Remove openat.
79955 2007-12-31  Bruno Haible  <bruno@clisp.org>
79957         * modules/dirfd (License): Change to LGPLv2+.
79958         Approved by Jim Meyering.
79960 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79962         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79963         when multiplying M by sizeof (size_t).
79965 2007-12-10  Martin Lambers  <marlam@marlam.de>
79967         Override getpagesize on mingw.
79968         * lib/getpagesize.c: New file.
79969         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79970         * modules/getpagesize (Files): Add lib/getpagesize.c.
79971         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79973         REPLACE_GETPAGESIZE.
79974         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79976 2007-12-25  Bruno Haible  <bruno@clisp.org>
79978         * modules/localcharset (Notice): New field.
79979         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79980         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79982 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79983             Bruno Haible  <bruno@clisp.org>
79985         Avoid using the syntax symbol() in formatted documentation.
79986         * MODULES.html.sh (func_module): When replacing symbol() with a
79987         hyperlink, remove the parentheses. Show an error if some remain.
79988         Recognize and render the '...' syntax.
79989         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79990         Rework. Add paragraph about GCC's inlining.
79991         * doc/alloca.texi: Likewise.
79992         * doc/error.texi: Remove parentheses from symbol reference.
79993         * doc/gnulib-intro.texi: Likewise.
79994         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79995         * modules/fnmatch (Description): Reword to say "the ... function".
79996         * modules/full-read (Description): Likewise.
79997         * modules/full-write (Description): Likewise.
79998         * modules/safe-read (Description): Likewise.
79999         * modules/safe-write (Description): Likewise.
80000         * modules/strchrnul (Description): Likewise.
80001         * modules/trim (Description): Likewise.
80002         * modules/error (Description): Remove parentheses from symbol
80003         references.
80004         * modules/verror (Description): Likewise.
80005         Reported by Karl Berry.
80007 2007-12-25  Bruno Haible  <bruno@clisp.org>
80009         Fixup after 2007-10-16 commit.
80010         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
80012 2007-12-24  Bruno Haible  <bruno@clisp.org>
80014         Make --enable-relocatable work with DESTDIR.
80015         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
80016         to compute installdir from destprog.
80017         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
80018         also set the RELOC_DESTDIR variable.
80019         Reported by Левашев Иван <octagram@bluebottle.com>.
80021 2007-12-24  Bruno Haible  <bruno@clisp.org>
80023         Fix link error due to xalloc_die().
80024         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
80025         of xreadlink.
80026         * lib/relocwrapper.c: Update comments.
80027         * build-aux/install-reloc: Remove xreadlink.c from file list.
80028         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
80029         xreadlink.c.
80030         Reported by Левашев Иван <octagram@bluebottle.com>.
80032 2007-12-24  Bruno Haible  <bruno@clisp.org>
80034         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
80035         * lib/setenv.h: Remove file.
80036         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
80037         lib/setenv.h.
80038         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
80039         (Depends-on): Add stdlib.
80040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
80041         gl_FUNC_UNSETENV.
80042         (Include): Replace setenv.h with <stdlib.h>.
80043         * modules/unsetenv: New file.
80044         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
80045         * lib/unsetenv.c: Include <stdlib.h> first.
80046         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
80047         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
80048         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
80049         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
80050         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
80051         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
80052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
80053         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
80054         * doc/functions/unsetenv.texi: Update.
80055         * modules/xsetenv (Depends-on): Add unsetenv.
80056         * modules/getdate (Depends-on): Likewise.
80057         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
80058         * lib/xsetenv.c: Don't include setenv.h.
80059         * lib/getdate.y: Likewise.
80060         * lib/relocwrapper.c: Likewise.
80061         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
80062         (Depends-on): Add stdlib.
80063         * NEWS: Mention the changes.
80064         Reported by Левашев Иван <octagram@bluebottle.com>.
80066 2007-12-23  Bruno Haible  <bruno@clisp.org>
80068         * lib/memmem.c (memmem): Use lowercase variable names. Tab
80069         indentation.
80071 2007-12-23  Bruno Haible  <bruno@clisp.org>
80073         * lib/c-strcasestr.c: Add more comments.
80074         * lib/c-strstr.c: Likewise.
80075         * lib/mbscasestr.c: Likewise.
80076         * lib/mbsstr.c: Likewise.
80077         * lib/strcasestr.c: Likewise.
80078         * lib/memmem.c: Likewise.
80080 2007-12-23  Bruno Haible  <bruno@clisp.org>
80082         * tests/test-memmem.c: Include <string.h> first.
80084 2007-12-22  Bruno Haible  <bruno@clisp.org>
80086         * gnulib-tool (func_create_testdir): Change $auxdir while generating
80087         the contents of $testsbase.
80088         Reported by Ralf Wildenhues.
80090 2007-12-22  Bruno Haible  <bruno@clisp.org>
80092         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
80093         two variables local_ldadd_before, local_ldadd_last.
80095 2007-12-20  Eric Blake  <ebb9@byu.net>
80097         Work around circular library issue when cross-compiling.
80098         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
80099         that progname.o does not need to pull in rpl_memcmp.
80101 2007-12-19  Eric Blake  <ebb9@byu.net>
80103         Fix memmem to avoid O(n^2) worst-case complexity.
80104         * lib/memmem.c (knuth_morris_pratt): New function.
80105         (memmem): Use it if first few naive iterations fail.
80106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
80107         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
80108         * modules/memchr (License): Likewise.
80109         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
80110         malloca.
80111         * tests/test-memmem.c: Rewrite, borrowing ideas from
80112         test-mbsstr1.c; the old version wouldn't even compile!
80113         * modules/memmem-tests: New file.
80114         * lib/string.in.h (rpl_memmem): Add declaration.
80115         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
80116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
80117         REPLACE_MEMMEM.
80119 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
80121         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
80122         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
80123         before any system include files, and undef after them all.  This
80124         should fix a problem on VMS reported by John E. Malmberg in
80125         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
80127 2007-12-17  Eric Blake  <ebb9@byu.net>
80129         Revert addition of verify, for BSD/OS.
80130         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
80131         can't handle large files, for the sake of obsolete platforms.
80132         * modules/fseeko (Depends-on): Remove verify.
80133         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
80134         * doc/functions/ftello.texi (ftello): Likewise.
80135         * doc/functions/fgetpos.texi (fgetpos): Likewise.
80136         Reported by Larry Jones.
80138 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
80140         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
80141         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
80143 2007-12-17  Jim Meyering  <meyering@redhat.com>
80145         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
80146         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
80147         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
80148         * modules/getcwd (Depends-on): Add openat.
80149         Reported by Petr Salinger.
80151 2007-12-17  Bruno Haible  <bruno@clisp.org>
80153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
80154         avoid a segmentation fault of the configure test on x86_64 systems.
80156 2007-12-15  Jim Meyering  <meyering@redhat.com>
80158         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
80160 2007-12-13  Eric Blake  <ebb9@byu.net>
80162         Another fseek test.
80163         * tests/test-fseek.c (main): Also test ungetc handling.
80164         * tests/test-fseeko.c (main): Likewise.
80165         * modules/fseeko (Depends-on): Add verify.
80166         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
80167         large.
80168         Reported by Larry Jones.
80170         Fix fseeko on mingw.
80171         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
80172         seek.
80174         Beef up fseek tests.
80175         * tests/test-fseek.c (main): Also test eof handling.
80176         * tests/test-fseeko.c (main): Likewise.
80177         Reported by Larry Jones.
80179 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
80181         Fix fseeko on BSD-based platforms.
80182         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
80183         successful seek.
80185 2007-12-12  Eric Blake  <ebb9@byu.net>
80187         Allow circular dependency of separate libtests.a
80188         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
80189         when use_libtests.
80191 2007-12-11  Eric Blake  <ebb9@byu.net>
80193         Fix bug with -0.0L in previous patch.
80194         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
80195         * tests/test-isnan.c (main): Also test on zeroes.
80196         * tests/test-isnanf.c (main): Likewise.
80197         * tests/test-isnanl.h (main): Likewise.
80199         Detect pseudo-denormals on x86 even when cross-compiling.
80200         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
80201         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
80202         invalid bit patterns that happen to satisfy ==.
80204         Avoid link failures with separate libtests.a.
80205         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
80206         last, to satisfy circular dependencies.
80208 2007-12-11  Eric Blake  <ebb9@byu.net>
80209         and Bruno Haible  <bruno@clisp.org>
80211         Fix OpenBSD 4.0 <float.h> handling of long double.
80212         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
80213         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
80214         * doc/headers/float.texi (float.h): Document OpenBSD bug.
80216 2007-12-11  Jim Meyering  <meyering@redhat.com>
80218         * users.txt: Add libvirt.
80220         Support versions of autoconf prior to 2.59c.
80221         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
80222         if it is not already defined.
80224 2007-12-09  Bruno Haible  <bruno@clisp.org>
80226         Let 'gnulib-tool --import' collect sources needed for the tests in
80227         tests/ rather than in lib/.
80228         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
80229         argument. If true, add rules to generate libtests.a, and put libtests.a
80230         into $(LDADD). Consider source files in subdirectories and set
80231         uses_subdirs.
80232         (func_emit_initmacro_start, func_emit_initmacro_end,
80233         func_emit_initmacro_done): Pass all arguments explicitly.
80234         (func_import): Determine two module lists main_modules,
80235         testsrelated_modules. Determine use_libtests. Determine two variables
80236         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
80237         instead of just sed_transform_lib_file. Determine two variables
80238         main_files and testsrelated_files. Compute 'files' as the union of
80239         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
80240         func_add_or_update. In the generated gnulib-comp.m4, collect the
80241         object files for tests/ in different variables than those for lib/.
80242         Substitute LIBTESTS_LIBDEPS.
80243         (func_create_testdir): Combine the uses_subdirs results from
80244         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
80246 2007-12-09  Bruno Haible  <bruno@clisp.org>
80248         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
80249         the build-aux directory.
80251 2007-12-09  Bruno Haible  <bruno@clisp.org>
80253         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
80254         introduced on 2006-09-09.
80256 2007-12-07  Jim Meyering  <meyering@redhat.com>
80258         Let these macros work also with autoconf-2.59.
80259         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
80260         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
80261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80263 2007-12-06  Jim Meyering  <meyering@redhat.com>
80265         Avoid a configure-time syntax error in gl_FUNC_ACL.
80266         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
80267         function in each branch, before testing the cache variable.
80269 2007-12-04  Eric Blake  <ebb9@byu.net>
80271         Make scripts executable.
80272         * build-aux/config.guess: Add execute permissions.
80273         * build-aux/config.sub: Likewise.
80274         * build-aux/gendocs.sh: Likewise.
80276         Fix frexp on mingw.
80277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
80278         cross-compiling.
80279         * doc/functions/frexp.texi (frexp): Document the bug.
80281         Make cygwin fseeko check more reliable.
80282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
80283         version numbers, rather than unrelated feature check.
80284         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
80285         * doc/functions/ftello.texi (ftello): Likewise.
80286         Reported by Bruno Haible.
80288         * m4/strerror.m4: Bump version number.
80290 2007-12-03  Bruno Haible  <bruno@clisp.org>
80292         * doc/functions/mprotect.texi: Mention the mingw problem.
80294 2007-12-03  Eric Blake  <ebb9@byu.net>
80296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
80297         REPLACE_STRERROR is initialized before this macro.
80299 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
80301         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
80302         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
80303         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
80304         put -lsec in even for programs other than 'ls'.  This fixes a problem
80305         for gettext reported by Bruno Haible in
80306         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
80307         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
80308         Add support for Solaris 10.  This isn't efficient, but should get the
80309         job done for now.
80311 2007-12-03  James Youngman  <jay@gnu.org>
80313         * doc/regexprops-generic.texi: change "an close-group" to "a
80314         close-group" and "illegal" to "not allowed".
80316 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80318         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
80319         pr_byname.h. Needed for the rare case when the maintainer has done
80320         "make maintainer-clean" in the source directory and then attempts a
80321         build outside the source directory.
80322         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
80323         scripts_byname.h.
80325 2007-12-02  Martin Lambers  <marlam@marlam.de>
80326             Bruno Haible  <bruno@clisp.org>
80328         * lib/getpagesize.h: Remove file.
80329         * lib/unistd.in.h: Include declaration of getpagesize here.
80330         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
80331         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
80332         HAVE_SYS_PARAM_H.
80333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
80334         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80335         * modules/getpagesize (Files): Remove lib/getpagesize.h.
80336         (Depends-on): Add unistd.
80337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80338         (Include): Use <unistd.h> instead of getpagesize.h.
80339         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
80340         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80341         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
80342         gl_GETPAGESIZE invocation, already handled by module dependency.
80343         * lib/pagealign_alloc.c: Don't include getpagesize.h.
80345 2007-12-02  Bruno Haible  <bruno@clisp.org>
80347         * modules/strings-tests: New file.
80348         * tests/test-strings.c: New file.
80350         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
80351         * lib/strings.in.h: New file.
80352         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
80353         * m4/strings_h.m4: New file.
80354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
80355         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
80356         * modules/strings: New file.
80357         * modules/string (Makefile.am): Update.
80358         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
80359         Reported by Karl Berry.
80361 2007-12-01  Eric Blake  <ebb9@byu.net>
80363         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
80364         accommodate fix in cygwin 1.5.25.
80366 2007-12-01  Jim Meyering  <meyering@redhat.com>
80368         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
80369         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
80370         that would inhibit utf8-optimization of a regexp containing line-
80371         or buffer-anchors, e.g., `^', `$'.
80373 2007-11-30  Bruno Haible  <bruno@clisp.org>
80375         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
80376         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
80377         glthread_recursive_lock_init.
80378         * lib/lock.c (glthread_recursive_lock_init)
80379         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
80380         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80382 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
80384         New function qset_acl, like set_acl but with syscall semantics.
80385         * lib/acl.h (qset_acl): New decl.
80386         * lib/acl.c (qset_acl): New function.
80387         (set_acl): Use new function.  Use more-consistent diagnostics.
80389 2007-11-28  Jim Meyering  <meyering@redhat.com>
80391         * modules/physmem (License): Change from GPL to LGPLv2+.
80393 2007-11-26  Bruno Haible  <bruno@clisp.org>
80395         * lib/vasnprintf.c (decode_long_double): Don't abort if the
80396         'long double' type has excess precision.
80397         Reported by Jim Meyering in
80398         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
80400 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80402         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
80403         Sync from <http://gnu.org/licenses>.
80404         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
80405         with license text from same location.
80406         * doc/maintain.texi, doc/standards.texi:  Sync from
80407         <http://savannah.gnu.org/projects/gnustandards>.
80409 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
80410         and Jim Meyering  <meyering@redhat.com>
80412         Adjust getdate' grammar to accept a slightly more regular language.
80413         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
80414         Before, the former was rejected.
80415         * lib/getdate.y (digits_to_date_time): New function, factored
80416         out of ...
80417         (number): ...here.  Just call digits_to_date_time.
80418         (hybrid): New non-terminal to handle an <unsigned number,
80419         signed relative offset> sequence consistently.
80421 2007-11-18  Jim Meyering  <meyering@redhat.com>
80423         Pull my changes from coreutils:
80424         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
80425         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
80426         use of $gnulib_tool_option_extras, so that it's separated from the
80427         preceding argument.
80429         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
80430         * build-aux/bootstrap (cp_mark_as_generated): Create any required
80431         parent destination directories before copying a file into place.
80433 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
80435         bootstrap: work also with 4-argument variant of AC_INIT
80436         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
80438 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80440         Port test-getaddrinfo to Solaris.
80441         Problem reported by Bruno Haible in
80442         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
80443         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
80444         explanation of setting 'hints'.
80445         Don't reject an implementation merely because it returns EAI_SERVICE.
80446         (EAI_SERVICE): Define to 0 if not defined.
80448 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80450         The license of gnu-make and posix-shell is now "GPLed build tool".
80451         * modules/gnu-make (License): Likewise.
80452         * modules/posix-shell (License): Likewise.
80454         New module posix-shell, for determining a POSIX shell
80455         or perhaps something that is close enough to a POSIX shell.
80456         * m4/posix-shell.m4: New file.
80457         * modules/posix-shell: New file.
80459         * MODULES.html.sh: Mention new module.
80461         New module gnu-make, for determining whether we're using GNU Make.
80462         * m4/gnu-make.m4: New file.
80463         * modules/gnu-make: New file.
80464         * MODULES.html.sh: Mention new module.
80466 2007-11-14  Jim Meyering  <meyering@redhat.com>
80468         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
80469         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
80470         use this macro to create a function _definition_.
80471         Remove useless "#undef ARGMATCH_DIE".
80473 2007-11-14  Bruno Haible  <bruno@clisp.org>
80475         * lib/config.charset: Update for OpenBSD 4.1.
80476         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
80478 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
80480         Document 64-bit #if problems in stdint.texi.
80481         * doc/headers/stdint.texi (stdint.h): Mention problems with
80482         64-bit-#if, and how to work around them.
80484         Don't insist on 'long long int' support in the preprocessor.  It
80485         breaks too many things.  For example, PRIdMAX still uses a 'long
80486         long int' format with the latest Sun compiler, even though
80487         HAVE_LONG_LONG_INT isn't defined due to that compiler's
80488         preprocessor problem.  This causes the latest coreutils to dump
80489         core on Solaris 10 sparc with the Sun C compiler.
80490         Instead, fix the 2007-10-16 problem in a different way, by evaluating
80491         the troublesome expressions at configure-time, not at #if-time.
80492         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
80493         preprocessor.
80494         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
80495         compile-time C checks, done at 'configure'-time.
80496         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
80497         * modules/inttypes (Makefile): Substitute the new symbols that
80498         gl_INTTYPES_H now generates.
80499         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
80501 2007-11-12  Bruno Haible  <bruno@clisp.org>
80503         Tests for Unicode character classification functions.
80505         * modules/unictype/bidicategory-byname-tests: New file.
80506         * modules/unictype/bidicategory-name-tests: New file.
80507         * modules/unictype/bidicategory-of-tests: New file.
80508         * modules/unictype/bidicategory-test-tests: New file.
80509         * modules/unictype/block-list-tests: New file.
80510         * modules/unictype/block-of-tests: New file.
80511         * modules/unictype/block-test-tests: New file.
80512         * modules/unictype/category-C-tests: New file.
80513         * modules/unictype/category-Cc-tests: New file.
80514         * modules/unictype/category-Cf-tests: New file.
80515         * modules/unictype/category-Cn-tests: New file.
80516         * modules/unictype/category-Co-tests: New file.
80517         * modules/unictype/category-Cs-tests: New file.
80518         * modules/unictype/category-L-tests: New file.
80519         * modules/unictype/category-Ll-tests: New file.
80520         * modules/unictype/category-Lm-tests: New file.
80521         * modules/unictype/category-Lo-tests: New file.
80522         * modules/unictype/category-Lt-tests: New file.
80523         * modules/unictype/category-Lu-tests: New file.
80524         * modules/unictype/category-M-tests: New file.
80525         * modules/unictype/category-Mc-tests: New file.
80526         * modules/unictype/category-Me-tests: New file.
80527         * modules/unictype/category-Mn-tests: New file.
80528         * modules/unictype/category-N-tests: New file.
80529         * modules/unictype/category-Nd-tests: New file.
80530         * modules/unictype/category-Nl-tests: New file.
80531         * modules/unictype/category-No-tests: New file.
80532         * modules/unictype/category-P-tests: New file.
80533         * modules/unictype/category-Pc-tests: New file.
80534         * modules/unictype/category-Pd-tests: New file.
80535         * modules/unictype/category-Pe-tests: New file.
80536         * modules/unictype/category-Pf-tests: New file.
80537         * modules/unictype/category-Pi-tests: New file.
80538         * modules/unictype/category-Po-tests: New file.
80539         * modules/unictype/category-Ps-tests: New file.
80540         * modules/unictype/category-S-tests: New file.
80541         * modules/unictype/category-Sc-tests: New file.
80542         * modules/unictype/category-Sk-tests: New file.
80543         * modules/unictype/category-Sm-tests: New file.
80544         * modules/unictype/category-So-tests: New file.
80545         * modules/unictype/category-Z-tests: New file.
80546         * modules/unictype/category-Zl-tests: New file.
80547         * modules/unictype/category-Zp-tests: New file.
80548         * modules/unictype/category-Zs-tests: New file.
80549         * modules/unictype/category-and-not-tests: New file.
80550         * modules/unictype/category-and-tests: New file.
80551         * modules/unictype/category-byname-tests: New file.
80552         * modules/unictype/category-name-tests: New file.
80553         * modules/unictype/category-none-tests: New file.
80554         * modules/unictype/category-of-tests: New file.
80555         * modules/unictype/category-or-tests: New file.
80556         * modules/unictype/category-test-withtable-tests: New file.
80557         * modules/unictype/combining-class-tests: New file.
80558         * modules/unictype/ctype-alnum-tests: New file.
80559         * modules/unictype/ctype-alpha-tests: New file.
80560         * modules/unictype/ctype-blank-tests: New file.
80561         * modules/unictype/ctype-cntrl-tests: New file.
80562         * modules/unictype/ctype-digit-tests: New file.
80563         * modules/unictype/ctype-graph-tests: New file.
80564         * modules/unictype/ctype-lower-tests: New file.
80565         * modules/unictype/ctype-print-tests: New file.
80566         * modules/unictype/ctype-punct-tests: New file.
80567         * modules/unictype/ctype-space-tests: New file.
80568         * modules/unictype/ctype-upper-tests: New file.
80569         * modules/unictype/ctype-xdigit-tests: New file.
80570         * modules/unictype/decimal-digit-tests: New file.
80571         * modules/unictype/digit-tests: New file.
80572         * modules/unictype/mirror-tests: New file.
80573         * modules/unictype/numeric-tests: New file.
80574         * modules/unictype/property-alphabetic-tests: New file.
80575         * modules/unictype/property-ascii-hex-digit-tests: New file.
80576         * modules/unictype/property-bidi-arabic-digit-tests: New file.
80577         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
80578         * modules/unictype/property-bidi-block-separator-tests: New file.
80579         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
80580         * modules/unictype/property-bidi-common-separator-tests: New file.
80581         * modules/unictype/property-bidi-control-tests: New file.
80582         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
80583         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
80584         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
80585         * modules/unictype/property-bidi-european-digit-tests: New file.
80586         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
80587         * modules/unictype/property-bidi-left-to-right-tests: New file.
80588         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
80589         * modules/unictype/property-bidi-other-neutral-tests: New file.
80590         * modules/unictype/property-bidi-pdf-tests: New file.
80591         * modules/unictype/property-bidi-segment-separator-tests: New file.
80592         * modules/unictype/property-bidi-whitespace-tests: New file.
80593         * modules/unictype/property-byname-tests: New file.
80594         * modules/unictype/property-combining-tests: New file.
80595         * modules/unictype/property-composite-tests: New file.
80596         * modules/unictype/property-currency-symbol-tests: New file.
80597         * modules/unictype/property-dash-tests: New file.
80598         * modules/unictype/property-decimal-digit-tests: New file.
80599         * modules/unictype/property-default-ignorable-code-point-tests: New file.
80600         * modules/unictype/property-deprecated-tests: New file.
80601         * modules/unictype/property-diacritic-tests: New file.
80602         * modules/unictype/property-extender-tests: New file.
80603         * modules/unictype/property-format-control-tests: New file.
80604         * modules/unictype/property-grapheme-base-tests: New file.
80605         * modules/unictype/property-grapheme-extend-tests: New file.
80606         * modules/unictype/property-grapheme-link-tests: New file.
80607         * modules/unictype/property-hex-digit-tests: New file.
80608         * modules/unictype/property-hyphen-tests: New file.
80609         * modules/unictype/property-id-continue-tests: New file.
80610         * modules/unictype/property-id-start-tests: New file.
80611         * modules/unictype/property-ideographic-tests: New file.
80612         * modules/unictype/property-ids-binary-operator-tests: New file.
80613         * modules/unictype/property-ids-trinary-operator-tests: New file.
80614         * modules/unictype/property-ignorable-control-tests: New file.
80615         * modules/unictype/property-iso-control-tests: New file.
80616         * modules/unictype/property-join-control-tests: New file.
80617         * modules/unictype/property-left-of-pair-tests: New file.
80618         * modules/unictype/property-line-separator-tests: New file.
80619         * modules/unictype/property-logical-order-exception-tests: New file.
80620         * modules/unictype/property-lowercase-tests: New file.
80621         * modules/unictype/property-math-tests: New file.
80622         * modules/unictype/property-non-break-tests: New file.
80623         * modules/unictype/property-not-a-character-tests: New file.
80624         * modules/unictype/property-numeric-tests: New file.
80625         * modules/unictype/property-other-alphabetic-tests: New file.
80626         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
80627         * modules/unictype/property-other-grapheme-extend-tests: New file.
80628         * modules/unictype/property-other-id-continue-tests: New file.
80629         * modules/unictype/property-other-id-start-tests: New file.
80630         * modules/unictype/property-other-lowercase-tests: New file.
80631         * modules/unictype/property-other-math-tests: New file.
80632         * modules/unictype/property-other-uppercase-tests: New file.
80633         * modules/unictype/property-paired-punctuation-tests: New file.
80634         * modules/unictype/property-paragraph-separator-tests: New file.
80635         * modules/unictype/property-pattern-syntax-tests: New file.
80636         * modules/unictype/property-pattern-white-space-tests: New file.
80637         * modules/unictype/property-private-use-tests: New file.
80638         * modules/unictype/property-punctuation-tests: New file.
80639         * modules/unictype/property-quotation-mark-tests: New file.
80640         * modules/unictype/property-radical-tests: New file.
80641         * modules/unictype/property-sentence-terminal-tests: New file.
80642         * modules/unictype/property-soft-dotted-tests: New file.
80643         * modules/unictype/property-space-tests: New file.
80644         * modules/unictype/property-terminal-punctuation-tests: New file.
80645         * modules/unictype/property-test-tests: New file.
80646         * modules/unictype/property-titlecase-tests: New file.
80647         * modules/unictype/property-unassigned-code-value-tests: New file.
80648         * modules/unictype/property-unified-ideograph-tests: New file.
80649         * modules/unictype/property-uppercase-tests: New file.
80650         * modules/unictype/property-variation-selector-tests: New file.
80651         * modules/unictype/property-white-space-tests: New file.
80652         * modules/unictype/property-xid-continue-tests: New file.
80653         * modules/unictype/property-xid-start-tests: New file.
80654         * modules/unictype/property-zero-width-tests: New file.
80655         * modules/unictype/scripts-tests: New file.
80656         * modules/unictype/syntax-c-ident-tests: New file.
80657         * modules/unictype/syntax-c-whitespace-tests: New file.
80658         * modules/unictype/syntax-java-ident-tests: New file.
80659         * modules/unictype/syntax-java-whitespace-tests: New file.
80660         * tests/unictype/test-bidi_byname.c: New file.
80661         * tests/unictype/test-bidi_name.c: New file.
80662         * tests/unictype/test-bidi_of.c: New file.
80663         * tests/unictype/test-bidi_test.c: New file.
80664         * tests/unictype/test-block_list.c: New file.
80665         * tests/unictype/test-block_of.c: New file.
80666         * tests/unictype/test-block_test.c: New file.
80667         * tests/unictype/test-categ_and.c: New file.
80668         * tests/unictype/test-categ_and_not.c: New file.
80669         * tests/unictype/test-categ_byname.c: New file.
80670         * tests/unictype/test-categ_name.c: New file.
80671         * tests/unictype/test-categ_none.c: New file.
80672         * tests/unictype/test-categ_of.c: New file.
80673         * tests/unictype/test-categ_or.c: New file.
80674         * tests/unictype/test-categ_test_withtable.c: New file.
80675         * tests/unictype/test-combining.c: New file.
80676         * tests/unictype/test-decdigit.c: New file.
80677         * tests/unictype/test-digit.c: New file.
80678         * tests/unictype/test-mirror.c: New file.
80679         * tests/unictype/test-numeric.c: New file.
80680         * tests/unictype/test-pr_byname.c: New file.
80681         * tests/unictype/test-pr_test.c: New file.
80682         * tests/unictype/test-predicate-part1.h: New file.
80683         * tests/unictype/test-predicate-part2.h: New file.
80684         * tests/unictype/test-scripts.c: New file.
80685         * tests/unictype/test-sy_c_ident.c: New file.
80686         * tests/unictype/test-sy_java_ident.c: New file.
80688         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
80689         for Unicode 5.0.0.
80690         * tests/unictype/test-categ_Cc.c: Likewise.
80691         * tests/unictype/test-categ_Cf.c: Likewise.
80692         * tests/unictype/test-categ_Cn.c: Likewise.
80693         * tests/unictype/test-categ_Co.c: Likewise.
80694         * tests/unictype/test-categ_Cs.c: Likewise.
80695         * tests/unictype/test-categ_L.c: Likewise.
80696         * tests/unictype/test-categ_Ll.c: Likewise.
80697         * tests/unictype/test-categ_Lm.c: Likewise.
80698         * tests/unictype/test-categ_Lo.c: Likewise.
80699         * tests/unictype/test-categ_Lt.c: Likewise.
80700         * tests/unictype/test-categ_Lu.c: Likewise.
80701         * tests/unictype/test-categ_M.c: Likewise.
80702         * tests/unictype/test-categ_Mc.c: Likewise.
80703         * tests/unictype/test-categ_Me.c: Likewise.
80704         * tests/unictype/test-categ_Mn.c: Likewise.
80705         * tests/unictype/test-categ_N.c: Likewise.
80706         * tests/unictype/test-categ_Nd.c: Likewise.
80707         * tests/unictype/test-categ_Nl.c: Likewise.
80708         * tests/unictype/test-categ_No.c: Likewise.
80709         * tests/unictype/test-categ_P.c: Likewise.
80710         * tests/unictype/test-categ_Pc.c: Likewise.
80711         * tests/unictype/test-categ_Pd.c: Likewise.
80712         * tests/unictype/test-categ_Pe.c: Likewise.
80713         * tests/unictype/test-categ_Pf.c: Likewise.
80714         * tests/unictype/test-categ_Pi.c: Likewise.
80715         * tests/unictype/test-categ_Po.c: Likewise.
80716         * tests/unictype/test-categ_Ps.c: Likewise.
80717         * tests/unictype/test-categ_S.c: Likewise.
80718         * tests/unictype/test-categ_Sc.c: Likewise.
80719         * tests/unictype/test-categ_Sk.c: Likewise.
80720         * tests/unictype/test-categ_Sm.c: Likewise.
80721         * tests/unictype/test-categ_So.c: Likewise.
80722         * tests/unictype/test-categ_Z.c: Likewise.
80723         * tests/unictype/test-categ_Zl.c: Likewise.
80724         * tests/unictype/test-categ_Zp.c: Likewise.
80725         * tests/unictype/test-categ_Zs.c: Likewise.
80726         * tests/unictype/test-ctype_alnum.c: Likewise.
80727         * tests/unictype/test-ctype_alpha.c: Likewise.
80728         * tests/unictype/test-ctype_blank.c: Likewise.
80729         * tests/unictype/test-ctype_cntrl.c: Likewise.
80730         * tests/unictype/test-ctype_digit.c: Likewise.
80731         * tests/unictype/test-ctype_graph.c: Likewise.
80732         * tests/unictype/test-ctype_lower.c: Likewise.
80733         * tests/unictype/test-ctype_print.c: Likewise.
80734         * tests/unictype/test-ctype_punct.c: Likewise.
80735         * tests/unictype/test-ctype_space.c: Likewise.
80736         * tests/unictype/test-ctype_upper.c: Likewise.
80737         * tests/unictype/test-ctype_xdigit.c: Likewise.
80738         * tests/unictype/test-decdigit.h: Likewise.
80739         * tests/unictype/test-digit.h: Likewise.
80740         * tests/unictype/test-numeric.h: Likewise.
80741         * tests/unictype/test-pr_alphabetic.c: Likewise.
80742         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
80743         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
80744         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
80745         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
80746         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
80747         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
80748         * tests/unictype/test-pr_bidi_control.c: Likewise.
80749         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
80750         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
80751         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
80752         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
80753         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
80754         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
80755         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
80756         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
80757         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
80758         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
80759         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
80760         * tests/unictype/test-pr_combining.c: Likewise.
80761         * tests/unictype/test-pr_composite.c: Likewise.
80762         * tests/unictype/test-pr_currency_symbol.c: Likewise.
80763         * tests/unictype/test-pr_dash.c: Likewise.
80764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
80765         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
80766         * tests/unictype/test-pr_deprecated.c: Likewise.
80767         * tests/unictype/test-pr_diacritic.c: Likewise.
80768         * tests/unictype/test-pr_extender.c: Likewise.
80769         * tests/unictype/test-pr_format_control.c: Likewise.
80770         * tests/unictype/test-pr_grapheme_base.c: Likewise.
80771         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
80772         * tests/unictype/test-pr_grapheme_link.c: Likewise.
80773         * tests/unictype/test-pr_hex_digit.c: Likewise.
80774         * tests/unictype/test-pr_hyphen.c: Likewise.
80775         * tests/unictype/test-pr_id_continue.c: Likewise.
80776         * tests/unictype/test-pr_id_start.c: Likewise.
80777         * tests/unictype/test-pr_ideographic.c: Likewise.
80778         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
80779         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
80780         * tests/unictype/test-pr_ignorable_control.c: Likewise.
80781         * tests/unictype/test-pr_iso_control.c: Likewise.
80782         * tests/unictype/test-pr_join_control.c: Likewise.
80783         * tests/unictype/test-pr_left_of_pair.c: Likewise.
80784         * tests/unictype/test-pr_line_separator.c: Likewise.
80785         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
80786         * tests/unictype/test-pr_lowercase.c: Likewise.
80787         * tests/unictype/test-pr_math.c: Likewise.
80788         * tests/unictype/test-pr_non_break.c: Likewise.
80789         * tests/unictype/test-pr_not_a_character.c: Likewise.
80790         * tests/unictype/test-pr_numeric.c: Likewise.
80791         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
80792         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
80793         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
80794         * tests/unictype/test-pr_other_id_continue.c: Likewise.
80795         * tests/unictype/test-pr_other_id_start.c: Likewise.
80796         * tests/unictype/test-pr_other_lowercase.c: Likewise.
80797         * tests/unictype/test-pr_other_math.c: Likewise.
80798         * tests/unictype/test-pr_other_uppercase.c: Likewise.
80799         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
80800         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
80801         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
80802         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
80803         * tests/unictype/test-pr_private_use.c: Likewise.
80804         * tests/unictype/test-pr_punctuation.c: Likewise.
80805         * tests/unictype/test-pr_quotation_mark.c: Likewise.
80806         * tests/unictype/test-pr_radical.c: Likewise.
80807         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
80808         * tests/unictype/test-pr_soft_dotted.c: Likewise.
80809         * tests/unictype/test-pr_space.c: Likewise.
80810         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
80811         * tests/unictype/test-pr_titlecase.c: Likewise.
80812         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
80813         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
80814         * tests/unictype/test-pr_uppercase.c: Likewise.
80815         * tests/unictype/test-pr_variation_selector.c: Likewise.
80816         * tests/unictype/test-pr_white_space.c: Likewise.
80817         * tests/unictype/test-pr_xid_continue.c: Likewise.
80818         * tests/unictype/test-pr_xid_start.c: Likewise.
80819         * tests/unictype/test-pr_zero_width.c: Likewise.
80820         * tests/unictype/test-sy_c_whitespace.c: Likewise.
80821         * tests/unictype/test-sy_java_whitespace.c: Likewise.
80823 2007-11-12  Bruno Haible  <bruno@clisp.org>
80825         Unicode character classification functions.
80826         * lib/unictype.h: New file.
80827         * modules/unictype/base: New file.
80828         * modules/unictype/category-L: New file.
80829         * modules/unictype/category-Lu: New file.
80830         * modules/unictype/category-Ll: New file.
80831         * modules/unictype/category-Lt: New file.
80832         * modules/unictype/category-Lm: New file.
80833         * modules/unictype/category-Lo: New file.
80834         * modules/unictype/category-M: New file.
80835         * modules/unictype/category-Mn: New file.
80836         * modules/unictype/category-Mc: New file.
80837         * modules/unictype/category-Me: New file.
80838         * modules/unictype/category-N: New file.
80839         * modules/unictype/category-Nd: New file.
80840         * modules/unictype/category-Nl: New file.
80841         * modules/unictype/category-No: New file.
80842         * modules/unictype/category-P: New file.
80843         * modules/unictype/category-Pc: New file.
80844         * modules/unictype/category-Pd: New file.
80845         * modules/unictype/category-Ps: New file.
80846         * modules/unictype/category-Pe: New file.
80847         * modules/unictype/category-Pi: New file.
80848         * modules/unictype/category-Pf: New file.
80849         * modules/unictype/category-Po: New file.
80850         * modules/unictype/category-S: New file.
80851         * modules/unictype/category-Sm: New file.
80852         * modules/unictype/category-Sc: New file.
80853         * modules/unictype/category-Sk: New file.
80854         * modules/unictype/category-So: New file.
80855         * modules/unictype/category-Z: New file.
80856         * modules/unictype/category-Zs: New file.
80857         * modules/unictype/category-Zl: New file.
80858         * modules/unictype/category-Zp: New file.
80859         * modules/unictype/category-C: New file.
80860         * modules/unictype/category-Cc: New file.
80861         * modules/unictype/category-Cf: New file.
80862         * modules/unictype/category-Cs: New file.
80863         * modules/unictype/category-Co: New file.
80864         * modules/unictype/category-Cn: New file.
80865         * modules/unictype/category-or: New file.
80866         * modules/unictype/category-of: New file.
80867         * modules/unictype/category-test: New file.
80868         * modules/unictype/category-test-withtable: New file.
80869         * modules/unictype/category-byname: New file.
80870         * modules/unictype/category-none: New file.
80871         * modules/unictype/category-and: New file.
80872         * modules/unictype/category-and-not: New file.
80873         * modules/unictype/category-name: New file.
80874         * modules/unictype/combining-class: New file.
80875         * modules/unictype/category-all: New file.
80876         * modules/unictype/bidicategory-all: New file.
80877         * modules/unictype/bidicategory-byname: New file.
80878         * modules/unictype/bidicategory-name: New file.
80879         * modules/unictype/bidicategory-of: New file.
80880         * modules/unictype/bidicategory-test: New file.
80881         * modules/unictype/decimal-digit: New file.
80882         * modules/unictype/digit: New file.
80883         * modules/unictype/numeric: New file.
80884         * modules/unictype/mirror: New file.
80885         * modules/unictype/property-white-space: New file.
80886         * modules/unictype/property-alphabetic: New file.
80887         * modules/unictype/property-other-alphabetic: New file.
80888         * modules/unictype/property-not-a-character: New file.
80889         * modules/unictype/property-default-ignorable-code-point: New file.
80890         * modules/unictype/property-other-default-ignorable-code-point: New
80891         file.
80892         * modules/unictype/property-deprecated: New file.
80893         * modules/unictype/property-logical-order-exception: New file.
80894         * modules/unictype/property-variation-selector: New file.
80895         * modules/unictype/property-private-use: New file.
80896         * modules/unictype/property-unassigned-code-value: New file.
80897         * modules/unictype/property-uppercase: New file.
80898         * modules/unictype/property-other-uppercase: New file.
80899         * modules/unictype/property-lowercase: New file.
80900         * modules/unictype/property-other-lowercase: New file.
80901         * modules/unictype/property-titlecase: New file.
80902         * modules/unictype/property-soft-dotted: New file.
80903         * modules/unictype/property-id-start: New file.
80904         * modules/unictype/property-other-id-start: New file.
80905         * modules/unictype/property-id-continue: New file.
80906         * modules/unictype/property-other-id-continue: New file.
80907         * modules/unictype/property-xid-start: New file.
80908         * modules/unictype/property-xid-continue: New file.
80909         * modules/unictype/property-pattern-white-space: New file.
80910         * modules/unictype/property-pattern-syntax: New file.
80911         * modules/unictype/property-join-control: New file.
80912         * modules/unictype/property-grapheme-base: New file.
80913         * modules/unictype/property-grapheme-extend: New file.
80914         * modules/unictype/property-other-grapheme-extend: New file.
80915         * modules/unictype/property-grapheme-link: New file.
80916         * modules/unictype/property-bidi-control: New file.
80917         * modules/unictype/property-bidi-left-to-right: New file.
80918         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80919         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80920         * modules/unictype/property-bidi-european-digit: New file.
80921         * modules/unictype/property-bidi-eur-num-separator: New file.
80922         * modules/unictype/property-bidi-eur-num-terminator: New file.
80923         * modules/unictype/property-bidi-arabic-digit: New file.
80924         * modules/unictype/property-bidi-common-separator: New file.
80925         * modules/unictype/property-bidi-block-separator: New file.
80926         * modules/unictype/property-bidi-segment-separator: New file.
80927         * modules/unictype/property-bidi-whitespace: New file.
80928         * modules/unictype/property-bidi-non-spacing-mark: New file.
80929         * modules/unictype/property-bidi-boundary-neutral: New file.
80930         * modules/unictype/property-bidi-pdf: New file.
80931         * modules/unictype/property-bidi-embedding-or-override: New file.
80932         * modules/unictype/property-bidi-other-neutral: New file.
80933         * modules/unictype/property-hex-digit: New file.
80934         * modules/unictype/property-ascii-hex-digit: New file.
80935         * modules/unictype/property-ideographic: New file.
80936         * modules/unictype/property-unified-ideograph: New file.
80937         * modules/unictype/property-radical: New file.
80938         * modules/unictype/property-ids-binary-operator: New file.
80939         * modules/unictype/property-ids-trinary-operator: New file.
80940         * modules/unictype/property-zero-width: New file.
80941         * modules/unictype/property-space: New file.
80942         * modules/unictype/property-non-break: New file.
80943         * modules/unictype/property-iso-control: New file.
80944         * modules/unictype/property-format-control: New file.
80945         * modules/unictype/property-dash: New file.
80946         * modules/unictype/property-hyphen: New file.
80947         * modules/unictype/property-punctuation: New file.
80948         * modules/unictype/property-line-separator: New file.
80949         * modules/unictype/property-paragraph-separator: New file.
80950         * modules/unictype/property-quotation-mark: New file.
80951         * modules/unictype/property-sentence-terminal: New file.
80952         * modules/unictype/property-terminal-punctuation: New file.
80953         * modules/unictype/property-currency-symbol: New file.
80954         * modules/unictype/property-math: New file.
80955         * modules/unictype/property-other-math: New file.
80956         * modules/unictype/property-paired-punctuation: New file.
80957         * modules/unictype/property-left-of-pair: New file.
80958         * modules/unictype/property-combining: New file.
80959         * modules/unictype/property-composite: New file.
80960         * modules/unictype/property-decimal-digit: New file.
80961         * modules/unictype/property-numeric: New file.
80962         * modules/unictype/property-diacritic: New file.
80963         * modules/unictype/property-extender: New file.
80964         * modules/unictype/property-ignorable-control: New file.
80965         * modules/unictype/property-test: New file.
80966         * modules/unictype/property-byname: New file.
80967         * modules/unictype/property-all: New file.
80968         * modules/unictype/scripts: New file.
80969         * modules/unictype/scripts-all: New file.
80970         * modules/unictype/block-of: New file.
80971         * modules/unictype/block-test: New file.
80972         * modules/unictype/block-list: New file.
80973         * modules/unictype/block-all: New file.
80974         * modules/unictype/syntax-c-whitespace: New file.
80975         * modules/unictype/syntax-java-whitespace: New file.
80976         * modules/unictype/syntax-c-ident: New file.
80977         * modules/unictype/syntax-java-ident: New file.
80978         * modules/unictype/ctype-alnum: New file.
80979         * modules/unictype/ctype-alpha: New file.
80980         * modules/unictype/ctype-cntrl: New file.
80981         * modules/unictype/ctype-digit: New file.
80982         * modules/unictype/ctype-graph: New file.
80983         * modules/unictype/ctype-lower: New file.
80984         * modules/unictype/ctype-print: New file.
80985         * modules/unictype/ctype-punct: New file.
80986         * modules/unictype/ctype-space: New file.
80987         * modules/unictype/ctype-upper: New file.
80988         * modules/unictype/ctype-xdigit: New file.
80989         * modules/unictype/ctype-blank: New file.
80990         * lib/unictype/bidi_byname.c: New file.
80991         * lib/unictype/bidi_name.c: New file.
80992         * lib/unictype/bidi_of.c: New file.
80993         * lib/unictype/bidi_test.c: New file.
80994         * lib/unictype/bitmap.h: New file.
80995         * lib/unictype/block_test.c: New file.
80996         * lib/unictype/blocks.c: New file.
80997         * lib/unictype/categ_C.c: New file.
80998         * lib/unictype/categ_Cc.c: New file.
80999         * lib/unictype/categ_Cf.c: New file.
81000         * lib/unictype/categ_Cn.c: New file.
81001         * lib/unictype/categ_Co.c: New file.
81002         * lib/unictype/categ_Cs.c: New file.
81003         * lib/unictype/categ_L.c: New file.
81004         * lib/unictype/categ_Ll.c: New file.
81005         * lib/unictype/categ_Lm.c: New file.
81006         * lib/unictype/categ_Lo.c: New file.
81007         * lib/unictype/categ_Lt.c: New file.
81008         * lib/unictype/categ_Lu.c: New file.
81009         * lib/unictype/categ_M.c: New file.
81010         * lib/unictype/categ_Mc.c: New file.
81011         * lib/unictype/categ_Me.c: New file.
81012         * lib/unictype/categ_Mn.c: New file.
81013         * lib/unictype/categ_N.c: New file.
81014         * lib/unictype/categ_Nd.c: New file.
81015         * lib/unictype/categ_Nl.c: New file.
81016         * lib/unictype/categ_No.c: New file.
81017         * lib/unictype/categ_P.c: New file.
81018         * lib/unictype/categ_Pc.c: New file.
81019         * lib/unictype/categ_Pd.c: New file.
81020         * lib/unictype/categ_Pe.c: New file.
81021         * lib/unictype/categ_Pf.c: New file.
81022         * lib/unictype/categ_Pi.c: New file.
81023         * lib/unictype/categ_Po.c: New file.
81024         * lib/unictype/categ_Ps.c: New file.
81025         * lib/unictype/categ_S.c: New file.
81026         * lib/unictype/categ_Sc.c: New file.
81027         * lib/unictype/categ_Sk.c: New file.
81028         * lib/unictype/categ_Sm.c: New file.
81029         * lib/unictype/categ_So.c: New file.
81030         * lib/unictype/categ_Z.c: New file.
81031         * lib/unictype/categ_Zl.c: New file.
81032         * lib/unictype/categ_Zp.c: New file.
81033         * lib/unictype/categ_Zs.c: New file.
81034         * lib/unictype/categ_and.c: New file.
81035         * lib/unictype/categ_and_not.c: New file.
81036         * lib/unictype/categ_byname.c: New file.
81037         * lib/unictype/categ_name.c: New file.
81038         * lib/unictype/categ_none.c: New file.
81039         * lib/unictype/categ_of.c: New file.
81040         * lib/unictype/categ_or.c: New file.
81041         * lib/unictype/categ_test.c: New file.
81042         * lib/unictype/combining.c: New file.
81043         * lib/unictype/ctype_alnum.c: New file.
81044         * lib/unictype/ctype_alpha.c: New file.
81045         * lib/unictype/ctype_blank.c: New file.
81046         * lib/unictype/ctype_cntrl.c: New file.
81047         * lib/unictype/ctype_digit.c: New file.
81048         * lib/unictype/ctype_graph.c: New file.
81049         * lib/unictype/ctype_lower.c: New file.
81050         * lib/unictype/ctype_print.c: New file.
81051         * lib/unictype/ctype_punct.c: New file.
81052         * lib/unictype/ctype_space.c: New file.
81053         * lib/unictype/ctype_upper.c: New file.
81054         * lib/unictype/ctype_xdigit.c: New file.
81055         * lib/unictype/decdigit.c: New file.
81056         * lib/unictype/digit.c: New file.
81057         * lib/unictype/identsyntaxmap.h: New file.
81058         * lib/unictype/mirror.c: New file.
81059         * lib/unictype/numeric.c: New file.
81060         * lib/unictype/pr_alphabetic.c: New file.
81061         * lib/unictype/pr_ascii_hex_digit.c: New file.
81062         * lib/unictype/pr_bidi_arabic_digit.c: New file.
81063         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
81064         * lib/unictype/pr_bidi_block_separator.c: New file.
81065         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
81066         * lib/unictype/pr_bidi_common_separator.c: New file.
81067         * lib/unictype/pr_bidi_control.c: New file.
81068         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
81069         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
81070         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
81071         * lib/unictype/pr_bidi_european_digit.c: New file.
81072         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
81073         * lib/unictype/pr_bidi_left_to_right.c: New file.
81074         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
81075         * lib/unictype/pr_bidi_other_neutral.c: New file.
81076         * lib/unictype/pr_bidi_pdf.c: New file.
81077         * lib/unictype/pr_bidi_segment_separator.c: New file.
81078         * lib/unictype/pr_bidi_whitespace.c: New file.
81079         * lib/unictype/pr_byname.c: New file.
81080         * lib/unictype/pr_byname.gperf: New file.
81081         * lib/unictype/pr_combining.c: New file.
81082         * lib/unictype/pr_composite.c: New file.
81083         * lib/unictype/pr_currency_symbol.c: New file.
81084         * lib/unictype/pr_dash.c: New file.
81085         * lib/unictype/pr_decimal_digit.c: New file.
81086         * lib/unictype/pr_default_ignorable_code_point.c: New file.
81087         * lib/unictype/pr_deprecated.c: New file.
81088         * lib/unictype/pr_diacritic.c: New file.
81089         * lib/unictype/pr_extender.c: New file.
81090         * lib/unictype/pr_format_control.c: New file.
81091         * lib/unictype/pr_grapheme_base.c: New file.
81092         * lib/unictype/pr_grapheme_extend.c: New file.
81093         * lib/unictype/pr_grapheme_link.c: New file.
81094         * lib/unictype/pr_hex_digit.c: New file.
81095         * lib/unictype/pr_hyphen.c: New file.
81096         * lib/unictype/pr_id_continue.c: New file.
81097         * lib/unictype/pr_id_start.c: New file.
81098         * lib/unictype/pr_ideographic.c: New file.
81099         * lib/unictype/pr_ids_binary_operator.c: New file.
81100         * lib/unictype/pr_ids_trinary_operator.c: New file.
81101         * lib/unictype/pr_ignorable_control.c: New file.
81102         * lib/unictype/pr_iso_control.c: New file.
81103         * lib/unictype/pr_join_control.c: New file.
81104         * lib/unictype/pr_left_of_pair.c: New file.
81105         * lib/unictype/pr_line_separator.c: New file.
81106         * lib/unictype/pr_logical_order_exception.c: New file.
81107         * lib/unictype/pr_lowercase.c: New file.
81108         * lib/unictype/pr_math.c: New file.
81109         * lib/unictype/pr_non_break.c: New file.
81110         * lib/unictype/pr_not_a_character.c: New file.
81111         * lib/unictype/pr_numeric.c: New file.
81112         * lib/unictype/pr_other_alphabetic.c: New file.
81113         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
81114         * lib/unictype/pr_other_grapheme_extend.c: New file.
81115         * lib/unictype/pr_other_id_continue.c: New file.
81116         * lib/unictype/pr_other_id_start.c: New file.
81117         * lib/unictype/pr_other_lowercase.c: New file.
81118         * lib/unictype/pr_other_math.c: New file.
81119         * lib/unictype/pr_other_uppercase.c: New file.
81120         * lib/unictype/pr_paired_punctuation.c: New file.
81121         * lib/unictype/pr_paragraph_separator.c: New file.
81122         * lib/unictype/pr_pattern_syntax.c: New file.
81123         * lib/unictype/pr_pattern_white_space.c: New file.
81124         * lib/unictype/pr_private_use.c: New file.
81125         * lib/unictype/pr_punctuation.c: New file.
81126         * lib/unictype/pr_quotation_mark.c: New file.
81127         * lib/unictype/pr_radical.c: New file.
81128         * lib/unictype/pr_sentence_terminal.c: New file.
81129         * lib/unictype/pr_soft_dotted.c: New file.
81130         * lib/unictype/pr_space.c: New file.
81131         * lib/unictype/pr_terminal_punctuation.c: New file.
81132         * lib/unictype/pr_test.c: New file.
81133         * lib/unictype/pr_titlecase.c: New file.
81134         * lib/unictype/pr_unassigned_code_value.c: New file.
81135         * lib/unictype/pr_unified_ideograph.c: New file.
81136         * lib/unictype/pr_uppercase.c: New file.
81137         * lib/unictype/pr_variation_selector.c: New file.
81138         * lib/unictype/pr_white_space.c: New file.
81139         * lib/unictype/pr_xid_continue.c: New file.
81140         * lib/unictype/pr_xid_start.c: New file.
81141         * lib/unictype/pr_zero_width.c: New file.
81142         * lib/unictype/scripts.c: New file.
81143         * lib/unictype/sy_c_ident.c: New file.
81144         * lib/unictype/sy_c_whitespace.c: New file.
81145         * lib/unictype/sy_java_ident.c: New file.
81146         * lib/unictype/sy_java_whitespace.c: New file.
81148         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
81149         Unicode 5.0.0.
81150         * lib/unictype/blocks.h: Likewise.
81151         * lib/unictype/categ_C.h: Likewise.
81152         * lib/unictype/categ_Cc.h: Likewise.
81153         * lib/unictype/categ_Cf.h: Likewise.
81154         * lib/unictype/categ_Cn.h: Likewise.
81155         * lib/unictype/categ_Co.h: Likewise.
81156         * lib/unictype/categ_Cs.h: Likewise.
81157         * lib/unictype/categ_L.h: Likewise.
81158         * lib/unictype/categ_Ll.h: Likewise.
81159         * lib/unictype/categ_Lm.h: Likewise.
81160         * lib/unictype/categ_Lo.h: Likewise.
81161         * lib/unictype/categ_Lt.h: Likewise.
81162         * lib/unictype/categ_Lu.h: Likewise.
81163         * lib/unictype/categ_M.h: Likewise.
81164         * lib/unictype/categ_Mc.h: Likewise.
81165         * lib/unictype/categ_Me.h: Likewise.
81166         * lib/unictype/categ_Mn.h: Likewise.
81167         * lib/unictype/categ_N.h: Likewise.
81168         * lib/unictype/categ_Nd.h: Likewise.
81169         * lib/unictype/categ_Nl.h: Likewise.
81170         * lib/unictype/categ_No.h: Likewise.
81171         * lib/unictype/categ_P.h: Likewise.
81172         * lib/unictype/categ_Pc.h: Likewise.
81173         * lib/unictype/categ_Pd.h: Likewise.
81174         * lib/unictype/categ_Pe.h: Likewise.
81175         * lib/unictype/categ_Pf.h: Likewise.
81176         * lib/unictype/categ_Pi.h: Likewise.
81177         * lib/unictype/categ_Po.h: Likewise.
81178         * lib/unictype/categ_Ps.h: Likewise.
81179         * lib/unictype/categ_S.h: Likewise.
81180         * lib/unictype/categ_Sc.h: Likewise.
81181         * lib/unictype/categ_Sk.h: Likewise.
81182         * lib/unictype/categ_Sm.h: Likewise.
81183         * lib/unictype/categ_So.h: Likewise.
81184         * lib/unictype/categ_Z.h: Likewise.
81185         * lib/unictype/categ_Zl.h: Likewise.
81186         * lib/unictype/categ_Zp.h: Likewise.
81187         * lib/unictype/categ_Zs.h: Likewise.
81188         * lib/unictype/categ_of.h: Likewise.
81189         * lib/unictype/combining.h: Likewise.
81190         * lib/unictype/ctype_alnum.h: Likewise.
81191         * lib/unictype/ctype_alpha.h: Likewise.
81192         * lib/unictype/ctype_blank.h: Likewise.
81193         * lib/unictype/ctype_cntrl.h: Likewise.
81194         * lib/unictype/ctype_digit.h: Likewise.
81195         * lib/unictype/ctype_graph.h: Likewise.
81196         * lib/unictype/ctype_lower.h: Likewise.
81197         * lib/unictype/ctype_print.h: Likewise.
81198         * lib/unictype/ctype_punct.h: Likewise.
81199         * lib/unictype/ctype_space.h: Likewise.
81200         * lib/unictype/ctype_upper.h: Likewise.
81201         * lib/unictype/ctype_xdigit.h: Likewise.
81202         * lib/unictype/decdigit.h: Likewise.
81203         * lib/unictype/digit.h: Likewise.
81204         * lib/unictype/mirror.h: Likewise.
81205         * lib/unictype/numeric.h: Likewise.
81206         * lib/unictype/pr_alphabetic.h: Likewise.
81207         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
81208         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
81209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
81210         * lib/unictype/pr_bidi_block_separator.h: Likewise.
81211         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
81212         * lib/unictype/pr_bidi_common_separator.h: Likewise.
81213         * lib/unictype/pr_bidi_control.h: Likewise.
81214         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
81215         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
81216         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
81217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
81218         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
81219         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
81220         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
81221         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
81222         * lib/unictype/pr_bidi_pdf.h: Likewise.
81223         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
81224         * lib/unictype/pr_bidi_whitespace.h: Likewise.
81225         * lib/unictype/pr_combining.h: Likewise.
81226         * lib/unictype/pr_composite.h: Likewise.
81227         * lib/unictype/pr_currency_symbol.h: Likewise.
81228         * lib/unictype/pr_dash.h: Likewise.
81229         * lib/unictype/pr_decimal_digit.h: Likewise.
81230         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
81231         * lib/unictype/pr_deprecated.h: Likewise.
81232         * lib/unictype/pr_diacritic.h: Likewise.
81233         * lib/unictype/pr_extender.h: Likewise.
81234         * lib/unictype/pr_format_control.h: Likewise.
81235         * lib/unictype/pr_grapheme_base.h: Likewise.
81236         * lib/unictype/pr_grapheme_extend.h: Likewise.
81237         * lib/unictype/pr_grapheme_link.h: Likewise.
81238         * lib/unictype/pr_hex_digit.h: Likewise.
81239         * lib/unictype/pr_hyphen.h: Likewise.
81240         * lib/unictype/pr_id_continue.h: Likewise.
81241         * lib/unictype/pr_id_start.h: Likewise.
81242         * lib/unictype/pr_ideographic.h: Likewise.
81243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
81244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
81245         * lib/unictype/pr_ignorable_control.h: Likewise.
81246         * lib/unictype/pr_iso_control.h: Likewise.
81247         * lib/unictype/pr_join_control.h: Likewise.
81248         * lib/unictype/pr_left_of_pair.h: Likewise.
81249         * lib/unictype/pr_line_separator.h: Likewise.
81250         * lib/unictype/pr_logical_order_exception.h: Likewise.
81251         * lib/unictype/pr_lowercase.h: Likewise.
81252         * lib/unictype/pr_math.h: Likewise.
81253         * lib/unictype/pr_non_break.h: Likewise.
81254         * lib/unictype/pr_not_a_character.h: Likewise.
81255         * lib/unictype/pr_numeric.h: Likewise.
81256         * lib/unictype/pr_other_alphabetic.h: Likewise.
81257         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
81258         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
81259         * lib/unictype/pr_other_id_continue.h: Likewise.
81260         * lib/unictype/pr_other_id_start.h: Likewise.
81261         * lib/unictype/pr_other_lowercase.h: Likewise.
81262         * lib/unictype/pr_other_math.h: Likewise.
81263         * lib/unictype/pr_other_uppercase.h: Likewise.
81264         * lib/unictype/pr_paired_punctuation.h: Likewise.
81265         * lib/unictype/pr_paragraph_separator.h: Likewise.
81266         * lib/unictype/pr_pattern_syntax.h: Likewise.
81267         * lib/unictype/pr_pattern_white_space.h: Likewise.
81268         * lib/unictype/pr_private_use.h: Likewise.
81269         * lib/unictype/pr_punctuation.h: Likewise.
81270         * lib/unictype/pr_quotation_mark.h: Likewise.
81271         * lib/unictype/pr_radical.h: Likewise.
81272         * lib/unictype/pr_sentence_terminal.h: Likewise.
81273         * lib/unictype/pr_soft_dotted.h: Likewise.
81274         * lib/unictype/pr_space.h: Likewise.
81275         * lib/unictype/pr_terminal_punctuation.h: Likewise.
81276         * lib/unictype/pr_titlecase.h: Likewise.
81277         * lib/unictype/pr_unassigned_code_value.h: Likewise.
81278         * lib/unictype/pr_unified_ideograph.h: Likewise.
81279         * lib/unictype/pr_uppercase.h: Likewise.
81280         * lib/unictype/pr_variation_selector.h: Likewise.
81281         * lib/unictype/pr_white_space.h: Likewise.
81282         * lib/unictype/pr_xid_continue.h: Likewise.
81283         * lib/unictype/pr_xid_start.h: Likewise.
81284         * lib/unictype/pr_zero_width.h: Likewise.
81285         * lib/unictype/scripts.h: Likewise.
81286         * lib/unictype/scripts_byname.gperf: Likewise.
81287         * lib/unictype/sy_c_ident.h: Likewise.
81288         * lib/unictype/sy_c_whitespace.h: Likewise.
81289         * lib/unictype/sy_java_ident.h: Likewise.
81290         * lib/unictype/sy_java_whitespace.h: Likewise.
81292         * lib/unictype/Makefile: New file.
81293         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
81294         glibc.
81295         * lib/unictype/3level.h: New file, copied from glibc.
81296         * lib/unictype/3levelbit.h: New file.
81298 2007-11-11  Bruno Haible  <bruno@clisp.org>
81300         * modules/gperf: New file.
81301         * modules/iconv_open (Depends-on): Add it.
81302         (Makefile.am): Remove the GPERF definition.
81304 2007-11-11  Bruno Haible  <bruno@clisp.org>
81306         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
81307         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
81309 2007-11-11  Bruno Haible  <bruno@clisp.org>
81311         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
81312         (usage): Remove function.
81314 2007-11-11  Bruno Haible  <bruno@clisp.org>
81316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
81317         gl_FUNC_CEILF_LIBS.
81318         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
81319         gl_FUNC_CEIL_LIBS.
81320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
81321         gl_FUNC_CEILL_LIBS.
81322         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
81323         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
81324         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
81326 2007-11-11  Bruno Haible  <bruno@clisp.org>
81328         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
81329         roundf were declared but do not exist on functions.
81330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
81331         roundl were declared but do not exist on functions.
81332         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
81333         HAVE_FLOORL_AND_CEILL, respectively.
81334         Needed for Sun C on Solaris 10.
81336 2007-11-11  Bruno Haible  <bruno@clisp.org>
81338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
81339         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
81340         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
81341         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
81342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
81343         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
81344         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
81345         HAVE_DECL_ROUNDF.
81346         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
81347         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
81348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
81349         of HAVE_DECL_ROUND*.
81350         * modules/math (Makefile.am): Update.
81352 2007-11-10  Bruno Haible  <bruno@clisp.org>
81354         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
81355         ptrdiff_t as m4/intl.m4.
81357 2007-11-10  Jim Meyering  <meyering@redhat.com>
81359         Avoid link failure for the argmatch test.
81360         * tests/test-argmatch.c (usage): Define function to avoid a link
81361         failure: argmatch_die requires a usage function.
81363 2007-11-09  Bruno Haible  <bruno@clisp.org>
81365         * doc/functions/snprintf.texi: Mention BeOS deficiency.
81366         * doc/functions/vsnprintf.texi: Likewise.
81367         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
81368         with a size argument < 2.
81370 2007-11-09  Bruno Haible  <bruno@clisp.org>
81372         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
81373         buffer. Fixes an inefficiency introduced on 2007-11-03.
81375 2007-11-09  Bruno Haible  <bruno@clisp.org>
81377         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
81378         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
81380 2007-11-08  Jim Meyering  <meyering@redhat.com>
81382         Change cache variable name prefix "jm_" to "gl_" everywhere.
81383         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
81384         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
81385         * m4/uptime.m4: s/gl_/jm_/
81387 2007-11-07  Bruno Haible  <bruno@clisp.org>
81389         Update to GNU gettext 0.17.
81390         * m4/intl.m4: Update to GNU gettext 0.17.
81391         * m4/po.m4: Likewise.
81392         * modules/gettext (Files): Remove m4/ulonglong.m4.
81393         (configure.ac): Require gettext infrastructure from version 0.17.
81395 2007-11-06  Bruno Haible  <bruno@clisp.org>
81397         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
81398         symbolic values are not defined in a public header.
81399         * lib/freadable.c (freadable) [QNX]: Likewise.
81400         * lib/freadahead.c (freadahead) [QNX]: Likewise.
81401         * lib/freading.c (freading) [QNX]: Likewise.
81402         * lib/fseterr.c (fseterr) [QNX]: Likewise.
81403         * lib/fwritable.c (fwritable) [QNX]: Likewise.
81404         * lib/fwriting.c (fwriting) [QNX]: Likewise.
81405         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
81406         Reported by Alain Magloire.
81408         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
81410 2007-11-05  Bruno Haible  <bruno@clisp.org>
81412         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
81413         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
81414         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
81415         Reported by Eric Blake.
81417 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81418             Bruno Haible  <bruno@clisp.org>
81420         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
81421         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
81422         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
81423         (malloc): Undefine also before including <stdlib.h>.
81424         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
81425         Needed on OSF/1 4.0.
81427 2007-11-05  Jim Meyering  <meyering@redhat.com>
81429         git-version-gen: sync from coreutils.
81430         * build-aux/git-version-gen: Add comments.
81431         Change the first '-' to '.' in the snapshot version string,
81432         e.g., 6.9-377-08144 -> 6.9.377-08144
81433         Remove first parameter.
81434         Don't declare a version "-dirty" merely because a time
81435         stamp has changed.
81437 2007-11-04  Bruno Haible  <bruno@clisp.org>
81439         * lib/lock.h: Protect all macro definitions containing an 'if'
81440         statement through a "do { ... } while (0)".
81441         * lib/tls.h: Likewise.
81443 2007-11-04  Bruno Haible  <bruno@clisp.org>
81445         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
81447 2007-11-04  Bruno Haible  <bruno@clisp.org>
81449         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
81450         * modules/fprintf-posix (Depends-on): Add nocrash.
81451         * modules/snprintf-posix (Depends-on): Likewise.
81452         * modules/sprintf-posix (Depends-on): Likewise.
81453         * modules/vasnprintf-posix (Depends-on): Likewise.
81454         * modules/vasprintf-posix (Depends-on): Likewise.
81455         * modules/vfprintf-posix (Depends-on): Likewise.
81456         * modules/vsnprintf-posix (Depends-on): Likewise.
81457         * modules/vsprintf-posix (Depends-on): Likewise.
81458         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81459         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81462         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81466 2007-11-04  Bruno Haible  <bruno@clisp.org>
81468         * modules/nocrash: New file.
81469         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
81470         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
81472 2007-11-04  Bruno Haible  <bruno@clisp.org>
81474         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
81475         precision handling.
81476         * tests/test-vasprintf-posix.c (test_function): Likewise.
81477         * tests/test-snprintf-posix.h (test_function): Likewise.
81478         * tests/test-sprintf-posix.h (test_function): Likewise.
81480         Fix *printf behaviour for large precisions on mingw and BeOS.
81481         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
81482         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
81483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
81484         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81486         gl_PRINTF_PRECISION and test its result. Invoke
81487         gl_PREREQ_VASNPRINTF_PRECISION.
81488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81495         * doc/functions/fprintf.texi: Update.
81496         * doc/functions/printf.texi: Update.
81497         * doc/functions/snprintf.texi: Update.
81498         * doc/functions/sprintf.texi: Update.
81499         * doc/functions/vfprintf.texi: Update.
81500         * doc/functions/vprintf.texi: Update.
81501         * doc/functions/vsnprintf.texi: Update.
81502         * doc/functions/vsprintf.texi: Update.
81504 2007-11-04  Bruno Haible  <bruno@clisp.org>
81506         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
81508 2007-11-04  Bruno Haible  <bruno@clisp.org>
81510         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
81511         Reported by Sylvain Beucler <beuc@gnu.org>.
81513 2007-11-03  Bruno Haible  <bruno@clisp.org>
81515         * tests/test-fprintf-posix2.sh: New file.
81516         * tests/test-fprintf-posix2.c: New file.
81517         * modules/fprintf-posix-tests (Files): Add them.
81518         (TESTS): Add test-fprintf-posix2.sh.
81519         (configure.ac): Check for getrlimit and setrlimit.
81520         (check_PROGRAMS): Add test-fprintf-posix2.
81522         * tests/test-printf-posix2.sh: New file.
81523         * tests/test-printf-posix2.c: New file.
81524         * modules/printf-posix-tests (Files): Add them.
81525         (TESTS): Add test-printf-posix2.sh.
81526         (configure.ac): Check for getrlimit and setrlimit.
81527         (check_PROGRAMS): Add test-printf-posix2.
81529         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
81530         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
81531         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
81532         (decode_double): New function, copied from decode_long_double.
81533         (scale10_round_decimal_decoded): New function, extracted from
81534         scale10_round_decimal_long_double.
81535         (scale10_round_decimal_long_double): Use it.
81536         (scale10_round_decimal_double): New function.
81537         (floorlog10): New function.
81538         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
81539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
81540         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81542         gl_PRINTF_ENOMEM and test its result. Invoke
81543         gl_PREREQ_VASNPRINTF_ENOMEM.
81544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81551         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
81552         * modules/snprintf-posix (Depends-on): Likewise.
81553         * modules/sprintf-posix (Depends-on): Likewise.
81554         * modules/vasnprintf-posix (Depends-on): Likewise.
81555         * modules/vasprintf-posix (Depends-on): Likewise.
81556         * modules/vfprintf-posix (Depends-on): Likewise.
81557         * modules/vsnprintf-posix (Depends-on): Likewise.
81558         * modules/vsprintf-posix (Depends-on): Likewise.
81559         * doc/functions/fprintf.texi: Update.
81560         * doc/functions/printf.texi: Update.
81561         * doc/functions/snprintf.texi: Update.
81562         * doc/functions/sprintf.texi: Update.
81563         * doc/functions/vfprintf.texi: Update.
81564         * doc/functions/vprintf.texi: Update.
81565         * doc/functions/vsnprintf.texi: Update.
81566         * doc/functions/vsprintf.texi: Update.
81568 2007-11-03  Bruno Haible  <bruno@clisp.org>
81570         * modules/frexp-nolibm-tests: New file.
81572         * modules/frexp-nolibm: New file.
81573         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
81575 2007-11-03  Bruno Haible  <bruno@clisp.org>
81577         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
81578         value is C99 compliant.
81579         Needed for OSF/1 5.1.
81581 2007-11-03  Bruno Haible  <bruno@clisp.org>
81583         Fix out-of-memory handling of vasnprintf.
81584         * lib/printf-parse.c: Include <errno.h>.
81585         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
81586         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
81587         is already set.
81589 2007-11-02  Eric Blake  <ebb9@byu.net>
81591         Fix tests on cygwin.
81592         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
81594 2007-11-01  Bruno Haible  <bruno@clisp.org>
81596         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
81597         warning.
81598         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
81599         needed for POSIX compatibility.
81601 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81603         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
81604         for compatibility with GNU.
81606 2007-11-01  Bruno Haible  <bruno@clisp.org>
81608         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
81609         (putenv): Renamed from rpl_putenv. Change argument type from
81610         'const char *' to 'char *'.
81611         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
81612         of defining putenv in config.h, just set REPLACE_PUTENV.
81613         * modules/putenv (Depends-on): Add stdlib.
81614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81615         (Include): Use <stdlib.h>.
81616         * lib/stdlib.in.h (putenv): New declaration.
81617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
81618         REPLACE_PUTENV.
81619         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
81620         REPLACE_PUTENV.
81621         Needed for MacOS X 10.5.0.
81622         Reported by Peter O'Gorman <peter@pogma.com>.
81624 2007-11-01  Jim Meyering  <meyering@redhat.com>
81626         Treat an empty date string exactly like "0".
81627         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
81628         if the remaining date string (to be parsed) is empty, use "0".
81629         Reported by Mischa Molhoek and discussed in this thread:
81630         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
81632 2007-10-31  Bruno Haible  <bruno@clisp.org>
81634         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
81635         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
81636         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
81637         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
81638         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
81639         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
81641 2007-10-31  Bruno Haible  <bruno@clisp.org>
81643         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
81644         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
81645         (AC_TYPE_LONG_LONG_INT): Use it.
81646         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
81647         it as well.
81648         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
81649         to m4/longlong.m4.
81650         * modules/stdint (Files): Remove m4/ulonglong.m4.
81651         * modules/strtoull (Files): Use m4/longlong.m4 instead of
81652         m4/ulonglong.m4.
81653         * modules/strtoumax (Files): Likewise.
81655 2007-10-30  Bruno Haible  <bruno@clisp.org>
81657         * modules/xvasprintf-posix: New file.
81658         Suggested by Eric Blake.
81660 2007-10-30  Bruno Haible  <bruno@clisp.org>
81662         * modules/xprintf-posix-tests: New file.
81663         * tests/test-xprintf-posix.sh: New file.
81664         * tests/test-xprintf-posix.c: New file.
81665         * tests/test-xfprintf-posix.c: New file.
81667         * modules/xprintf-posix: New file.
81669 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81671         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
81672         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
81673         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
81675 2007-10-29  Bruno Haible  <bruno@clisp.org>
81677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
81678         contain the special marker '_cv_'.
81679         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81680         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81682         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
81683         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81684         Reported by Ralf Wildenhues.
81686 2007-10-29  Bruno Haible  <bruno@clisp.org>
81688         * gnulib-tool (func_import): When --lgpl is not specified, set
81689         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
81690         GPLv3.
81691         Reported by Simon Josefsson.
81693 2007-10-28  Bruno Haible  <bruno@clisp.org>
81695         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
81696         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
81697         HAVE_DECL_ISFINITE.
81698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81699         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
81700         HAVE_DECL_ISFINITE.
81702 2007-10-28  Bruno Haible  <bruno@clisp.org>
81704         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
81705         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
81707 2007-10-28  Bruno Haible  <bruno@clisp.org>
81709         Fix link errors with Sun C 5.0 on Solaris 10.
81710         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
81711         function is declared but not present in the compiler's libm.
81712         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
81713         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
81714         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
81715         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
81716         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
81717         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
81718         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
81719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81720         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
81721         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
81722         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
81723         HAVE_DECL_FLOORL.
81725 2007-10-28  Bruno Haible  <bruno@clisp.org>
81727         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
81728         gl_FUNC_FLOORL. Cache the result.
81729         (gl_FUNC_FLOORL): Use it.
81730         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
81731         gl_FUNC_CEILL. Cache the result.
81732         (gl_FUNC_CEILL): Use it.
81734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
81735         gl_FUNC_FLOOR. Cache the result.
81736         (gl_FUNC_FLOOR): Use it.
81737         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
81738         gl_FUNC_CEIL. Cache the result.
81739         (gl_FUNC_CEIL): Use it.
81741         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
81742         gl_FUNC_FLOORF. Cache the result.
81743         (gl_FUNC_FLOORF): Use it.
81744         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
81745         gl_FUNC_CEILF. Cache the result.
81746         (gl_FUNC_CEILF): Use it.
81748 2007-10-28  Bruno Haible  <bruno@clisp.org>
81750         * gnulib-tool: Allow specifying the LGPL version number through
81751         --lgpl=2 or --lgpl=3.
81752         (func_usage): Document --lgpl with argument.
81753         Handle --lgpl=... arguments.
81754         (func_import): Recognize also gl_LGPL calls with an argument. When
81755         --lgpl=2 is used and the module's license is just LGPL, report an
81756         error. Set sed_transform_lib_file according to the lgpl variable. In
81757         the generated files, use --lgpl or gl_LGPL invocations with argument,
81758         if necessary.
81759         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
81760         an LGPv2+ license.
81761         * doc/gnulib-tool.texi (Modified imports): Update explanation of
81762         gl_LGPL macro.
81764 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81765             Bruno Haible  <bruno@clisp.org>
81767         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
81768         (u16_uctomb_aux): Likewise.
81769         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
81770         !HAVE_INLINE.
81771         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
81773 2007-10-28  Bruno Haible  <bruno@clisp.org>
81775         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
81776         Invoke AM_GETTEXT_OPTION if it exists.
81777         * modules/vasprintf: Likewise.
81778         * modules/verror: Likewise.
81779         * modules/xprintf: Likewise.
81780         * modules/xvasprintf: Likewise.
81782 2007-10-27  Ben Pfaff  <blp@gnu.org>
81784         * lib/math.in.h: Define isfinite macro and prototypes for
81785         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
81786         implementations.
81787         * m4/math_h.m4: New substitutions for isfinite module.
81788         * lib/isfinite.c: New file.
81789         * m4/isfinite.m4: New file.
81790         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
81791         * modules/isfinite: New file.
81792         * modules/isfinite-tests: New file.
81793         * tests/tests-isfinite.c: New file.
81794         * doc/functions/isfinite.texi: Mention isfinite module.
81795         * MODULES.html.sh: Mention new module.
81797 2007-10-27  Ben Pfaff  <blp@gnu.org>
81799         Ralf Wildenhues reported that Tru64 4.0D declares the round
81800         functions but does not have definitions.
81801         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
81802         cannot be found in any library, set the output variable to
81803         "missing" instead of "".
81804         * m4/round.m4: Also use our substitute if we cannot find round in
81805         any library, even if it is declared.
81806         * m4/roundf.m4: Likewise for roundf.
81807         * m4/roundl.m4: Likewise for roundl.
81808         * lib/math.in.h: Undefine roundf, round, roundl before defining
81809         their replacements, to allow for hypothetical systems where these
81810         may be defined as macros but not available in libraries.
81812 2007-10-27  Bruno Haible  <bruno@clisp.org>
81814         * doc/gnulib.texi: Invoke @firstparagraphindent.
81815         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
81816         changes in gnulib.
81817         (Source changes): New section.
81819 2007-10-26  Bruno Haible  <bruno@clisp.org>
81821         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
81822         borrowed from autoconf.
81824 2007-10-26  Bruno Haible  <bruno@clisp.org>
81826         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
81827         strerror returned the empty string. Needed on HP-UX 11.00.
81829 2007-10-24  Micah Cowan  <micah@cowan.name>
81831         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
81832         * build-aux/bootstrap: Remove support for now-unnecessary option,
81833         --cvs-user, and envvars CVS_USER, CVS_RSH.
81835 2007-10-24  Jim Meyering  <meyering@redhat.com>
81837         Avoid diagnostics from sha1sum when there is no cached checksum.
81838         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
81839         if the po.s1 file hasn't been created yet.
81841         * build-aux/bootstrap: Sync from coreutils:
81842         2007-10-24  Jim Meyering  <meyering@redhat.com>
81843         Get gnulib from the git repository, not from an obsolete cvs one.
81844         * build-aux/bootstrap: Suggestion from Micah Cowan.
81845         2007-10-04  Jim Meyering  <jim@meyering.net>
81846         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
81847         (update_po_files): Work also when there are no .po files in po/.
81849 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81851         * README: Append ".git" to git and cg examples.
81852         Problem reported by Benoit Sigoure.
81854 2007-10-23  Micah Cowan  <micah@cowan.name>
81856         * users.txt: Add wget.
81858 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81860         Fix linking of some unistdio tests on FreeBSD.
81861         * modules/unistdio/u16-vsnprintf-tests
81862         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81863         * modules/unistdio/u16-vsprintf-tests
81864         (test_u16_vsnprintf1_LDADD): Likewise.
81865         * modules/unistdio/u32-vsnprintf-tests
81866         (test_u32_vsnprintf1_LDADD): Likewise.
81867         * modules/unistdio/u32-vsprintf-tests
81868         (test_u32_vsprintf1_LDADD): Likewise.
81869         * modules/unistdio/u8-vsnprintf-tests
81870         (test_u8_vsnprintf1_LDADD): Likewise.
81871         * modules/unistdio/u8-vsprintf-tests
81872         (test_u8_vsprintf1_LDADD): Likewise.
81873         * modules/unistdio/ulc-vsnprintf-tests
81874         (test_ulc_vsnprintf1_LDADD): Likewise.
81875         * modules/unistdio/ulc-vsprintf-tests
81876         (test_ulc_vsprintf1_LDADD): Likewise.
81878         Fix linking of some uniconv tests on FreeBSD.
81879         * modules/uniconv/u16-conv-from-enc-tests
81880         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81881         * modules/uniconv/u16-conv-to-enc-tests
81882         (test_u16_conv_to_enc_LDADD): Likewise.
81883         * modules/uniconv/u16-strconv-from-enc-tests
81884         (test_u16_strconv_from_enc_LDADD): Likewise.
81885         * modules/uniconv/u16-strconv-to-enc-tests
81886         (test_u16_strconv_to_enc_LDADD): Likewise.
81887         * modules/uniconv/u32-conv-from-enc-tests
81888         (test_u32_conv_from_enc_LDADD): Likewise.
81889         * modules/uniconv/u32-conv-to-enc-tests
81890         (test_u32_conv_to_enc_LDADD): Likewise.
81891         * modules/uniconv/u32-strconv-from-enc-tests
81892         (test_u32_strconv_from_enc_LDADD): Likewise.
81893         * modules/uniconv/u32-strconv-to-enc-tests
81894         (test_u32_strconv_to_enc_LDADD): Likewise.
81895         * modules/uniconv/u8-conv-from-enc-tests
81896         (test_u8_conv_from_enc_LDADD): Likewise.
81897         * modules/uniconv/u8-conv-to-enc-tests
81898         (test_u8_conv_to_enc_LDADD): Likewise.
81899         * modules/uniconv/u8-strconv-from-enc-tests
81900         (test_u8_strconv_from_enc_LDADD): Likewise.
81901         * modules/uniconv/u8-strconv-to-enc-tests
81902         (test_u8_strconv_to_enc_LDADD): Likewise.
81904 2007-10-22  Bruno Haible  <bruno@clisp.org>
81906         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81907         size.
81909 2007-10-22  Eric Blake  <ebb9@byu.net>
81911         Tweak x*printf documentation.
81912         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81913         variable name and comments.
81914         Suggested by Bruno Haible.
81916 2007-10-22  Bruno Haible  <bruno@clisp.org>
81918         * lib/acl.c (copy_acl): Fix file name in comment.
81920 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81922         Fix Tru64 problem with stdbool.h.
81923         * lib/stdbool.in.h (false, true):
81924         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81925         Don't declare as an enum in this situation; it runs afoul of Tru64.
81926         Problem reported by Steven M. Schweda in
81927         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81929 2007-10-22  Eric Blake  <ebb9@byu.net>
81931         Also wrap vf?printf.
81932         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81933         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81934         (xvprintf, xvfprintf): New functions.
81936 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81938         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81939         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81941         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81942         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81944 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81946         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81947         by Bruno Haible.
81949 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81951         * lib/getloadavg.c
81952         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81953         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81955         * tests/test-i-ring.c: Work for C89.
81957 2007-10-22  Bruno Haible  <bruno@clisp.org>
81959         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81960         -1u, in preprocessor expression, so that we don't test for the bug
81961         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81962         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81964 2007-10-22  Eric Blake  <ebb9@byu.net>
81966         * tests/test-yesno.sh: Silence stderr during test.
81968 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81970         * modules/crypto/gc-camellia: New file.
81972         * m4/gc-camellia.m4: New file.
81974         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81976         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81980         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81981         --help to stdout.  Reported by sms@antinode.org (Steven
81982         M. Schweda).
81984 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81986         * users.txt: Fix link to libksba.
81988 2007-10-21  Ben Pfaff  <blp@gnu.org>
81990         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81991         round.c roundf implementation that depends on floorf and ceilf to
81992         be tested unconditionally.
81994 2007-10-21  Ben Pfaff  <blp@gnu.org>
81996         * m4/check-libm-func.m4: Removed.
81997         * m4/check-math-lib.m4: New file.
81998         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81999         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
82000         definition and lack of AC_LIBOBJ([roundf]).
82001         * m4/roundl.m4: Ditto, and similarly for roundl.
82002         * modules/round: Reference new m4 file.
82003         * modules/roundf: Ditto.
82004         * modules/roundl: Ditto.
82005         * tests/test-round2.c (main): Use ROUND instead of round.
82006         Bug report from Bruno Haible.
82008 2007-10-21  Bruno Haible  <bruno@clisp.org>
82010         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
82011         context.
82013 2007-10-21  Bruno Haible  <bruno@clisp.org>
82015         * tests/test-wcwidth.c (main): Allow negative result for some control
82016         characters.
82018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
82019         Needed on OSF/1 5.1.
82021 2007-10-21  Bruno Haible  <bruno@clisp.org>
82023         * tests/test-floorf1.c: Include isnanf.h.
82024         (main): Use isnanf() instead of isnan().
82025         * tests/test-ceilf1.c: Include isnanf.h.
82026         (main): Use isnanf() instead of isnan().
82027         * tests/test-truncf1.c: Include isnanf.h.
82028         (main): Use isnanf() instead of isnan().
82029         * tests/test-roundf1.c: Include isnanf.h.
82030         (main): Use isnanf() instead of isnan().
82032 2007-10-21  Eric Blake  <ebb9@byu.net>
82034         * users.txt: Update URL for m4.
82036 2007-10-21  Bruno Haible  <bruno@clisp.org>
82038         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
82040 2007-10-21  Bruno Haible  <bruno@clisp.org>
82042         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
82043         Git's management files if the CVS files are not present.
82045 2007-10-20  Bruno Haible  <bruno@clisp.org>
82047         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
82048         gcc-3.4.x.
82050 2007-10-20  Ben Pfaff  <blp@gnu.org>
82052         * lib/math.in.h: Declare round, roundf, roundl if we are providing
82053         implementations.
82054         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
82055         * lib/round.c: New file.
82056         * lib/roundf.c: New file.
82057         * lib/roundl.c: New file.
82058         * m4/round.m4: New file.
82059         * m4/roundf.m4: New file.
82060         * m4/roundl.m4: New file.
82061         * m4/check-libm-func-m4: New file.
82062         * modules/math: Replace round, roundf, roundl related @VARS@ in
82063         math.in.h.
82064         * modules/round: New file.
82065         * modules/round-tests: New file.
82066         * modules/roundf: New file.
82067         * modules/roundf-tests: New file.
82068         * modules/roundl: New file.
82069         * modules/roundl-tests: New file.
82070         * tests/test-round1.c: New file.
82071         * tests/test-round2.c: New file.
82072         * tests/test-roundf1.c: New file.
82073         * tests/test-roundf2.c: New file.
82074         * tests/test-roundl.c: New file.
82075         * doc/functions/round.texi: Mention round module.
82076         * doc/functions/roundf.texi: Mention roundf module.
82077         * doc/functions/roundl.texi: Mention roundl module.
82078         * MODULES.html.sh: Mention new modules.
82079         Thanks to Bruno Haible for suggestions.
82081 2007-10-20  Jim Meyering  <meyering@redhat.com>
82083         * lib/xprintf.c: Include <config.h> unconditionally.
82085         Change xprintf's license to GPL.
82086         * modules/xprintf (License): s/LGPL/GPL/, since this module
82087         depends on modules (exit and exitfail) which are GPL.
82088         Suggestion from Bruno Haible.
82090         xprintf fixes.
82091         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
82092         Use a clearer diagnostic.
82093         Patch from Bruno Haible.
82095 2007-10-20  Bruno Haible  <bruno@clisp.org>
82097         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
82098         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
82099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82101 2007-10-20  Bruno Haible  <bruno@clisp.org>
82103         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
82104         precision in the comparison result > x - 1 or similar.
82105         * tests/test-ceilf2.c (correct_result_p): Likewise.
82106         * tests/test-truncf2.c (correct_result_p): Likewise.
82107         * tests/test-trunc2.c (correct_result_p): Likewise.
82108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82110 2007-10-20  Bruno Haible  <bruno@clisp.org>
82112         * modules/ceil: New file.
82113         * m4/ceil.m4: New file.
82114         * doc/functions/ceil.texi: Mention the 'ceil' module.
82116 2007-10-20  Bruno Haible  <bruno@clisp.org>
82118         * modules/floor: New file.
82119         * m4/floor.m4: New file.
82120         * doc/functions/floor.texi: Mention the 'floor' module.
82122 2007-10-20  Bruno Haible  <bruno@clisp.org>
82124         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
82125         of %a.
82126         * modules/floorf-tests (Depends-on): Likewise.
82127         * modules/truncf-tests (Depends-on): Likewise.
82128         * modules/trunc-tests (Depends-on): Likewise.
82129         Reported by Ben Pfaff.
82131 2007-10-19  Jim Meyering  <meyering@redhat.com>
82133         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
82134         Don't bother testing specific errno values.  Just test ferror.
82136         New module: xprintf
82137         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
82139 2007-10-19  Bruno Haible  <bruno@clisp.org>
82141         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
82142         syntax.
82143         * modules/javaexec (Makefile.am): Likewise.
82144         * modules/relocatable-prog (Makefile.am): Likewise.
82145         Suggested by Jim Meyering.
82147 2007-10-18  Bruno Haible  <bruno@clisp.org>
82149         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
82150         Reported by Jim Meyering.
82152 2007-10-18  Eric Blake  <ebb9@byu.net>
82154         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
82156 2007-10-18  Bruno Haible  <bruno@clisp.org>
82158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
82159         the format string into writable memory. Needed in Fortify conditions.
82161 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
82162             Bruno Haible  <bruno@clisp.org>
82164         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
82165         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
82166         * modules/trim (Depends-on): Add mbchar.
82167         (configure.ac): Add gl_FUNC_MBRTOWC.
82168         (Makefile.am): Augment lib_SOURCES.
82170 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82172         Modify glob.c to use fstatat and dirfd, to simplify it.
82173         Suggested by Eric Blake.
82174         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
82175         Don't include <stdbool.h>; not used.
82176         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
82177         (link_exists_p): Simplify implementation, since we can now assume
82178         dirfd and fstatat.
82179         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
82181 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82183         * gnulib-tool (func_get_dependencies): Fix sed script to
82184         match only tests.
82186 2007-10-17  Bruno Haible  <bruno@clisp.org>
82188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
82189         allow locale names without encoding suffix.
82190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
82191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
82193 2007-10-16  Bruno Haible  <bruno@clisp.org>
82195         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
82196         * lib/getgroups.c (getgroups): Likewise.
82197         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
82199 2007-10-16  Bruno Haible  <bruno@clisp.org>
82201         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
82202         * modules/malloc-posix (License): Likewise.
82203         * modules/realloc-posix (License): Likewise.
82204         * modules/calloc-posix (License): Likewise.
82205         * modules/intprops (License): Change from GPL to LGPL, with
82206         Paul Eggert's approval.
82208 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82210         Merge glibc changes into lib/glob.c.
82212         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
82213         2007-10-15 04:59:03 UTC.  Here are the changes:
82215         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
82217         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
82219         * lib/glob.c: Add some branch prediction throughout.
82221         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
82223         [BZ #5103]
82224         * lib/glob.c (glob): Recognize patterns starting \/.
82226         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
82228         [BZ #3996]
82229         * lib/glob.c (attribute_hidden): Define if not defined.
82230         (glob): Unescape dirname, filename or username when needed and not
82231         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
82232         is NULL.  Handle unescaped [ in pattern without closing ].
82233         Don't pass GLOB_CHECK down to recursive glob for directories.
82234         (__glob_pattern_type): New function.
82235         (__glob_pattern_p): Implement using __glob_pattern_type.
82236         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
82237         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
82238         Remove unreachable code.
82240         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
82242         * lib/glob.c (glob_in_dir): Add some comments and asserts to
82243         explain why there are no leaks.
82245         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
82247         [BZ #3253]
82248         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
82249         time, rather allocate increasingly bigger arrays of pointers, if
82250         possible with alloca, if too large with malloc.
82252 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82254         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
82255         Problem reported by H.Merijn Brand in
82256         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
82257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
82258         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82260 2007-10-15  Bruno Haible  <bruno@clisp.org>
82262         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
82263         with explicit rpl_ prefix.
82264         * lib/fopen.c (fopen): Likewise.
82265         * lib/freopen.c (freopen): Likewise.
82266         * lib/iconv.c (iconv): Likewise.
82267         * lib/iconv_close.c (iconv_close): Likewise.
82269 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82271         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
82273 2007-10-15  Bruno Haible  <bruno@clisp.org>
82275         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
82276         <stddef.h> instead of <stdlib.h> since we only need NULL.
82277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82279 2007-10-15  Bruno Haible  <bruno@clisp.org>
82281         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
82282         Replace paragraph talking about LIBOBJS.
82283         Reported by Colin Watson <cjwatson@debian.org>.
82285 2007-10-15  Bruno Haible  <bruno@clisp.org>
82287         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
82288         <stdlib.h> before using NULL.
82290 2007-10-15  Simon Josefsson  <simon@josefsson.org>
82292         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
82293         Reported by Albert Chin <china@thewrittenword.com>.
82295 2007-10-14  Bruno Haible  <bruno@clisp.org>
82297         * modules/iconv_open-utf-tests: New file.
82298         * tests/test-iconv-utf.c: New file.
82300         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
82301         * modules/iconv_open-utf: New file.
82302         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
82303         (iconv, iconv_close): New declarations.
82304         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
82305         be defined.
82306         (iconv_open): Add special handling of conversion between UTF-8 and
82307         UTF-{16,32}{BE,LE}.
82308         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
82309         * lib/iconv_close.c: New file.
82310         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
82311         gl_FUNC_ICONV_OPEN.
82312         (gl_FUNC_ICONV_OPEN): Use it.
82313         (gl_FUNC_ICONV_OPEN_UTF): New macro.
82314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
82315         and REPLACE_ICONV_UTF.
82316         * modules/iconv_open (Depends-on): Add c-strcase.
82317         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
82318         ICONV_CONST.
82319         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
82321 2007-10-13  Albert Chin  <china@thewrittenword.com>
82322             Bruno Haible  <bruno@clisp.org>
82324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
82325         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
82327 2007-10-13  Bruno Haible  <bruno@clisp.org>
82329         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
82330         defined, use the ISO C99 inline semantics.
82331         * lib/argp.h (ARGP_EI): Likewise.
82333 2007-10-13  Bruno Haible  <bruno@clisp.org>
82335         Handle 'inline' change in gcc 4.3.0.
82336         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
82337         argp_fmtstream_write, argp_fmtstream_set_lmargin,
82338         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
82339         argp_fmtstream_point): Disable 'extern' declaration if the function
82340         definition is going to be provided inline.
82341         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
82342         semantics, not the ISO C99 inline semantics.
82343         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
82344         'extern' declaration if the function definition is going to be provided
82345         inline.
82346         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
82347         the GNU C inline semantics, not the ISO C99 inline semantics. With
82348         GCC 4.2, avoid a warning.
82350 2007-10-13  Bruno Haible  <bruno@clisp.org>
82352         * lib/freading.h (freading): Enable the use of __freading for
82353         glibc >= 2.7.
82354         * lib/freading.c (freading): Likewise.
82356 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
82358         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
82359         "warning: C99 inline functions are not supported; using GNU89".
82361 2007-10-12  Bruno Haible  <bruno@clisp.org>
82363         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
82364         of 2.
82365         * tests/test-ceilf2.c: New file.
82366         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
82368         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
82369         * modules/ceilf-tests: Update.
82371 2007-10-12  Bruno Haible  <bruno@clisp.org>
82373         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
82374         of 2.
82375         * tests/test-floorf2.c: New file.
82376         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
82378         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
82379         * modules/floorf-tests: Update.
82381 2007-10-12  Bruno Haible  <bruno@clisp.org>
82383         * tests/test-trunc2.c: New file.
82384         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
82386         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
82387         * modules/trunc-tests: Update.
82389 2007-10-12  Bruno Haible  <bruno@clisp.org>
82391         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
82392         of 2.
82393         * tests/test-truncf2.c: New file.
82394         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
82396         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
82397         * modules/truncf-tests: Update.
82399 2007-10-11  Eric Blake  <ebb9@byu.net>
82401         Don't claim strerror is broken on Interix.
82402         * doc/functions/strerror.texi (strerror): Known broken systems are
82403         now Solaris 8, and not Interix.
82404         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
82405         Interix on cross-compile.
82406         Reported by Martin Koeppe in
82407         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
82409 2007-10-11  Bruno Haible  <bruno@clisp.org>
82411         * modules/i-ring-tests: New file.
82412         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
82413         instead of assert.
82415 2007-10-11  Bruno Haible  <bruno@clisp.org>
82417         * modules/filenamecat-tests: New file.
82418         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
82419         * lib/filenamecat.c: Remove test code.
82421 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
82423         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
82425         * lib/strerror.c: Include <string.h> always, to test interface,
82426         and to remove the need for the dummy.
82427         Include intprops.h to compute width instead of doing it ourselves
82428         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
82429         (strerror): Define it to return NULL if there's no system strerror.
82430         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
82431         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
82432         ancient pre-strerror Unix systems well any more.  Saying "unknown
82433         system error" is enough.
82434         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
82435         simpler strerror.c implementation.
82436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
82437         Simplify the tests to reflect the simpler strerror implementation.
82438         * modules/strerror (Depends-on): Add intprops.
82440 2007-10-09  Eric Blake  <ebb9@byu.net>
82442         Silence test-fpending.
82443         * modules/fpending-tests (Files): Add wrapper script.
82444         * tests/test-fpending.sh: New file.
82446 2007-10-09  Bruno Haible  <bruno@clisp.org>
82448         * MODULES.html.sh (func_module): Don't create a hyperlink for
82449         function names like 'printf_frexp'.
82450         (Misc): Add crc, memxor.
82451         (Characteristics of floating types): New section.
82452         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
82453         isnanf-nolibm, signbit, trunc, truncf, truncl.
82454         (Enhancements for ISO C 99 functions): New subsection Input/output.
82455         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
82456         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
82457         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
82458         (Compatibility checks for POSIX:2001 functions): Add clock-time.
82459         (Enhancements for POSIX:2001 functions): Add chdir-long.
82460         (File system functions): Add areadlink, chdir-safer, read-file.
82461         Remove cycle-check.
82462         (File system as inode set): New section.
82463         (Date and time): Add gethrxtime.
82464         (Multithreading): Add openmp.
82465         (Internationalization functions): Add localename.
82466         (Unicode string functions): Add unistr/u*-mbsnlen.
82467         (Support for maintaining and releasing projects): Add git-version-gen.
82468         (Lone files): Remove directories.
82470 2007-10-08  Ben Pfaff  <blp@gnu.org>
82472         * lib/xmalloca.h: Fix typo in comment.
82474 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
82476         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
82477         when avoiding problems with integer overflow.  Use a portable test
82478         instead.
82480 2007-10-08  Simon Josefsson  <simon@josefsson.org>
82482         * modules/dummy (License): Change to LGPLv2+.
82483         * modules/float (License): Likewise
82484         * modules/realloc (License): Likewise
82485         * modules/stdlib (License): Likewise
82487 2007-10-07  Bruno Haible  <bruno@clisp.org>
82489         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
82490         * floor.c (TWO_MANT_DIG): Likewise.
82491         * ceil.c (TWO_MANT_DIG): Likewise.
82492         Reported by Ben Pfaff.
82494 2007-10-07  Bruno Haible  <bruno@clisp.org>
82496         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
82497         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
82498         * lib/frexp.c (FUNC): Likewise.
82499         * lib/printf-frexp.h (printf_frexp): Likewise.
82500         * lib/printf-frexpl.h (printf_frexpl): Likewise.
82501         * lib/printf-frexp.c (FUNC): Likewise.
82502         Suggested by Jim Meyering.
82504 2007-10-07  Jim Meyering  <meyering@redhat.com>
82506         Make xnanosleep's integer overflow test more robust.
82507         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
82508         so that gcc-4.3.0 doesn't optimize away this test for overflow.
82510 2007-10-07  Bruno Haible  <bruno@clisp.org>
82512         * NEWS: Mention the license change.
82514         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
82515         abbreviations in the modules files.
82517         Change copyright notice from GPLv2+ to GPLv3+.
82518         * README: Change copyright notice.
82519         * MODULES.html.sh: Likewise.
82520         * build-aux/bootstrap.conf: Likewise.
82521         * build-aux/config.libpath: Likewise.
82522         * build-aux/csharpcomp.sh.in: Likewise.
82523         * build-aux/csharpexec.sh.in: Likewise.
82524         * build-aux/install-reloc: Likewise.
82525         * build-aux/javacomp.sh.in: Likewise.
82526         * build-aux/javaexec.sh.in: Likewise.
82527         * build-aux/ldd.sh.in: Likewise.
82528         * build-aux/reloc-ldflags: Likewise.
82529         * build-aux/relocatable.sh.in: Likewise.
82530         * build-aux/x-to-1.in: Likewise.
82531         * check-module: Likewise.
82532         * config/srclistvars.sh: Likewise.
82533         * gnulib-tool: Likewise.
82534         * lib/acl-internal.h: Likewise.
82535         * lib/acl.c: Likewise.
82536         * lib/acl.h: Likewise.
82537         * lib/acl_entries.c: Likewise.
82538         * lib/areadlink-with-size.c: Likewise.
82539         * lib/areadlink.c: Likewise.
82540         * lib/areadlink.h: Likewise.
82541         * lib/argmatch.c: Likewise.
82542         * lib/argmatch.h: Likewise.
82543         * lib/argp-ba.c: Likewise.
82544         * lib/argp-eexst.c: Likewise.
82545         * lib/argp-fmtstream.c: Likewise.
82546         * lib/argp-fmtstream.h: Likewise.
82547         * lib/argp-fs-xinl.c: Likewise.
82548         * lib/argp-help.c: Likewise.
82549         * lib/argp-namefrob.h: Likewise.
82550         * lib/argp-parse.c: Likewise.
82551         * lib/argp-pin.c: Likewise.
82552         * lib/argp-pv.c: Likewise.
82553         * lib/argp-pvh.c: Likewise.
82554         * lib/argp-xinl.c: Likewise.
82555         * lib/argp.h: Likewise.
82556         * lib/at-func.c: Likewise.
82557         * lib/atanl.c: Likewise.
82558         * lib/backupfile.c: Likewise.
82559         * lib/backupfile.h: Likewise.
82560         * lib/basename.c: Likewise.
82561         * lib/binary-io.h: Likewise.
82562         * lib/byteswap.in.h: Likewise.
82563         * lib/c-stack.c: Likewise.
82564         * lib/c-stack.h: Likewise.
82565         * lib/c-strcasestr.c: Likewise.
82566         * lib/c-strcasestr.h: Likewise.
82567         * lib/c-strstr.c: Likewise.
82568         * lib/c-strstr.h: Likewise.
82569         * lib/c-strtod.c: Likewise.
82570         * lib/calloc.c: Likewise.
82571         * lib/canon-host.c: Likewise.
82572         * lib/canon-host.h: Likewise.
82573         * lib/canonicalize-lgpl.c: Likewise.
82574         * lib/canonicalize.c: Likewise.
82575         * lib/canonicalize.h: Likewise.
82576         * lib/ceil.c: Likewise.
82577         * lib/ceilf.c: Likewise.
82578         * lib/ceill.c: Likewise.
82579         * lib/chdir-long.c: Likewise.
82580         * lib/chdir-long.h: Likewise.
82581         * lib/chdir-safer.c: Likewise.
82582         * lib/chdir-safer.h: Likewise.
82583         * lib/chown.c: Likewise.
82584         * lib/classpath.c: Likewise.
82585         * lib/classpath.h: Likewise.
82586         * lib/clean-temp.c: Likewise.
82587         * lib/clean-temp.h: Likewise.
82588         * lib/cloexec.c: Likewise.
82589         * lib/close-stream.c: Likewise.
82590         * lib/closein.c: Likewise.
82591         * lib/closein.h: Likewise.
82592         * lib/closeout.c: Likewise.
82593         * lib/closeout.h: Likewise.
82594         * lib/concat-filename.c: Likewise.
82595         * lib/copy-file.c: Likewise.
82596         * lib/copy-file.h: Likewise.
82597         * lib/count-one-bits.h: Likewise.
82598         * lib/crc.c: Likewise.
82599         * lib/crc.h: Likewise.
82600         * lib/creat-safer.c: Likewise.
82601         * lib/csharpcomp.c: Likewise.
82602         * lib/csharpcomp.h: Likewise.
82603         * lib/csharpexec.c: Likewise.
82604         * lib/csharpexec.h: Likewise.
82605         * lib/cycle-check.c: Likewise.
82606         * lib/cycle-check.h: Likewise.
82607         * lib/diacrit.c: Likewise.
82608         * lib/diacrit.h: Likewise.
82609         * lib/diffseq.h: Likewise.
82610         * lib/dirchownmod.c: Likewise.
82611         * lib/dirent.in.h: Likewise.
82612         * lib/dirfd.c: Likewise.
82613         * lib/dirfd.h: Likewise.
82614         * lib/dirname.c: Likewise.
82615         * lib/dirname.h: Likewise.
82616         * lib/dummy.c: Likewise.
82617         * lib/dup-safer.c: Likewise.
82618         * lib/dup2.c: Likewise.
82619         * lib/eealloc.h: Likewise.
82620         * lib/error.c: Likewise.
82621         * lib/error.h: Likewise.
82622         * lib/euidaccess.c: Likewise.
82623         * lib/exclude.c: Likewise.
82624         * lib/exclude.h: Likewise.
82625         * lib/execute.c: Likewise.
82626         * lib/execute.h: Likewise.
82627         * lib/exitfail.c: Likewise.
82628         * lib/exitfail.h: Likewise.
82629         * lib/expl.c: Likewise.
82630         * lib/fatal-signal.c: Likewise.
82631         * lib/fatal-signal.h: Likewise.
82632         * lib/fbufmode.c: Likewise.
82633         * lib/fbufmode.h: Likewise.
82634         * lib/fchdir.c: Likewise.
82635         * lib/fchmodat.c: Likewise.
82636         * lib/fchownat.c: Likewise.
82637         * lib/fcntl--.h: Likewise.
82638         * lib/fcntl-safer.h: Likewise.
82639         * lib/fcntl.in.h: Likewise.
82640         * lib/fd-safer.c: Likewise.
82641         * lib/fflush.c: Likewise.
82642         * lib/file-has-acl.c: Likewise.
82643         * lib/file-set.c: Likewise.
82644         * lib/file-type.c: Likewise.
82645         * lib/file-type.h: Likewise.
82646         * lib/fileblocks.c: Likewise.
82647         * lib/filemode.c: Likewise.
82648         * lib/filemode.h: Likewise.
82649         * lib/filename.h: Likewise.
82650         * lib/filenamecat.c: Likewise.
82651         * lib/filenamecat.h: Likewise.
82652         * lib/findprog.c: Likewise.
82653         * lib/findprog.h: Likewise.
82654         * lib/float.in.h: Likewise.
82655         * lib/floor.c: Likewise.
82656         * lib/floorf.c: Likewise.
82657         * lib/floorl.c: Likewise.
82658         * lib/fopen-safer.c: Likewise.
82659         * lib/fopen.c: Likewise.
82660         * lib/fpending.c: Likewise.
82661         * lib/fpending.h: Likewise.
82662         * lib/fprintf.c: Likewise.
82663         * lib/fprintftime.h: Likewise.
82664         * lib/fpucw.h: Likewise.
82665         * lib/fpurge.c: Likewise.
82666         * lib/fpurge.h: Likewise.
82667         * lib/freadable.c: Likewise.
82668         * lib/freadable.h: Likewise.
82669         * lib/freadahead.c: Likewise.
82670         * lib/freadahead.h: Likewise.
82671         * lib/freading.c: Likewise.
82672         * lib/freading.h: Likewise.
82673         * lib/free.c: Likewise.
82674         * lib/freopen.c: Likewise.
82675         * lib/frexp.c: Likewise.
82676         * lib/frexpl.c: Likewise.
82677         * lib/fseek.c: Likewise.
82678         * lib/fseterr.c: Likewise.
82679         * lib/fseterr.h: Likewise.
82680         * lib/fstatat.c: Likewise.
82681         * lib/fstrcmp.c: Likewise.
82682         * lib/fstrcmp.h: Likewise.
82683         * lib/fsusage.c: Likewise.
82684         * lib/fsusage.h: Likewise.
82685         * lib/ftell.c: Likewise.
82686         * lib/ftello.c: Likewise.
82687         * lib/fts-cycle.c: Likewise.
82688         * lib/fts.c: Likewise.
82689         * lib/fts_.h: Likewise.
82690         * lib/full-read.c: Likewise.
82691         * lib/full-read.h: Likewise.
82692         * lib/full-write.c: Likewise.
82693         * lib/full-write.h: Likewise.
82694         * lib/fwritable.c: Likewise.
82695         * lib/fwritable.h: Likewise.
82696         * lib/fwriteerror.c: Likewise.
82697         * lib/fwriteerror.h: Likewise.
82698         * lib/fwriting.c: Likewise.
82699         * lib/fwriting.h: Likewise.
82700         * lib/gcd.c: Likewise.
82701         * lib/gcd.h: Likewise.
82702         * lib/getcwd.c: Likewise.
82703         * lib/getdate.h: Likewise.
82704         * lib/getdate.y: Likewise.
82705         * lib/getdomainname.c: Likewise.
82706         * lib/getdomainname.h: Likewise.
82707         * lib/getgroups.c: Likewise.
82708         * lib/gethostname.c: Likewise.
82709         * lib/gethrxtime.c: Likewise.
82710         * lib/gethrxtime.h: Likewise.
82711         * lib/getloadavg.c: Likewise.
82712         * lib/getndelim2.c: Likewise.
82713         * lib/getndelim2.h: Likewise.
82714         * lib/getnline.c: Likewise.
82715         * lib/getnline.h: Likewise.
82716         * lib/getopt.c: Likewise.
82717         * lib/getopt.in.h: Likewise.
82718         * lib/getopt1.c: Likewise.
82719         * lib/getopt_int.h: Likewise.
82720         * lib/getpagesize.h: Likewise.
82721         * lib/getsubopt.c: Likewise.
82722         * lib/gettime.c: Likewise.
82723         * lib/getugroups.c: Likewise.
82724         * lib/getugroups.h: Likewise.
82725         * lib/getusershell.c: Likewise.
82726         * lib/gl_anyavltree_list1.h: Likewise.
82727         * lib/gl_anyavltree_list2.h: Likewise.
82728         * lib/gl_anyhash_list1.h: Likewise.
82729         * lib/gl_anyhash_list2.h: Likewise.
82730         * lib/gl_anylinked_list1.h: Likewise.
82731         * lib/gl_anylinked_list2.h: Likewise.
82732         * lib/gl_anyrbtree_list1.h: Likewise.
82733         * lib/gl_anyrbtree_list2.h: Likewise.
82734         * lib/gl_anytree_list1.h: Likewise.
82735         * lib/gl_anytree_list2.h: Likewise.
82736         * lib/gl_anytree_oset.h: Likewise.
82737         * lib/gl_anytreehash_list1.h: Likewise.
82738         * lib/gl_anytreehash_list2.h: Likewise.
82739         * lib/gl_array_list.c: Likewise.
82740         * lib/gl_array_list.h: Likewise.
82741         * lib/gl_array_oset.c: Likewise.
82742         * lib/gl_array_oset.h: Likewise.
82743         * lib/gl_avltree_list.c: Likewise.
82744         * lib/gl_avltree_list.h: Likewise.
82745         * lib/gl_avltree_oset.c: Likewise.
82746         * lib/gl_avltree_oset.h: Likewise.
82747         * lib/gl_avltreehash_list.c: Likewise.
82748         * lib/gl_avltreehash_list.h: Likewise.
82749         * lib/gl_carray_list.c: Likewise.
82750         * lib/gl_carray_list.h: Likewise.
82751         * lib/gl_linked_list.c: Likewise.
82752         * lib/gl_linked_list.h: Likewise.
82753         * lib/gl_linkedhash_list.c: Likewise.
82754         * lib/gl_linkedhash_list.h: Likewise.
82755         * lib/gl_list.c: Likewise.
82756         * lib/gl_list.h: Likewise.
82757         * lib/gl_oset.c: Likewise.
82758         * lib/gl_oset.h: Likewise.
82759         * lib/gl_rbtree_list.c: Likewise.
82760         * lib/gl_rbtree_list.h: Likewise.
82761         * lib/gl_rbtree_oset.c: Likewise.
82762         * lib/gl_rbtree_oset.h: Likewise.
82763         * lib/gl_rbtreehash_list.c: Likewise.
82764         * lib/gl_rbtreehash_list.h: Likewise.
82765         * lib/gl_sublist.c: Likewise.
82766         * lib/gl_sublist.h: Likewise.
82767         * lib/group-member.c: Likewise.
82768         * lib/group-member.h: Likewise.
82769         * lib/hard-locale.c: Likewise.
82770         * lib/hard-locale.h: Likewise.
82771         * lib/hash-pjw.c: Likewise.
82772         * lib/hash-pjw.h: Likewise.
82773         * lib/hash-triple.c: Likewise.
82774         * lib/hash.c: Likewise.
82775         * lib/hash.h: Likewise.
82776         * lib/human.c: Likewise.
82777         * lib/human.h: Likewise.
82778         * lib/i-ring.c: Likewise.
82779         * lib/i-ring.h: Likewise.
82780         * lib/idcache.c: Likewise.
82781         * lib/imaxabs.c: Likewise.
82782         * lib/imaxdiv.c: Likewise.
82783         * lib/inet_pton.c: Likewise.
82784         * lib/inet_pton.h: Likewise.
82785         * lib/intprops.h: Likewise.
82786         * lib/inttostr.c: Likewise.
82787         * lib/inttostr.h: Likewise.
82788         * lib/inttypes.in.h: Likewise.
82789         * lib/isapipe.c: Likewise.
82790         * lib/isdir.c: Likewise.
82791         * lib/isnan.c: Likewise.
82792         * lib/isnan.h: Likewise.
82793         * lib/isnanf.c: Likewise.
82794         * lib/isnanf.h: Likewise.
82795         * lib/isnanl-nolibm.h: Likewise.
82796         * lib/isnanl.c: Likewise.
82797         * lib/isnanl.h: Likewise.
82798         * lib/javacomp.c: Likewise.
82799         * lib/javacomp.h: Likewise.
82800         * lib/javaexec.c: Likewise.
82801         * lib/javaexec.h: Likewise.
82802         * lib/javaversion.c: Likewise.
82803         * lib/javaversion.h: Likewise.
82804         * lib/javaversion.java: Likewise.
82805         * lib/lbrkprop.h: Likewise.
82806         * lib/lchmod.h: Likewise.
82807         * lib/lchown.c: Likewise.
82808         * lib/ldexpl.c: Likewise.
82809         * lib/linebreak.c: Likewise.
82810         * lib/linebreak.h: Likewise.
82811         * lib/linebuffer.c: Likewise.
82812         * lib/linebuffer.h: Likewise.
82813         * lib/locale.in.h: Likewise.
82814         * lib/logl.c: Likewise.
82815         * lib/long-options.c: Likewise.
82816         * lib/long-options.h: Likewise.
82817         * lib/lstat.c: Likewise.
82818         * lib/lstat.h: Likewise.
82819         * lib/math.in.h: Likewise.
82820         * lib/mbchar.c: Likewise.
82821         * lib/mbchar.h: Likewise.
82822         * lib/mbfile.h: Likewise.
82823         * lib/mbiter.h: Likewise.
82824         * lib/mbscasecmp.c: Likewise.
82825         * lib/mbscasestr.c: Likewise.
82826         * lib/mbschr.c: Likewise.
82827         * lib/mbscspn.c: Likewise.
82828         * lib/mbslen.c: Likewise.
82829         * lib/mbsncasecmp.c: Likewise.
82830         * lib/mbsnlen.c: Likewise.
82831         * lib/mbspbrk.c: Likewise.
82832         * lib/mbspcasecmp.c: Likewise.
82833         * lib/mbsrchr.c: Likewise.
82834         * lib/mbssep.c: Likewise.
82835         * lib/mbsspn.c: Likewise.
82836         * lib/mbsstr.c: Likewise.
82837         * lib/mbstok_r.c: Likewise.
82838         * lib/mbswidth.c: Likewise.
82839         * lib/mbswidth.h: Likewise.
82840         * lib/mbuiter.h: Likewise.
82841         * lib/memcasecmp.c: Likewise.
82842         * lib/memcasecmp.h: Likewise.
82843         * lib/memchr.c: Likewise.
82844         * lib/memcmp.c: Likewise.
82845         * lib/memcoll.c: Likewise.
82846         * lib/memcoll.h: Likewise.
82847         * lib/memcpy.c: Likewise.
82848         * lib/memrchr.c: Likewise.
82849         * lib/mkancesdirs.c: Likewise.
82850         * lib/mkdir-p.c: Likewise.
82851         * lib/mkdir-p.h: Likewise.
82852         * lib/mkdir.c: Likewise.
82853         * lib/mkdirat.c: Likewise.
82854         * lib/mkdtemp.c: Likewise.
82855         * lib/mkstemp-safer.c: Likewise.
82856         * lib/mkstemp.c: Likewise.
82857         * lib/modechange.c: Likewise.
82858         * lib/modechange.h: Likewise.
82859         * lib/mountlist.c: Likewise.
82860         * lib/mountlist.h: Likewise.
82861         * lib/mpsort.c: Likewise.
82862         * lib/nanosleep.c: Likewise.
82863         * lib/obstack.c: Likewise.
82864         * lib/obstack.h: Likewise.
82865         * lib/open-safer.c: Likewise.
82866         * lib/open.c: Likewise.
82867         * lib/openat-die.c: Likewise.
82868         * lib/openat-priv.h: Likewise.
82869         * lib/openat-proc.c: Likewise.
82870         * lib/openat.c: Likewise.
82871         * lib/openat.h: Likewise.
82872         * lib/pagealign_alloc.c: Likewise.
82873         * lib/pagealign_alloc.h: Likewise.
82874         * lib/physmem.c: Likewise.
82875         * lib/physmem.h: Likewise.
82876         * lib/pipe-safer.c: Likewise.
82877         * lib/pipe.c: Likewise.
82878         * lib/pipe.h: Likewise.
82879         * lib/posixtm.c: Likewise.
82880         * lib/posixtm.h: Likewise.
82881         * lib/posixver.c: Likewise.
82882         * lib/printf-frexp.c: Likewise.
82883         * lib/printf-frexp.h: Likewise.
82884         * lib/printf-frexpl.c: Likewise.
82885         * lib/printf-frexpl.h: Likewise.
82886         * lib/printf.c: Likewise.
82887         * lib/progname.c: Likewise.
82888         * lib/progname.h: Likewise.
82889         * lib/progreloc.c: Likewise.
82890         * lib/putenv.c: Likewise.
82891         * lib/quote.c: Likewise.
82892         * lib/quote.h: Likewise.
82893         * lib/quotearg.c: Likewise.
82894         * lib/quotearg.h: Likewise.
82895         * lib/raise.c: Likewise.
82896         * lib/readline.c: Likewise.
82897         * lib/readline.h: Likewise.
82898         * lib/readlink.c: Likewise.
82899         * lib/readtokens.c: Likewise.
82900         * lib/readtokens.h: Likewise.
82901         * lib/readtokens0.c: Likewise.
82902         * lib/readtokens0.h: Likewise.
82903         * lib/readutmp.c: Likewise.
82904         * lib/readutmp.h: Likewise.
82905         * lib/realloc.c: Likewise.
82906         * lib/relocwrapper.c: Likewise.
82907         * lib/rename-dest-slash.c: Likewise.
82908         * lib/rename.c: Likewise.
82909         * lib/rmdir.c: Likewise.
82910         * lib/rpmatch.c: Likewise.
82911         * lib/safe-read.c: Likewise.
82912         * lib/safe-read.h: Likewise.
82913         * lib/safe-write.c: Likewise.
82914         * lib/safe-write.h: Likewise.
82915         * lib/same-inode.h: Likewise.
82916         * lib/same.c: Likewise.
82917         * lib/same.h: Likewise.
82918         * lib/save-cwd.c: Likewise.
82919         * lib/save-cwd.h: Likewise.
82920         * lib/savedir.c: Likewise.
82921         * lib/savedir.h: Likewise.
82922         * lib/savewd.c: Likewise.
82923         * lib/savewd.h: Likewise.
82924         * lib/search.in.h: Likewise.
82925         * lib/setenv.c: Likewise.
82926         * lib/setenv.h: Likewise.
82927         * lib/settime.c: Likewise.
82928         * lib/sh-quote.c: Likewise.
82929         * lib/sh-quote.h: Likewise.
82930         * lib/sig2str.c: Likewise.
82931         * lib/sig2str.h: Likewise.
82932         * lib/signal.in.h: Likewise.
82933         * lib/signbitd.c: Likewise.
82934         * lib/signbitf.c: Likewise.
82935         * lib/signbitl.c: Likewise.
82936         * lib/sigprocmask.c: Likewise.
82937         * lib/sincosl.c: Likewise.
82938         * lib/sleep.c: Likewise.
82939         * lib/sprintf.c: Likewise.
82940         * lib/sqrtl.c: Likewise.
82941         * lib/stat-time.h: Likewise.
82942         * lib/stdio--.h: Likewise.
82943         * lib/stdio-safer.h: Likewise.
82944         * lib/stdlib--.h: Likewise.
82945         * lib/stdlib-safer.h: Likewise.
82946         * lib/stdlib.in.h: Likewise.
82947         * lib/stpcpy.c: Likewise.
82948         * lib/stpncpy.c: Likewise.
82949         * lib/strchrnul.c: Likewise.
82950         * lib/strcspn.c: Likewise.
82951         * lib/strerror.c: Likewise.
82952         * lib/strftime.c: Likewise.
82953         * lib/strftime.h: Likewise.
82954         * lib/striconveh.c: Likewise.
82955         * lib/striconveh.h: Likewise.
82956         * lib/striconveha.c: Likewise.
82957         * lib/striconveha.h: Likewise.
82958         * lib/stripslash.c: Likewise.
82959         * lib/strnlen1.c: Likewise.
82960         * lib/strnlen1.h: Likewise.
82961         * lib/strtod.c: Likewise.
82962         * lib/strtoimax.c: Likewise.
82963         * lib/strtok_r.c: Likewise.
82964         * lib/strtol.c: Likewise.
82965         * lib/strtoll.c: Likewise.
82966         * lib/strtoul.c: Likewise.
82967         * lib/strtoull.c: Likewise.
82968         * lib/sysexits.in.h: Likewise.
82969         * lib/tempname.c: Likewise.
82970         * lib/tempname.h: Likewise.
82971         * lib/timespec.h: Likewise.
82972         * lib/tls.c: Likewise.
82973         * lib/tls.h: Likewise.
82974         * lib/tmpdir.c: Likewise.
82975         * lib/tmpdir.h: Likewise.
82976         * lib/tmpfile-safer.c: Likewise.
82977         * lib/tmpfile.c: Likewise.
82978         * lib/trigl.c: Likewise.
82979         * lib/trigl.h: Likewise.
82980         * lib/trim.c: Likewise.
82981         * lib/trim.h: Likewise.
82982         * lib/trunc.c: Likewise.
82983         * lib/truncf.c: Likewise.
82984         * lib/truncl.c: Likewise.
82985         * lib/tsearch.c: Likewise.
82986         * lib/unicodeio.c: Likewise.
82987         * lib/unicodeio.h: Likewise.
82988         * lib/unistd--.h: Likewise.
82989         * lib/unistd-safer.h: Likewise.
82990         * lib/unistdio/ulc-fprintf.c: Likewise.
82991         * lib/unistdio/ulc-vfprintf.c: Likewise.
82992         * lib/unlinkdir.c: Likewise.
82993         * lib/unlinkdir.h: Likewise.
82994         * lib/unlocked-io.h: Likewise.
82995         * lib/unsetenv.c: Likewise.
82996         * lib/userspec.c: Likewise.
82997         * lib/utime.c: Likewise.
82998         * lib/utimecmp.c: Likewise.
82999         * lib/utimecmp.h: Likewise.
83000         * lib/utimens.c: Likewise.
83001         * lib/verify.h: Likewise.
83002         * lib/verror.c: Likewise.
83003         * lib/verror.h: Likewise.
83004         * lib/version-etc-fsf.c: Likewise.
83005         * lib/version-etc.c: Likewise.
83006         * lib/version-etc.h: Likewise.
83007         * lib/vfprintf.c: Likewise.
83008         * lib/vprintf.c: Likewise.
83009         * lib/vsprintf.c: Likewise.
83010         * lib/w32spawn.h: Likewise.
83011         * lib/wait-process.c: Likewise.
83012         * lib/wait-process.h: Likewise.
83013         * lib/wcwidth.c: Likewise.
83014         * lib/write-any-file.c: Likewise.
83015         * lib/xalloc-die.c: Likewise.
83016         * lib/xalloc.h: Likewise.
83017         * lib/xasprintf.c: Likewise.
83018         * lib/xgetcwd.c: Likewise.
83019         * lib/xgetcwd.h: Likewise.
83020         * lib/xgetdomainname.c: Likewise.
83021         * lib/xgetdomainname.h: Likewise.
83022         * lib/xgethostname.c: Likewise.
83023         * lib/xmalloc.c: Likewise.
83024         * lib/xmalloca.c: Likewise.
83025         * lib/xmalloca.h: Likewise.
83026         * lib/xmemcoll.c: Likewise.
83027         * lib/xnanosleep.c: Likewise.
83028         * lib/xreadlink.c: Likewise.
83029         * lib/xreadlink.h: Likewise.
83030         * lib/xsetenv.c: Likewise.
83031         * lib/xsetenv.h: Likewise.
83032         * lib/xstriconv.c: Likewise.
83033         * lib/xstriconv.h: Likewise.
83034         * lib/xstrndup.c: Likewise.
83035         * lib/xstrndup.h: Likewise.
83036         * lib/xstrtod.c: Likewise.
83037         * lib/xstrtod.h: Likewise.
83038         * lib/xstrtol-error.c: Likewise.
83039         * lib/xstrtol.c: Likewise.
83040         * lib/xstrtol.h: Likewise.
83041         * lib/xtime.h: Likewise.
83042         * lib/xvasprintf.c: Likewise.
83043         * lib/xvasprintf.h: Likewise.
83044         * lib/yesno.c: Likewise.
83045         * lib/yesno.h: Likewise.
83046         * posix-modules: Likewise.
83047         * tests/test-alloca-opt.c: Likewise.
83048         * tests/test-arcfour.c: Likewise.
83049         * tests/test-arctwo.c: Likewise.
83050         * tests/test-argmatch.c: Likewise.
83051         * tests/test-argp-2.sh: Likewise.
83052         * tests/test-argp.c: Likewise.
83053         * tests/test-arpa_inet.c: Likewise.
83054         * tests/test-array_list.c: Likewise.
83055         * tests/test-array_oset.c: Likewise.
83056         * tests/test-atexit.c: Likewise.
83057         * tests/test-avltree_list.c: Likewise.
83058         * tests/test-avltree_oset.c: Likewise.
83059         * tests/test-avltreehash_list.c: Likewise.
83060         * tests/test-base64.c: Likewise.
83061         * tests/test-binary-io.c: Likewise.
83062         * tests/test-byteswap.c: Likewise.
83063         * tests/test-c-ctype.c: Likewise.
83064         * tests/test-c-strcasecmp.c: Likewise.
83065         * tests/test-c-strcasestr.c: Likewise.
83066         * tests/test-c-strncasecmp.c: Likewise.
83067         * tests/test-c-strstr.c: Likewise.
83068         * tests/test-canonicalize-lgpl.c: Likewise.
83069         * tests/test-canonicalize.c: Likewise.
83070         * tests/test-carray_list.c: Likewise.
83071         * tests/test-ceilf.c: Likewise.
83072         * tests/test-ceill.c: Likewise.
83073         * tests/test-count-one-bits.c: Likewise.
83074         * tests/test-crc.c: Likewise.
83075         * tests/test-dirname.c: Likewise.
83076         * tests/test-fbufmode.c: Likewise.
83077         * tests/test-fcntl.c: Likewise.
83078         * tests/test-fflush.c: Likewise.
83079         * tests/test-floorf.c: Likewise.
83080         * tests/test-floorl.c: Likewise.
83081         * tests/test-fopen.c: Likewise.
83082         * tests/test-fprintf-posix.c: Likewise.
83083         * tests/test-fprintf-posix.h: Likewise.
83084         * tests/test-fpurge.c: Likewise.
83085         * tests/test-freadable.c: Likewise.
83086         * tests/test-freadahead.c: Likewise.
83087         * tests/test-freading.c: Likewise.
83088         * tests/test-freopen.c: Likewise.
83089         * tests/test-frexp.c: Likewise.
83090         * tests/test-frexpl.c: Likewise.
83091         * tests/test-fseek.c: Likewise.
83092         * tests/test-fseeko.c: Likewise.
83093         * tests/test-fseterr.c: Likewise.
83094         * tests/test-fstrcmp.c: Likewise.
83095         * tests/test-ftell.c: Likewise.
83096         * tests/test-ftello.c: Likewise.
83097         * tests/test-fwritable.c: Likewise.
83098         * tests/test-fwriting.c: Likewise.
83099         * tests/test-getaddrinfo.c: Likewise.
83100         * tests/test-getpass.c: Likewise.
83101         * tests/test-gettimeofday.c: Likewise.
83102         * tests/test-hmac-md5.c: Likewise.
83103         * tests/test-hmac-sha1.c: Likewise.
83104         * tests/test-iconv.c: Likewise.
83105         * tests/test-iconvme.c: Likewise.
83106         * tests/test-inttypes.c: Likewise.
83107         * tests/test-isnan.c: Likewise.
83108         * tests/test-isnanf.c: Likewise.
83109         * tests/test-isnanl-nolibm.c: Likewise.
83110         * tests/test-isnanl.c: Likewise.
83111         * tests/test-isnanl.h: Likewise.
83112         * tests/test-ldexpl.c: Likewise.
83113         * tests/test-linked_list.c: Likewise.
83114         * tests/test-linkedhash_list.c: Likewise.
83115         * tests/test-locale.c: Likewise.
83116         * tests/test-localename.c: Likewise.
83117         * tests/test-lock.c: Likewise.
83118         * tests/test-lseek.c: Likewise.
83119         * tests/test-malloca.c: Likewise.
83120         * tests/test-math.c: Likewise.
83121         * tests/test-mbscasecmp.c: Likewise.
83122         * tests/test-mbscasestr1.c: Likewise.
83123         * tests/test-mbscasestr2.c: Likewise.
83124         * tests/test-mbscasestr3.c: Likewise.
83125         * tests/test-mbscasestr4.c: Likewise.
83126         * tests/test-mbschr.c: Likewise.
83127         * tests/test-mbscspn.c: Likewise.
83128         * tests/test-mbsncasecmp.c: Likewise.
83129         * tests/test-mbspbrk.c: Likewise.
83130         * tests/test-mbspcasecmp.c: Likewise.
83131         * tests/test-mbsrchr.c: Likewise.
83132         * tests/test-mbsspn.c: Likewise.
83133         * tests/test-mbsstr1.c: Likewise.
83134         * tests/test-mbsstr2.c: Likewise.
83135         * tests/test-mbsstr3.c: Likewise.
83136         * tests/test-md5.c: Likewise.
83137         * tests/test-memmem.c: Likewise.
83138         * tests/test-netinet_in.c: Likewise.
83139         * tests/test-open.c: Likewise.
83140         * tests/test-printf-frexp.c: Likewise.
83141         * tests/test-printf-frexpl.c: Likewise.
83142         * tests/test-printf-posix.c: Likewise.
83143         * tests/test-printf-posix.h: Likewise.
83144         * tests/test-rbtree_list.c: Likewise.
83145         * tests/test-rbtree_oset.c: Likewise.
83146         * tests/test-rbtreehash_list.c: Likewise.
83147         * tests/test-read-file.c: Likewise.
83148         * tests/test-rijndael.c: Likewise.
83149         * tests/test-search.c: Likewise.
83150         * tests/test-signbit.c: Likewise.
83151         * tests/test-sleep.c: Likewise.
83152         * tests/test-snprintf-posix.c: Likewise.
83153         * tests/test-snprintf-posix.h: Likewise.
83154         * tests/test-snprintf.c: Likewise.
83155         * tests/test-sprintf-posix.c: Likewise.
83156         * tests/test-sprintf-posix.h: Likewise.
83157         * tests/test-stat-time.c: Likewise.
83158         * tests/test-stdbool.c: Likewise.
83159         * tests/test-stdint.c: Likewise.
83160         * tests/test-stdio.c: Likewise.
83161         * tests/test-stdlib.c: Likewise.
83162         * tests/test-stpncpy.c: Likewise.
83163         * tests/test-strcasestr.c: Likewise.
83164         * tests/test-striconv.c: Likewise.
83165         * tests/test-striconveh.c: Likewise.
83166         * tests/test-striconveha.c: Likewise.
83167         * tests/test-string.c: Likewise.
83168         * tests/test-sys_select.c: Likewise.
83169         * tests/test-sys_socket.c: Likewise.
83170         * tests/test-sys_stat.c: Likewise.
83171         * tests/test-sys_time.c: Likewise.
83172         * tests/test-sysexits.c: Likewise.
83173         * tests/test-time.c: Likewise.
83174         * tests/test-tls.c: Likewise.
83175         * tests/test-trunc.c: Likewise.
83176         * tests/test-truncf.c: Likewise.
83177         * tests/test-truncl.c: Likewise.
83178         * tests/test-unistd.c: Likewise.
83179         * tests/test-vasnprintf-posix.c: Likewise.
83180         * tests/test-vasnprintf-posix2.c: Likewise.
83181         * tests/test-vasnprintf.c: Likewise.
83182         * tests/test-vasprintf-posix.c: Likewise.
83183         * tests/test-vasprintf.c: Likewise.
83184         * tests/test-verify.c: Likewise.
83185         * tests/test-vfprintf-posix.c: Likewise.
83186         * tests/test-vprintf-posix.c: Likewise.
83187         * tests/test-vsnprintf-posix.c: Likewise.
83188         * tests/test-vsnprintf.c: Likewise.
83189         * tests/test-vsprintf-posix.c: Likewise.
83190         * tests/test-wchar.c: Likewise.
83191         * tests/test-wctype.c: Likewise.
83192         * tests/test-wcwidth.c: Likewise.
83193         * tests/test-xstrtol.c: Likewise.
83194         * tests/test-xvasprintf.c: Likewise.
83195         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
83196         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
83197         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83198         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83199         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83200         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
83201         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83202         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83203         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83204         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
83205         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83206         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83207         * tests/uniname/test-uninames.c: Likewise.
83208         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
83209         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
83210         * tests/unistdio/test-u16-printf1.h: Likewise.
83211         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
83212         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
83213         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
83214         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
83215         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
83216         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
83217         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
83218         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
83219         * tests/unistdio/test-u32-printf1.h: Likewise.
83220         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
83221         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
83222         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
83223         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
83224         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
83225         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
83226         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
83227         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
83228         * tests/unistdio/test-u8-printf1.h: Likewise.
83229         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
83230         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
83231         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
83232         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
83233         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
83234         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
83235         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
83236         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
83237         * tests/unistdio/test-ulc-printf1.h: Likewise.
83238         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
83239         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
83240         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
83241         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
83242         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
83243         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
83244         * tests/uniwidth/test-u16-strwidth.c: Likewise.
83245         * tests/uniwidth/test-u16-width.c: Likewise.
83246         * tests/uniwidth/test-u32-strwidth.c: Likewise.
83247         * tests/uniwidth/test-u32-width.c: Likewise.
83248         * tests/uniwidth/test-u8-strwidth.c: Likewise.
83249         * tests/uniwidth/test-u8-width.c: Likewise.
83250         * tests/uniwidth/test-uc_width.c: Likewise.
83251         * config/srclist-update: Likewise.
83252         (fixlicense): Update to GPLv3+.
83254         Change copyright notice from LGPLv2.1+ to LGPLv3+.
83255         * tests/test-tsearch.c: Change copyright notice.
83257         Change copyright notice from LGPLv2.0+ to LGPLv3+.
83258         * lib/c-strcaseeq.h: Change copyright notice.
83259         * lib/streq.h: Likewise.
83260         * lib/uniconv.h: Likewise.
83261         * lib/uniconv/u-conv-from-enc.h: Likewise.
83262         * lib/uniconv/u-conv-to-enc.h: Likewise.
83263         * lib/uniconv/u-strconv-from-enc.h: Likewise.
83264         * lib/uniconv/u-strconv-to-enc.h: Likewise.
83265         * lib/uniconv/u16-conv-from-enc.c: Likewise.
83266         * lib/uniconv/u16-conv-to-enc.c: Likewise.
83267         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
83268         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
83269         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
83270         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
83271         * lib/uniconv/u32-conv-from-enc.c: Likewise.
83272         * lib/uniconv/u32-conv-to-enc.c: Likewise.
83273         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
83274         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
83275         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
83276         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
83277         * lib/uniconv/u8-conv-from-enc.c: Likewise.
83278         * lib/uniconv/u8-conv-to-enc.c: Likewise.
83279         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
83280         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
83281         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
83282         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
83283         * lib/uniname.h: Likewise.
83284         * lib/uniname/uniname.c: Likewise.
83285         * lib/unistdio.h: Likewise.
83286         * lib/unistdio/u-asnprintf.h: Likewise.
83287         * lib/unistdio/u-asprintf.h: Likewise.
83288         * lib/unistdio/u-printf-args.c: Likewise.
83289         * lib/unistdio/u-printf-args.h: Likewise.
83290         * lib/unistdio/u-printf-parse.h: Likewise.
83291         * lib/unistdio/u-snprintf.h: Likewise.
83292         * lib/unistdio/u-sprintf.h: Likewise.
83293         * lib/unistdio/u-vasprintf.h: Likewise.
83294         * lib/unistdio/u-vsnprintf.h: Likewise.
83295         * lib/unistdio/u-vsprintf.h: Likewise.
83296         * lib/unistdio/u16-asnprintf.c: Likewise.
83297         * lib/unistdio/u16-asprintf.c: Likewise.
83298         * lib/unistdio/u16-printf-parse.c: Likewise.
83299         * lib/unistdio/u16-snprintf.c: Likewise.
83300         * lib/unistdio/u16-sprintf.c: Likewise.
83301         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
83302         * lib/unistdio/u16-u16-asprintf.c: Likewise.
83303         * lib/unistdio/u16-u16-snprintf.c: Likewise.
83304         * lib/unistdio/u16-u16-sprintf.c: Likewise.
83305         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
83306         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
83307         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
83308         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
83309         * lib/unistdio/u16-vasnprintf.c: Likewise.
83310         * lib/unistdio/u16-vasprintf.c: Likewise.
83311         * lib/unistdio/u16-vsnprintf.c: Likewise.
83312         * lib/unistdio/u16-vsprintf.c: Likewise.
83313         * lib/unistdio/u32-asnprintf.c: Likewise.
83314         * lib/unistdio/u32-asprintf.c: Likewise.
83315         * lib/unistdio/u32-printf-parse.c: Likewise.
83316         * lib/unistdio/u32-snprintf.c: Likewise.
83317         * lib/unistdio/u32-sprintf.c: Likewise.
83318         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
83319         * lib/unistdio/u32-u32-asprintf.c: Likewise.
83320         * lib/unistdio/u32-u32-snprintf.c: Likewise.
83321         * lib/unistdio/u32-u32-sprintf.c: Likewise.
83322         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
83323         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
83324         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
83325         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
83326         * lib/unistdio/u32-vasnprintf.c: Likewise.
83327         * lib/unistdio/u32-vasprintf.c: Likewise.
83328         * lib/unistdio/u32-vsnprintf.c: Likewise.
83329         * lib/unistdio/u32-vsprintf.c: Likewise.
83330         * lib/unistdio/u8-asnprintf.c: Likewise.
83331         * lib/unistdio/u8-asprintf.c: Likewise.
83332         * lib/unistdio/u8-printf-parse.c: Likewise.
83333         * lib/unistdio/u8-snprintf.c: Likewise.
83334         * lib/unistdio/u8-sprintf.c: Likewise.
83335         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
83336         * lib/unistdio/u8-u8-asprintf.c: Likewise.
83337         * lib/unistdio/u8-u8-snprintf.c: Likewise.
83338         * lib/unistdio/u8-u8-sprintf.c: Likewise.
83339         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
83340         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
83341         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
83342         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
83343         * lib/unistdio/u8-vasnprintf.c: Likewise.
83344         * lib/unistdio/u8-vasprintf.c: Likewise.
83345         * lib/unistdio/u8-vsnprintf.c: Likewise.
83346         * lib/unistdio/u8-vsprintf.c: Likewise.
83347         * lib/unistdio/ulc-asnprintf.c: Likewise.
83348         * lib/unistdio/ulc-asprintf.c: Likewise.
83349         * lib/unistdio/ulc-printf-parse.c: Likewise.
83350         * lib/unistdio/ulc-snprintf.c: Likewise.
83351         * lib/unistdio/ulc-sprintf.c: Likewise.
83352         * lib/unistdio/ulc-vasnprintf.c: Likewise.
83353         * lib/unistdio/ulc-vasprintf.c: Likewise.
83354         * lib/unistdio/ulc-vsnprintf.c: Likewise.
83355         * lib/unistdio/ulc-vsprintf.c: Likewise.
83356         * lib/unistr.h: Likewise.
83357         * lib/unistr/u-cpy-alloc.h: Likewise.
83358         * lib/unistr/u-cpy.h: Likewise.
83359         * lib/unistr/u-endswith.h: Likewise.
83360         * lib/unistr/u-move.h: Likewise.
83361         * lib/unistr/u-set.h: Likewise.
83362         * lib/unistr/u-startswith.h: Likewise.
83363         * lib/unistr/u-stpcpy.h: Likewise.
83364         * lib/unistr/u-stpncpy.h: Likewise.
83365         * lib/unistr/u-strcat.h: Likewise.
83366         * lib/unistr/u-strcpy.h: Likewise.
83367         * lib/unistr/u-strcspn.h: Likewise.
83368         * lib/unistr/u-strdup.h: Likewise.
83369         * lib/unistr/u-strlen.h: Likewise.
83370         * lib/unistr/u-strncat.h: Likewise.
83371         * lib/unistr/u-strncpy.h: Likewise.
83372         * lib/unistr/u-strnlen.h: Likewise.
83373         * lib/unistr/u-strpbrk.h: Likewise.
83374         * lib/unistr/u-strspn.h: Likewise.
83375         * lib/unistr/u-strstr.h: Likewise.
83376         * lib/unistr/u-strtok.h: Likewise.
83377         * lib/unistr/u16-check.c: Likewise.
83378         * lib/unistr/u16-chr.c: Likewise.
83379         * lib/unistr/u16-cmp.c: Likewise.
83380         * lib/unistr/u16-cpy-alloc.c: Likewise.
83381         * lib/unistr/u16-cpy.c: Likewise.
83382         * lib/unistr/u16-endswith.c: Likewise.
83383         * lib/unistr/u16-mblen.c: Likewise.
83384         * lib/unistr/u16-mbsnlen.c: Likewise.
83385         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83386         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83387         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83388         * lib/unistr/u16-mbtouc.c: Likewise.
83389         * lib/unistr/u16-mbtoucr.c: Likewise.
83390         * lib/unistr/u16-move.c: Likewise.
83391         * lib/unistr/u16-next.c: Likewise.
83392         * lib/unistr/u16-prev.c: Likewise.
83393         * lib/unistr/u16-set.c: Likewise.
83394         * lib/unistr/u16-startswith.c: Likewise.
83395         * lib/unistr/u16-stpcpy.c: Likewise.
83396         * lib/unistr/u16-stpncpy.c: Likewise.
83397         * lib/unistr/u16-strcat.c: Likewise.
83398         * lib/unistr/u16-strchr.c: Likewise.
83399         * lib/unistr/u16-strcmp.c: Likewise.
83400         * lib/unistr/u16-strcpy.c: Likewise.
83401         * lib/unistr/u16-strcspn.c: Likewise.
83402         * lib/unistr/u16-strdup.c: Likewise.
83403         * lib/unistr/u16-strlen.c: Likewise.
83404         * lib/unistr/u16-strmblen.c: Likewise.
83405         * lib/unistr/u16-strmbtouc.c: Likewise.
83406         * lib/unistr/u16-strncat.c: Likewise.
83407         * lib/unistr/u16-strncmp.c: Likewise.
83408         * lib/unistr/u16-strncpy.c: Likewise.
83409         * lib/unistr/u16-strnlen.c: Likewise.
83410         * lib/unistr/u16-strpbrk.c: Likewise.
83411         * lib/unistr/u16-strrchr.c: Likewise.
83412         * lib/unistr/u16-strspn.c: Likewise.
83413         * lib/unistr/u16-strstr.c: Likewise.
83414         * lib/unistr/u16-strtok.c: Likewise.
83415         * lib/unistr/u16-to-u32.c: Likewise.
83416         * lib/unistr/u16-to-u8.c: Likewise.
83417         * lib/unistr/u16-uctomb-aux.c: Likewise.
83418         * lib/unistr/u16-uctomb.c: Likewise.
83419         * lib/unistr/u32-check.c: Likewise.
83420         * lib/unistr/u32-chr.c: Likewise.
83421         * lib/unistr/u32-cmp.c: Likewise.
83422         * lib/unistr/u32-cpy-alloc.c: Likewise.
83423         * lib/unistr/u32-cpy.c: Likewise.
83424         * lib/unistr/u32-endswith.c: Likewise.
83425         * lib/unistr/u32-mblen.c: Likewise.
83426         * lib/unistr/u32-mbsnlen.c: Likewise.
83427         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83428         * lib/unistr/u32-mbtouc.c: Likewise.
83429         * lib/unistr/u32-mbtoucr.c: Likewise.
83430         * lib/unistr/u32-move.c: Likewise.
83431         * lib/unistr/u32-next.c: Likewise.
83432         * lib/unistr/u32-prev.c: Likewise.
83433         * lib/unistr/u32-set.c: Likewise.
83434         * lib/unistr/u32-startswith.c: Likewise.
83435         * lib/unistr/u32-stpcpy.c: Likewise.
83436         * lib/unistr/u32-stpncpy.c: Likewise.
83437         * lib/unistr/u32-strcat.c: Likewise.
83438         * lib/unistr/u32-strchr.c: Likewise.
83439         * lib/unistr/u32-strcmp.c: Likewise.
83440         * lib/unistr/u32-strcpy.c: Likewise.
83441         * lib/unistr/u32-strcspn.c: Likewise.
83442         * lib/unistr/u32-strdup.c: Likewise.
83443         * lib/unistr/u32-strlen.c: Likewise.
83444         * lib/unistr/u32-strmblen.c: Likewise.
83445         * lib/unistr/u32-strmbtouc.c: Likewise.
83446         * lib/unistr/u32-strncat.c: Likewise.
83447         * lib/unistr/u32-strncmp.c: Likewise.
83448         * lib/unistr/u32-strncpy.c: Likewise.
83449         * lib/unistr/u32-strnlen.c: Likewise.
83450         * lib/unistr/u32-strpbrk.c: Likewise.
83451         * lib/unistr/u32-strrchr.c: Likewise.
83452         * lib/unistr/u32-strspn.c: Likewise.
83453         * lib/unistr/u32-strstr.c: Likewise.
83454         * lib/unistr/u32-strtok.c: Likewise.
83455         * lib/unistr/u32-to-u16.c: Likewise.
83456         * lib/unistr/u32-to-u8.c: Likewise.
83457         * lib/unistr/u32-uctomb.c: Likewise.
83458         * lib/unistr/u8-check.c: Likewise.
83459         * lib/unistr/u8-chr.c: Likewise.
83460         * lib/unistr/u8-cmp.c: Likewise.
83461         * lib/unistr/u8-cpy-alloc.c: Likewise.
83462         * lib/unistr/u8-cpy.c: Likewise.
83463         * lib/unistr/u8-endswith.c: Likewise.
83464         * lib/unistr/u8-mblen.c: Likewise.
83465         * lib/unistr/u8-mbsnlen.c: Likewise.
83466         * lib/unistr/u8-mbtouc-aux.c: Likewise.
83467         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83468         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83469         * lib/unistr/u8-mbtouc.c: Likewise.
83470         * lib/unistr/u8-mbtoucr.c: Likewise.
83471         * lib/unistr/u8-move.c: Likewise.
83472         * lib/unistr/u8-next.c: Likewise.
83473         * lib/unistr/u8-prev.c: Likewise.
83474         * lib/unistr/u8-set.c: Likewise.
83475         * lib/unistr/u8-startswith.c: Likewise.
83476         * lib/unistr/u8-stpcpy.c: Likewise.
83477         * lib/unistr/u8-stpncpy.c: Likewise.
83478         * lib/unistr/u8-strcat.c: Likewise.
83479         * lib/unistr/u8-strchr.c: Likewise.
83480         * lib/unistr/u8-strcmp.c: Likewise.
83481         * lib/unistr/u8-strcpy.c: Likewise.
83482         * lib/unistr/u8-strcspn.c: Likewise.
83483         * lib/unistr/u8-strdup.c: Likewise.
83484         * lib/unistr/u8-strlen.c: Likewise.
83485         * lib/unistr/u8-strmblen.c: Likewise.
83486         * lib/unistr/u8-strmbtouc.c: Likewise.
83487         * lib/unistr/u8-strncat.c: Likewise.
83488         * lib/unistr/u8-strncmp.c: Likewise.
83489         * lib/unistr/u8-strncpy.c: Likewise.
83490         * lib/unistr/u8-strnlen.c: Likewise.
83491         * lib/unistr/u8-strpbrk.c: Likewise.
83492         * lib/unistr/u8-strrchr.c: Likewise.
83493         * lib/unistr/u8-strspn.c: Likewise.
83494         * lib/unistr/u8-strstr.c: Likewise.
83495         * lib/unistr/u8-strtok.c: Likewise.
83496         * lib/unistr/u8-to-u16.c: Likewise.
83497         * lib/unistr/u8-to-u32.c: Likewise.
83498         * lib/unistr/u8-uctomb-aux.c: Likewise.
83499         * lib/unistr/u8-uctomb.c: Likewise.
83500         * lib/unitypes.h: Likewise.
83501         * lib/uniwidth.h: Likewise.
83502         * lib/uniwidth/cjk.h: Likewise.
83503         * lib/uniwidth/u16-strwidth.c: Likewise.
83504         * lib/uniwidth/u16-width.c: Likewise.
83505         * lib/uniwidth/u32-strwidth.c: Likewise.
83506         * lib/uniwidth/u32-width.c: Likewise.
83507         * lib/uniwidth/u8-strwidth.c: Likewise.
83508         * lib/uniwidth/u8-width.c: Likewise.
83509         * lib/uniwidth/width.c: Likewise.
83511 2007-10-07  Bruno Haible  <bruno@clisp.org>
83513         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
83514         The file is still under LGPL (see modules/inttypes).
83516 2007-10-06  Bruno Haible  <bruno@clisp.org>
83518         * modules/trunc (Dependencies): Add 'extensions'.
83519         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
83520         Reported by Ben Pfaff <blp@gnu.org>.
83522 2007-10-06  Bruno Haible  <bruno@clisp.org>
83524         * modules/freopen-tests: New file.
83525         * tests/test-freopen.c: New file.
83527         * modules/fopen-tests: New file.
83528         * tests/test-fopen.c: New file.
83530         * modules/fopen: New file.
83531         * lib/fopen.c: New file.
83532         * m4/fopen.m4: New file.
83533         * modules/freopen: New file.
83534         * lib/freopen.c: New file.
83535         * m4/freopen.m4: New file.
83536         * lib/stdio.in.h (fopen, freopen): New declarations.
83537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
83538         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83539         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
83540         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83541         * doc/functions/fopen.texi: Mention the 'fopen' module.
83542         * doc/functions/freopen.texi: Mention the 'freopen' module.
83544 2007-10-06  Bruno Haible  <bruno@clisp.org>
83546         * modules/open-tests: New file.
83547         * tests/test-open.c: New file.
83549         * modules/open: New file.
83550         * lib/open.c: New file.
83551         * m4/open.m4: New file.
83552         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
83553         lib/open.c does.
83554         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
83555         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
83556         macros.
83557         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
83558         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
83559         REPLACE_OPEN.
83560         * doc/functions/open.texi: Mention the 'open' module.
83562 2007-10-04  Bruno Haible  <bruno@clisp.org>
83564         * modules/ceill-tests: New file.
83565         * tests/test-ceill.c: New file.
83567         * modules/ceill: New file.
83568         * lib/ceill.c: Replace entire file.
83569         * m4/ceill.m4: New file.
83570         * lib/math.in.h (ceill): Replace declaration.
83571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
83572         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
83573         * doc/functions/ceill.texi: Mention the 'ceill' module.
83574         * modules/mathl (Files): Remove lib/ceill.c.
83575         (Depends-on): Add ceill.
83577 2007-10-04  Bruno Haible  <bruno@clisp.org>
83579         * modules/ceilf-tests: New file.
83580         * tests/test-ceilf.c: New file.
83582         * modules/ceilf: New file.
83583         * lib/ceil.c: New file.
83584         * lib/ceilf.c: New file.
83585         * m4/ceilf.m4: New file.
83586         * lib/math.in.h (ceilf): New declaration.
83587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
83588         HAVE_DECL_CEILF.
83589         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
83590         HAVE_DECL_CEILF.
83591         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
83593 2007-10-04  Bruno Haible  <bruno@clisp.org>
83595         * modules/floorl-tests: New file.
83596         * tests/test-floorl.c: New file.
83598         * modules/floorl: New file.
83599         * lib/floorl.c: Replace entire file.
83600         * m4/floorl.m4: New file.
83601         * lib/math.in.h (floorl): Replace declaration.
83602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
83603         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
83604         * doc/functions/floorl.texi: Mention the 'floorl' module.
83605         * modules/mathl (Files): Remove lib/floorl.c.
83606         (Depends-on): Add floorl.
83608 2007-10-04  Bruno Haible  <bruno@clisp.org>
83610         * modules/floorf-tests: New file.
83611         * tests/test-floorf.c: New file.
83613         * modules/floorf: New file.
83614         * lib/floor.c: New file.
83615         * lib/floorf.c: New file.
83616         * m4/floorf.m4: New file.
83617         * lib/math.in.h (floorf): New declaration.
83618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
83619         HAVE_DECL_FLOORF.
83620         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
83621         HAVE_DECL_FLOORF.
83622         * doc/functions/floorf.texi: Mention the 'floorf' module.
83624 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
83625             Bruno Haible  <bruno@clisp.org>
83627         Advertise for the Git server instead of the CVS server.
83628         * doc/gnulib-intro.texi (Steady Development): Mention the Git
83629         repository instead of the CVS one.
83630         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
83631         about all VCS systems generically.
83632         * doc/gnulib.texi (Introduction): Capitalize `Git'.
83634 2007-10-04  Bruno Haible  <bruno@clisp.org>
83636         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
83637         means.
83638         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
83640 2007-10-04  Bruno Haible  <bruno@clisp.org>
83642         * modules/truncl-tests: New file.
83643         * tests/test-truncl.c: New file.
83645         * modules/truncl: New file.
83646         * lib/truncl.c: New file.
83647         * m4/truncl.m4: New file.
83648         * lib/math.in.h (truncl): New declaration.
83649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
83650         HAVE_DECL_TRUNCL.
83651         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
83652         HAVE_DECL_TRUNCL.
83653         * doc/functions/truncl.texi: Mention the 'truncl' module.
83655 2007-10-04  Bruno Haible  <bruno@clisp.org>
83657         * modules/truncf-tests: New file.
83658         * tests/test-truncf.c: New file.
83660         * modules/truncf: New file.
83661         * lib/trunc.c: Make paramerizable through USE_* macros.
83662         * lib/truncf.c: New file.
83663         * m4/truncf.m4: New file.
83664         * lib/math.in.h (truncf): New declaration.
83665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
83666         HAVE_DECL_TRUNCF.
83667         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
83668         HAVE_DECL_TRUNCF.
83669         * doc/functions/truncf.texi: Mention the 'truncf' module.
83671 2007-10-03  Bruno Haible  <bruno@clisp.org>
83673         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
83674         augmentation also for tests modules.
83675         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
83676         * modules/atexit-tests (Makefile.am): Likewise.
83677         * modules/binary-io-tests (Makefile.am): Likewise.
83678         * modules/c-strcase-tests (Makefile.am): Likewise.
83679         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
83680         * modules/canonicalize-tests (Makefile.am): Likewise.
83681         * modules/closein-tests (Makefile.am): Likewise.
83682         * modules/fprintf-posix-tests (Makefile.am): Likewise.
83683         * modules/freadahead-tests (Makefile.am): Likewise.
83684         * modules/fseek-tests (Makefile.am): Likewise.
83685         * modules/fseeko-tests (Makefile.am): Likewise.
83686         * modules/ftell-tests (Makefile.am): Likewise.
83687         * modules/ftello-tests (Makefile.am): Likewise.
83688         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
83689         * modules/isnanl-tests (Makefile.am): Likewise.
83690         * modules/lseek-tests (Makefile.am): Likewise.
83691         * modules/mbscasecmp-tests (Makefile.am): Likewise.
83692         * modules/mbscasestr-tests (Makefile.am): Likewise.
83693         * modules/mbschr-tests (Makefile.am): Likewise.
83694         * modules/mbscspn-tests (Makefile.am): Likewise.
83695         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
83696         * modules/mbspbrk-tests (Makefile.am): Likewise.
83697         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
83698         * modules/mbsrchr-tests (Makefile.am): Likewise.
83699         * modules/mbsspn-tests (Makefile.am): Likewise.
83700         * modules/mbsstr-tests (Makefile.am): Likewise.
83701         * modules/printf-posix-tests (Makefile.am): Likewise.
83702         * modules/snprintf-posix-tests (Makefile.am): Likewise.
83703         * modules/sprintf-posix-tests (Makefile.am): Likewise.
83704         * modules/tsearch-tests (Makefile.am): Likewise.
83705         * modules/uniname/uniname-tests (Makefile.am): Likewise.
83706         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
83707         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
83708         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
83709         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
83710         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
83711         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
83712         * modules/vprintf-posix-tests (Makefile.am): Likewise.
83713         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
83714         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
83715         * modules/xstrtoimax-tests (Makefile.am): Likewise.
83716         * modules/xstrtol-tests (Makefile.am): Likewise.
83717         * modules/xstrtoumax-tests (Makefile.am): Likewise.
83718         * modules/yesno-tests (Makefile.am): Likewise.
83720 2007-10-03  Bruno Haible  <bruno@clisp.org>
83722         * modules/trunc-tests: New file.
83723         * tests/test-trunc.c: New file.
83725         * modules/trunc: New file.
83726         * lib/trunc.c: New file.
83727         * m4/trunc.m4: New file.
83728         * lib/math.in.h (trunc): New declaration.
83729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
83730         HAVE_DECL_TRUNC.
83731         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
83732         HAVE_DECL_TRUNC.
83733         * doc/functions/trunc.texi: Mention the 'trunc' module.
83735 2007-10-03  Bruno Haible  <bruno@clisp.org>
83737         * tests/test-fpending.c: New file, mostly copied
83738         from coreutils/lib/t-fpending.c.
83739         * modules/fpending-tests: New file.
83741 2007-10-03  Bruno Haible  <bruno@clisp.org>
83743         Port the stdio extensions to QNX (untested).
83744         * lib/fseterr.c (fseterr): Add support for QNX.
83745         * lib/fbufmode.c (fbufmode): Likewise.
83746         * lib/freadable.c (freadable): Likewise.
83747         * lib/fwritable.c (fwritable): Likewise.
83748         * lib/freading.c (freading): Likewise.
83749         * lib/fwriting.c (fwriting): Likewise.
83750         * lib/freadahead.c (freadahed): Likewise.
83751         * lib/fpurge.c (fpurge): Likewise.
83752         * lib/fseeko.c (rpl_fseeko): Likewise.
83754 2007-10-03  Bruno Haible  <bruno@clisp.org>
83755             Jim Meyering  <jim@meyering.net>
83756             Eric Blake  <ebb9@byu.net>
83758         * doc/relocatable.texi: Use @command instead of @program.
83760 2007-10-02  Jim Meyering  <jim@meyering.net>
83762         Perform one more "_.h" -> ".in.h" substitution.
83763         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
83764         instead of unistd_.h here, too.
83766 2007-10-01  Bruno Haible  <bruno@clisp.org>
83768         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
83769         Needed for the alloca-opt module.
83771 2007-09-30  Bruno Haible  <bruno@clisp.org>
83773         * lib/alloca.in.h: Renamed from lib/alloca_.h.
83774         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
83775         alloca_.h.
83776         * lib/argz.in.h: Renamed from lib/argz_.h.
83777         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
83778         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
83779         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
83780         byteswap_.h.
83781         * lib/dirent.in.h: Renamed from lib/dirent_.h.
83782         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
83783         dirent_.h.
83784         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
83785         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
83786         fcntl_.h.
83787         * lib/float.in.h: Renamed from lib/float_.h.
83788         * modules/float (Files, Makefile.am): Use float.in.h instead of
83789         float_.h.
83790         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
83791         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
83792         fnmatch_.h.
83793         * lib/getopt.in.h: Renamed from lib/getopt_.h.
83794         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
83795         getopt_.h.
83796         * lib/glob.in.h: Renamed from lib/glob_.h.
83797         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
83798         * lib/iconv.in.h: Renamed from lib/iconv_.h.
83799         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
83800         iconv_.h.
83801         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
83802         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
83803         inttypes_.h.
83804         * lib/locale.in.h: Renamed from lib/locale_.h.
83805         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
83806         locale_.h.
83807         * lib/math.in.h: Renamed from lib/math_.h.
83808         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
83809         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
83810         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
83811         of netinet_in_.h. Add dependency.
83812         * lib/poll.in.h: Renamed from lib/poll_.h.
83813         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
83814         * lib/search.in.h: Renamed from lib/search_.h.
83815         * modules/search (Files, Makefile.am): Use search.in.h instead of
83816         search_.h.
83817         * lib/signal.in.h: Renamed from lib/signal_.h.
83818         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
83819         _signal.h.
83820         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
83821         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83822         stdbool_.h.
83823         * lib/stdint.in.h: Renamed from lib/stdint_.h.
83824         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
83825         stdint_.h.
83826         * lib/stdio.in.h: Renamed from lib/stdio_.h.
83827         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
83828         stdio_.h.
83829         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
83830         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
83831         stdlib_.h.
83832         * lib/string.in.h: Renamed from lib/string_.h.
83833         * modules/string (Files, Makefile.am): Use string.in.h instead of
83834         string_.h.
83835         * doc/gnulib-tool.texi (Initial import): Update.
83836         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
83837         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
83838         of sys_select_.h. Add dependency.
83839         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
83840         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
83841         of sys_socket_.h.
83842         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
83843         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
83844         sys_stat_.h.
83845         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
83846         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
83847         sys_time_.h.
83848         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
83849         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83850         sysexits_.h.
83851         * lib/time.in.h: Renamed from lib/time_.h.
83852         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83853         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83854         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83855         unistd_.h.
83856         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83857         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83858         wchar_.h.
83859         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83860         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83861         wctype_.h.
83862         * build-aux/bootstrap (slurp): Update.
83863         * lib/.cppi-disable: Update.
83865 2007-09-30  Bruno Haible  <bruno@clisp.org>
83867         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83868         Needed on BeOS.
83870 2007-09-30  Bruno Haible  <bruno@clisp.org>
83872         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83874 2007-09-29  Bruno Haible  <bruno@clisp.org>
83876         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83878 2007-09-29  Bruno Haible  <bruno@clisp.org>
83880         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83881         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83882         * build-aux/install-reloc: Compile also areadlink.c.
83883         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83885 2007-09-29  Bruno Haible  <bruno@clisp.org>
83887         * gnulib-tool (func_emit_initmacro_done): Indentation.
83889 2007-09-29  Bruno Haible  <bruno@clisp.org>
83891         * README: Add CVS checkout update instructions.
83892         Info from Bob Proulx <bob@proulx.com>.
83894 2007-09-28  Eric Blake  <ebb9@byu.net>
83896         Provide move-if-change.
83897         * build-aux/move-if-change: New file, based on best practice
83898         rather than any canonical upstream location.
83900 2007-09-28  Jim Meyering  <jim@meyering.net>
83902         Fix canonicalize loop-detection corner case.
83903         Do not attempt to stat the symlink values stored via seen_triple.
83904         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83905         on linux-2.6.18, (but not 2.6.22).
83906         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83907         triple_compare.  The former compares dev,ino,filename, while the latter
83908         would actually stat dirname(filename) when dev and ino were equal.
83909         * lib/hash-triple.c: Install <string.h>.
83910         (STREQ): Define.
83911         (triple_compare_ino_str): New function.
83912         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83914 2007-09-28  Eric Blake  <ebb9@byu.net>
83916         Enforce that AC_REPLACE_FUNCS files exist.
83917         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83918         override check for typos.
83920         Fix test-closein on Solaris 10.
83921         * tests/test-closein.c (main): Don't assume stdin can be inherited
83922         closed on all systems.
83923         * tests/test-closein.sh: Likewise.
83924         Reported by Piotr Tarnowski.
83926 2007-09-28  Jim Meyering  <jim@meyering.net>
83928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83930 2007-09-27  Jim Meyering  <jim@meyering.net>
83932         canonicalize: Avoid a false-positive cycle failure.
83933         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83934         Sort.  Remove cycle-check.
83935         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83936         not cycle-check.h.
83937         (seen_triple): New function.
83938         (canonicalize_filename_mode): Use it instead of cycle-check.
83939         * tests/test-canonicalize.c: Add a test for this bug.
83940         * tests/test-canonicalize.sh: Set up and run the test.
83942         New module, file-set, from coreutils.
83943         * modules/file-set: Define it.
83944         * lib/file-set.c, lib/file-set.h: Implement.
83946         New module, hash-triple, from coreutils.
83947         * modules/hash-triple: Define it.
83948         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83950 2007-09-25  Eric Blake  <ebb9@byu.net>
83952         Fix strerror on Interix.
83953         * lib/string_.h (strerror): Declare replacement.
83954         * doc/functions/strerror.texi (strerror): Document the Interix
83955         shortcoming.
83956         * modules/string (Makefile.am): Support new hooks.
83957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83958         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83959         gl_FUNC_STRERROR_SEPARATE.
83960         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83961         * lib/strerror.c (rpl_strerror): Provide replacement.
83962         * modules/strerror (Depends-on): Add string.
83963         (configure.ac): Detect use of module.
83964         * tests/test-strerror.c: New file.
83965         * modules/strerror-tests: New test module.
83966         * modules/argp (Depends-on): Add strerror.
83967         * modules/error (Depends-on): Likewise.
83968         Reported by Martin Koeppe.
83970 2007-09-24  Bruno Haible  <bruno@clisp.org>
83972         * README: Update git instructions.
83974 2007-09-24  Eric Blake  <ebb9@byu.net>
83976         Revert fpending breakage from 2007-09-08.
83977         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83978         __fpending.c.
83980 2007-09-24  Jim Meyering  <jim@meyering.net>
83982         filenamecat.c: Add a test.
83983         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83984         showing how the function works when DIR is the empty string.
83986 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83988         * tests/test-canonicalize.sh: Turn on executable bit.
83990 2007-09-19  Eric Blake  <ebb9@byu.net>
83992         * README: Update CVS instructions.
83994 2007-09-18  Bruno Haible  <bruno@clisp.org>
83996         * modules/areadlink: New file.
83997         * lib/areadlink.h (areadlink): New declaration.
83998         * lib/areadlink.c: New file, based on lib/xreadlink.c.
84000 2007-09-17  Jim Meyering  <jim@meyering.net>
84002         * lib/savewd.c (ESTALE) [!defined]: Define.
84003         Reported to be required on Interix by Martin Koeppe.
84005 2007-09-17  Bruno Haible  <bruno@clisp.org>
84007         * gnulib-tool (func_version): Use $version.
84009 2007-09-16  Bruno Haible  <bruno@clisp.org>
84011         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
84012         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
84013         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
84014         Reported by Greg Schafer <gschafer@zip.com.au>.
84016 2007-09-15  Bruno Haible  <bruno@clisp.org>
84018         * gnulib-tool (sed): Try a little harder to make bash understand the
84019         alias.
84020         Reported by Bruce Korb <bruce.korb@gmail.com>.
84022 2007-09-13  Eric Blake  <ebb9@byu.net>
84024         * ChangeLog: Remove conflict markers.
84026 2007-09-13  Simon Josefsson  <simon@josefsson.org>
84028         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
84029         Reported by Bruno Haible <bruno@clisp.org>.
84031 2007-09-12  Bruno Haible  <bruno@clisp.org>
84033         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
84034         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
84035         is not defined.
84037 2007-09-12  Eric Blake  <ebb9@byu.net>
84039         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
84040         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
84041         Autoconf definition.
84042         * modules/euidaccess (Depends-on): Add extensions, for
84043         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
84044         * modules/fnmatch (Depends-on): Likewise.
84045         * modules/getaddrinfo (Depends-on): Likewise.
84046         * modules/getdelim (Depends-on): Likewise.
84047         * modules/getline (Depends-on): Likewise.
84048         * modules/getsubopt (Depends-on): Likewise.
84049         * modules/gettext (Depends-on): Likewise.
84050         * modules/group-member (Depends-on): Likewise.
84051         * modules/mbchar (Depends-on): Likewise.
84052         * modules/memmem (Depends-on): Likewise.
84053         * modules/mempcpy (Depends-on): Likewise.
84054         * modules/memrchr (Depends-on): Likewise.
84055         * modules/pagealign_alloc (Depends-on): Likewise.
84056         * modules/readutmp (Depends-on): Likewise.
84057         * modules/stpcpy (Depends-on): Likewise.
84058         * modules/stpncpy (Depends-on): Likewise.
84059         * modules/strchrnul (Depends-on): Likewise.
84060         * modules/strndup (Depends-on): Likewise.
84061         * modules/strsep (Depends-on): Likewise.
84062         * modules/strverscmp (Depends-on): Likewise.
84063         * modules/vasprintf (Depends-on): Likewise.
84064         * modules/wcwidth (Depends-on): Likewise.
84065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
84066         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
84067         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
84068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
84069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
84070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
84071         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
84072         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
84073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
84074         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
84075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
84076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
84077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
84078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
84079         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
84080         * m4/readutmp.m4 (gl_READUTMP): Likewise.
84081         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
84082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
84083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
84085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
84087         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
84088         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
84089         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
84090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
84091         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
84092         so that lock.m4 can be used in gettext without extensions module.
84094 2007-09-11  Bruno Haible  <bruno@clisp.org>
84096         * m4/isc-posix.m4: Remove file.
84097         Suggested by Eric Blake.
84099 2007-09-11  Eric Blake  <ebb9@byu.net>
84101         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
84103 2007-09-10  Bruno Haible  <bruno@clisp.org>
84105         * posix-modules: Fix typo in error message.
84106         Reported by Matt <mkraai@beckman.com>.
84108 2007-09-09  Bruno Haible  <bruno@clisp.org>
84110         * doc/functions/getdelim.texi: Update list of platforms lacking the
84111         function.
84112         * doc/functions/getline.texi: Likewise.
84114 2007-09-09  Jim Meyering  <jim@meyering.net>
84116         * lib/hash.c (hash_initialize): Detect calloc failure.
84117         Reported by Bruno Haible.
84119 2007-09-09  Bruno Haible  <bruno@clisp.org>
84121         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
84122         malloc or realloc fails.
84124 2007-09-09  Bruno Haible  <bruno@clisp.org>
84126         * modules/getcwd (Depends-on): Add malloc-posix.
84127         * modules/glob (Depends-on): Likewise.
84128         * modules/putenv (Depends-on): Likewise.
84129         * modules/strdup (Depends-on): Likewise.
84130         * modules/getdelim (Depends-on): Add realloc-posix.
84131         * modules/read-file (Depends-on): Likewise.
84133 2007-09-09  Bruno Haible  <bruno@clisp.org>
84135         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
84136         (gl_FUNC_MALLOC_POSIX): Require it.
84137         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
84138         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
84139         * modules/realloc (Files): Add m4/malloc.m4.
84140         * modules/calloc (Files): Likewise.
84142 2007-09-09  Bruno Haible  <bruno@clisp.org>
84144         * modules/malloc-posix: New file.
84145         * modules/malloc (Depends-on): Add malloc-posix.
84146         * lib/malloc.c: Include errno.h.
84147         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
84148         and a POSIX-compatible malloc into a single function. Set ENOMEM
84149         when returning NULL.
84150         * m4/malloc.m4: New file.
84151         * doc/functions/malloc.texi: Mention the malloc-posix module.
84152         * lib/stdlib_.h (malloc): New declaration.
84153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84154         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
84155         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
84156         and HAVE_MALLOC_POSIX.
84158 2007-09-09  Bruno Haible  <bruno@clisp.org>
84160         * modules/realloc-posix: New file.
84161         * modules/realloc (Depends-on): Add realloc-posix.
84162         * lib/realloc.c: Include errno.h.
84163         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
84164         and a POSIX-compatible realloc into a single function. Set ENOMEM
84165         when returning NULL.
84166         * m4/realloc.m4: New file.
84167         * doc/functions/realloc.texi: Mention the realloc-posix module.
84168         * lib/stdlib_.h (realloc): New declaration.
84169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84170         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
84171         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
84172         and HAVE_REALLOC_POSIX.
84174 2007-09-09  Bruno Haible  <bruno@clisp.org>
84176         * modules/calloc-posix: New file.
84177         * modules/calloc (Depends-on): Add calloc-posix.
84178         * lib/calloc.c: Include errno.h.
84179         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
84180         and a POSIX-compatible calloc into a single function. Set ENOMEM
84181         when returning NULL.
84182         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
84183         * doc/functions/calloc.texi: Mention the calloc-posix module.
84184         * lib/stdlib_.h (calloc): New declaration.
84185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84186         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
84187         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
84188         and HAVE_CALLOC_POSIX.
84190 2007-09-09  Bruno Haible  <bruno@clisp.org>
84192         Allow for modules to show an arbitrary notice.
84193         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
84194         * gnulib-tool: New option --extract-notice.
84195         (func_usage): Document it.
84196         (sed_extract_prog): Update.
84197         (func_get_notice): New function.
84198         (func_modules_notice): New function.
84199         (func_import, func_create_testdir): Invoke it.
84200         Suggested by Jim Meyering.
84202 2007-09-09  Bruno Haible  <bruno@clisp.org>
84204         * gnulib-tool: New options --verbose, --quiet.
84205         (func_usage): Document them.
84206         (verbose): New variable.
84207         (func_execute_command): New function.
84208         (func_import): Don't show the module list and the file list if
84209         $verbose < 0.
84210         (func_create_testdir): Likewise. Use func_execute_command.
84211         (func_create_megatestdir): Use func_execute_command.
84213 2007-09-08  Bruno Haible  <bruno@clisp.org>
84215         * gnulib-tool (func_import): Prefer rsync over wget when available,
84216         for fetching the PO files.
84218 2007-09-08  Bruno Haible  <bruno@clisp.org>
84220         * posix-modules: New file. Portions copied from gnulib-tool.
84221         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
84223 2007-09-08  Jim Meyering  <jim@meyering.net>
84225         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
84226         * lib/fpending.h: Rename from __fpending.h.
84227         * lib/fpending.c: Rename from __fpending.c.
84228         Include "fpending.h", not "__fpending.h".
84229         * lib/__fpending.h, lib/__fpending.c: Remove files.
84230         * modules/fpending (Files): Reflect new file names.
84231         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
84233 2007-09-08  Bruno Haible  <bruno@clisp.org>
84235         * m4/inttypes-h.m4: Remove stub file.
84237 2007-09-07  Simon Josefsson  <simon@josefsson.org>
84239         * doc/headers/stdint.texi: Discuss #include_next issue.
84241 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84243         * build-aux/bootstrap: Remove obsolete comment about wget --help.
84245 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84247         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
84248         in variable name.
84250 2007-09-03  Jim Meyering  <jim@meyering.net>
84252         New module: git-version-gen.
84253         * modules/git-version-gen: New file.
84255         Import changes from coreutils for bootstrap script.
84257         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
84259         bootstrap: uses rsync to download the .po files
84260         * build-aux/bootstrap (po_download_command_format): New global.
84261         (download_po_files): Use rsync.
84262         (update_po_files): Don't remove .po files after download,
84263         so future rsync runs can take advantage of the copies.
84265         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
84267         Solve the unnecessary-.po-file-regeneration problem once and for all.
84268         * build-aux/bootstrap (download_po_files): New function, renamed from
84269         get_translations.  Now, downloads, but doesn't update LINGUAS.
84270         (update_po_files): New function.
84272         bootstrap: Ignore more.
84273         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
84274         uniwidth to e.g., lib/.gitignore.
84275         (slurp): Handle the sys_stat_.h -> sys mapping, too.
84277         * build-aux/bootstrap: New setting: vc_ignore.
84278         (insert_sorted_if_absent): Create $file if absent.
84279         Adapt to new, possibly empty, list: $vc_ignore.
84281         bootstrap: generate more ignorable names
84282         * build-aux/bootstrap (slurp): When generating ignorable names,
84283         also map .sin to .sed, .gperf to .c, and .y to .c.
84285 2007-09-03  Jim Meyering  <jim@meyering.net>
84287         * build-aux/git-version-gen: New file, from coreutils.  For details, see
84288         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
84290 2007-09-02  Bruno Haible  <bruno@clisp.org>
84292         Fix mis-recognition of 'mcs' on QNX 6.
84293         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
84294         output contains the string "Mono".
84295         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
84296         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
84298 2007-09-01  Bruno Haible  <bruno@clisp.org>
84300         Fix collision between uniwidth/* and linebreak modules.
84301         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
84302         u32_width): Remove declarations.
84303         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
84304         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
84305         streq3, streq2, streq1, streq0): Remove functions.
84306         (STREQ): Remove macro.
84307         (is_cjk_encoding): Remove function.
84308         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
84309         (uc_width, u8_width, u16_width, u32_width): Remove functions.
84310         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
84311         * NEWS: Document the change.
84313 2007-09-01  Bruno Haible  <bruno@clisp.org>
84315         * lib/streq.h: Add double-inclusion guard.
84317 2007-09-01  Karl Berry  <karl@gnu.org>
84319         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
84321 2007-08-28  Jim Meyering  <jim@meyering.net>
84323         Rename mreadlink_with_size to areadlink_with_size.
84324         * NEWS: Document the change.
84325         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
84326         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
84327         * lib/mreadlink.h: Rename this to...
84328         * lib/areadlink.h: ...this.
84329         * modules/mreadlink-with-size: Rename this to...
84330         * modules/areadlink-with-size: ...this.
84331         * lib/canonicalize.c: Reflect the renaming.
84332         * modules/canonicalize: Likewise.
84334 2007-08-26  Bruno Haible  <bruno@clisp.org>
84336         * gnulib-tool (func_import): When deciding which files to remove,
84337         consider also dangling symbolic links.
84338         Reported by Eric Blake.
84340 2007-08-26  Bruno Haible  <bruno@clisp.org>
84342         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
84344 2007-08-23  Simon Josefsson  <simon@josefsson.org>
84346         * lib/readline.c: Don't include getline.h, the prototype is now
84347         found in stdio.h.
84349 2007-08-23  Jim Meyering  <jim@meyering.net>
84351         Getdelim touchup.
84352         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
84353         around the funlockfile call, since funlockfile never sets errno.
84354         Don't set errno upon failed realloc.
84356 2007-08-22  Eric Blake  <ebb9@byu.net>
84358         Getline touchups.
84359         * lib/getdelim.c (getdelim): Revert regression that required *n to
84360         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
84361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
84362         getdelim, rather than whether implementation is missing.
84363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
84364         * lib/stdio_.h (getline): Also declare if replacement is
84365         required.
84366         * doc/functions/getdelim.texi: New file.
84367         * doc/functions/getline.texi: Likewise.
84368         * doc/gnulib.texi (Function Substitutes): Add new files.
84369         Reported by Bruno Haible.
84371 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
84373         * users.txt: Add Guile.
84375 2007-08-22  Eric Blake  <ebb9@byu.net>
84377         * tests/test-getdelim.c (main): Use remove, not unlink.
84378         * tests/test-getline.c (main): Likewise.
84380         Move getline and getdelim into stdio.h, per POSIX 200x.
84381         * modules/getline (Files): Remove getline.h.
84382         (Depends-on): Add stdio.
84383         (configure.ac): Add module indicator.
84384         * modules/getdelim (Files): Remove getdelim.h.
84385         (Depends-on): Add stdio.
84386         (configure.ac): Add module indicator.
84387         * modules/stdio (Makefile.am): Work with new indicators.
84388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
84389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
84390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
84391         * lib/getdelim.h: Delete.
84392         * lib/getline.h: Delete.
84393         * lib/stdio_.h (getdelim, getline): Declare.
84394         * modules/getdelim-tests: New module.
84395         * modules/getline-tests: Likewise.
84396         * tests/test-getdelim.c: New file.
84397         * tests/test-getline.c: Likewise.
84398         * NEWS: Document the change.
84399         * lib/getline.c: Update choice of header.
84400         * lib/csharpcomp.c: Likewise.
84401         * lib/getpass.c: Likewise.
84402         * lib/javacomp.c: Likewise.
84403         * lib/javaversion.c: Likewise.
84404         * lib/yesno.c: Likewise.
84405         * lib/getdelim.c: Likewise.
84406         (getdelim): Set errno on failure, and avoid memory leak.
84408 2007-08-19  Bruno Haible  <bruno@clisp.org>
84410         * modules/closein (Depends-on): Add freadahead.
84411         * lib/closein.c: Include freadahead.h.
84412         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
84413         is zero.
84415 2007-08-19  Bruno Haible  <bruno@clisp.org>
84417         * modules/freadahead-tests: New file.
84418         * tests/test-freadahead.sh: New file.
84419         * tests/test-freadahead.c: New file.
84421         * modules/freadahead: New file.
84422         * lib/freadahead.h: New file.
84423         * lib/freadahead.c: New file.
84424         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
84425         fbufmode, fpurge, freadable, fwritable.
84427 2007-08-19  Eric Blake  <ebb9@byu.net>
84429         Test yesno in combination with closein.
84430         * lib/yesno.c (yesno): Document use of stdin.
84431         * modules/yesno-tests (Files): New module.
84432         * tests/test-yesno.c (main): New file.
84433         * tests/test-yesno.sh: Likewise.
84435 2007-08-19  Bruno Haible  <bruno@clisp.org>
84437         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
84438         * lib/fseeko.c (rpl_fseeko): Likewise.
84439         * lib/fseterr.c (fseterr): Likewise.
84441 2007-08-19  Bruno Haible  <bruno@clisp.org>
84443         * tests/test-lseek.c (main): Disable a test for BeOS.
84444         * doc/functions/lseek.texi: Document the BeOS bug.
84446 2007-08-19  Bruno Haible  <bruno@clisp.org>
84447             Eric Blake  <ebb9@byu.net>
84449         * lib/lseek.c: Include <sys/stat.h>.
84450         (rpl_lseek): Add workaround code also for Unix platforms.
84451         Needed for BeOS.
84452         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
84453         * doc/functions/lseek.texi: Document BeOS definiency.
84455 2007-08-18  Bruno Haible  <bruno@clisp.org>
84457         * modules/fstrcmp-tests: New file.
84458         * tests/test-fstrcmp.c: New file.
84460 2007-08-18  Bruno Haible  <bruno@clisp.org>
84462         * modules/fstrcmp: New file, from GNU gettext with modifications.
84463         * lib/fstrcmp.h: New file, from GNU gettext.
84464         * lib/fstrcmp.c: New file, from GNU gettext.
84465         * MODULES.html.sh (String handling): Add fstrcmp.
84467 2007-08-18  Bruno Haible  <bruno@clisp.org>
84469         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
84470         'bool'.
84471         (diag, compareseq): Remove const from the ctxt argument.
84472         (USE_HEURISTIC): Undefine at the end.
84474 2007-08-18  Jim Meyering  <jim@meyering.net>
84476         New file: lib/idcache.h
84477         * NEWS: Mention the addition.
84478         * modules/idcache (Files): Add lib/idcache.h
84479         * lib/idcache.c: Include "idcache.h".
84480         Don't include <sys/types.h>.
84481         Add a FIXME comment.
84482         Move file-scoped "static" declarations to the top.
84483         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
84485 2007-08-17  Bruno Haible  <bruno@clisp.org>
84486         and Paul Eggert  <eggert@cs.ucla.edu>
84488         * MODULES.html.sh: Add diffseq.
84489         * modules/diffseq: New file.
84490         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
84491         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
84493 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84495         Import changes from coreutils for bootstrap script.
84497         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
84499         * build-aux/bootstrap (slurp): Work even in environments where
84500         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
84501         current code does not slurp files whose names start with ".", and
84502         this looks like it might be a troublesome area.
84504         2007-07-11  Jim Meyering  <jim@meyering.net>
84506         If there's a GPL vN copyright comment, require that N == 3.
84508         2007-07-08  Jim Meyering  <jim@meyering.net>
84510         Run the coreutils-specific code only if tests/Makefile.am.in exists.
84511         * build-aux/bootstrap (mam_template): Move definition out of loop.
84513         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
84515         * build-aux/bootstrap (symlink_to_dir): Rename function from
84516         symlink_to_gnulib.  Add a directory parameter.  Update all
84517         callers.
84518         (cp_mark_as_generated): Also check for -- and link to -- files in
84519         gl/.
84521         2007-07-08  Jim Meyering  <jim@meyering.net>
84523         Adapt to deeper hierarchy in gnulib.
84524         * build-aux/bootstrap (symlink_to_dir): If the destination
84525         directory doesn't exist, create it. This is required at least for
84526         "lib/uniwidth/cjk.h".
84528         2007-05-15  Jim Meyering  <jim@meyering.net>
84530         * build-aux/bootstrap: Now that generated Makefile.am files
84531         are no longer under version control, they must be created at
84532         bootstrap time.
84534 2007-08-14  Ben Pfaff  <blp@gnu.org>
84536         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
84538 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
84540         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
84541         given the changes below.
84542         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
84543         even on hosts that have padding bits beyond the supported 64.
84545 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
84547         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
84548         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
84549         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
84550         depends on it.
84551         (xstrtol_error): Remove.
84552         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
84553         but with a different signature.
84554         (ATTRIBUTE_NORETURN, __attribute__): New macros.
84555         * lib/xstrtol-error.c: Include exitfail.h.
84556         (xstrtol_fatal): New function, with a different signature from the
84557         old xstrtol_error, so that the caller need not worry about passing
84558         in an exit status, or about storage management of the option argument.
84559         (xstrtol_error): Now a static function.  Redo signature to
84560         implement xstrtol_fatal.  Output the correct number of hyphens in
84561         front of the option so that the caller need not worry about
84562         storage management.
84563         (N_): New macro.
84564         (_): Remove; not used now.
84565         * modules/xstrtol: Depend on getopt.
84566         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
84567         of old STRTOL_FATAL_ERROR macro.
84568         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
84569         of test program.
84570         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
84571         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
84573 2007-08-08  Eric Blake  <ebb9@byu.net>
84575         * lib/xstrtol-error.c: Add missing include.
84577         Move xstrtol messages into gnulib domain, when --pobase is used.
84578         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
84579         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
84580         * modules/xstrtol (Files): Distribute new file.
84581         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
84582         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
84583         * tests/test-xstrtol.c: ...into new file.
84584         * tests/test-xstrtoul.c: Also test xstrtoul.
84585         * tests/test-xstrtoimax.c: Also test xstrtoimax.
84586         * tests/test-xstrtoumax.c: Also test xstrtoumax.
84587         * tests/test-xstrtol.sh: Drive the tests.
84588         * tests/test-xstrtoimax.sh: Likewise.
84589         * tests/test-xstrtoumax.sh: Likewise.
84590         * modules/xstrtol-tests: New module.
84591         * modules/xstrtoimax-tests: Likewise.
84592         * modules/xstrtoumax-tests: Likewise.
84594 2007-08-08  Jim Meyering  <jim@meyering.net>
84596         New function: mfile_name_concat.
84597         * lib/filenamecat.c (mfile_name_concat): New function, just like
84598         file_name_concat, but return NULL upon failure rather than exiting
84599         with a diagnostic.
84600         * lib/filenamecat.h: Declare it.
84602 2007-08-07  Bruno Haible  <bruno@clisp.org>
84604         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
84605         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
84606         warning from gcc.
84607         Reported by Eric Blake.
84609 2007-08-07  Simon Josefsson  <simon@josefsson.org>
84611         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
84612         * modules/crypto/arcfour (License): Likewise.
84613         * modules/crypto/des-tests (License): Likewise.
84614         * modules/crypto/gc-arctwo-tests (License): Likewise.
84615         * modules/crypto/gc-des-tests (License): Likewise.
84616         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
84617         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
84618         * modules/crypto/gc-md2-tests (License): Likewise.
84619         * modules/crypto/gc-md4-tests (License): Likewise.
84620         * modules/crypto/gc-md5-tests (License): Likewise.
84621         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
84622         * modules/crypto/gc-rijndael-tests (License): Likewise.
84623         * modules/crypto/gc-sha1-tests (License): Likewise.
84624         * modules/crypto/gc-tests (License): Likewise.
84625         * modules/crypto/hmac-md5 (License): Likewise.
84626         * modules/crypto/hmac-sha1 (License): Likewise.
84627         * modules/crypto/md2-tests (License): Likewise.
84628         * modules/crypto/md4-tests (License): Likewise.
84629         * modules/crypto/md5 (License): Likewise.
84630         * modules/crypto/rijndael (License): Likewise.
84631         * modules/crypto/sha1 (License): Likewise.
84632         * modules/memxor (License): Likewise.
84634 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84635         and Bruno Haible  <bruno@clisp.org>
84637         * NEWS: Describe interface changes to human, xstrtol.
84638         * lib/human.h: Include <xstrtol.h>.
84639         (human_options): Return enum strtol_error, not int.  Remove
84640         bool arg; take int * instead.
84641         * lib/human.c: Don't include "gettext.h".
84642         (_): Remove; no longer used.
84643         Don't include <xstrtol.h>, since human.h does it.
84644         (human_options): Adjust to abovementioned interface changes.
84645         Do not report error to stderr; that's now the caller's
84646         responsibility.
84647         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
84648         interface change.
84649         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
84650         Str, Argument_type_string.  All uses changed.  Put " argument"
84651         in diagnostics to make them clearer.  Change wording of suffix
84652         message for clarity.
84653         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
84654         Argument_type_string.
84655         (STRTOL_FATAL_WARN): Remove; no longer used.
84656         * modules/human (Depends-on): Remove gettext-h.
84658 2007-08-06  Simon Josefsson  <simon@josefsson.org>
84660         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
84662 2007-07-31  Bruno Haible  <bruno@clisp.org>
84664         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
84665         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
84666         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
84668 2007-07-31  Bruno Haible  <bruno@clisp.org>
84670         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
84671         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
84673 2007-07-30  Bruno Haible  <bruno@clisp.org>
84675         * modules/base64 (License): Use the synonymous term "LGPLv2+".
84676         * modules/c-ctype (License): Likewise.
84677         * modules/c-strcase (License): Likewise.
84678         * modules/check-version (License): Likewise.
84679         * modules/iconv (License): Likewise.
84680         * modules/iconv_open (License): Likewise.
84681         * modules/read-file (License): Likewise.
84682         * modules/striconv (License): Likewise.
84683         * modules/strverscmp (License): Likewise.
84684         * modules/vasprintf (License): Likewise.
84685         * modules/crypto/des (License): Likewise.
84686         * modules/crypto/gc (License): Likewise.
84687         * modules/crypto/gc-arcfour (License): Likewise.
84688         * modules/crypto/gc-arctwo (License): Likewise.
84689         * modules/crypto/gc-des (License): Likewise.
84690         * modules/crypto/gc-hmac-md5 (License): Likewise.
84691         * modules/crypto/gc-hmac-sha1 (License): Likewise.
84692         * modules/crypto/gc-md2 (License): Likewise.
84693         * modules/crypto/gc-md4 (License): Likewise.
84694         * modules/crypto/gc-md5 (License): Likewise.
84695         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
84696         * modules/crypto/gc-random (License): Likewise.
84697         * modules/crypto/gc-rijndael (License): Likewise.
84698         * modules/crypto/gc-sha1 (License): Likewise.
84699         * modules/crypto/md2 (License): Likewise.
84700         * modules/crypto/md4 (License): Likewise.
84702 2007-07-30  Jim Meyering  <jim@meyering.net>
84704         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
84705         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
84706         it has valid stat data.  This bug would cause du not to count the
84707         sizes of inaccessible directories.
84708         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
84709         in <http://bugzilla.redhat.com/250077>.
84711 2007-07-25  Peter O'Gorman  <peter@pogma.com>
84712             Bruno Haible  <bruno@clisp.org>
84714         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
84715         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
84716         #include_next, gives a diagnostic about it, but reports no error in
84717         the exit code.
84718         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
84720 2007-07-24  Ben Pfaff  <blp@gnu.org>
84722         Improve name: "count-one-bits" is better than "popcount".
84723         * MODULES.html.sh: Update name.
84724         * lib/popcount.h: Renamed lib/count-one-bits.h.
84725         (popcount): Renamed count_one_bits.
84726         (popcountl): Renamed count_one_bits_l.
84727         (popcountll): Renamed count_one_bits_ll.
84728         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
84729         * modules/popcount: Renamed module/count-one-bits.
84730         * modules/popcount-tests: Renamed module/count-one-bits-tests.
84731         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
84733 2007-07-23  Ben Pfaff  <blp@gnu.org>
84735         * lib/popcount.h (popcount32): Reduce size of constants, to allow
84736         better code generation, and add U to large constants to avoid
84737         warnings, in non-GCC case.
84738         Suggested by Bruno Haible.
84740 2007-07-23  Ben Pfaff  <blp@gnu.org>
84742         * lib/popcount.h: Use verify_true instead of if...abort.
84743         * modules/popcount: Depend on verify module.
84744         Suggested by Jim Meyering.
84746 2007-07-23  Bruno Haible  <bruno@clisp.org>
84748         * gnulib-tool (func_import): Create a .cvsignore file also when the
84749         directory is not yet in CVS but the toplevel directory is. When
84750         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
84751         Reported by Karl Berry.
84753 2007-07-22  Ben Pfaff  <blp@gnu.org>
84755         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
84756         case.
84757         Suggested by Eric Blake.
84759 2007-07-22  Ben Pfaff  <blp@gnu.org>
84761         New module: popcount.
84762         * MODULES.html.sh: Add popcount.
84763         * modules/popcount: New file.
84764         * modules/popcount-tests: New file.
84765         * tests/test-popcount.c: New file.
84766         * lib/popcount.h: New file.
84767         * m4/popcount.m4: New file.
84769 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
84771         * build-aux/announce-gen: Update to GPLv3.
84773         * build-aux/config.guess: Update from config.
84775 2007-07-21  Bruno Haible  <bruno@clisp.org>
84777         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
84778         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
84780 2007-07-20  Jim Meyering  <jim@meyering.net>
84782         * check-module: Diagnose a self-dependency.
84784 2007-07-19  Bruno Haible  <bruno@clisp.org>
84786         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
84787         empty.
84788         Reported by Eric Blake.
84790 2007-07-18  Bruno Haible  <bruno@clisp.org>
84792         * gnulib-tool: New options --po-base, --po-domain.
84793         (func_usage): Document them.
84794         (pobase, po_domain): New variables.
84795         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
84796         DEFAULT_TEXT_DOMAIN.
84797         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
84798         (func_import): Consider pobase and po_domain. Create a po/ directory.
84799         (func_create_testdir): Set pobase and po_domain to empty.
84800         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
84801         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
84803 2007-07-18  Bruno Haible  <bruno@clisp.org>
84805         * gnulib-tool (func_get_automake_snippet): Synthesize also an
84806         EXTRA_DIST augmentation for files in build-aux/.
84808 2007-07-16  Bruno Haible  <bruno@clisp.org>
84810         * modules/lseek (License): Use the synonymous term "LGPLv2+".
84811         * modules/getdelim (License): Likewise.
84813 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84815         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
84816         * modules/d-type (License): Likewise.
84817         * modules/extensions (License): Likewise.
84818         * modules/fnmatch (License): Likewise.
84819         * modules/fseeko (License): Likewise.
84820         * modules/getaddrinfo (License): Likewise.
84821         * modules/getline (License): Likewise.
84822         * modules/getlogin_r (License): Likewise.
84823         * modules/getpass (License): Likewise.
84824         * modules/gettimeofday (License): Likewise.
84825         * modules/glob (License): Likewise.
84826         * modules/inet_ntop (License): Likewise.
84827         * modules/malloc (License): Likewise.
84828         * modules/malloca (License): Likewise.
84829         * modules/memmem (License): Likewise.
84830         * modules/mempcpy (License): Likewise.
84831         * modules/memset (License): Likewise.
84832         * modules/minmax (License): Likewise.
84833         * modules/mktime (License): Likewise.
84834         * modules/netinet_in (License): Likewise.
84835         * modules/pathmax (License): Likewise.
84836         * modules/poll (License): Likewise.
84837         * modules/regex (License): Likewise.
84838         * modules/snprintf (License): Likewise.
84839         * modules/stdbool (License): Likewise.
84840         * modules/stdint (License): Likewise.
84841         * modules/stdio (License): Likewise.
84842         * modules/strcase (License): Likewise.
84843         * modules/strcasestr (License): Likewise.
84844         * modules/strdup (License): Likewise.
84845         * modules/string (License): Likewise.
84846         * modules/strndup (License): Likewise.
84847         * modules/strnlen (License): Likewise.
84848         * modules/strpbrk (License): Likewise.
84849         * modules/strptime (License): Likewise.
84850         * modules/strsep (License): Likewise.
84851         * modules/sys_select (License): Likewise.
84852         * modules/sys_socket (License): Likewise.
84853         * modules/sys_stat (License): Likewise.
84854         * modules/sys_time (License): Likewise.
84855         * modules/time (License): Likewise.
84856         * modules/time_r (License): Likewise.
84857         * modules/timegm (License): Likewise.
84858         * modules/unistd (License): Likewise.
84859         * modules/vsnprintf (License): Likewise.
84860         * modules/wctype (License): Likewise.
84862 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84864         * modules/argz (License): LGPLv2+.
84866 2007-07-15  Karl Berry  <karl@gnu.org>
84868         * doc/gnulib.texi: revise node structure per new fdl.texi.
84870 2007-07-14  Bruno Haible  <bruno@clisp.org>
84872         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84873         the output file.
84874         * lib/uniname/uninames.h: Regenerated.
84876 2007-07-14  Karl Berry  <karl@gnu.org>
84878         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84879         omitting sectioning and index commands.
84881 2007-07-13  Bruno Haible  <bruno@clisp.org>
84883         New gnulib-tool option --more-symlinks.
84884         * gnulib-tool (func_usage): Document --more-symlinks.
84885         (do_copyrights): New variable.
84886         Recognize option --more-symlinks.
84887         (func_import): Don't add a copyright notice transform to
84888         sed_transform_lib_file if do_copyrights is empty.
84890 2007-07-13  Bruno Haible  <bruno@clisp.org>
84892         * lib/vasnprintf.c (decimal_point_char): Define also if
84893         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84894         && !NEED_PRINTF_DIRECTIVE_A.
84895         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84896         Gary V. Vaughan <gary@gnu.org>.
84898 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84900         * lib/inttypes_.h: Undo previous change, since it was fixed
84901         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84903 2007-07-13  Bruno Haible  <bruno@clisp.org>
84905         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84906         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84908 2007-07-13  Jim Meyering  <jim@meyering.net>
84910         df: Don't fail for Tru64's "file-on-file mount".
84911         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84912         so we fall through and use statfs instead.  Details here:
84913         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84914         Reported by Albert Chin.
84916 2007-07-13  Bruno Haible  <bruno@clisp.org>
84918         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84919         * modules/configmake (License): Likewise.
84920         * modules/gettext (License): Likewise.
84921         * modules/gettext-h (License): Likewise.
84922         * modules/include_next (License): Likewise.
84923         * modules/link-warning (License): Likewise.
84924         * modules/localcharset (License): Likewise.
84925         * modules/localename (License): Likewise.
84926         * modules/lock (License): Likewise.
84927         * modules/relocatable-lib-lgpl (License): Likewise.
84928         * modules/size_max (License): Likewise.
84929         * modules/vasnprintf (License): Likewise.
84930         * modules/wchar (License): Likewise.
84931         * modules/xsize (License): Likewise.
84933 2007-07-13  Bruno Haible  <bruno@clisp.org>
84935         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84936         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84938 2007-07-12  Bruno Haible  <bruno@clisp.org>
84940         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84941         in the modules files.
84943 2007-07-11  Karl Berry  <karl@gnu.org>
84945         * MODULES.html.sh (func_module): use
84946          sed -e '\|^'"${includefile}"'$|d'
84947          instead of /.../d, to avoid errors on $includefile's containing /.
84949 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84951         * gnulib-tool (func_import): Avoid duplication of --avoid
84952         statements
84953         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84954         names to `_' in variable names.
84956 2007-07-10  Eric Blake  <ebb9@byu.net>
84958         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84959         * NEWS: Document this change.
84961 2007-07-08  Bruno Haible  <bruno@clisp.org>
84963         Update to Unicode 5.0.
84964         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84965         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84966         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84967         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84968         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84969         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84970         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84971         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84972         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84973         U+10A3F, U+1D242..U+1D244.
84974         (nonspacing_table_ind): Update.
84975         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84976         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84978 2007-07-08  Bruno Haible  <bruno@clisp.org>
84980         Update to Unicode 5.0.
84981         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84982         code transform. Extend the name index field of unicode_name_to_code and
84983         unicode_code_to_name from 16 to 24 bits.
84984         * lib/uniname/uniname.c (unicode_character_name,
84985         unicode_name_character): Add the range 0x12xxx to the code transform.
84986         * lib/uniname/uninames.h: Regenerated.
84987         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84989 2007-07-07  Bruno Haible  <bruno@clisp.org>
84991         * modules/wcwidth-tests: New file.
84992         * tests/test-wcwidth.c: New file.
84994         Work around MacOS X wcwidth() bug.
84995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84996         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84997         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84998         original wcwidth in non-UTF-8 locales.
84999         * modules/wcwidth (Depends-on): Add localcharset, streq,
85000         uniwidth/width.
85001         * doc/functions/wcwidth.texi: Update.
85003 2007-07-07  Bruno Haible  <bruno@clisp.org>
85005         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
85006         (wcwidth): New declaration.
85007         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
85008         macros.
85009         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
85010         here. Prepare for creating <wchar.h> unconditionally.
85011         * modules/wchar (Depends-on): Add link-warning.
85012         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
85013         REPLACE_WCWIDTH, and GL_LINK_WARNING.
85014         * lib/wcwidth.h: Remove file.
85015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
85016         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
85017         * modules/wcwidth (Files): Remove lib/wcwidth.h.
85018         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
85019         (Include): Replace wcwidth.h with <wchar.h>.
85020         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
85021         * lib/mbchar.h: Don't include wcwidth.h.
85022         * lib/mbswidth.c: Likewise.
85023         * NEWS: Mention the change.
85025 2007-07-07  Bruno Haible  <bruno@clisp.org>
85027         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
85028         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
85029         definition with an external declaration.
85030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
85031         defined as a function. Remove AC_C_INLINE requirement.
85032         * modules/wcwidth (Files): Add lib/wcwidth.c.
85033         (Makefile.am): Remove redundant statement.
85035 2007-07-07  Bruno Haible  <bruno@clisp.org>
85037         * MODULES.html.sh (Unicode string functions): Add the new modules.
85039         * tests/uniwidth/test-u32-strwidth.c: New file.
85040         * modules/uniwidth/u32-strwidth-tests: New file.
85042         * lib/uniwidth/u32-strwidth.c: New file.
85043         * modules/uniwidth/u32-strwidth: New file.
85045         * tests/uniwidth/test-u16-strwidth.c: New file.
85046         * modules/uniwidth/u16-strwidth-tests: New file.
85048         * lib/uniwidth/u16-strwidth.c: New file.
85049         * modules/uniwidth/u16-strwidth: New file.
85051         * tests/uniwidth/test-u8-strwidth.c: New file.
85052         * modules/uniwidth/u8-strwidth-tests: New file.
85054         * lib/uniwidth/u8-strwidth.c: New file.
85055         * modules/uniwidth/u8-strwidth: New file.
85057         * tests/uniwidth/test-u32-width.c: New file.
85058         * modules/uniwidth/u32-width-tests: New file.
85060         * lib/uniwidth/u32-width.c: New file.
85061         * modules/uniwidth/u32-width: New file.
85063         * tests/uniwidth/test-u16-width.c: New file.
85064         * modules/uniwidth/u16-width-tests: New file.
85066         * lib/uniwidth/u16-width.c: New file.
85067         * modules/uniwidth/u16-width: New file.
85069         * tests/uniwidth/test-u8-width.c: New file.
85070         * modules/uniwidth/u8-width-tests: New file.
85072         * lib/uniwidth/u8-width.c: New file.
85073         * modules/uniwidth/u8-width: New file.
85075         * tests/uniwidth/test-uc_width.c: New file.
85076         * modules/uniwidth/width-tests: New file.
85078         * lib/uniwidth/width.c: New file, from GNU libiconv.
85079         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
85080         * modules/uniwidth/width: New file.
85082         * lib/uniwidth.h: New file, from GNU libiconv.
85083         * modules/uniwidth/base: New file.
85085 2007-07-07  Bruno Haible  <bruno@clisp.org>
85087         * lib/uniname.h: New file, from GNU gettext.
85088         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
85089         * lib/uniname/uninames.h: New file, from GNU gettext.
85090         * lib/uniname/uniname.c: New file, from GNU gettext.
85091         * tests/uniname/test-uninames.sh: New file.
85092         * tests/uniname/test-uninames.c: New file, from GNU gettext.
85093         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
85094         * modules/uniname/base: New file.
85095         * modules/uniname/uniname: New file.
85096         * modules/uniname/uniname-tests: New file.
85097         * MODULES.html.sh (Unicode string functions): Add the new modules.
85099 2007-07-06  Bruno Haible  <bruno@clisp.org>
85101         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
85103 2007-07-06  Bruno Haible  <bruno@clisp.org>
85105         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
85106         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
85107         includes <cygwin/sys_time.h> which includes <sys/select.h> which
85108         include <sys/time.h>.
85109         Reported by Eric Blake.
85111 2007-07-06  Eric Blake  <ebb9@byu.net>
85113         Fix testing canonicalize on cygwin.
85114         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85115         Revert patch from 2007-06-19.
85116         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
85117         canonicalize module is also in use.
85118         * tests/test-canonicalize.c: New file.
85119         * tests/test-canonicalize.sh: Likewise.
85120         * modules/canonicalize-tests: Likewise.
85122 2007-07-06  Jim Meyering  <jim@meyering.net>
85124         * lib/getugroups.c (getugroups): Detect getgrent failure.
85125         Adjust comment to reflect reality: this function may return -1.
85127 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
85129         * build-aux/bootstrap (TP_URL,get_translations): Update to use
85130         the new TP address.
85131         (usage): Fix typo
85132         (gnulib_mk): New variable.
85134 2007-07-05  Jim Meyering  <jim@meyering.net>
85136         Don't let endgrent clobber errno, no matter how improbable.
85137         * lib/getugroups.c (getugroups): Save and restore errno around
85138         endgrent call.
85140         Close the group DB even when failing with 2^31 or more members.
85141         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
85143 2007-07-04  Jim Meyering  <jim@meyering.net>
85145         * lib/getugroups.h: New file.
85146         * lib/getugroups.c: Include "getugroups.h".
85147         Remove uses of "register" keyword.
85148         Move local variable, "cp", down into scope where used.
85149         Give "username" parameter the "const" attribute.
85150         * modules/getugroups (Files): Add lib/getugroups.h
85152 2007-07-04  Karl Berry  <karl@gnu.org>
85154         * MODULES.html.sh (func_all_modules): Complete rename of
85155         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
85157 2007-07-02  Bruno Haible  <bruno@clisp.org>
85159         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
85160         mode, when inttypes.h comes from gnulib.
85161         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
85163 2007-07-02  Simon Josefsson  <simon@josefsson.org>
85165         * NEWS: Mention lgpl module name change.
85167         * modules/lgpl-2.1: Renamed from lgpl.
85169         * NEWS: Mention gpl module name change.
85171         * modules/gpl-3.0: New file, based on gpl-2.0.
85173         * modules/gpl-2.0: Renamed from gpl.
85175         * modules/gpl: Fix filename, doc/gpl.texi is now found at
85176         doc/gpl-2.0.texi.
85178 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
85180         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
85181         #define __STDC_LIMIT_MACROS temporarily while including
85182         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
85183         Problem reported by Joel E. Denny in
85184         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
85186 2007-07-01  Bruno Haible  <bruno@clisp.org>
85188         * lib/unistdio.h: New file.
85189         * lib/unistdio/u-asnprintf.h: New file.
85190         * lib/unistdio/u-asprintf.h: New file.
85191         * lib/unistdio/u-printf-args.c: New file.
85192         * lib/unistdio/u-printf-args.h: New file.
85193         * lib/unistdio/u-printf-parse.h: New file.
85194         * lib/unistdio/u-snprintf.h: New file.
85195         * lib/unistdio/u-sprintf.h: New file.
85196         * lib/unistdio/u-vasprintf.h: New file.
85197         * lib/unistdio/u-vsnprintf.h: New file.
85198         * lib/unistdio/u-vsprintf.h: New file.
85199         * lib/unistdio/ulc-asnprintf.c: New file.
85200         * lib/unistdio/ulc-asprintf.c: New file.
85201         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
85202         * lib/unistdio/ulc-printf-parse.c: New file.
85203         * lib/unistdio/ulc-snprintf.c: New file.
85204         * lib/unistdio/ulc-sprintf.c: New file.
85205         * lib/unistdio/ulc-vasnprintf.c: New file.
85206         * lib/unistdio/ulc-vasprintf.c: New file.
85207         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
85208         * lib/unistdio/ulc-vsnprintf.c: New file.
85209         * lib/unistdio/ulc-vsprintf.c: New file.
85210         * lib/unistdio/u8-asnprintf.c: New file.
85211         * lib/unistdio/u8-asprintf.c: New file.
85212         * lib/unistdio/u8-printf-parse.c: New file.
85213         * lib/unistdio/u8-snprintf.c: New file.
85214         * lib/unistdio/u8-sprintf.c: New file.
85215         * lib/unistdio/u8-vasnprintf.c: New file.
85216         * lib/unistdio/u8-vasprintf.c: New file.
85217         * lib/unistdio/u8-vsnprintf.c: New file.
85218         * lib/unistdio/u8-vsprintf.c: New file.
85219         * lib/unistdio/u8-u8-asnprintf.c: New file.
85220         * lib/unistdio/u8-u8-asprintf.c: New file.
85221         * lib/unistdio/u8-u8-snprintf.c: New file.
85222         * lib/unistdio/u8-u8-sprintf.c: New file.
85223         * lib/unistdio/u8-u8-vasnprintf.c: New file.
85224         * lib/unistdio/u8-u8-vasprintf.c: New file.
85225         * lib/unistdio/u8-u8-vsnprintf.c: New file.
85226         * lib/unistdio/u8-u8-vsprintf.c: New file.
85227         * lib/unistdio/u16-asnprintf.c: New file.
85228         * lib/unistdio/u16-asprintf.c: New file.
85229         * lib/unistdio/u16-printf-parse.c: New file.
85230         * lib/unistdio/u16-snprintf.c: New file.
85231         * lib/unistdio/u16-sprintf.c: New file.
85232         * lib/unistdio/u16-vasnprintf.c: New file.
85233         * lib/unistdio/u16-vasprintf.c: New file.
85234         * lib/unistdio/u16-vsnprintf.c: New file.
85235         * lib/unistdio/u16-vsprintf.c: New file.
85236         * lib/unistdio/u16-u16-asnprintf.c: New file.
85237         * lib/unistdio/u16-u16-asprintf.c: New file.
85238         * lib/unistdio/u16-u16-snprintf.c: New file.
85239         * lib/unistdio/u16-u16-sprintf.c: New file.
85240         * lib/unistdio/u16-u16-vasnprintf.c: New file.
85241         * lib/unistdio/u16-u16-vasprintf.c: New file.
85242         * lib/unistdio/u16-u16-vsnprintf.c: New file.
85243         * lib/unistdio/u16-u16-vsprintf.c: New file.
85244         * lib/unistdio/u32-asnprintf.c: New file.
85245         * lib/unistdio/u32-asprintf.c: New file.
85246         * lib/unistdio/u32-printf-parse.c: New file.
85247         * lib/unistdio/u32-snprintf.c: New file.
85248         * lib/unistdio/u32-sprintf.c: New file.
85249         * lib/unistdio/u32-vasnprintf.c: New file.
85250         * lib/unistdio/u32-vasprintf.c: New file.
85251         * lib/unistdio/u32-vsnprintf.c: New file.
85252         * lib/unistdio/u32-vsprintf.c: New file.
85253         * lib/unistdio/u32-u32-asnprintf.c: New file.
85254         * lib/unistdio/u32-u32-asprintf.c: New file.
85255         * lib/unistdio/u32-u32-snprintf.c: New file.
85256         * lib/unistdio/u32-u32-sprintf.c: New file.
85257         * lib/unistdio/u32-u32-vasnprintf.c: New file.
85258         * lib/unistdio/u32-u32-vasprintf.c: New file.
85259         * lib/unistdio/u32-u32-vsnprintf.c: New file.
85260         * lib/unistdio/u32-u32-vsprintf.c: New file.
85261         * tests/unistdio/test-ulc-asnprintf1.c: New file.
85262         * tests/unistdio/test-ulc-asnprintf1.h: New file.
85263         * tests/unistdio/test-ulc-printf1.h: New file.
85264         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
85265         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
85266         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
85267         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
85268         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
85269         * tests/unistdio/test-ulc-vasprintf1.c: New file.
85270         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
85271         * tests/unistdio/test-ulc-vsprintf1.c: New file.
85272         * tests/unistdio/test-u8-asnprintf1.c: New file.
85273         * tests/unistdio/test-u8-asnprintf1.h: New file.
85274         * tests/unistdio/test-u8-printf1.h: New file.
85275         * tests/unistdio/test-u8-vasnprintf1.c: New file.
85276         * tests/unistdio/test-u8-vasnprintf2.c: New file.
85277         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
85278         * tests/unistdio/test-u8-vasnprintf3.c: New file.
85279         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
85280         * tests/unistdio/test-u8-vasprintf1.c: New file.
85281         * tests/unistdio/test-u8-vsnprintf1.c: New file.
85282         * tests/unistdio/test-u8-vsprintf1.c: New file.
85283         * tests/unistdio/test-u16-asnprintf1.c: New file.
85284         * tests/unistdio/test-u16-asnprintf1.h: New file.
85285         * tests/unistdio/test-u16-printf1.h: New file.
85286         * tests/unistdio/test-u16-vasnprintf1.c: New file.
85287         * tests/unistdio/test-u16-vasnprintf2.c: New file.
85288         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
85289         * tests/unistdio/test-u16-vasnprintf3.c: New file.
85290         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
85291         * tests/unistdio/test-u16-vasprintf1.c: New file.
85292         * tests/unistdio/test-u16-vsnprintf1.c: New file.
85293         * tests/unistdio/test-u16-vsprintf1.c: New file.
85294         * tests/unistdio/test-u32-asnprintf1.c: New file.
85295         * tests/unistdio/test-u32-asnprintf1.h: New file.
85296         * tests/unistdio/test-u32-printf1.h: New file.
85297         * tests/unistdio/test-u32-vasnprintf1.c: New file.
85298         * tests/unistdio/test-u32-vasnprintf2.c: New file.
85299         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
85300         * tests/unistdio/test-u32-vasnprintf3.c: New file.
85301         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
85302         * tests/unistdio/test-u32-vasprintf1.c: New file.
85303         * tests/unistdio/test-u32-vsnprintf1.c: New file.
85304         * tests/unistdio/test-u32-vsprintf1.c: New file.
85305         * modules/unistdio/base: New file.
85306         * modules/unistdio/u-printf-args: New file.
85307         * modules/unistdio/ulc-asnprintf: New file.
85308         * modules/unistdio/ulc-asprintf: New file.
85309         * modules/unistdio/ulc-fprintf: New file.
85310         * modules/unistdio/ulc-printf-parse: New file.
85311         * modules/unistdio/ulc-snprintf: New file.
85312         * modules/unistdio/ulc-sprintf: New file.
85313         * modules/unistdio/ulc-vasnprintf: New file.
85314         * modules/unistdio/ulc-vasprintf: New file.
85315         * modules/unistdio/ulc-vfprintf: New file.
85316         * modules/unistdio/ulc-vsnprintf: New file.
85317         * modules/unistdio/ulc-vsprintf: New file.
85318         * modules/unistdio/u8-asnprintf: New file.
85319         * modules/unistdio/u8-asprintf: New file.
85320         * modules/unistdio/u8-printf-parse: New file.
85321         * modules/unistdio/u8-snprintf: New file.
85322         * modules/unistdio/u8-sprintf: New file.
85323         * modules/unistdio/u8-vasnprintf: New file.
85324         * modules/unistdio/u8-vasprintf: New file.
85325         * modules/unistdio/u8-vsnprintf: New file.
85326         * modules/unistdio/u8-vsprintf: New file.
85327         * modules/unistdio/u8-u8-asnprintf: New file.
85328         * modules/unistdio/u8-u8-asprintf: New file.
85329         * modules/unistdio/u8-u8-snprintf: New file.
85330         * modules/unistdio/u8-u8-sprintf: New file.
85331         * modules/unistdio/u8-u8-vasnprintf: New file.
85332         * modules/unistdio/u8-u8-vasprintf: New file.
85333         * modules/unistdio/u8-u8-vsnprintf: New file.
85334         * modules/unistdio/u8-u8-vsprintf: New file.
85335         * modules/unistdio/u16-asnprintf: New file.
85336         * modules/unistdio/u16-asprintf: New file.
85337         * modules/unistdio/u16-printf-parse: New file.
85338         * modules/unistdio/u16-snprintf: New file.
85339         * modules/unistdio/u16-sprintf: New file.
85340         * modules/unistdio/u16-vasnprintf: New file.
85341         * modules/unistdio/u16-vasprintf: New file.
85342         * modules/unistdio/u16-vsnprintf: New file.
85343         * modules/unistdio/u16-vsprintf: New file.
85344         * modules/unistdio/u16-u16-asnprintf: New file.
85345         * modules/unistdio/u16-u16-asprintf: New file.
85346         * modules/unistdio/u16-u16-snprintf: New file.
85347         * modules/unistdio/u16-u16-sprintf: New file.
85348         * modules/unistdio/u16-u16-vasnprintf: New file.
85349         * modules/unistdio/u16-u16-vasprintf: New file.
85350         * modules/unistdio/u16-u16-vsnprintf: New file.
85351         * modules/unistdio/u16-u16-vsprintf: New file.
85352         * modules/unistdio/u32-asnprintf: New file.
85353         * modules/unistdio/u32-asprintf: New file.
85354         * modules/unistdio/u32-printf-parse: New file.
85355         * modules/unistdio/u32-snprintf: New file.
85356         * modules/unistdio/u32-sprintf: New file.
85357         * modules/unistdio/u32-vasnprintf: New file.
85358         * modules/unistdio/u32-vasprintf: New file.
85359         * modules/unistdio/u32-vsnprintf: New file.
85360         * modules/unistdio/u32-vsprintf: New file.
85361         * modules/unistdio/u32-u32-asnprintf: New file.
85362         * modules/unistdio/u32-u32-asprintf: New file.
85363         * modules/unistdio/u32-u32-snprintf: New file.
85364         * modules/unistdio/u32-u32-sprintf: New file.
85365         * modules/unistdio/u32-u32-vasnprintf: New file.
85366         * modules/unistdio/u32-u32-vasprintf: New file.
85367         * modules/unistdio/u32-u32-vsnprintf: New file.
85368         * modules/unistdio/u32-u32-vsprintf: New file.
85369         * modules/unistdio/ulc-asnprintf-tests: New file.
85370         * modules/unistdio/ulc-vasnprintf-tests: New file.
85371         * modules/unistdio/ulc-vasprintf-tests: New file.
85372         * modules/unistdio/ulc-vsnprintf-tests: New file.
85373         * modules/unistdio/ulc-vsprintf-tests: New file.
85374         * modules/unistdio/u8-asnprintf-tests: New file.
85375         * modules/unistdio/u8-vasnprintf-tests: New file.
85376         * modules/unistdio/u8-vasprintf-tests: New file.
85377         * modules/unistdio/u8-vsnprintf-tests: New file.
85378         * modules/unistdio/u8-vsprintf-tests: New file.
85379         * modules/unistdio/u16-asnprintf-tests: New file.
85380         * modules/unistdio/u16-vasnprintf-tests: New file.
85381         * modules/unistdio/u16-vasprintf-tests: New file.
85382         * modules/unistdio/u16-vsnprintf-tests: New file.
85383         * modules/unistdio/u16-vsprintf-tests: New file.
85384         * modules/unistdio/u32-asnprintf-tests: New file.
85385         * modules/unistdio/u32-vasnprintf-tests: New file.
85386         * modules/unistdio/u32-vasprintf-tests: New file.
85387         * modules/unistdio/u32-vsnprintf-tests: New file.
85388         * modules/unistdio/u32-vsprintf-tests: New file.
85389         * MODULES.html.sh (Unicode string functions): Add the new modules.
85391 2007-07-01  Bruno Haible  <bruno@clisp.org>
85393         * lib/sprintf.c (sprintf): Limit the available length estimation,
85394         to avoid address wraparound.
85395         * lib/vsprintf.c (vsprintf): Likewise.
85396         * modules/sprintf-posix (Dependencies): Add stdint.
85397         * modules/vsprintf-posix (Dependencies): Likewise.
85399 2007-07-01  Bruno Haible  <bruno@clisp.org>
85401         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
85402         Windows PATH as well. Conservative double-quoting. Comments.
85404 2007-07-01  Bruno Haible  <bruno@clisp.org>
85405             Eric Blake  <ebb9@byu.net>
85406             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85408         * gnulib-tool (self_abspathname): Fix algorithm to cope with
85409         empty components in $PATH, denoting '.'.
85411 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85413         * gnulib-tool: Fix indentation.
85414         (func_create_megatestdir): Likewise.
85415         Report by Bruno Haible.
85417 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85419         Sync from Automake.
85420         * build-aux/gnupload: Fix shell portability issues with for loops.
85421         Report by Karl Berry.
85423 2007-06-29  Simon Josefsson  <simon@josefsson.org>
85425         * build-aux/maint.mk (POURL): Use translationproject.org.
85427 2007-06-27  Simon Josefsson  <simon@josefsson.org>
85428             Bruno Haible  <bruno@clisp.org>
85430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
85431         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
85432         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
85433         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
85434         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
85436 2007-06-27  Bruno Haible  <bruno@clisp.org>
85438         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
85439         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
85441 2007-06-26  Karl Berry  <karl@gnu.org>
85443         * MODULES.html.sh: remove xreadlink-with-size.
85445 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85447         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
85448         method that I hope also handles the double-include problem noted
85449         by Bruno Haible in
85450         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
85452 2007-06-23  Bruno Haible  <bruno@clisp.org>
85454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
85455         Don't let the 'mostlyclean' target fail if the last subdirectory could
85456         not be removed.
85457         Reported by Karl Berry.
85459 2007-06-23  Bruno Haible  <bruno@clisp.org>
85461         * gnulib-tool (echo): Add a speedier workaround for ksh.
85462         * tests/test-echo.sh: Likewise.
85464 2007-06-23  Bruno Haible  <bruno@clisp.org>
85466         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
85467         * tests/test-echo.sh: Likewise.
85469 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85471         * gnulib-tool (IFS): Initialize early, so we don't set it to
85472         empty later.
85473         (self_abspathname): Rewrite algorithm to set it, reindent.
85474         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
85475         (func_create_megatestdir): Merge some sed scripts.
85477 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
85480         exposed by Sun Studio 11 cc on Solaris 8.
85482 2007-06-22  Bruno Haible  <bruno@clisp.org>
85484         * gnulib-tool (echo): Ensure the echo primitive does not interpret
85485         backslashes.
85486         * tests/test-echo.sh: New file.
85488 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85490         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
85491         simplify `sed_replace_build_aux' scripts, they are portable but
85492         echoing them with `echo' is not.
85493         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
85495 2007-06-21  Karl Berry  <karl@gnu.org>
85497         * config/srclist.txt: guess we can't handle the licenses via
85498         srclist at the moment.
85500 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
85502         * MODULES.html.sh: Add include_next.
85503         * modules/include_next: New file.
85505 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
85507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
85508         INCLUDE_NEXT.
85509         (gl_CHECK_NEXT_HEADERS): New macro.
85510         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
85511         the obsolescent gl_ABSOLUTE_HEADER.
85512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
85513         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
85514         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
85515         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
85516         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
85517         * m4/math_h.m4 (gl_MATH_H): Likewise.
85518         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85519         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
85520         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
85521         * m4/stdint.m4 (gl_STDINT_H): Likewise.
85522         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
85523         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
85524         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
85525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
85528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
85529         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
85530         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
85531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
85532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
85533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
85534         * m4/inttypes.m4 (gl_INTTYPES_H): Define
85535         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
85536         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
85537         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
85538         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
85539         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
85540         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
85541         * lib/float_.h: Likewise.
85542         * lib/inttypes_.h: Likewise.
85543         * lib/math_.h: Likewise.
85544         * lib/search_.h: Likewise.
85545         * lib/signal_.h: Likewise.
85546         * lib/stdint_.h: Likewise.
85547         * lib/stdio_.h: Likewise.
85548         * lib/stdlib_.h: Likewise.
85549         * lib/string_.h: Likewise.
85550         * lib/sys_stat_.h: Likewise.
85551         * lib/sys_time_.h: Likewise.
85552         * lib/time_.h: Likewise.
85553         * lib/unistd_.h: Likewise.
85554         * lib/wchar_.h: Likewise.
85555         * lib/wctype_.h: Likewise.
85556         * lib/dirent_.h: Likewise.
85557         * lib/iconv_.h: Likewise.
85558         * lib/locale_.h: Likewise.
85559         * lib/netinet_in_.h: Likewise.
85560         * lib/sys_select_.h: Likewise.
85561         * lib/sys_socket_.h: Likewise.
85562         * lib/sysexits_.h: Likewise.
85563         * modules/fcntl (Depends-on): Depend on include_next, not
85564         absolute_header.
85565         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
85566         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
85567         * modules/fchdir: Likewise.
85568         * modules/float: Likewise.
85569         * modules/iconv_open: Likewise.
85570         * modules/inttypes: Likewise.
85571         * modules/locale: Likewise.
85572         * modules/math: Likewise.
85573         * modules/netinet_in: Likewise.
85574         * modules/search: Likewise.
85575         * modules/signal: Likewise.
85576         * modules/stdint: Likewise.
85577         * modules/stdio: Likewise.
85578         * modules/stdlib: Likewise.
85579         * modules/string: Likewise.
85580         * modules/sys_select: Likewise.
85581         * modules/sys_socket: Likewise.
85582         * modules/sys_stat: Likewise.
85583         * modules/sys_time: Likewise.
85584         * modules/sysexits: Likewise.
85585         * modules/time: Likewise.
85586         * modules/unistd: Likewise.
85587         * modules/wchar: Likewise.
85588         * modules/wctype: Likewise.
85589         * modules/sys_stat: Change maintainer to "all".
85590         * modules/unistd: Likewise.
85592 2007-06-20  Karl Berry  <karl@gnu.org>
85594         * config/srclist.txt: track www changes in license files.
85596 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
85598         * build-aux/bootstrap: Remove stray dot.
85599         Make sure build_aux settings are honored when linking
85600         gnulib_extra_files.
85602 2007-06-19  Eric Blake  <ebb9@byu.net>
85604         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85605         Allow compilation on cygwin.
85607 2007-06-19  Jim Meyering  <jim@meyering.net>
85609         xreadlink-with-size: Remove module.  No longer used.
85610         Ex-callers now use xreadlink or mreadlink-with-size.
85611         * modules/xreadlink-with-size: Remove module.
85612         * lib/xreadlink-with-size.c: Remove file.
85613         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
85614         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
85615         just before the function definition *is* accurate.
85617         Eliminate one way canonicalize_filename_mode could exit.
85618         * lib/canonicalize.c (canonicalize_filename_mode):
85619         Use mreadlink_with_size, not xreadlink_with_size.
85621 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
85623         Detect porting problems to FreeBSD/arm, which has time_t wider than
85624         long int.  Original problem reported for GNU diff by Xin Li in
85625         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
85626         * modules/getdate (Depends-on): Add intprops, verify.
85627         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
85628         is an integer type no wider than long int.
85630 2007-06-18  Jim Meyering  <jim@meyering.net>
85632         New module: mreadlink-with-size.
85633         * MODULES.html.sh: Add mreadlink-with-size.
85634         * modules/mreadlink-with-size: New module
85635         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
85636         not xreadlink-with-size.
85637         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
85639 2007-06-16  Bruno Haible  <bruno@clisp.org>
85641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
85642         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
85643         Reported by Gary V. Vaughan <gary@gnu.org>.
85645 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
85647         Revamp lchown so that it lives in unistd.h where it belongs.
85648         * lib/lchown.h: Remove.
85649         * lib/dirchownmod.c: Don't include lib/lchown.h.
85650         * lib/fchownat.c: Likewise.
85651         * lib/openat.c: Likewise.
85652         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
85653         does not follow symlinks.
85654         (EOPNOTSUPP): Define if not defined.
85655         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
85656         is defined to 0.
85657         (lchown): New decl.
85658         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
85659         Do not check for lchown decl.
85660         Set REPLACE_LCHOWN.
85661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
85662         REPLACE_LCHOWN.
85663         * modules/chown: Make it clear it follows symlinks.
85664         * modules/lchown: Make it clear it doesn't follow symlinks.
85665         (Files): Remove lib/lchown.h
85666         (Depends-on): Add unistd.
85667         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
85668         (Include): Include <unistd.h>, not "lchown.h".
85669         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
85670         REPLACE_LCHOWN.
85672 2007-06-15  Jim Meyering  <jim@meyering.net>
85674         Change license (GPL to LGPL) of fsusage and dependents.
85675         * modules/fsusage (License): Change to LGPL.
85676         * modules/full-read (License): Likewise.
85677         * modules/full-write (License): Likewise.
85678         * modules/safe-read (License): Likewise.
85679         * modules/safe-write (License): Likewise.
85681 2007-06-14  Ben Pfaff  <blp@gnu.org>
85683         Missing part of allocsa -> malloca transition.
85684         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
85685         gl_MALLOCA.
85687 2007-06-12  Bruno Haible  <bruno@clisp.org>
85689         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
85690         to ia64, x86_64, i386.
85691         Reported by Eric Blake.
85693 2007-06-12  Bruno Haible  <bruno@clisp.org>
85695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
85696         cross-compiling to x86_64.
85698 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
85700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
85701         glitch reported by Ralf Wildenhues in
85702         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
85704         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
85705         Vin Shelton.
85707 2007-06-11  Bruno Haible  <bruno@clisp.org>
85709         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
85710         replacement string.
85711         Reported by Eric Blake.
85713 2007-06-10  Bruno Haible  <bruno@clisp.org>
85715         Prepare vasnprintf code for use with Unicode strings.
85716         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
85717         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
85718         TYPE_U32_STRING.
85719         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
85720         a_u32_string variants.
85721         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85722         * lib/printf-args.c: Don't include config.h and the specification
85723         header if PRINTF_FETCHARGS is already defined.
85724         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85725         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
85726         TYPE_U16_STRING, TYPE_U32_STRING.
85727         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
85728         u16_directive, u16_directives, u32_directive, u32_directives): New
85729         types.
85730         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
85731         New declarations.
85732         * lib/printf-parse.c: Don't include config.h and the specification
85733         header if PRINTF_PARSE is already defined. Eliminate the set of
85734         parameters for WIDE_CHAR_VERSION; the user of this file must provide
85735         them now. Include c-ctype.h.
85736         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
85737         directive and CHAR_T_ONLY_ASCII.
85738         * lib/vasnprintf.c: Don't include config.h and the specification header
85739         if VASNPRINTF is already defined.
85740         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
85741         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
85742         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
85743         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
85744         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
85745         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
85746         code accordingly.
85747         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
85748         pad_ourselves also in this case, with the 'c' and 's' directives, and
85749         with a different notion of "width".
85750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
85752 2007-06-10  Bruno Haible  <bruno@clisp.org>
85754         * modules/unistr/u32-mbsnlen: New file.
85755         * lib/unistr/u32-mbsnlen.c: New file.
85757         * modules/unistr/u16-mbsnlen: New file.
85758         * lib/unistr/u16-mbsnlen.c: New file.
85760         * modules/unistr/u8-mbsnlen: New file.
85761         * lib/unistr/u8-mbsnlen.c: New file.
85763         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
85764         declarations.
85766 2007-06-10  Bruno Haible  <bruno@clisp.org>
85768         * lib/string_.h (mbsnlen): New declaration.
85769         * lib/mbsnlen.c: New file.
85770         * m4/mbsnlen.m4: New file.
85771         * modules/mbsnlen: New file.
85772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
85773         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
85774         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
85776 2007-06-10  Bruno Haible  <bruno@clisp.org>
85778         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
85780 2007-06-10  Bruno Haible  <bruno@clisp.org>
85782         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
85783         * lib/mbuiter.h: Likewise.
85785 2007-06-10  Bruno Haible  <bruno@clisp.org>
85787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
85788         declaration.
85790 2007-06-10  Karl Berry  <karl@gnu.org>
85792         * config/srclist.txt: remove gettext entries, Bruno prefers
85793         to update individually.
85795 2007-06-10  Bruno Haible  <bruno@clisp.org>
85797         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
85798         'maxlen'. Ensure only length + width bytes are allocated, not
85799         length + 1 + width.
85801 2007-06-09  Bruno Haible  <bruno@clisp.org>
85803         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
85804         (CHAR_T): Remove macro.
85805         (VASNPRINTF): Update.
85807 2007-06-09  Bruno Haible  <bruno@clisp.org>
85809         * MODULES.html.sh (Unicode string functions): Add the new modules.
85811         * modules/uniconv/u32-conv-to-enc: New file.
85812         * lib/uniconv/u32-conv-to-enc.c: New file.
85813         * modules/uniconv/u32-conv-to-enc-tests: New file.
85814         * tests/uniconv/test-u32-conv-to-enc.c: New file.
85816         * modules/uniconv/u16-conv-to-enc: New file.
85817         * lib/uniconv/u16-conv-to-enc.c: New file.
85818         * lib/uniconv/u-conv-to-enc.h: New file.
85819         * modules/uniconv/u16-conv-to-enc-tests: New file.
85820         * tests/uniconv/test-u16-conv-to-enc.c: New file.
85822         * modules/uniconv/u8-conv-to-enc: New file.
85823         * lib/uniconv/u8-conv-to-enc.c: New file.
85824         * modules/uniconv/u8-conv-to-enc-tests: New file.
85825         * tests/uniconv/test-u8-conv-to-enc.c: New file.
85827         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
85828         u32_conv_to_encoding): New declarations.
85830 2007-06-09  Bruno Haible  <bruno@clisp.org>
85832         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
85834 2007-06-09  Bruno Haible  <bruno@clisp.org>
85836         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
85837         * modules/malloca: Renamed from modules/allocsa, updated.
85838         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
85839         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
85840         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
85841         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
85842         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
85843         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
85844         * modules/xmalloca: Renamed from modules/xallocsa, updated.
85845         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
85846         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
85847         * modules/c-strcasestr (Depends-on): Update.
85848         * lib/c-strcasestr.c: Update.
85849         * modules/c-strstr (Depends-on): Update.
85850         * lib/c-strstr.c: Update.
85851         * modules/canonicalize-lgpl (Depends-on): Update.
85852         * lib/canonicalize-lgpl.c: Update.
85853         * modules/clean-temp (Depends-on): Update.
85854         * lib/clean-temp.c: Update.
85855         * modules/csharpcomp (Depends-on): Update.
85856         * lib/csharpcomp.c: Update.
85857         * modules/csharpexec (Depends-on): Update.
85858         * lib/csharpexec.c: Update.
85859         * modules/javacomp (Depends-on): Update.
85860         * lib/javacomp.c: Update.
85861         * modules/javaexec (Depends-on): Update.
85862         * lib/javaexec.c: Update.
85863         * modules/mbscasestr (Depends-on): Update.
85864         * lib/mbscasestr.c: Update.
85865         * modules/mbsstr (Depends-on): Update.
85866         * lib/mbsstr.c: Update.
85867         * modules/setenv (Depends-on): Update.
85868         * lib/setenv.c: Update.
85869         * modules/strcasestr (Depends-on): Update.
85870         * lib/strcasestr.c: Update.
85871         * modules/striconveha (Depends-on): Update.
85872         * lib/striconveha.c: Update.
85873         * modules/relocatable-prog-wrapper (Files): Update.
85874         * lib/relocwrapper.c: Update.
85875         * build-aux/install-reloc: Update.
85876         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85878 2007-06-08  Bruno Haible  <bruno@clisp.org>
85880         Port to uClibc.
85881         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85882         * lib/fpurge.c (fpurge): Likewise.
85883         * lib/freading.c (freading): Likewise.
85884         * lib/fseeko.c (rpl_fseeko): Likewise.
85885         * lib/fseterr.c (fseterr): Likewise.
85886         * lib/fwriting.c (fwriting): Likewise.
85887         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85889 2007-06-08  Bruno Haible  <bruno@clisp.org>
85891         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85892         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85893         * modules/gettext (Files): Add m4/intlmacosx.m4.
85895 2007-06-07  Bruno Haible  <bruno@clisp.org>
85897         * modules/localename-tests: New file.
85898         * tests/test-localename.c: New file.
85900         New module 'localename'.
85901         * lib/localename.h: New file.
85902         * lib/localename.c: New file, from GNU gettext.
85903         * m4/localename.m4: New file.
85904         * modules/localename: New file.
85906 2007-06-07  Bruno Haible  <bruno@clisp.org>
85908         Work around the lack of <wchar.h> on some builds of uClibc.
85909         * doc/headers/wchar.texi: Update.
85910         * lib/wchar_.h: Include <wchar.h> only if it exists.
85911         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85912         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85913         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85914         doesn't exist.
85915         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85916         * modules/mbfile (Depends-on): Add wchar.
85917         * modules/mbiter (Depends-on): Likewise.
85918         * modules/mbuiter (Depends-on): Likewise.
85919         Reported by Simon Josefsson.
85921 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85923         Work around problem reported by Steven M. Schweda in
85924         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85925         Tru64 5.1B with the Compaq compiler environment installed declares
85926         an 'isblank' function but does not define it in the C library.
85927         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85928         * lib/regex_internal.h (isblank): Likewise.
85929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85930         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85932 2007-06-05  Bruno Haible  <bruno@clisp.org>
85934         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85935         ia64.
85936         * modules/printf-safe: New file.
85937         * modules/fprintf-posix (Depends-on): Add printf-safe.
85938         * modules/printf-posix (Depends-on): Likewise.
85939         * modules/snprintf-posix (Depends-on): Likewise.
85940         * modules/sprintf-posix (Depends-on): Likewise.
85941         * modules/vasnprintf-posix (Depends-on): Likewise.
85942         * modules/vasprintf-posix (Depends-on): Likewise.
85943         * modules/vfprintf-posix (Depends-on): Likewise.
85944         * modules/vprintf-posix (Depends-on): Likewise.
85945         * modules/vsnprintf-posix (Depends-on): Likewise.
85946         * modules/vsprintf-posix (Depends-on): Likewise.
85947         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85948         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85949         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85950         "no" on i386, x86_64, ia64.
85951         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85952         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85953         on i386, x86_64, ia64.
85954         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85955         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85956         on i386, x86_64, ia64.
85957         * tests/test-vasnprintf-posix.c: Include float.h.
85958         (LDBL80_WORDS): New macro.
85959         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85960         on i386, x86_64, ia64.
85961         * tests/test-vasprintf-posix.c: Include float.h.
85962         (LDBL80_WORDS): New macro.
85963         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85964         on i386, x86_64, ia64.
85965         * tests/test-snprintf-posix.c: Include float.h.
85966         * tests/test-sprintf-posix.c: Likewise.
85967         * tests/test-vsnprintf-posix.c: Likewise.
85968         * tests/test-vsprintf-posix.c: Likewise.
85970 2007-06-05  Bruno Haible  <bruno@clisp.org>
85972         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85974         non-IEEE numbers on i386, x86_64, ia64.
85975         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85976         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85977         * tests/test-isnanl.h: Include float.h.
85978         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85980 2007-06-05  Bruno Haible  <bruno@clisp.org>
85982         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85983         also the %a / %A. Handle the %a / %A code before this extra handling.
85985 2007-06-05  Bruno Haible  <bruno@clisp.org>
85987         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85988         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85990 2007-06-05  Bruno Haible  <bruno@clisp.org>
85992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85993         typo in variable name.
85995 2007-06-05  Eric Blake  <ebb9@byu.net>
85997         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85998         Reported by Simon Josefsson.
86000 2007-06-04  Bruno Haible  <bruno@clisp.org>
86002         Avoid test failures on some PowerPC platforms.
86003         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
86004         Define differently for PowerPC.
86005         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
86006         Reported by Gary V. Vaughan <gary@gnu.org>.
86008 2007-06-02  Bruno Haible  <bruno@clisp.org>
86010         Fix test-stdint failure on FreeBSD/ia64.
86011         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
86012         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
86013         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
86014         * doc/headers/stdint.texi: Update.
86016 2007-06-01  Bruno Haible  <bruno@clisp.org>
86018         * tests/test-binary-io.c (main): Pass a third argument to open().
86019         Reported by Gary V. Vaughan <gary@gnu.org>.
86021 2007-06-01  Bruno Haible  <bruno@clisp.org>
86023         * doc/functions/frexpl.texi: Update for mingw.
86025 2007-06-01  Bruno Haible  <bruno@clisp.org>
86027         * tests/test-lseek.c (main): Disable test of errno for invalid third
86028         argument.
86029         * doc/functions/lseek.texi: Update.
86030         Reported by Gary V. Vaughan <gary@gnu.org>.
86032 2007-05-28  Bruno Haible  <bruno@clisp.org>
86034         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
86036 2007-05-31  Eric Blake  <ebb9@byu.net>
86038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
86039         cross compiling.
86041 2007-05-30  Eric Blake  <ebb9@byu.net>
86042         and Bruno Haible  <bruno@clisp.org>
86044         Work around mingw test failures exposed by m4-1.4.9b.
86045         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
86046         * tests/test-unistd.c: Disable uid_t and git_t tests for the
86047         moment.
86049 2007-05-30  Bruno Haible  <bruno@clisp.org>
86051         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
86052         assuming that they are closed. Needed on HP-UX 11.
86054 2007-05-29  Bruno Haible  <bruno@clisp.org>
86056         Fix a problem with #include_next.
86057         * lib/dirent_.h: Split the double-inclusion guard.
86058         * lib/fcntl_.h: Likewise.
86059         * lib/float_.h: Likewise.
86060         * lib/iconv_.h: Likewise.
86061         * lib/inttypes_.h: Likewise.
86062         * lib/locale_.h: Likewise.
86063         * lib/math_.h: Likewise.
86064         * lib/netinet_in_.h: Likewise.
86065         * lib/search_.h: Likewise.
86066         * lib/signal_.h: Likewise.
86067         * lib/stdint_.h: Likewise.
86068         * lib/stdio_.h: Likewise.
86069         * lib/stdlib_.h: Likewise.
86070         * lib/string_.h: Likewise.
86071         * lib/sys_select_.h: Likewise.
86072         * lib/sys_socket_.h: Likewise.
86073         * lib/sys_stat_.h: Likewise.
86074         * lib/sys_time_.h: Likewise.
86075         * lib/sysexits_.h: Likewise.
86076         * lib/time_.h: Likewise.
86077         * lib/unistd_.h: Likewise.
86078         * lib/wchar_.h: Likewise.
86079         * lib/wctype_.h: Likewise.
86081 2007-05-29  Bruno Haible  <bruno@clisp.org>
86083         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
86084         for the moment.
86086 2007-05-29  Bruno Haible  <bruno@clisp.org>
86088         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
86089         invocation.
86090         Reported by Eric Blake.
86092 2007-05-29  Bruno Haible  <bruno@clisp.org>
86094         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
86095         compiling case.
86097 2007-05-29  Eric Blake  <ebb9@byu.net>
86098             Bruno Haible  <bruno@clisp.org>
86100         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
86101         cross compiles.
86103 2007-05-28  Eric Blake  <ebb9@byu.net>
86105         * modules/closein-tests (test_closein_LDADD): Support test on
86106         cygwin with libtool.
86108 2007-05-28  Bruno Haible  <bruno@clisp.org>
86110         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
86111         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
86112         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
86113         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
86114         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
86115         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
86116         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
86117         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
86118         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
86120 2007-05-28  Eric Blake  <ebb9@byu.net>
86122         Unconditionally include <config.h> in unit tests.
86123         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
86124         * tests/test-allocsa.c, tests/test-arcfour.c,
86125         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
86126         tests/test-array_list.c, tests/test-array_oset.c,
86127         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
86128         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
86129         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
86130         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
86131         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
86132         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
86133         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
86134         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
86135         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
86136         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
86137         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
86138         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
86139         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
86140         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
86141         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
86142         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
86143         test-md5.c, test-memmem.c, test-printf-posix.c,
86144         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
86145         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
86146         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
86147         test-strcasestr.c, test-striconv.c, test-striconveh.c,
86148         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
86149         test-vasnprintf-posix2.c, test-vasnprintf.c,
86150         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
86151         test-vfprintf-posix.c, test-vprintf-posix.c,
86152         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
86153         test-xvasprintf.c: Likewise.
86155 2007-05-28  Bruno Haible  <bruno@clisp.org>
86157         * gnulib-tool (func_import): Remember the --with-tests command-line
86158         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
86159         Reported by Eric Blake.
86161 2007-05-28  Bruno Haible  <bruno@clisp.org>
86163         * modules/ftell-tests: New file.
86164         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
86165         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
86167         * lib/ftell.c: New file.
86168         * modules/ftell: New file.
86169         * m4/ftell.m4: New file.
86170         * doc/functions/ftell.texi: Update.
86171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
86172         REPLACE_FTELL.
86173         * lib/stdio_.h (rpl_ftell): New declaration.
86174         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
86175         REPLACE_FTELL.
86177 2007-05-28  Eric Blake  <ebb9@byu.net>
86179         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
86181 2007-05-28  Bruno Haible  <bruno@clisp.org>
86183         * modules/fseek-tests: New file.
86184         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
86185         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
86187         * lib/fseek.c: New file.
86188         * modules/fseek: New file.
86189         * m4/fseek.m4: New file.
86190         * doc/functions/fseek.texi: Update.
86191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
86192         REPLACE_FSEEK.
86193         * lib/stdio_.h (rpl_fseek): New declaration.
86194         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
86195         REPLACE_FSEEK.
86197 2007-05-28  Bruno Haible  <bruno@clisp.org>
86199         * lib/stdio_.h (fflush): More comments.
86201 2007-05-28  Bruno Haible  <bruno@clisp.org>
86203         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
86204         runtime test.
86206 2007-05-28  Eric Blake  <ebb9@byu.net>
86208         Improve lseek module.
86209         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
86210         * lib/unistd_.h (lseek): Scale back link warning message.
86211         * tests/test-lseek.c: Beef up test.
86212         * tests/test-lseek.sh: Exercise more facets of lseek.
86213         Reported by Bruno Haible.
86215 2007-05-28  Bruno Haible  <bruno@clisp.org>
86217         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
86218         to define.
86220 2007-05-27  Bruno Haible  <bruno@clisp.org>
86222         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
86224 2007-05-27  Bruno Haible  <bruno@clisp.org>
86226         * modules/openmp: New file.
86227         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
86228         Noah Misch.
86230 2007-05-26  Bruno Haible  <bruno@clisp.org>
86232         * modules/chdir-long (Depends-on): Add fchdir.
86233         * modules/chdir-safer (Depends-on): Likewise.
86234         * modules/fts (Depends-on): Likewise.
86235         * modules/fts-lgpl (Depends-on): Likewise.
86236         * modules/openat (Depends-on): Likewise.
86237         * modules/savewd (Depends-on): Likewise.
86239 2007-05-24  Eric Blake  <ebb9@byu.net>
86241         Fix lseek on mingw.
86242         * modules/lseek: New module.
86243         * m4/lseek.m4: New file.
86244         * lib/lseek.c: New file.
86245         * modules/lseek-tests: New file.
86246         * tests/test-lseek.c: New file.
86247         * tests/test-lseek.sh: New file.
86248         * MODULES.html.sh: Document lseek module.
86249         * modules/fflush (Depends-on): Add lseek, fseeko.
86250         * modules/fseeko (Depends-on): Likewise.
86251         * modules/ftello (Depends-on): Likewise.
86252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
86253         broken.
86254         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
86255         broken.
86256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
86257         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
86258         * lib/ftello.c (rpl_ftello): Likewise.
86259         * tests/test-fseeko.c (main): Test this.
86260         * tests/test-fseeko.sh: Likewise.
86261         * tests/test-ftello.c (main): Likewise.
86262         * tests/test-ftello.sh: Likewise.
86263         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
86264         implies replacing fseek.
86265         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
86266         HAVE_FTELLO.
86267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
86268         * modules/unistd (Makefile.am): Likewise.
86269         * lib/unistd_.h (lseek): Declare a replacement.
86270         * doc/functions/lseek.texi (lseek): Document this fix.
86271         * doc/functions/fseek.texi (fseek): Likewise.
86272         * doc/functions/ftell.texi (ftell): Likewise.
86274 2007-05-24  Bruno Haible  <bruno@clisp.org>
86276         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
86277         in the printed representation of a NaN.
86278         * tests/test-vasprintf-posix.c (test_function): Likewise.
86279         * tests/test-snprintf-posix.h (test_function): Likewise.
86280         * tests/test-sprintf-posix.h (test_function): Likewise.
86281         Reported by Eric Blake.
86283 2007-05-23  Eric Blake  <ebb9@byu.net>
86285         Fix fseeko/ftello on cygwin 1.5.24.
86286         * doc/functions/fseeko.texi (fseeko): Document the fix.
86287         * doc/functions/ftello.texi (ftello): Document the fix.
86288         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
86289         * doc/functions/stdout.text (stdout): New file.
86290         * doc/functions/stderr.text (stderr): New file.
86291         * doc/gnulib.texi (Function Substitutes): Use new files.
86292         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
86293         prior to 1.7.0.
86294         * tests/test-ftello.c (main): Likewise for ftello.
86295         * tests/test-fseeko.sh: New file.
86296         * tests/test-ftello.sh: New file.
86297         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
86298         with seekable stdin.
86299         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
86300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
86301         (gl_REPLACE_FSEEKO): New macro.
86302         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
86303         * modules/fseeko (Files): Distribute fseeko.c.
86304         * modules/ftello (Files): Distribute ftello.c.
86305         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
86306         mode.
86307         * lib/ftello.c (rpl_ftello): New file.
86308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
86309         fseeko, ftello.
86310         (gl_STDIN_LARGE_OFFSET): New macro.
86311         * modules/stdio (Makefile.am): Perform the replacement.
86312         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
86314 2007-05-23  Bruno Haible  <bruno@clisp.org>
86316         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
86317         GNULIB_POSIXCHECK is defined.
86319 2007-05-21  Bruno Haible  <bruno@clisp.org>
86321         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
86322         Check also the output for NaN arguments. When cross-compiling, guess
86323         no on IRIX.
86324         * lib/vasnprintf.c: Update comments.
86325         * tests/test-vasnprintf-posix.c (strisnan): New function.
86326         (test_function): Use it.
86327         * tests/test-vasprintf-posix.c (strisnan): New function.
86328         (test_function): Use it.
86329         * tests/test-snprintf-posix.h (strisnan): New function.
86330         (test_function): Use it.
86331         * tests/test-sprintf-posix.h (strisnan): New function.
86332         (test_function): Use it.
86333         Reported by Eric Blake.
86335 2007-05-20  Bruno Haible  <bruno@clisp.org>
86337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
86338         numbers that fails on BeOS.
86339         * doc/functions/frexpl.texi: Update.
86341 2007-05-20  Jim Meyering  <jim@meyering.net>
86343         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
86344         forced upon us by glibc-2.6.
86346 2007-05-20  Bruno Haible  <bruno@clisp.org>
86348         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
86349         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
86350         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
86351         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
86352         NEED_PRINTF_INFINITE.
86353         (is_infinitel): New function.
86354         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
86355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
86356         gl_PREREQ_VASNPRINTF_INFINITE.
86357         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
86358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86359         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
86360         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
86361         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
86362         gl_PREREQ_VASNPRINTF_INFINITE.
86363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86370         * doc/functions/fprintf.texi: Update.
86371         * doc/functions/printf.texi: Update.
86372         * doc/functions/snprintf.texi: Update.
86373         * doc/functions/sprintf.texi: Update.
86374         * doc/functions/vfprintf.texi: Update.
86375         * doc/functions/vprintf.texi: Update.
86376         * doc/functions/vsnprintf.texi: Update.
86377         * doc/functions/vsprintf.texi: Update.
86379 2007-05-20  Bruno Haible  <bruno@clisp.org>
86381         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
86382         was not found in libc.
86383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
86385 2007-05-20  Bruno Haible  <bruno@clisp.org>
86387         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86388         printed as "-nan" instead of "nan".
86389         * tests/test-vasprintf-posix.c (test_function): Likewise.
86390         * tests/test-snprintf-posix.h (test_function): Likewise.
86391         * tests/test-sprintf-posix.h (test_function): Likewise.
86392         Needed for HP-UX 11.
86394 2007-05-20  Jim Meyering  <jim@meyering.net>
86396         Fix buggy test for the fchownat-deref bug.
86397         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
86398         symlink required for the run-test.  Without it, this test would
86399         always declare that fchownat doesn't work, and client code would
86400         unnecessarily use the replacement function with fixed libc.
86401         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
86402         Reported by Greg Schafer.
86404 2007-05-19  Bruno Haible  <bruno@clisp.org>
86406         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
86407         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
86408         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
86409         Needed for IRIX 6.5 and Solaris 2.5.1.
86411 2007-05-19  Bruno Haible  <bruno@clisp.org>
86413         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
86414         (test_function): Skip tests involving -0.0 on platforms where
86415         -0.0 = 0.0.
86416         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
86417         (test_function): Skip tests involving -0.0 on platforms where
86418         -0.0 = 0.0.
86419         * tests/test-snprintf-posix.h (have_minus_zero): New function.
86420         (test_function): Skip tests involving -0.0 on platforms where
86421         -0.0 = 0.0.
86422         * tests/test-sprintf-posix.h (have_minus_zero): New function.
86423         (test_function): Skip tests involving -0.0 on platforms where
86424         -0.0 = 0.0.
86425         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
86426         tests.
86427         * tests/test-printf-posix.h (test_function): Likewise.
86428         * tests/test-printf-posix.output: Remove all -0.0 related results.
86429         Needed for IRIX 6.5.
86431 2007-05-19  Bruno Haible  <bruno@clisp.org>
86433         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86434         printed as "nan0x7fffffff" instead of "nan".
86435         * tests/test-vasprintf-posix.c (test_function): Likewise.
86436         * tests/test-snprintf-posix.h (test_function): Likewise.
86437         * tests/test-sprintf-posix.h (test_function): Likewise.
86438         * tests/test-fprintf-posix.h (NaN): Remove macro.
86439         (test_function): Remove all NaN related tests.
86440         * tests/test-printf-posix.h (NaN): Remove macro.
86441         (test_function): Remove all NaN related tests.
86442         * tests/test-printf-posix.output: Remove all NaN related results.
86443         Needed for IRIX 6.5.
86445 2007-05-19  Bruno Haible  <bruno@clisp.org>
86447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
86448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
86450 2007-05-19  Bruno Haible  <bruno@clisp.org>
86452         * lib/float_.h: New file.
86453         * m4/float_h.m4: New file.
86454         * modules/float: New file.
86455         * modules/isnanl (Dependencies): Add float.
86456         * modules/isnanl-nolibm (Dependencies): Likewise.
86457         * modules/mathl (Dependencies): Likewise.
86458         * modules/printf-frexpl (Dependencies): Likewise.
86459         * modules/signbit (Dependencies): Likewise.
86460         * modules/vasnprintf (Dependencies): Likewise.
86461         * doc/headers/float.texi: Update.
86463 2007-05-19  Jim Meyering  <jim@meyering.net>
86465         * lib/utimens.c (gl_futimens): Rename from futimens,
86466         now that glibc-2.6 declares futimens.
86467         * lib/utimens.h: Likewise.
86469 2007-05-19  Bruno Haible  <bruno@clisp.org>
86471         Avoid test failures on mingw.
86472         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
86473         * tests/test-printf-posix.sh: Likewise.
86474         * tests/test-vfprintf-posix.sh: Likewise.
86475         * tests/test-vprintf-posix.sh: Likewise.
86477 2007-05-19  Bruno Haible  <bruno@clisp.org>
86479         Fix *printf result for NaN, Inf, -0.0 on mingw.
86480         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
86481         * lib/vasnprintf.c: Include math.h and isnan.h.
86482         (is_infinite_or_zero): New function.
86483         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
86484         values in the %f, %F, %e, %E, %g, %G directives.
86485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
86486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86487         gl_PRINTF_INFINITE and test its result. Invoke
86488         gl_PREREQ_VASNPRINTF_INFINITE.
86489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86496         * doc/functions/fprintf.texi: Update.
86497         * doc/functions/printf.texi: Update.
86498         * doc/functions/snprintf.texi: Update.
86499         * doc/functions/sprintf.texi: Update.
86500         * doc/functions/vfprintf.texi: Update.
86501         * doc/functions/vprintf.texi: Update.
86502         * doc/functions/vsnprintf.texi: Update.
86503         * doc/functions/vsprintf.texi: Update.
86505 2007-05-19  Bruno Haible  <bruno@clisp.org>
86507         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
86508         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
86509         Instead of multiplying with 10^k, set extra_zeroes to k.
86510         (scale10_round_long_double): Remove function.
86512 2007-05-18  Bruno Haible  <bruno@clisp.org>
86514         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
86515         introduced on 2007-05-06.
86517 2007-05-18  Bruno Haible  <bruno@clisp.org>
86519         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
86520         %g directives.
86521         * tests/test-vasprintf-posix.c (test_function): Likewise.
86522         * tests/test-snprintf-posix.h (test_function): Likewise.
86523         * tests/test-sprintf-posix.h (test_function): Likewise.
86525 2007-05-18  Bruno Haible  <bruno@clisp.org>
86527         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
86528         (strmatch): New function.
86529         (test_function): Test the %f directive on numbers of various exponents.
86530         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
86531         (strmatch): New function.
86532         (test_function): Test the %f directive on numbers of various exponents.
86533         * tests/test-snprintf-posix.h (strmatch): New function.
86534         (test_function): Test the %f directive on numbers of various exponents.
86535         * tests/test-sprintf-posix.h (strmatch): New function.
86536         (test_function): Test the %f directive on numbers of various exponents.
86537         * tests/test-snprintf-posix.c (SIZEOF): New macro.
86538         * tests/test-sprintf-posix.c (SIZEOF): New macro.
86539         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
86540         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
86542 2007-05-18  Bruno Haible  <bruno@clisp.org>
86544         Add support for 'long double' number output.
86545         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
86546         * lib/vasnprintf.c: Include math.h and float+.h.
86547         (mp_limb_t): New type.
86548         (GMP_LIMB_BITS): New macro.
86549         (mp_twolimb_t): New type.
86550         (GMP_TWOLIMB_BITS): New macro.
86551         (mpn_t): New type.
86552         (multiply, divide, convert_to_decimal, decode_long_double,
86553         scale10_round_long_double, scale10_round_decimal_long_double,
86554         floorlog10l): New functions.
86555         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
86556         for the %f, %F, %e, %E, %g, %G directives.
86557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
86558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86559         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
86560         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
86561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86568         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
86569         * modules/snprintf-posix (Depends-on): Likewise.
86570         * modules/sprintf-posix (Depends-on): Likewise.
86571         * modules/vasnprintf-posix (Depends-on): Likewise.
86572         * modules/vasprintf-posix (Depends-on): Likewise.
86573         * modules/vfprintf-posix (Depends-on): Likewise.
86574         * modules/vsnprintf-posix (Depends-on): Likewise.
86575         * modules/vsprintf-posix (Depends-on): Likewise.
86576         * modules/vasnprintf (Files): Add lib/float+.h.
86577         * doc/functions/fprintf.texi: Update.
86578         * doc/functions/printf.texi: Update.
86579         * doc/functions/snprintf.texi: Update.
86580         * doc/functions/sprintf.texi: Update.
86581         * doc/functions/vfprintf.texi: Update.
86582         * doc/functions/vprintf.texi: Update.
86583         * doc/functions/vsnprintf.texi: Update.
86584         * doc/functions/vsprintf.texi: Update.
86586 2007-05-18  Bruno Haible  <bruno@clisp.org>
86588         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
86590 2007-05-18  Bruno Haible  <bruno@clisp.org>
86592         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
86593         for printing 64-bit integers. Needed for mingw.
86595 2007-05-18  Bruno Haible  <bruno@clisp.org>
86597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86598         gl_FUNC_FREXPL_WORKS.
86599         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
86601 2007-05-18  Bruno Haible  <bruno@clisp.org>
86603         * modules/frexpl-nolibm-tests: New file.
86605         * modules/frexpl-nolibm: New file.
86606         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
86608 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86610         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
86611         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86612         GCC 4.2, which otherwise issues a lot of warnings.
86613         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
86614         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
86615         Likewise.
86616         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
86617         * modules/iconv_open (iconv.h): Likewise.
86618         * modules/locale (locale.h): Likewise.
86619         * modules/netinet_in (netinet/in.h): Likewise.
86620         * modules/sys_select (sys_select.h): Likewise.
86621         * modules/sys_socket (sys/socket.h): Likewise.
86622         * modules/sys_stat (sys/stat.h): Likewise.
86623         * modules/sysexits (sysexits.h): Likewise.
86624         * modules/unistd (unistd.h): Likewise.
86626 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86628         * modules/closein-tests (Makefile.am): Distribute
86629         `test-closein.sh'.
86631 2007-05-17  Bruno Haible  <bruno@clisp.org>
86633         * tests/test-printf-posix.output: Renamed from
86634         tests/test-fprintf-posix.out.
86635         * modules/fprintf-posix-tests: Update.
86636         * modules/printf-posix-tests: Update.
86637         * modules/vfprintf-posix-tests: Update.
86638         * modules/vprintf-posix-tests: Update.
86639         * tests/test-fprintf-posix.sh: Update.
86640         * tests/test-printf-posix.sh: Update.
86641         * tests/test-vfprintf-posix.sh: Update.
86642         * tests/test-vprintf-posix.sh: Update.
86643         Reported by Ralf Wildenhues.
86645 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86647         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
86648         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86649         GCC 4.2, which otherwise issues a lot of warnings.
86650         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
86651         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
86652         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
86653         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
86654         it should no longer be needed.
86655         * lib/string_.h: Likewise.
86656         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
86657         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
86658         * modules/inttypes (inttypes.h): Likewise.
86659         * modules/math (math.h): Likewise.
86660         * modules/search (search.h): Likewise.
86661         * modules/signal (signal.h): Likewise.
86662         * modules/stdint (stdint.h): Likewise.
86663         * modules/stdio (stdio.h): Likewise.
86664         * modules/stdlib (stdlib.h): Likewise.
86665         * modules/string (string.h): Likewise.
86666         * modules/sys_time (sys/time.h): Likewise.
86667         * modules/time (time.h): Likewise.
86668         * modules/wchar (wchar.h): Likewise.
86669         * modules/wctype (wtype.h): Likewise.
86671 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86673         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
86675 2007-05-13  Bruno Haible  <bruno@clisp.org>
86677         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
86678         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86679         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
86680         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86681         (gl_PREREQ_STRTOK_R): Don't require it here.
86683 2007-05-13  Bruno Haible  <bruno@clisp.org>
86685         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
86686         when used in C++ mode.
86688 2007-05-12  Bruno Haible  <bruno@clisp.org>
86690         * lib/linebuffer.h: Tweak doc.
86691         * lib/linebuffer.c: Likewise.
86693 2007-05-12  James Youngman  <jay@gnu.org>
86695         * lib/linebuffer.c (readlinebuffer_delim): New function,
86696         like readlinebuffer, but use a caller-specified delimiter.
86697         (readlinebuffer): Just call readlinebuffer_delim with '\n'
86698         as the delimiter.
86699         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
86701 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86703         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
86704         * modules/openat (Files): Remove openat-die.c.
86705         (Depends-on): Add openat-die.
86706         * modules/openat-die: New module.
86708 2007-05-06  Bruno Haible  <bruno@clisp.org>
86710         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
86711         Update with info about Cygwin.
86712         * doc/functions/fprintf.texi: Update.
86713         * doc/functions/printf.texi: Update.
86714         * doc/functions/snprintf.texi: Update.
86715         * doc/functions/sprintf.texi: Update.
86716         * doc/functions/vfprintf.texi: Update.
86717         * doc/functions/vprintf.texi: Update.
86718         * doc/functions/vsnprintf.texi: Update.
86719         * doc/functions/vsprintf.texi: Update.
86720         Reported by Eric Blake.
86722 2007-05-06  Bruno Haible  <bruno@clisp.org>
86724         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
86725         padding ourselves for the floating-point directives.
86726         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
86727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
86728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86729         gl_PRINTF_FLAG_ZERO and test its result. Invoke
86730         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
86731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86738         * tests/test-snprintf-posix.h (test_function): Also check the width
86739         and some flags in the %f directive.
86740         * tests/test-sprintf-posix.h (test_function): Likewise.
86741         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86742         * tests/test-vasprintf-posix.c (test_function): Likewise.
86743         * doc/functions/fprintf.texi: Update.
86744         * doc/functions/printf.texi: Update.
86745         * doc/functions/snprintf.texi: Update.
86746         * doc/functions/sprintf.texi: Update.
86747         * doc/functions/vfprintf.texi: Update.
86748         * doc/functions/vprintf.texi: Update.
86749         * doc/functions/vsnprintf.texi: Update.
86750         * doc/functions/vsprintf.texi: Update.
86752 2007-05-06  Bruno Haible  <bruno@clisp.org>
86754         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
86755         pass the ' flag character to sprintf or snprintf.
86756         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
86757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
86758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86759         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
86760         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
86761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86768         * tests/test-snprintf-posix.h (test_function): Also check the grouping
86769         flag.
86770         * tests/test-sprintf-posix.h (test_function): Likewise.
86771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86772         * tests/test-vasprintf-posix.c (test_function): Likewise.
86773         * doc/functions/fprintf.texi: Update.
86774         * doc/functions/printf.texi: Update.
86775         * doc/functions/snprintf.texi: Update.
86776         * doc/functions/sprintf.texi: Update.
86777         * doc/functions/vfprintf.texi: Update.
86778         * doc/functions/vprintf.texi: Update.
86779         * doc/functions/vsnprintf.texi: Update.
86780         * doc/functions/vsprintf.texi: Update.
86782 2007-05-01  Bruno Haible  <bruno@clisp.org>
86784         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
86786 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
86788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
86789         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
86791 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
86793         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
86794         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
86795         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
86797 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
86799         * lib/argp-help.c (struct hol_entry): New member `ord'.
86800         (HOL_ENTRY_PTRCMP): Use ord for comparison
86801         (hol_sort): Initialize ord.
86803 2007-05-01  Bruno Haible  <bruno@clisp.org>
86805         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
86806         Reported by Eric Blake.
86807         * doc/gnulib.texi (Function Substitutes): Update.
86809 2007-05-01  Bruno Haible  <bruno@clisp.org>
86811         * doc/functions.texi: Remove file, now redundant through
86812         doc/functions/*.texi.
86814 2007-05-01  Bruno Haible  <bruno@clisp.org>
86816         * modules/argp (Depends-on): Add sleep.
86818 2007-05-01  Bruno Haible  <bruno@clisp.org>
86820         * modules/sleep-tests: New file.
86821         * tests/test-sleep.c: New file.
86823         * modules/sleep: New file.
86824         * lib/sleep.c: New file.
86825         * m4/sleep.m4: New file.
86826         * lib/unistd_.h (sleep): New declaration.
86827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
86828         HAVE_SLEEP.
86829         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
86830         * doc/functions/sleep.texi: Document the sleep module.
86832 2007-05-01  Bruno Haible  <bruno@clisp.org>
86834         * lib/sigprocmask.h: Remove file.
86835         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
86836         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
86837         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
86838         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
86839         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
86840         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
86841         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
86842         HAVE_SIGSET_T as a shell variable.
86843         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
86844         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
86845         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
86846         (Depends-on): Add signal. Remove verify.
86847         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
86848         (Include): Mention <signal.h> instead of sigprocmask.h.
86849         * NEWS: Mention the change.
86850         * lib/fatal-signal.c: Don't include sigprocmask.h.
86852 2007-05-01  Bruno Haible  <bruno@clisp.org>
86854         * modules/signal: New file.
86855         * lib/signal_.h: New file.
86856         * m4/signal_h.m4: New file.
86858 2007-05-01  Bruno Haible  <bruno@clisp.org>
86860         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86861         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86862         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86863         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86865 2007-05-01  Bruno Haible  <bruno@clisp.org>
86867         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86868         configure time.
86869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86870         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86871         * modules/sys_stat (Makefile.am): Substitute their values into
86872         sys/stat.h.
86874 2007-05-01  Bruno Haible  <bruno@clisp.org>
86876         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86877         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86878         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86880 2007-05-01  Bruno Haible  <bruno@clisp.org>
86882         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86883         'assert' module here.
86885 2007-05-01  Bruno Haible  <bruno@clisp.org>
86887         * doc/functions/*.texi: New files.
86888         * doc/functions/google-ranking.txt: New file.
86889         * doc/gnulib.texi (Function Substitutes): New chapter.
86890         (ctime, inet_ntoa): Remove sections.
86891         * doc/ctime.texi: Remove file.
86892         * doc/inet_ntoa.texi: Remove file.
86893         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86894         dependencies.
86895         (%.info): New rule, specifying a --reference-limit.
86897 2007-05-01  Bruno Haible  <bruno@clisp.org>
86899         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86901 2007-05-01  Bruno Haible  <bruno@clisp.org>
86903         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86904         the portability of 'mkdir' to mingw systems.
86906 2007-05-01  Bruno Haible  <bruno@clisp.org>
86908         * doc/headers/google-ranking.txt: New file.
86910 2007-04-30  Eric Blake  <ebb9@byu.net>
86912         Prefer fseeko to fseek.
86913         * modules/getpass (Depends-on): Add fseeko.
86914         * lib/getpass.c (getpass): Use fseeko, not fseek.
86916 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86918         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86919         assumes the sorting is stable, while most qsort implementations
86920         are not.  Use argument addresses to ensure they never compare as
86921         equal.
86923         * tests/test-argp-2.sh (usage-indent test): Fix output
86924         (func_compare): Restore diff options
86925         * tests/test-argp.c: Restore #include "progname.h"
86927 2007-04-29  Bruno Haible  <bruno@clisp.org>
86929         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86931         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86933         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86934         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86935         (TESTS, check_PROGRAMS): Add test-snprintf.
86936         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86937         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86938         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86939         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86940         assertions that fail on HP-UX, OSF/1, or IRIX.
86941         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86943 2007-04-29  Bruno Haible  <bruno@clisp.org>
86945         * MODULES.html.sh (posix_functions): Remove 'contents'.
86947 2007-04-29  Karl Berry  <karl@gnu.org>
86949         * config/srclist.txt (gendocs_template_min): new entry.
86951 2007-04-29  Bruno Haible  <bruno@clisp.org>
86953         Work around fpurge bug on BSD systems.
86954         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86955         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86956         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86957         fpurge to rpl_fpurge if the system already has this function.
86958         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86959         the case where the system already has this function. Correct invariants
86960         on BSD systems.
86961         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86962         BSD systems.
86964 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86966         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86967         proposed by Sven Verdoolaege.
86969         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86970         options.
86971         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86972         (usage and help tests): Update
86974 2007-04-29  Bruno Haible  <bruno@clisp.org>
86976         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86977         Print more information in case of failure. Disable a test on BeOS.
86979 2007-04-29  Bruno Haible  <bruno@clisp.org>
86981         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86982         This helps debugging on systems on which no gdb is available.
86984 2007-04-29  Bruno Haible  <bruno@clisp.org>
86986         * lib/freading.h: Improve comments.
86987         * lib/fwriting.h: Likewise.
86988         * tests/test-freading.c (main): Don't check freading immediately after
86989         repositioning. Needed for glibc.
86991 2007-04-29  Bruno Haible  <bruno@clisp.org>
86993         * lib/freading.c (freading): Trivial simplification.
86995 2007-04-28  Bruno Haible  <bruno@clisp.org>
86997         * tests/test-fwriting.c (main): Also test the interaction between
86998         fflush and fwriting.
86999         * modules/fwriting-tests (Depends-on): Add fflush.
87001         * tests/test-freading.c (main): Also test the interaction between
87002         fflush and freading.
87003         * modules/freading-tests (Depends-on): Add fflush.
87005 2007-04-28  Bruno Haible  <bruno@clisp.org>
87007         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
87008         fseeko and ftello.
87009         Suggested by Eric Blake.
87011 2007-04-28  Jim Meyering  <jim@meyering.net>
87013         Avoid false-negative in gl_STDINT_H's C99 conformance test.
87014         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
87015         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
87017 2007-04-27  Eric Blake  <ebb9@byu.net>
87019         * doc/headers/assert.texi (assert.h): Document assert module use.
87021 2007-04-27  Bruno Haible  <bruno@clisp.org>
87023         * doc/headers/*.texi: New files.
87024         * doc/gnulib.texi (Header File Substitutes): New chapter.
87025         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
87026         dependencies.
87027         (standards.info ,standards.html, standards.dvi): Update dependencies.
87028         (mostlyclean, clean): New targets.
87030 2007-04-27  Bruno Haible  <bruno@clisp.org>
87032         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
87033         * modules/sysexits (Files, Makefile.am): Update.
87035         * lib/sys_socket_.h: Renamed from lib/socket_.h.
87036         * modules/sys_socket (Files, Makefile.am): Update.
87038         * lib/sys_stat_.h: Renamed from lib/stat_.h.
87039         * modules/sys_stat (Files, Makefile.am): Update.
87041 2007-04-27  Eric Blake  <ebb9@byu.net>
87043         * lib/freading.h: Improve comments.
87044         * lib/fwriting.h: Likewise.
87045         * lib/fflush.c: Likewise.
87047         Fix closein for mingw.
87048         * modules/closein-tests: Add tests for closein.
87049         * tests/test-closein.c: New file.
87050         * tests/test-closein.sh: Likewise.
87051         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
87052         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
87054 2007-04-27  Bruno Haible  <bruno@clisp.org>
87056         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
87057         version is < 6.
87058         * lib/math_.h [__DECC]: Likewise.
87059         * lib/stdio_.h [__DECC]: Likewise.
87060         * lib/stdlib_.h [__DECC]: Likewise.
87061         * lib/string_.h [__DECC]: Likewise.
87062         * lib/time_.h [__DECC]: Likewise.
87063         * lib/wchar_.h [__DECC]: Likewise.
87064         * lib/wctype_.h [__DECC]: Likewise.
87066 2007-04-27  Bruno Haible  <bruno@clisp.org>
87068         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
87070 2007-04-27  Bruno Haible  <bruno@clisp.org>
87072         * lib/fflush.c: Add comments.
87073         * modules/fpurge-tests (Depends-on): Add fflush.
87074         * modules/freadable-tests (Depends-on): Likewise.
87075         * modules/fwritable-tests (Depends-on): Likewise.
87077 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
87079         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
87080         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
87081         Report by Bruno Haible <bruno@clisp.org>.
87083 2007-04-26  Eric Blake  <ebb9@byu.net>
87085         Fix fflush on mingw.
87086         * modules/fflush (Depends-on): Add freading.
87087         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
87088         but unread data.
87090 2007-04-26  Eric Blake  <ebb9@byu.net>
87091         and Bruno Haible  <bruno@clisp.org>
87093         Implement freading and fwriting.
87094         * lib/freading.c: New file.
87095         * lib/freading.h: Likewise.
87096         * m4/freading.m4: Likewise.
87097         * modules/freading: Likewise.
87098         * modules/freading-tests: Likewise.
87099         * tests/test-freading.c: Likewise.
87100         * lib/fwriting.c: New file.
87101         * lib/fwriting.h: Likewise.
87102         * m4/fwriting.m4: Likewise.
87103         * modules/fwriting: Likewise.
87104         * modules/fwriting-tests: Likewise.
87105         * tests/test-fwriting.c: Likewise.
87106         * MODULES.html.sh (File stream based Input/Output): Mention them.
87108 2007-04-26  Bruno Haible  <bruno@clisp.org>
87110         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
87111         'long' when we assume it.
87112         Suggested by Eric Blake.
87114 2007-04-26  Bruno Haible  <bruno@clisp.org>
87116         Ensure fseeko, ftello are declared on glibc systems.
87117         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
87118         * modules/fseeko (configure.ac-early): Likewise.
87119         * modules/ftello (configure.ac-early): Likewise.
87120         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
87121         AC_FUNC_FSEEKO for this.
87122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
87123         (gl_CHECK_FSEEKO): Remove macro.
87125 2007-04-26  Bruno Haible  <bruno@clisp.org>
87127         * tests/test-fflush.c (main): Also check the ftell result after
87128         fflush and fseek/fseeko.
87129         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
87130         file descriptor position cache in the stream.
87131         * lib/fseeko.c (rpl_fseeko): Likewise.
87133 2007-04-26  Bruno Haible  <bruno@clisp.org>
87135         * modules/fflush-tests (Depends-on): Add fseeko.
87137 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
87138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87140         * lib/argz_.h: ensure error_t definition is obtained in same
87141         mechanism system argz.h would have.
87142         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
87143         argz facilities are known bad.  Err on the side of caution if
87144         cross-compiling.
87146 2007-04-25  Eric Blake  <ebb9@byu.net>
87148         * lib/fpurge.c (includes): Use stdlib.h for free.
87149         * tests/test-fflush.c (main): Also test fflush-fseeko.
87151 2007-04-25  Bruno Haible  <bruno@clisp.org>
87153         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
87154         * lib/fseeko.c: New file.
87155         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
87156         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
87157         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
87158         gl_FUNC_FSEEKO.
87159         (gl_FUNC_FSEEKO): Invoke it.
87160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
87161         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
87162         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
87164 2007-04-25  Bruno Haible  <bruno@clisp.org>
87166         * modules/fflush (Depends-on): Add ftello.
87168 2007-04-25  Bruno Haible  <bruno@clisp.org>
87170         * modules/ftello-tests: New file.
87171         * tests/test-ftello.c: New file.
87173         * modules/ftello: New file.
87174         * m4/ftello.m4: New file.
87175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
87176         HAVE_FTELLO.
87177         * lib/stdio_.h (ftello): New declaration.
87178         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
87179         HAVE_FTELLO.
87181 2007-04-25  Bruno Haible  <bruno@clisp.org>
87183         * modules/fseeko-tests: New file.
87184         * tests/test-fseeko.c: New file.
87186         * modules/fseeko: New file.
87187         * m4/fseeko.m4: New file.
87188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
87189         HAVE_FSEEKO.
87190         * lib/stdio_.h (fseeko): New declaration.
87191         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
87192         HAVE_FSEEKO.
87194 2007-04-25  Bruno Haible  <bruno@clisp.org>
87196         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
87198 2007-04-25  Bruno Haible  <bruno@clisp.org>
87200         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
87201         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
87202         * tests/test-unistd.c: Likewise.
87203         * tests/test-fcntl.c: Likewise.
87205 2007-04-23  Eric Blake  <ebb9@byu.net>
87207         * lib/fflush.c: Fix missing include.
87208         Reported by Bruno Haible.
87210 2007-04-23  Bruno Haible  <bruno@clisp.org>
87212         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
87213         Reported by Eric Blake.
87215 2007-04-23  Bruno Haible  <bruno@clisp.org>
87217         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
87219 2007-04-23  Bruno Haible  <bruno@clisp.org>
87221         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
87223 2007-04-23  Bruno Haible  <bruno@clisp.org>
87225         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
87226         Needed on HP-UX 11.
87228 2007-04-16  Eric Blake  <ebb9@byu.net>
87230         Make fflush rely on fpurge.
87231         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
87232         open coding all variants.
87233         * modules/fflush (Depends-on): Add fpurge and unistd.
87234         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
87235         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
87237         Fix --with-tests compilation on cygwin.
87238         * modules/argmatch-tests (Makefile.am): List gnulib library first
87239         in LDADD.
87240         * modules/argp-tests (Makefile.am): Likewise.
87241         * modules/array-list-tests (Makefile.am): Likewise.
87242         * modules/array-oset-tests (Makefile.am): Likewise.
87243         * modules/avltree-list-tests (Makefile.am): Likewise.
87244         * modules/avltree-oset-tests (Makefile.am): Likewise.
87245         * modules/avltreehash-list-tests (Makefile.am): Likewise.
87246         * modules/carray-list-tests (Makefile.am): Likewise.
87247         * modules/dirname-tests (Makefile.am): Likewise.
87248         * modules/frexp-tests (Makefile.am): Likewise.
87249         * modules/isnanl-tests (Makefile.am): Likewise.
87250         * modules/linked-list-tests (Makefile.am): Likewise.
87251         * modules/linkedhash-list-tests (Makefile.am): Likewise.
87252         * modules/lock-tests (Makefile.am): Likewise.
87253         * modules/rbtree-list-tests (Makefile.am): Likewise.
87254         * modules/rbtree-oset-tests (Makefile.am): Likewise.
87255         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
87256         * modules/tls-tests (Makefile.am): Likewise.
87257         * modules/tsearch-tests (Makefile.am): Likewise.
87258         * modules/xvasprintf-tests (Makefile.am): Likewise.
87260         Fix fpurge for cygwin.
87261         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
87262         value.
87263         * modules/fpurge-tests (Depends-on): Clean up trash.
87265 2007-04-16  Simon Josefsson  <simon@josefsson.org>
87267         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
87269         * m4/autobuild.m4: Re-indent.
87271 2007-04-13  Bruno Haible  <bruno@clisp.org>
87273         * modules/fpurge-tests: New file.
87274         * tests/test-fpurge.c: New file.
87276         * modules/fpurge: New file.
87277         * lib/fpurge.h: New file.
87278         * lib/fpurge.c: New file.
87279         * m4/fpurge.m4: New file.
87281 2007-04-13  Bruno Haible  <bruno@clisp.org>
87283         * modules/fbufmode-tests: New file.
87284         * tests/test-fbufmode.c: New file.
87286         * modules/fbufmode: New file.
87287         * lib/fbufmode.h: New file.
87288         * lib/fbufmode.c: New file.
87289         * m4/fbufmode.m4: New file.
87291 2007-04-13  Bruno Haible  <bruno@clisp.org>
87293         * modules/fwritable-tests: New file.
87294         * tests/test-fwritable.c: New file.
87296         * modules/fwritable: New file.
87297         * lib/fwritable.h: New file.
87298         * lib/fwritable.c: New file.
87299         * m4/fwritable.m4: New file.
87301 2007-04-13  Bruno Haible  <bruno@clisp.org>
87303         * modules/freadable-tests: New file.
87304         * tests/test-freadable.c: New file.
87306         * modules/freadable: New file.
87307         * lib/freadable.h: New file.
87308         * lib/freadable.c: New file.
87309         * m4/freadable.m4: New file.
87311 2007-04-13  Bruno Haible  <bruno@clisp.org>
87313         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
87314         MOSTLYCLEANFILES.
87316 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87318         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
87319         gzip bootstrap.conf to avoid dragging in i18n machinery.
87320         (gnulib_tool_option): Use it.
87322 2007-04-13  Bruno Haible  <bruno@clisp.org>
87324         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
87325         %F directives.
87326         * tests/test-vasprintf-posix.c (test_function): Likewise.
87327         * tests/test-snprintf-posix.h (test_function): Likewise.
87328         * tests/test-sprintf-posix.h (test_function): Likewise.
87329         * tests/test-fprintf-posix.h (test_function): Likewise.
87330         * tests/test-printf-posix.h (test_function): Likewise.
87331         * tests/test-fprintf-posix.out: Likewise.
87333 2007-04-13  Bruno Haible  <bruno@clisp.org>
87335         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
87336         * modules/tls-tests (configure.ac): Likewise.
87337         Reported by Arto C. Nirkko <anirkko@insel.ch>.
87339 2007-04-13  Bruno Haible  <bruno@clisp.org>
87341         * lib/tls.c (glthread_tls_get): Fix return type.
87342         Patch by Arto C. Nirkko <anirkko@insel.ch>.
87344 2007-04-12  Eric Blake  <ebb9@byu.net>
87346         * modules/gettime (Depends-on): Remove gettime.
87347         Reported by Dmitry V. Levin.
87349 2007-04-12  Bruno Haible  <bruno@clisp.org>
87351         * modules/fflush (Include): Mention <stdio.h>.
87352         * modules/strtoimax (Include): Mention <inttypes.h>.
87353         * modules/strtoumax (Include): Likewise.
87355 2007-04-12  Eric Blake  <ebb9@byu.net>
87357         * .cvsignore: New file.
87358         * .gitignore: Likewise.
87360 2007-04-12  Bruno Haible  <bruno@clisp.org>
87362         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
87363         not before, since $(LDADD) often contains libgnu.a.
87364         * modules/striconv-tests (test_striconv_LDADD): Likewise.
87365         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
87366         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
87367         Needed on Cygwin.
87369 2007-04-12  Eric Blake  <ebb9@byu.net>
87371         Work around glibc's failure to flush stdin on fclose.
87372         * lib/closein.c (close_stdin): Flush stdin before closing.
87374         Work around glibc's failure to reset seekable stdin on exit.
87375         * modules/closein: New module.
87376         * lib/closein.c: New file.
87377         * lib/closein.h: Likewise.
87378         * m4/closein.m4: Likewise.
87379         * MODULES.html.sh (File stream based Input/Output): Document it.
87381 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87383         * gnulib-tool: Rename generated 'autobuild' script to
87384         'do-autobuild' in --create-megatestdir output.
87386         * doc/gnulib.texi (Build robot for gnulib): Fix.
87388 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87390         * modules/sysexits (Depends-on): Add absolute-header.
87392 2007-04-12  Eric Blake  <ebb9@byu.net>
87394         No need to preserve errno on success.
87395         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
87396         Reported by Bruno Haible.
87398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87400         * MODULES.html.sh (Support for maintaining and releasing
87401         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
87403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87405         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
87407 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87409         * modules/autobuild: New module.
87411         * m4/autobuild.m4: New file.
87413 2007-04-11  Bruno Haible  <bruno@clisp.org>
87415         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
87416         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
87417         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
87418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
87419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87423         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87424         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
87426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
87429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
87432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
87435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
87438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
87441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87443         Reported by Eric Blake.
87445 2007-04-11  Bruno Haible  <bruno@clisp.org>
87447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
87449 2007-04-10  Bruno Haible  <bruno@clisp.org>
87451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
87452         for NaN and Infinity. Needed on FreeBSD 6.1.
87453         * tests/test-vasnprintf-posix.c (test_function): Undo last change
87454         regarding results for "%010a" of Infinity and NaN.
87455         * tests/test-vasprintf-posix.c (test_function): Likewise.
87456         * tests/test-snprintf-posix.h (test_function): Likewise.
87457         * tests/test-sprintf-posix.h (test_function): Likewise.
87458         * tests/test-fprintf-posix.h (test_function): Likewise.
87459         * tests/test-printf-posix.h (test_function): Likewise.
87460         * tests/test-fprintf-posix.out: Likewise.
87462 2007-04-10  Bruno Haible  <bruno@clisp.org>
87464         * modules/locale-tests: New file.
87465         * tests/test-locale.c: New file.
87467         * modules/locale: New file.
87468         * lib/locale_.h: New file.
87469         * m4/locale_h.m4: New file.
87471 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
87472             Bruno Haible  <bruno@clisp.org>
87474         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
87475         be determined, test for availability of the copysignf, copysign,
87476         copysignl functions.
87477         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
87478         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
87479         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
87481 2007-04-09  Eric Blake  <ebb9@byu.net>
87483         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
87484         * modules/stdio (Makefile.am): Support fflush.
87485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87486         * modules/fflush: New file.
87487         * lib/fflush.c: Likewise.
87488         * m4/fflush.m4: Likewise.
87489         * modules/fflush-tests: New test.
87490         * tests/test-fflush.c: Likewise.
87491         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
87493 2007-04-06  Bruno Haible  <bruno@clisp.org>
87495         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
87496         (VASNPRINTF): Use signbit for faster determination whether to print a
87497         minus sign.
87498         * modules/vasnprintf (Files): Remove lib/float+.h.
87499         * modules/fprintf-posix (Depends-on): Add signbit.
87500         * modules/snprintf-posix (Depends-on): Likewise.
87501         * modules/sprintf-posix (Depends-on): Likewise.
87502         * modules/vasnprintf-posix (Depends-on): Likewise.
87503         * modules/vasprintf-posix (Depends-on): Likewise.
87504         * modules/vfprintf-posix (Depends-on): Likewise.
87505         * modules/vsnprintf-posix (Depends-on): Likewise.
87506         * modules/vsprintf-posix (Depends-on): Likewise.
87508 2007-04-06  Bruno Haible  <bruno@clisp.org>
87510         * tests/test-frexp.c (main): Test also the sign bit of zero results.
87511         * tests/test-frexpl.c (main): Likewise.
87512         * tests/test-ldexpl.c (main): Likewise.
87513         * modules/frexp-tests (Depends-on): Add signbit.
87514         * modules/frexpl-tests (Depdends-on): Likewise.
87515         * modules/ldexpl-tests (Depdends-on): Likewise.
87517 2007-04-06  Bruno Haible  <bruno@clisp.org>
87519         * modules/signbit-tests: New file.
87520         * tests/test-signbit.c: New file.
87522         * modules/signbit: New file.
87523         * lib/signbitf.c: New file.
87524         * lib/signbitd.c: New file.
87525         * lib/signbitl.c: New file.
87526         * m4/signbit.m4: New file.
87527         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
87528         (signbit): New macro.
87529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
87530         REPLACE_SIGNBIT.
87531         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
87532         REPLACE_FREXPL into math.h.
87534 2007-04-06  Bruno Haible  <bruno@clisp.org>
87536         * modules/isnanf-nolibm-tests: New file.
87537         * tests/test-isnanf.c: New file.
87539         * modules/isnanf-nolibm: New file.
87540         * lib/isnanf.h: New file.
87541         * lib/isnanf.c: New file.
87542         * lib/isnan.c: Consider the USE_FLOAT macro.
87543         * m4/isnanf.m4: New file.
87545 2007-04-06  Bruno Haible  <bruno@clisp.org>
87547         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
87548         (Link): New section.
87550         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
87552 2007-04-06  Bruno Haible  <bruno@clisp.org>
87554         Assume the 'long double' type.
87555         * m4/longdouble.m4: Remove file.
87556         * config/srclist.txt: Don't mention longdouble.m4.
87557         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
87558         * lib/float+.h: Likewise.
87559         * lib/frexp.c: Likewise.
87560         * lib/printf-args.h: Likewise.
87561         * lib/printf-args.c: Likewise.
87562         * lib/printf-frexp.c: Likewise.
87563         * lib/printf-parse.c: Likewise.
87564         * lib/vasnprintf.c: Likewise.
87565         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
87566         * m4/intl.m4: Likewise.
87567         * m4/isnanl.m4: Likewise.
87568         * m4/printf.m4: Likewise.
87569         * m4/printf-frexpl.m4: Likewise.
87570         * m4/vasnprintf.m4: Likewise.
87571         * modules/allocsa (Files): Remove m4/longdouble.m4.
87572         * modules/gettext (Files): Likewise.
87573         * modules/relocatable-prog-wrapper (Files): Likewise.
87574         * modules/vasnprintf (Files): Likewise.
87575         * modules/isnanl (Files): Likewise.
87576         (Include): Simplify.
87577         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
87578         (Include): Simplify.
87579         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
87580         (Include): Simplify.
87581         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
87582         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87583         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
87584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87585         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87587         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
87588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87589         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87591         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
87592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87593         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
87594         * tests/test-isnanl.c: Likewise.
87595         * tests/test-snprintf-posix.h: Likewise.
87596         * tests/test-sprintf-posix.h: Likewise.
87597         * tests/test-vasnprintf-posix.c: Likewise.
87598         * tests/test-vasnprintf-posix2.c: Likewise.
87599         * tests/test-vasprintf-posix.c: Likewise.
87601 2007-04-06  Bruno Haible  <bruno@clisp.org>
87603         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
87604         * lib/math_.h [__DECC]: Include the overridden include file through
87605         #include_next, outside the double-inclusion guard.
87606         * lib/stdio_.h [__DECC]: Likewise.
87607         * lib/stdlib_.h [__DECC]: Likewise.
87608         * lib/string_.h [__DECC]: Likewise.
87609         * lib/time_.h [__DECC]: Likewise.
87610         * lib/wchar_.h [__DECC]: Likewise.
87611         * lib/wctype_.h [__DECC]: Likewise.
87612         * lib/inttypes_.h [__DECC]: Likewise.
87613         Reported by Albert Chin <china@thewrittenword.com> in
87614         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
87616 2007-04-04  Eric Blake  <ebb9@byu.net>
87618         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
87619         1.5.x.
87621 2007-04-04  Bruno Haible  <bruno@clisp.org>
87623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
87624         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
87626 2007-04-04  Bruno Haible  <bruno@clisp.org>
87628         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
87629         results for "%010a" of Infinity and NaN.
87630         * tests/test-vasprintf-posix.c (test_function): Likewise.
87631         * tests/test-snprintf-posix.h (test_function): Likewise.
87632         * tests/test-sprintf-posix.h (test_function): Likewise.
87633         * tests/test-fprintf-posix.h (test_function): Remove these tests.
87634         * tests/test-printf-posix.h (test_function): Likewise.
87635         * tests/test-fprintf-posix.out: Update.
87636         Needed for FreeBSD 6.1.
87638 2007-04-04  Bruno Haible  <bruno@clisp.org>
87640         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
87641         directly used by the gnulib modules nor by gnulib-tool.
87643 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87645         * DEPENDENCIES: Give overall description of version dependency
87646         desirability.  Use more-typical names for apps.
87647         Add shell, coreutils, diffutils, grep, tar, gzip.
87649 2007-04-04  Simon Josefsson  <simon@josefsson.org>
87651         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
87653 2007-04-04  Karl Berry  <karl@gnu.org>
87655         * MODULES.html.sh (func_module): missing '.
87657 2007-04-03  Bruno Haible  <bruno@clisp.org>
87659         * modules/argmatch-tests (Makefile.am): New variable
87660         test_argmatch_LDADD.
87661         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
87662         * modules/array-list-tests (Makefile.am): New variable
87663         test_array_list_LDADD.
87664         * modules/array-oset-tests (Makefile.am): New variable
87665         test_array_oset_LDADD.
87666         * modules/avltree-list-tests (Makefile.am): New variable
87667         test_avltree_list_LDADD.
87668         * modules/avltree-oset-tests (Makefile.am): New variable
87669         test_avltree_oset_LDADD.
87670         * modules/avltreehash-list-tests (Makefile.am): New variable
87671         test_avltreehash_list_LDADD.
87672         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
87673         test_canonicalize_lgpl_LDADD.
87674         * modules/carray-list-tests (Makefile.am): New variable
87675         test_carray_list_LDADD.
87676         * modules/dirname-tests (Makefile.am): New variable
87677         test_dirname_LDADD.
87678         * modules/linked-list-tests (Makefile.am): New variable
87679         test_linked_list_LDADD.
87680         * modules/linkedhash-list-tests (Makefile.am): New variable
87681         test_linkedhash_list_LDADD.
87682         * modules/rbtree-list-tests (Makefile.am): New variable
87683         test_rbtree_list_LDADD.
87684         * modules/rbtree-oset-tests (Makefile.am): New variable
87685         test_rbtree_oset_LDADD.
87686         * modules/rbtreehash-list-tests (Makefile.am): New variable
87687         test_rbtreehash_list_LDADD.
87688         * modules/xvasprintf-tests (Makefile.am): New variable
87689         test_xvasprintf_LDADD.
87690         Reported by Eric Blake.
87692 2007-04-03  Eric Blake  <ebb9@byu.net>
87694         * DEPENDENCIES: Weaken m4 requirements.
87696 2007-04-03  Bruno Haible  <bruno@clisp.org>
87698         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
87699         * modules/isnanl-tests (configure.ac): Likewise.
87701 2007-04-03  Ben Pfaff  <blp@gnu.org>
87703         * modules/iconv_open: Add $(srcdir)/ to source directory
87704         references in Makefile fragments that call gperf, to fix VPATH
87705         builds.
87707 2007-04-03  Bruno Haible  <bruno@clisp.org>
87709         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
87710         * lib/ldexpl.c: Undo last change.
87712 2007-04-03  Bruno Haible  <bruno@clisp.org>
87714         * modules/printf-frexpl (Depends-on): Undo last change.
87715         (Files): Add m4/ldexpl.m4.
87717 2007-04-03  Bruno Haible  <bruno@clisp.org>
87719         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
87720         * modules/isnanl (Link): New section.
87722         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
87723         * modules/frexp (Link): New section.
87725         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
87726         * modules/frexpl (Link): New section.
87728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
87729         * modules/ldexpl (Link): New section.
87731 2007-04-03  Bruno Haible  <bruno@clisp.org>
87733         * modules/TEMPLATE-EXTENDED: New file.
87734         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
87736 2007-04-03  Bruno Haible  <bruno@clisp.org>
87738         * DEPENDENCIES: New file.
87739         Suggested by Simon Josefsson.
87741 2007-04-03  Bruno Haible  <bruno@clisp.org>
87743         * doc/gnulib.texi: Escape @.
87745 2007-04-03  James Youngman  <jay@gnu.org>
87746         and Paul Eggert  <eggert@cs.ucla.edu>
87748         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
87749         birthtime on all systems that have birthtime, not just those which
87750         use st_birthtimensec rather than st_birthtim.  Putting zero in
87751         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
87752         that the birth time is not available for files on an NFS mount.
87754 2007-04-03  Simon Josefsson  <simon@josefsson.org>
87756         * modules/memxor: Move back from crypto/, suggested by Bruno.
87757         * modules/crypto/hmac-sha1: Fix memxor dependency.
87759         * modules/crypto/gc: Moved from ../.
87761 2007-04-02  Eric Blake  <ebb9@byu.net>
87763         * lib/ldexpl.c (includes): Avoid libm.
87765         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
87767 2007-04-02  Bruno Haible  <bruno@clisp.org>
87769         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
87770         on IRIX.
87772 2007-04-02  Bruno Haible  <bruno@clisp.org>
87774         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
87775         x86 or x86_64 platforms running MacOS X.
87776         Reported by Ryan Schmidt <@ryandesign.com>.
87778 2007-04-02  Bruno Haible  <bruno@clisp.org>
87780         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
87781         i386.
87783 2007-04-01  Simon Josefsson  <simon@josefsson.org>
87785         * modules/crypto/arcfour: Moved from ../.
87786         * modules/crypto/arcfour-tests: Moved from ../.
87787         * modules/crypto/arctwo: Moved from ../.
87788         * modules/crypto/arctwo-tests: Moved from ../.
87789         * modules/crypto/des: Moved from ../.
87790         * modules/crypto/des-tests: Moved from ../.
87791         * modules/crypto/gc-arcfour: Moved from ../.
87792         * modules/crypto/gc-arcfour-tests: Moved from ../.
87793         * modules/crypto/gc-arctwo: Moved from ../.
87794         * modules/crypto/gc-arctwo-tests: Moved from ../.
87795         * modules/crypto/gc-des: Moved from ../.
87796         * modules/crypto/gc-des-tests: Moved from ../.
87797         * modules/crypto/gc-hmac-md5: Moved from ../.
87798         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
87799         * modules/crypto/gc-hmac-sha1: Moved from ../.
87800         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
87801         * modules/crypto/gc-md2: Moved from ../.
87802         * modules/crypto/gc-md2-tests: Moved from ../.
87803         * modules/crypto/gc-md4: Moved from ../.
87804         * modules/crypto/gc-md4-tests: Moved from ../.
87805         * modules/crypto/gc-md5: Moved from ../.
87806         * modules/crypto/gc-md5-tests: Moved from ../.
87807         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
87808         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
87809         * modules/crypto/gc-random: Moved from ../.
87810         * modules/crypto/gc-rijndael: Moved from ../.
87811         * modules/crypto/gc-rijndael-tests: Moved from ../.
87812         * modules/crypto/gc-sha1: Moved from ../.
87813         * modules/crypto/gc-sha1-tests: Moved from ../.
87814         * modules/crypto/gc-tests: Moved from ../.
87815         * modules/crypto/hmac-md5: Moved from ../.
87816         * modules/crypto/hmac-md5-tests: Moved from ../.
87817         * modules/crypto/hmac-sha1: Moved from ../.
87818         * modules/crypto/hmac-sha1-tests: Moved from ../.
87819         * modules/crypto/md2: Moved from ../.
87820         * modules/crypto/md2-tests: Moved from ../.
87821         * modules/crypto/md4: Moved from ../.
87822         * modules/crypto/md4-tests: Moved from ../.
87823         * modules/crypto/md5: Moved from ../.
87824         * modules/crypto/md5-tests: Moved from ../.
87825         * modules/crypto/memxor: Moved from ../.
87826         * modules/crypto/rijndael: Moved from ../.
87827         * modules/crypto/rijndael-tests: Moved from ../.
87828         * modules/crypto/sha1: Moved from ../.
87830 2007-03-30  James Youngman  <jay@gnu.org>
87832         * tests/test-stat-time.c (prepare_test): use chmod() rather than
87833         rename() to change the ctime of a file (because ctime is unaffected
87834         by rename on jfs2 on AIX 5.1).
87835         (main): Start by doing cleanup, in case a previous run failed leaving
87836         test files behind.
87838 2007-03-31  Bruno Haible  <bruno@clisp.org>
87840         Support old proprietary implementations of iconv.
87841         * modules/iconv_open: New file.
87842         * lib/iconv_.h: New file.
87843         * m4/iconv_h.m4: New file.
87844         * lib/iconv_open.c: New file.
87845         * lib/iconv_open-aix.gperf: New file.
87846         * lib/iconv_open-hpux.gperf: New file.
87847         * lib/iconv_open-irix.gperf: New file.
87848         * lib/iconv_open-osf.gperf: New file.
87849         * m4/iconv_open.m4: New file.
87850         * modules/linebreak (Depends-on): Add iconv_open.
87851         * modules/striconv (Depends-on): Likewise.
87852         * modules/striconveh (Depends-on): Likewise.
87853         * modules/unicodeio (Depends-on): Likewise.
87854         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87855         (iconv_t)(-1).
87856         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87857         conversion if cd is (iconv_t)(-1).
87858         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87859         is not possible.
87861 2007-03-31  Bruno Haible  <bruno@clisp.org>
87863         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87864         work on Solaris either. Protect also second use of "autodetect_jp".
87866 2007-03-31  Bruno Haible  <bruno@clisp.org>
87868         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87869         the function is not present.
87871 2007-03-31  Bruno Haible  <bruno@clisp.org>
87873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87874         the function is not present.
87876 2007-03-31  Bruno Haible  <bruno@clisp.org>
87878         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87879         a bug in HP-UX iconv_open().
87881 2007-03-31  Bruno Haible  <bruno@clisp.org>
87883         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87884         (Mathematics <math.h>): New section, add fpieee.
87885         (Input/output <stdio.h>): Add fseterr.
87886         (Mathematics <math.h>): New section, add printf-frexp.
87887         (Container data structures): Add sublist.
87888         (Core language properties): Add fpucw, inline.
87889         (Functions for greatest-width integer types <inttypes.h>): Add
87890         imaxabs, imaxdiv, inttypes.
87891         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87892         isnanl-nolibm, ldexp.
87893         (Mathematics <math.h>): New section, add printf-frexpl.
87894         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87895         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87896         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87897         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87898         (Unicode string functions): Add unistr/u*-mbtoucr.
87899         (Java): Add javacomp-script, javaexec-script.
87900         (C#): Add csharpcomp-script, csharpexec-script.
87901         (Support for building libraries and executables): Add havelib,
87902         relocatable-*.
87903         (Support for maintaining and releasing projects): Renamed from
87904         'Support for maintaining and release projects'. Add announce-gen.
87906 2007-03-31  Bruno Haible  <bruno@clisp.org>
87908         * README: Talk primarily about git.
87909         (git and CVS): Renamed from CVS.
87910         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87911         gnulib is available through git.
87912         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87914 2007-03-30  Bruno Haible  <bruno@clisp.org>
87916         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87917         * lib/poll_.h: Likewise.
87918         * lib/stat_.h: Likewise.
87919         * lib/sys_time_.h: Likewise.
87920         * lib/sysexit_.h: Likewise.
87921         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87922         * lib/stdbool_.h: Likewise.
87923         * lib/byteswap_.h: Add double-inclusion guard.
87925 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87927         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87929 2007-03-30  Karl Berry  <karl@gnu.org>
87931         * config/srclist-update: double space after USA in the license
87932         substitution, since that's how it's usually (?) written.
87934 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87936         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87937         reported by Bruno Haible.
87939 2007-03-29  Bruno Haible  <bruno@clisp.org>
87941         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87942         a bug in AIX iconv().
87944 2007-03-29  Bruno Haible  <bruno@clisp.org>
87946         * modules/ldexpl-tests: New file.
87947         * tests/test-ldexpl.c: New file.
87949 2007-03-29  Bruno Haible  <bruno@clisp.org>
87951         * lib/ldexpl.c: Include fpucw.h.
87952         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87953         multiplication.
87954         * modules/ldexpl (Depends-on): Add fpucw.
87956 2007-03-29  Bruno Haible  <bruno@clisp.org>
87958         * modules/ldexpl: New file.
87959         * m4/ldexpl.m4: New file.
87960         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87961         set.
87962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87963         REPLACE_LDEXPL.
87964         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87965         REPLACE_LDEXPL.
87966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87967         gl_FUNC_LDEXPL_WORKS.
87968         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87969         * modules/mathl (Files): Remove lib/ldexpl.c.
87970         (Depends-on): Add ldexpl.
87972 2007-03-29  Bruno Haible  <bruno@clisp.org>
87974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87976 2007-03-29  Bruno Haible  <bruno@clisp.org>
87978         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87979         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87980         and possibly also HP-UX.
87981         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87982         work on AIX, IRIX, HP-UX, OSF/1.
87983         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87984         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87985         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87986         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87987         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87988         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87990 2007-03-29  Bruno Haible  <bruno@clisp.org>
87992         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87994 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87996         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87997         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87999 2007-03-29  Eric Blake  <ebb9@byu.net>
88001         * lib/acl-internal.h: Remove redundant include.
88002         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
88003         Cygwin when a file is locked.
88005 2007-03-29  Bruno Haible  <bruno@clisp.org>
88007         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
88008         file.
88009         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
88011 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
88013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
88014         try to remove a parent directory if the child couldn't be removed
88015         (except for the first rmdir, which could fail because the child
88016         doesn't exist).  Problem reported by Jeff Blaine in
88017         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
88019 2007-03-28  Bruno Haible  <bruno@clisp.org>
88021         * lib/striconveh.c (utf8conv_carefully): New function.
88022         (mem_cd_iconveh_internal): Invoke it.
88024 2007-03-28  Bruno Haible  <bruno@clisp.org>
88026         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
88027         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
88028         input.
88029         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
88030         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
88031         unistr/u8-uctomb.
88033 2007-03-28  Bruno Haible  <bruno@clisp.org>
88035         * modules/unistr/u8-mbtoucr: New file.
88036         * lib/unistr/u8-mbtoucr.c: New file.
88037         * modules/unistr/u16-mbtoucr: New file.
88038         * lib/unistr/u16-mbtoucr.c: New file.
88039         * modules/unistr/u16-mbtoucr: New file.
88040         * lib/unistr/u16-mbtoucr.c: New file.
88041         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
88043 2007-03-27  Simon Josefsson  <simon@josefsson.org>
88044             Bruno Haible  <bruno@clisp.org>
88046         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
88047         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
88048         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
88050         * m4/stdio_h.m4: Add stubs for vasprintf too.
88052         * modules/stdio: Support vasprintf in sed command.
88054         * modules/vasprintf: Depend on stdio for prototypes.  Remove
88055         vasprintf.h.  Add stdio module indicator.
88057         * lib/stdio_.h: Declare asprintf and vasprintf, based on
88058         vasprintf.h.
88060         * lib/vasprintf.h: File removed.
88062         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
88063         * lib/vasprintf.c: Ditto.
88064         * lib/xvasprintf.c: Ditto.
88065         * tests/test-vasprintf-posix.c: Ditto.
88066         * tests/test-vasprintf.c: Ditto.
88068 2007-03-27  Bruno Haible  <bruno@clisp.org>
88070         Make vasnprintf multithread-safe.
88071         * lib/vasnprintf.c (decimal_point_char): New function.
88072         (VASNPRINTF): Use it.
88073         Suggested by Simon Josefsson.
88075 2007-03-27  Eric Blake  <ebb9@byu.net>
88077         Support sub-second birthtime on cygwin.
88078         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
88079         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
88080         (get_stat_birthtime): Also work with st_birthtim.
88082 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
88084         * lib/stat-time.h (USE_BIRTHTIME): Remove.
88085         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
88086         (get_stat_birthtime_ns): Do not try to use "spare" fields.
88087         (get_stat_birthtime_ns): Simplify compile-time tests.
88088         (get_stat_birthtime): Change the API to look like
88089         get_stat_mtime etc., except return a negative tv_nsec on error.
88090         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
88091         Don't check for "spare" fields.
88092         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
88093         or for struct stat.st_birthtime, as these tests aren't used.
88094         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
88096 2007-03-27  Bruno Haible  <bruno@clisp.org>
88098         * lib/stat-time.h: Include <sys/stat.h>.
88100 2007-03-27  James Youngman  <jay@gnu.org>
88102         * lib/stat-time.h (get_stat_birthtime): New function for
88103           retrieving st_birthtime as provided by UFS2 (hence *BSD).
88104         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
88105           and its variants.
88106         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
88107         * modules/stat-time-test: New file.
88108         * tests/test-stat-time.c: New test, devised by Bruno Haible.
88110 2007-03-26  Bruno Haible  <bruno@clisp.org>
88112         Better support of signalling NaNs.
88113         * lib/atanl.c: Include isnanl.h.
88114         (atanl): Perform test for NaN at the beginning of the function and
88115         through a call to isnanl.
88116         * lib/cosl.c: Include isnanl.h.
88117         (cosl): Perform test for NaN at the beginning of the function and
88118         through a call to isnanl.
88119         * lib/ldexpl.c: Include isnanl.h.
88120         (ldexpl): Perform test for NaN through a call to isnanl.
88121         * lib/logl.c: Include isnanl.h.
88122         (logl): Perform test for NaN at the beginning of the function and
88123         through a call to isnanl.
88124         * lib/sinl.c: Include isnanl.h.
88125         (sinl): Perform test for NaN at the beginning of the function and
88126         through a call to isnanl.
88127         * lib/sqrtl.c: Include isnanl.h.
88128         (sqrtl): Perform test for NaN at the beginning of the function and
88129         through a call to isnanl.
88130         * lib/tanl.c: Include isnanl.h.
88131         (tanl): Perform test for NaN at the beginning of the function and
88132         through a call to isnanl.
88133         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
88134         * modules/mathl (Depends-on): Add isnanl.
88136 2007-03-26  Eric Blake  <ebb9@byu.net>
88138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
88139         regression in logic sense of previous patch.
88141 2007-03-26  Bruno Haible  <bruno@clisp.org>
88143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
88144         unportable shell command "if ! ...".
88145         Reported by Ralf Wildenhues.
88147 2007-03-25  Bruno Haible  <bruno@clisp.org>
88149         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
88150         <sysexits.h> file, and only add EX_CONFIG.
88151         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
88152         absolute file name and whether it is sufficient. Substitute also
88153         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
88154         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
88155         ABSOLUTE_SYSEXITS_H into sysexits.h.
88157 2007-03-25  Bruno Haible  <bruno@clisp.org>
88159         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
88160         hints is NULL.
88162 2007-03-25  Bruno Haible  <bruno@clisp.org>
88164         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
88165         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
88167 2007-03-25  Bruno Haible  <bruno@clisp.org>
88169         * lib/vasnprintf.c: Include langinfo.h.
88170         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
88171         multithread-safe.
88172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
88173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
88174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88178         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
88180         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88181         Reported by Simon Josefsson.
88183 2007-03-25  Bruno Haible  <bruno@clisp.org>
88185         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
88186         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
88187         * modules/vasnprintf (Depends-on): Add stdint.
88189 2007-03-25  Bruno Haible  <bruno@clisp.org>
88191         * modules/fpieee: New file.
88192         * m4/fpieee.m4: New file.
88193         * modules/isnan-nolibm (Depends-on): Add fpieee.
88194         * modules/isnanl-nolibm (Depends-on): Add fpieee.
88195         * modules/isnanl (Depends-on): Add fpieee.
88197 2007-03-25  Bruno Haible  <bruno@clisp.org>
88199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
88201 2007-03-25  Bruno Haible  <bruno@clisp.org>
88203         Avoid test failures on IRIX 6.5.
88204         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
88205         (main): Use it.
88206         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
88207         macros.
88208         (main): Use them.
88210 2007-03-25  Bruno Haible  <bruno@clisp.org>
88212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
88213         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
88214         exists but doesn't work.
88215         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
88216         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
88217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
88218         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
88219         math.h.
88221 2007-03-25  Bruno Haible  <bruno@clisp.org>
88223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
88224         returns inf. Needed on IRIX 6.5.
88226 2007-03-25  Bruno Haible  <bruno@clisp.org>
88228         * tests/test-frexpl.c: Include isnanl-nolibm.h.
88229         (main): Use isnanl instead of x != x idiom.
88230         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
88232         * tests/test-frexp.c: Include isnan.h.
88233         (main): Use isnan instead of x != x idiom.
88234         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
88236 2007-03-25  Bruno Haible  <bruno@clisp.org>
88238         * tests/test-frexp.c (NaN): New function/macro.
88239         (main): Use it instead of 0.0 / 0.0.
88240         * tests/test-isnan.c (NaN): New function/macro.
88241         (main): Use it instead of 0.0 / 0.0.
88242         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
88243         (test_function): Use it instead of 0.0 / 0.0.
88244         * tests/test-vasprintf-posix.c (NaN): New function/macro.
88245         (test_function): Use it instead of 0.0 / 0.0.
88246         * tests/test-snprintf-posix.h (NaN): New function/macro.
88247         (test_function): Use it instead of 0.0 / 0.0.
88248         * tests/test-sprintf-posix.h (NaN): New function/macro.
88249         (test_function): Use it instead of 0.0 / 0.0.
88250         * tests/test-fprintf-posix.h (NaN): New function/macro.
88251         (test_function): Use it instead of 0.0 / 0.0.
88252         * tests/test-printf-posix.h (NaN): New function/macro.
88253         (test_function): Use it instead of 0.0 / 0.0.
88255         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
88257 2007-03-25  Bruno Haible  <bruno@clisp.org>
88259         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
88261 2007-03-25  Bruno Haible  <bruno@clisp.org>
88263         * lib/regexec.c (merge_state_with_log): Make static.
88265 2007-03-25  Bruno Haible  <bruno@clisp.org>
88267         * lib/trigl.c (kernel_rem_pio2): Make static.
88269 2007-03-25  Bruno Haible  <bruno@clisp.org>
88271         * lib/sincosl.c (sincosl_table): Make static.
88273 2007-03-25  Bruno Haible  <bruno@clisp.org>
88275         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
88276         if the compiler does not support C99.
88278 2007-03-25  Bruno Haible  <bruno@clisp.org>
88280         * modules/time (Makefile.am): Ensure all rule action lines start with a
88281         tab.
88283 2007-03-24  Bruno Haible  <bruno@clisp.org>
88285         * modules/tsearch-tests: New file.
88286         * tests/test-tsearch.sh: New file.
88287         * tests/test-tsearch.c: New file, mostly copied from glibc.
88289         * modules/search-tests: New file.
88290         * tests/test-search.c: New file.
88292         * modules/search: New file.
88293         * lib/search_.h: New file, incorporating lib/tsearch.h.
88294         * m4/search_h.m4: New file.
88295         * lib/tsearch.h: Remove file.
88296         * lib/tsearch.c: Include search.h instead of tsearch.h.
88297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
88298         HAVE_TSEARCH.
88299         * modules/tsearch (Files): Remove lib/tsearch.h.
88300         (Depends-on): Add search.
88301         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
88302         (Include): Change tsearch.h into search.h.
88304 2007-03-24  Bruno Haible  <bruno@clisp.org>
88306         * modules/fpucw: New file.
88307         * lib/fpucw.h: New file.
88308         * lib/frexp.c: Include fpucw.h.
88309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88310         (FUNC): Use them.
88311         * lib/printf-frexp.c: Include fpucw.h.
88312         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88313         (FUNC): Use them.
88314         * lib/vasnprintf.c: Include fpucw.h.
88315         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
88316         'long double' calculations.
88317         * tests/test-frexpl.c: Include fpucw.h.
88318         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88319         * tests/test-printf-frexpl.c: Include fpucw.h.
88320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88321         * modules/frexpl (Depends-on): Add fpucw.
88322         * modules/printf-frexpl (Depends-on): Likewise.
88323         * modules/fprintf-posix (Depends-on): Likewise.
88324         * modules/snprintf-posix (Depends-on): Likewise.
88325         * modules/sprintf-posix (Depends-on): Likewise.
88326         * modules/vasnprintf-posix (Depends-on): Likewise.
88327         * modules/vasprintf-posix (Depends-on): Likewise.
88328         * modules/vfprintf-posix (Depends-on): Likewise.
88329         * modules/vsnprintf-posix (Depends-on): Likewise.
88330         * modules/vsprintf-posix (Depends-on): Likewise.
88331         * modules/frexpl-tests (Depends-on): Likewise.
88332         * modules/printf-frexpl-tests (Depends-on): Likewise.
88334 2007-03-24  Bruno Haible  <bruno@clisp.org>
88336         * lib/float+.h: New file.
88337         * lib/isnan.c: Include float+.h.
88338         (SIZE): New macro.
88339         (FUNC): Compare only SIZE bytes of the value.
88340         * lib/vasnprintf.c: Include float+.h.
88341         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
88342         SIZEOF_LDBL or SIZEOF_DBL bytes.
88343         * modules/isnan-nolibm (Files): Add lib/float+.h.
88344         * modules/isnanl-nolibm (Files): Add lib/float+.h.
88345         * modules/isnanl (Files): Add lib/float+.h.
88346         * modules/vasnprintf (Files): Add lib/float+.h.
88348 2007-03-24  Bruno Haible  <bruno@clisp.org>
88350         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
88351         include isnanl-nolibm.h.
88353 2007-03-24  Bruno Haible  <bruno@clisp.org>
88355         * tests/test-read-file.c (main): Don't produce spurious output for
88356         expected situations. Make the test fail if it encountered unexpected
88357         results.
88359 2007-03-24  Bruno Haible  <bruno@clisp.org>
88361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
88362         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
88364 2007-03-24  Bruno Haible  <bruno@clisp.org>
88366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
88368 2007-03-24  Bruno Haible  <bruno@clisp.org>
88370         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
88371         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
88373         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
88374         * modules/utf8-ucs4: Turn into a symbolic link to module
88375         unistr/u8-mbtouc.
88377         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
88378         utf8-ucs4-unsafe.
88379         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
88380         unistr/u8-mbtouc-unsafe.
88382         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
88383         * modules/utf16-ucs4: Turn into a symbolic link to module
88384         unistr/u16-mbtouc.
88386         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
88387         utf16-ucs4-unsafe.
88388         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
88389         unistr/u16-mbtouc-unsafe.
88391         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
88392         * modules/ucs4-utf8: Turn into a symbolic link to module
88393         unistr/u8-ubtomb.
88395         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
88396         * modules/ucs4-utf16: Turn into a symbolic link to module
88397         unistr/u16-ubtomb.
88399 2007-03-24  Bruno Haible  <bruno@clisp.org>
88401         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
88402         Enable the function only if HAVE_INLINE.
88403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
88404         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88405         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
88406         Enable the function only if HAVE_INLINE.
88407         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
88408         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88409         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
88410         Enable the function only if HAVE_INLINE.
88411         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
88412         Enable the function only if HAVE_INLINE.
88413         * modules/utf8-ucs4: Update.
88414         * modules/utf8-ucs4-unsafe: Update.
88415         * modules/utf16-ucs4: Update.
88416         * modules/utf16-ucs4-unsafe: Update.
88417         * modules/ucs4-utf8: Update.
88418         * modules/ucs4-utf16: Update.
88420 2007-03-24  Bruno Haible  <bruno@clisp.org>
88422         * lib/utf8-ucs4.h: Remove file.
88423         * lib/utf8-ucs4-unsafe.h: Remove file.
88424         * lib/utf16-ucs4.h: Remove file.
88425         * lib/utf16-ucs4-unsafe.h: Remove file.
88426         * lib/ucs4-utf8.h: Remove file.
88427         * lib/ucs4-utf16.h: Remove file.
88428         * lib/unistr.h: Include their previous contents.
88429         * m4/utf-ucs4.m4: Remove file.
88430         * m4/ucs4-utf.m4: Remove file.
88431         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
88432         (Depends-on): Add unistr/base.
88433         (configure.ac): Remove gl_UTF_UCS4.
88434         (Makefile.am): Update.
88435         (Include): Change to unistr.h.
88436         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
88437         (Depends-on): Add unistr/base.
88438         (configure.ac): Remove gl_UTF_UCS4.
88439         (Makefile.am): Update.
88440         (Include): Change to unistr.h.
88441         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
88442         (Depends-on): Add unistr/base.
88443         (configure.ac): Remove gl_UTF_UCS4.
88444         (Makefile.am): Update.
88445         (Include): Change to unistr.h.
88446         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
88447         (Depends-on): Add unistr/base.
88448         (configure.ac): Remove gl_UTF_UCS4.
88449         (Makefile.am): Update.
88450         (Include): Change to unistr.h.
88451         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
88452         (Depends-on): Add unistr/base.
88453         (configure.ac): Remove gl_UCS4_UTF.
88454         (Makefile.am): Update.
88455         (Include): Change to unistr.h.
88456         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
88457         (Depends-on): Add unistr/base.
88458         (configure.ac): Remove gl_UCS4_UTF.
88459         (Makefile.am): Update.
88460         (Include): Change to unistr.h.
88461         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
88462         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
88463         utf8-ucs4-unsafe.h.
88464         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
88465         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
88466         utf16-ucs4-unsafe.h.
88467         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
88468         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
88469         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
88470         * lib/unistr/u8-strchr.c: Likewise.
88471         * lib/unistr/u8-strrchr.c: Likewise.
88472         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
88473         * lib/unistr/u16-strchr.c: Likewise.
88474         * lib/unistr/u16-strrchr.c: Likewise.
88475         * lib/striconveh.c: Update.
88476         * lib/linebreak.c: Update.
88478 2007-03-24  Bruno Haible  <bruno@clisp.org>
88480         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
88481         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
88483 2007-03-22  Bruno Haible  <bruno@clisp.org>
88485         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
88487 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88489         * MODULES.html.sh (File system functions): New module write-any-file.
88490         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
88491         * m4/write-any-file.m4: New files.
88493 2007-03-23  Eric Blake  <ebb9@byu.net>
88495         * gnulib-tool: Rearrange space-tab sequences, since some editors
88496         like to eat them.
88498 2007-03-23  Eric Blake  <ebb9@byu.net>
88500         * lib/version-etc.c (version_etc_va): Update license wording to
88501         be more concise.  Recommended by Richard Stallman.
88503 2007-03-22  Bruno Haible  <bruno@clisp.org>
88505         * lib/poll.c (MSG_PEEK): New fallback definition.
88507 2007-03-22  Bruno Haible  <bruno@clisp.org>
88509         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
88510         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
88511         (main): Update.
88512         Fixes a compilation error on BeOS.
88514 2007-03-22  Bruno Haible  <bruno@clisp.org>
88516         * modules/frexpl-tests: New file.
88517         * tests/test-frexpl.c: New file.
88519         * modules/frexpl: New file.
88520         * m4/frexpl.m4: New file.
88521         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
88522         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
88523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
88524         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
88525         (Depends-on): Add frexpl. Remove isnanl-nolibm.
88526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
88528 2007-03-22  Bruno Haible  <bruno@clisp.org>
88530         * lib/frexpl.c: Share code with lib/frexp.c.
88531         * modules/mathl (Files): Add lib/frexp.c.
88532         (Depends-on): Add isnanl-nolibm.
88534 2007-03-22  Bruno Haible  <bruno@clisp.org>
88536         * modules/printf-frexp (Files): Add m4/frexp.m4.
88537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
88538         only if the found frexp function actually works.
88540 2007-03-22  Bruno Haible  <bruno@clisp.org>
88542         * lib/frexp.c: Remove older implementation that uses divisions.
88544 2007-03-21  Bruno Haible  <bruno@clisp.org>
88546         * modules/frexp-tests: New file.
88547         * tests/test-frexp.c: New file.
88549         * modules/frexp: New file.
88550         * lib/frexp.c: New file.
88551         * m4/frexp.m4: New file.
88552         * lib/math_.h (frexp): New declaration.
88553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
88554         REPLACE_FREXP.
88555         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
88557 2007-03-21  Bruno Haible  <bruno@clisp.org>
88559         * modules/isnanl-tests: New file.
88560         * tests/test-isnanl.c: New file.
88562         * modules/isnanl: New file.
88563         * lib/isnanl.h: New file.
88564         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
88565         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
88566         gl_FUNC_ISNANL_WORKS.
88567         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
88568         New macros.
88570 2007-03-21  Bruno Haible  <bruno@clisp.org>
88572         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
88573         lib/isnanl.h.
88574         (Include): Update.
88575         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
88576         * lib/vasnprintf.c: Update.
88577         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
88578         tests/test-isnanl.h, remove tests/test-isnanl.c.
88579         (Makefile.am): Update.
88580         * tests/test-isnanl-nolibm.c: New file.
88581         * tests/test-isnanl.h: New file.
88582         * tests/test-isnanl.c: Remove file.
88584 2007-03-21  Jim Meyering  <jim@meyering.net>
88586         When trying to open ".", treat ESTALE like EACCES.
88587         * lib/savewd.c (savewd_save): Resort to forking not just upon
88588         failure with EACCES, but also when errno is ESTALE.
88590 2007-03-20  Bruno Haible  <bruno@clisp.org>
88592         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
88593         Needed on AIX 5.1. Reported by Matthew Woehlke.
88595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88597         Suggestions by Bruno Haible:
88598         * lib/acl-internal.h: Include "gettext.h" rather than rolling
88599         our own.
88600         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
88601         * modules/acl (Depends-on): Add gettext.
88603 2007-03-19  Bruno Haible  <bruno@clisp.org>
88605         * modules/iconvme: Remove file.
88606         * lib/iconvme.h: Remove file.
88607         * lib/iconvme.c: Remove file.
88608         * m4/iconvme.m4: Remove file.
88610 2007-03-19  Bruno Haible  <bruno@clisp.org>
88612         * doc/relocatable-maint.texi: Break long shell script line.
88613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88617         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
88618         handle file_has_acl.
88619         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
88620         * lib/acl.c: Move header inclusions and related macro defns into
88621         lib/acl-internal.h.
88622         (S_ISLNK): Remove defn, since that's now done for us.
88623         (file_has_acl): Move to lib/file-has-acl.c.
88624         Call acl_trivial if available.  This is the crucial part of the fix.
88625         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
88626         shared within the library.  Rewrite a bit, partly to make it compatible
88627         with the GNU coding style.
88628         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
88629         Remove unnecessary double-quotes.
88630         Don't test for acl_to_text; the build will catch that.
88631         Replace acl_entries if it doesn't exist and it is needed.
88632         Check for -lsec and acl_trivial (as used on Solaris 10).
88633         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
88634         lib/file-has-acl.c.
88635         (Depends-on): Add sys_stat, for S_ISLNK.
88637 2007-03-19  Ben Pfaff  <blp@gnu.org>
88639         * doc/gnulib.texi: Fix typos.
88640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88644         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
88645         If size is zero here, buf must be zero.
88647 2007-03-19  Simon Josefsson  <simon@josefsson.org>
88649         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
88650         <bruno@clisp.org>.
88652 2007-03-18  Bruno Haible  <bruno@clisp.org>
88654         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
88655         Suggested by Eric Blake.
88657 2007-03-18  Ben Pfaff  <blp@gnu.org>
88659         * doc/relocatable.texi: Recommend using as prefix a directory
88660         that does not exist and will never be created.  Based on
88661         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
88662         and others.
88664 2007-03-17  Bruno Haible  <bruno@clisp.org>
88666         * lib/fchownat.c: Include lchown.h.
88668 2007-03-17  Bruno Haible  <bruno@clisp.org>
88670         Fix endless loop when the given allocated size was > INT_MAX.
88671         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
88672         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
88673         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
88674         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
88675         * lib/sprintf.c (sprintf): Likewise.
88677 2007-03-17  Bruno Haible  <bruno@clisp.org>
88679         * tests/test-argp-2.sh (func_compare): Output a context diff.
88681 2007-03-17  Bruno Haible  <bruno@clisp.org>
88683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
88684         locale's decimal-point character.
88686 2007-03-17  Bruno Haible  <bruno@clisp.org>
88688         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
88689         before comparing it. Needed because on some platforms (e.g. x86) a
88690         'long double' occupies less bytes than sizeof (long double).
88692 2007-03-17  Bruno Haible  <bruno@clisp.org>
88694         * tests/test-crc.c (main): Make printf statements 64-bit clean.
88695         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
88696         * tests/test-getaddrinfo.c (simple): Likewise.
88697         * tests/test-read-file.c (main): Likewise.
88699 2007-03-17  Bruno Haible  <bruno@clisp.org>
88701         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
88703 2007-03-17  Bruno Haible  <bruno@clisp.org>
88705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
88706         unused variable.
88708 2007-03-17  Bruno Haible  <bruno@clisp.org>
88710         * tests/test-c-strcasecmp.c: Include c-strcase.h.
88711         * tests/test-c-strncasecmp.c: Likewise.
88713 2007-03-17  Bruno Haible  <bruno@clisp.org>
88715         * modules/stdlib (Depends-on): Add unistd.
88716         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
88717         Needed for MacOS X 10.3.
88719 2007-03-17  Bruno Haible  <bruno@clisp.org>
88721         * lib/unistr/u-strdup.h: Include <stdlib.h>.
88723 2007-03-17  Bruno Haible  <bruno@clisp.org>
88725         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
88727 2007-03-17  Bruno Haible  <bruno@clisp.org>
88729         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
88730         to reflect files copied from gnulib (with or without modifications).
88731         Suggested by Jim Meyering.
88733 2007-03-17  Eric Blake  <ebb9@byu.net>
88735         * NEWS: Document stdlib change from 2007-02-18.
88737 2007-03-17  Jim Meyering  <jim@meyering.net>
88739         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
88740         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
88741         someone uses a name containing shell meta-characters.
88742         Reported by Alfred M. Szmidt.
88744         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
88746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88748         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
88749         and copy gettext configuration files only if configure.ac contains
88750         a use of AM_GNU_GETTEXT_VERSION.
88752 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88754         * build-aux/bootstrap (gnulib_name): New variable.
88755         (gnulib_tool_options): Use it.
88757 2007-03-13  Simon Josefsson  <simon@josefsson.org>
88759         * tests/test-des.c: Use new namespace.
88761 2007-03-15  Bruno Haible  <bruno@clisp.org>
88763         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
88764         Reported by James Youngman <jay@gnu.org>.
88766 2007-03-15  Bruno Haible  <bruno@clisp.org>
88768         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
88769         declared prototype. Needed with cc on OSF/1 5.1.
88771 2007-03-15  Bruno Haible  <bruno@clisp.org>
88773         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
88774         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
88775         (struct gl_list_implementation): Add dispose_fn argument to the
88776         'create_empty', 'create' methods.
88777         (struct gl_list_impl_base): Add field 'dispose_fn'.
88778         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
88779         argument.
88780         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
88781         dispose_fn argument.
88782         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
88783         dispose_fn on the dropped values.
88784         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
88785         dispose_fn argument.
88786         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
88787         dropped values.
88788         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
88789         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88790         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
88791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88792         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
88793         argument.
88794         (gl_tree_list_free): Call dispose_fn on the dropped values.
88795         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
88796         the dropped values.
88797         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88798         Add dispose_fn argument.
88799         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
88800         Call dispose_fn on the dropped values.
88801         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
88802         Add dispose_fn argument.
88803         (gl_sublist_create): Initialize the 'dispose_fn' field.
88804         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
88805         * tests/test-array_list.c (main): Update.
88806         * tests/test-carray_list.c (main): Update.
88807         * tests/test-avltree_list.c (main): Update.
88808         * tests/test-rbtree_list.c (main): Update.
88809         * tests/test-avltreehash_list.c (main): Update.
88810         * tests/test-rbtreehash_list.c (main): Update.
88811         * tests/test-linked_list.c (main): Update.
88812         * tests/test-linkedhash_list.c (main): Update.
88813         * tests/test-array_oset.c (main): Update.
88815 2007-03-15  Bruno Haible  <bruno@clisp.org>
88817         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
88818         (gl_oset_create_empty): Add dispose_fn argument.
88819         (struct gl_oset_implementation): Add dispose_fn argument to
88820         'create_empty' method.
88821         (struct gl_oset_impl_base): Add dispose_fn field.
88822         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
88823         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
88824         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
88825         values.
88826         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
88827         (gl_tree_oset_free): Call dispose_fn on the dropped values.
88828         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88829         dropped value.
88830         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88831         dropped value.
88832         * tests/test-array_oset.c (main): Update.
88833         * tests/test-avltree_oset.c (main): Update.
88834         * tests/test-rbtree_oset.c (main): Update.
88835         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
88837 2007-03-13  Bruno Haible  <bruno@clisp.org>
88839         * tests/test-stdbool.c (i): Update after last patch.
88841 2007-03-12  Bruno Haible  <bruno@clisp.org>
88843         * lib/quotearg.c: Include <wctype.h> early, before the definition of
88844         the iswprint macro. Needed on Solaris 2.5.1.
88846 2007-03-12  Bruno Haible  <bruno@clisp.org>
88848         * tests/test-printf-frexp.c (main): Declare x as volatile.
88850 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88852         * doc/gnulib.texi (Build robot for gnulib): New section.
88854 2007-03-12  Jim Meyering  <jim@meyering.net>
88856         * build-aux/bootstrap: New file.
88857         * build-aux/bootstrap.conf: New file, from coreutils.
88859 2007-03-11  Bruno Haible  <bruno@clisp.org>
88861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88863 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88865         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88866         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88867         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88869 2007-03-11  Bruno Haible  <bruno@clisp.org>
88871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88872         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88874 2007-03-11  Bruno Haible  <bruno@clisp.org>
88876         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88877         formula. Needed for SunPRO C 5.0.
88879 2007-03-11  Bruno Haible  <bruno@clisp.org>
88881         * modules/long-options (Depends-on): Add getopt.
88883 2007-03-11  Bruno Haible  <bruno@clisp.org>
88885         * modules/modechange (Depends-on): Add stdbool.
88887 2007-03-11  Bruno Haible  <bruno@clisp.org>
88889         * modules/i-ring (Depends-on): Add stdbool.
88891 2007-03-11  Bruno Haible  <bruno@clisp.org>
88893         * modules/gc-des (Depends-on): Add stdbool.
88895 2007-03-11  Bruno Haible  <bruno@clisp.org>
88897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88899 2007-03-11  Bruno Haible  <bruno@clisp.org>
88901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88903 2007-03-11  Bruno Haible  <bruno@clisp.org>
88905         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88907 2007-03-11  Bruno Haible  <bruno@clisp.org>
88909         * lib/vasnprintf.c (sprintf): Undefine.
88911 2007-03-11  Bruno Haible  <bruno@clisp.org>
88913         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88914         initializers in SunPRO C and Compaq C compilers.
88916 2007-03-11  Bruno Haible  <bruno@clisp.org>
88918         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88919         decrementing code ANSI C compliant.
88921 2007-03-11  Bruno Haible  <bruno@clisp.org>
88923         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88924         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88926 2007-03-11  Bruno Haible  <bruno@clisp.org>
88928         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88929         <stdbool.h> substitute doesn't pass.
88931 2007-03-11  Bruno Haible  <bruno@clisp.org>
88933         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88935 2007-03-11  Bruno Haible  <bruno@clisp.org>
88937         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88938         script, for submission to autobuild.josefsson.org.
88940 2007-03-10  Bruno Haible  <bruno@clisp.org>
88942         * modules/canonicalize-lgpl-tests: New file.
88943         * tests/test-canonicalize-lgpl.sh: New file.
88944         * tests/test-canonicalize-lgpl.c: New file.
88946         * modules/c-strcase-tests: New file.
88947         * tests/test-c-strcase.sh: New file.
88948         * tests/test-c-strcasecmp.c: New file.
88949         * tests/test-c-strncasecmp.c: New file.
88951         * modules/atexit-tests: New file.
88952         * tests/test-atexit.sh: New file.
88953         * tests/test-atexit.c: New file.
88955 2007-03-10  Bruno Haible  <bruno@clisp.org>
88957         * tests/test-binary-io.sh: Use temporary filenames that are not so
88958         likely to clash with those of other tests (in a parallel make).
88959         * tests/test-binary-io.c: Likewise.
88961 2007-03-10  Bruno Haible  <bruno@clisp.org>
88963         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88964         fallback; use #error instead.
88965         Suggested by Simon Josefsson.
88967 2007-03-10  Bruno Haible  <bruno@clisp.org>
88969         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88970         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88971         first and the last.
88973 2007-03-10  Bruno Haible  <bruno@clisp.org>
88975         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88977 2007-03-10  Bruno Haible  <bruno@clisp.org>
88979         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88980         "make distcheck".
88981         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88982         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88983         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88985 2007-03-10  Bruno Haible  <bruno@clisp.org>
88987         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88988         variable.
88989         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88990         variable.
88992 2007-03-09  Eric Blake  <ebb9@byu.net>
88993         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88995         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88996         types are not being provided by gnulib.
88997         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88998         types are supported.
89000 2007-03-10  Bruno Haible  <bruno@clisp.org>
89002         * lib/stdio_.h (__attribute__): New macro.
89003         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
89004         vsprintf): Specify __attribute__ __format__ for GCC.
89005         Suggested by Eric Blake.
89007 2007-03-09  Bruno Haible  <bruno@clisp.org>
89009         * modules/printf-posix-tests: New file.
89010         * tests/test-printf-posix.sh: New file.
89011         * tests/test-printf-posix.c: New file.
89013         * modules/printf-posix: New file.
89014         * lib/printf.c: New file.
89015         * m4/printf-posix-rpl.m4: New file.
89016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
89017         REPLACE_PRINTF.
89018         * lib/stdio_.h (printf): New declaration.
89019         (format, __format__, ____printf____, ____scanf____, ____strftime____,
89020         ____strfmon____): New macros.
89021         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
89022         REPLACE_PRINTF.
89024 2007-03-09  Bruno Haible  <bruno@clisp.org>
89026         * tests/test-vasnprintf-posix2.sh: New file.
89027         * tests/test-vasnprintf-posix2.c: New file.
89028         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
89029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
89030         (Makefile.am): Activate test-vasnprintf-posix2.sh.
89032         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
89033         a locale dependent decimal point, rather than always '.'.
89035 2007-03-09  Eric Blake  <ebb9@byu.net>
89037         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
89038         spite of platforms like Tandem/NSK that define it to -1.
89040 2007-03-08  Bruno Haible  <bruno@clisp.org>
89042         * modules/vprintf-posix-tests: New file.
89043         * tests/test-vprintf-posix.sh: New file.
89044         * tests/test-vprintf-posix.c: New file.
89045         * tests/test-printf-posix.h: New file.
89047         * modules/vprintf-posix: New file.
89048         * lib/vprintf.c: New file.
89049         * m4/vprintf-posix.m4: New file.
89050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
89051         REPLACE_VPRINTF.
89052         * lib/stdio_.h (vprintf): New declaration.
89053         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
89054         REPLACE_VPRINTF.
89056 2007-03-08  Bruno Haible  <bruno@clisp.org>
89058         * modules/fprintf-posix-tests: New file.
89059         * tests/test-fprintf-posix.sh: New file.
89060         * tests/test-fprintf-posix.c: New file.
89062         * modules/fprintf-posix: New file.
89063         * lib/fprintf.c: New file.
89064         * m4/fprintf-posix.m4: New file.
89065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
89066         REPLACE_FPRINTF.
89067         * lib/stdio_.h (fprintf): New declaration.
89068         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
89069         REPLACE_FPRINTF.
89071 2007-03-08  Bruno Haible  <bruno@clisp.org>
89073         * modules/vfprintf-posix-tests: New file.
89074         * tests/test-vfprintf-posix.sh: New file.
89075         * tests/test-vfprintf-posix.c: New file.
89076         * tests/test-fprintf-posix.h: New file.
89077         * tests/test-fprintf-posix.out: New file.
89079         * modules/vfprintf-posix: New file.
89080         * lib/vfprintf.c: New file.
89081         * m4/vfprintf-posix.m4: New file.
89082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
89083         REPLACE_VFPRINTF.
89084         * lib/stdio_.h (vfprintf): New declaration.
89085         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
89086         REPLACE_VFPRINTF.
89088 2007-03-08  Bruno Haible  <bruno@clisp.org>
89090         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
89092 2007-03-08  Bruno Haible  <bruno@clisp.org>
89094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
89095         instead of 'expr' invocations.
89096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89101         Suggested by Paul Eggert.
89103 2007-03-08  Bruno Haible  <bruno@clisp.org>
89105         * modules/fseterr-tests: New file.
89106         * tests/test-fseterr.c: New file.
89108         * modules/fseterr: New file.
89109         * lib/fseterr.h: New file.
89110         * lib/fseterr.c: New file.
89112 2007-03-08  Bruno Haible  <bruno@clisp.org>
89114         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
89115         * lib/getopt_.h: Likewise.
89116         * lib/mbswidth.h: Likewise.
89117         * lib/setenv.h: Likewise.
89118         * lib/vasnprintf.h: Likewise.
89119         * lib/vasprintf.h: Likewise.
89120         * lib/verror.h: Likewise.
89121         * lib/xsetenv.h: Likewise.
89122         * lib/xvasprintf.h: Likewise.
89124 2007-03-08  Jim Meyering  <jim@meyering.net>
89126         * users.txt: Add parted.
89128         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
89130 2007-03-07  Bruno Haible  <bruno@clisp.org>
89132         * m4/printf.m4: Make the shell script snippets copy&pastable.
89134 2007-03-02  Bruno Haible  <bruno@clisp.org>
89136         * lib/netinet_in_.h: New file.
89137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
89138         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
89139         * modules/netinet_in (Files): Add lib/netinet_in_.h.
89140         (Depends-on): Add absolute-header.
89141         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
89142         into netinet/in.h.
89144 2007-03-03  Bruno Haible  <bruno@clisp.org>
89146         * lib/sys_select_.h: New file.
89147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
89148         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
89149         * modules/sys_select (Files): Add lib/sys_select_.h.
89150         (Depends-on): Add absolute-header.
89151         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
89152         into sys/select.h.
89154 2007-03-02  Bruno Haible  <bruno@clisp.org>
89156         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
89157         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
89158         values.
89159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
89160         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
89161         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
89162         * modules/sys_socket (Depends-on): Add absolute-header.
89163         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
89164         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
89165         (Include): Remove requirement of inclusion of <sys/types.h>.
89167 2007-03-02  Bruno Haible  <bruno@clisp.org>
89169         * lib/byteswap_.h (bswap_32): Fix formula.
89171 2007-03-06  Bruno Haible  <bruno@clisp.org>
89173         * modules/sprintf-posix-tests: New file.
89174         * tests/test-sprintf-posix.c: New file.
89176         * modules/sprintf-posix: New file.
89177         * lib/sprintf.c: New file.
89178         * m4/sprintf-posix.m4: New file.
89179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
89180         REPLACE_SPRINTF.
89181         * lib/stdio_.h (sprintf): New declaration.
89182         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
89183         REPLACE_SPRINTF.
89185 2007-03-06  Bruno Haible  <bruno@clisp.org>
89187         * modules/vsprintf-posix-tests: New file.
89188         * tests/test-vsprintf-posix.c: New file.
89189         * tests/test-sprintf-posix.h: New file.
89191         * modules/vsprintf-posix: New file.
89192         * lib/vsprintf.c: New file.
89193         * m4/vsprintf-posix.m4: New file.
89194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
89195         REPLACE_VSPRINTF.
89196         * lib/stdio_.h (vsprintf): New declaration.
89197         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
89198         REPLACE_VSPRINTF.
89200 2007-03-06  Bruno Haible  <bruno@clisp.org>
89202         * modules/vsnprintf (Depend-on): Remove minmax.
89204 2007-03-06  Bruno Haible  <bruno@clisp.org>
89206         * modules/snprintf-posix-tests: New file.
89207         * tests/test-snprintf-posix.c: New file.
89209         * modules/snprintf-posix: New file.
89210         * m4/snprintf-posix.m4: New file.
89211         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
89212         gl_FUNC_SNPRINTF.
89213         (gl_FUNC_SNPRINTF): Invoke it.
89214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
89215         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
89216         is set.
89217         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
89219 2007-03-06  Bruno Haible  <bruno@clisp.org>
89221         * modules/vsnprintf-posix-tests: New file.
89222         * tests/test-vsnprintf-posix.c: New file.
89223         * tests/test-snprintf-posix.h: New file.
89225         * modules/vsnprintf-posix: New file.
89226         * m4/vsnprintf-posix.m4: New file.
89227         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
89228         gl_FUNC_VSNPRINTF.
89229         (gl_FUNC_VSNPRINTF): Invoke it.
89230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
89231         * lib/stdio_.h (vsnprintf): Define as a replacement if
89232         REPLACE_VSNPRINTF is set.
89233         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
89235 2007-03-06  Bruno Haible  <bruno@clisp.org>
89237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
89238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
89240 2007-03-06  Bruno Haible  <bruno@clisp.org>
89242         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
89243         (asinl): Declare also if HAVE_DECL_ASINL is set.
89244         (atanl): Declare also if HAVE_DECL_ATANL is set.
89245         (ceill): Declare also if HAVE_DECL_CEILL is set.
89246         (cosl): Declare also if HAVE_DECL_COSL is set.
89247         (expl): Declare also if HAVE_DECL_EXPL is set.
89248         (floorl): Declare also if HAVE_DECL_FLOORL is set.
89249         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
89250         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
89251         (logl): Declare also if HAVE_DECL_LOGL is set.
89252         (sinl): Declare also if HAVE_DECL_SINL is set.
89253         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
89254         (tanl): Declare also if HAVE_DECL_TANL is set.
89255         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
89256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
89257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
89258         declaration of frexpl, ldexpl.
89259         * modules/printf-frexpl (Depends-on): Add math.
89260         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
89262 2007-03-05  Bruno Haible  <bruno@clisp.org>
89264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
89265         frexpl and ldexpl are declared.
89266         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
89268 2007-03-05  Bruno Haible  <bruno@clisp.org>
89270         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
89271         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
89273 2007-03-05  Bruno Haible  <bruno@clisp.org>
89275         * lib/stdio_.h: Include <stddef.h>.
89277 2007-03-05  Bruno Haible  <bruno@clisp.org>
89279         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
89281 2007-03-05  Bruno Haible  <bruno@clisp.org>
89283         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
89284         NetBSD 4, from Ralf Wildenhues.
89286 2007-03-04  Bruno Haible  <bruno@clisp.org>
89288         * lib/vasprintf.h: Update #if logic for the case when the functions
89289         exist but are overridden.
89291 2007-03-04  Bruno Haible  <bruno@clisp.org>
89293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
89294         implementations: glibc-2.4 and MacOS X 10.3.
89295         * tests/test-vasnprintf-posix.c (test_function): Test also the case
89296         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
89297         * tests/test-vasprintf-posix.c (test_function): Likewise.
89299 2007-03-04  Bruno Haible  <bruno@clisp.org>
89301         * modules/vasprintf-posix-tests: New file.
89302         * tests/test-vasprintf-posix.c: New file.
89304         * modules/vasprintf-posix: New file.
89305         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
89306         defined.
89307         * m4/vasprintf-posix.m4: New file.
89308         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
89309         gl_FUNC_VASPRINTF.
89310         (gl_FUNC_VASPRINTF): Invoke it.
89311         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
89312         here.
89313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
89315 2007-03-04  Bruno Haible  <bruno@clisp.org>
89317         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
89318         REPLACE_GETTIMEOFDAY.
89319         * modules/sys_time (Makefile.am): Likewise.
89320         * m4/sys_time_h.m4: Likewise.
89321         * m4/gettimeofday.m4: Likewise.
89323 2007-03-04  Bruno Haible  <bruno@clisp.org>
89325         * modules/vasnprintf-posix-tests: New file.
89326         * tests/test-vasnprintf-posix.c: New file.
89328         * modules/vasnprintf-posix: New file.
89329         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
89330         printf-frexpl.h.
89331         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
89332         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
89333         REPLACE_VASNPRINTF is defined.
89334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
89335         gl_FUNC_VASNPRINTF.
89336         (gl_FUNC_VASNPRINTF): Invoke it.
89337         * m4/vasnprintf-posix.m4: New file.
89338         * m4/printf.m4: New file.
89340 2007-03-04  Bruno Haible  <bruno@clisp.org>
89342         Compile progreloc.c only if --enable-relocatable is specified.
89343         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
89344         if --enable-relocatable was specified.
89345         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
89346         lib_SOURCES.
89348 2007-03-04  Jim Meyering  <jim@meyering.net>
89350         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
89351         Use it consistently, rather than enumerating errno constants.
89353 2007-03-04  Bruno Haible  <bruno@clisp.org>
89355         * modules/xvasprintf-tests: New file.
89356         * tests/test-xvasprintf.c: New file.
89358         * modules/vasprintf-tests: New file.
89359         * tests/test-vasprintf.c: New file.
89361         * modules/vasnprintf-tests: New file.
89362         * tests/test-vasnprintf.c: New file.
89364         * modules/vsnprintf-tests: New file.
89365         * tests/test-vsnprintf.c: New file.
89367         * modules/snprintf-tests: New file.
89368         * tests/test-snprintf.c: New file.
89370 2007-03-04  Bruno Haible  <bruno@clisp.org>
89372         Compile relocatable.c only if --enable-relocatable is specified.
89373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
89374         gl_RELOCATABLE_LIBRARY.
89375         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
89376         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
89377         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
89378         gl_RELOCATABLE_LIBRARY.
89379         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
89380         (Makefile.am): Remove lib_SOURCES.
89381         * modules/relocatable-lib-lgpl (configure.ac): Invoke
89382         gl_RELOCATABLE_LIBRARY.
89383         (Makefile.am): Remove lib_SOURCES.
89384         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
89385         always.
89386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
89387         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
89389 2007-03-04  Bruno Haible  <bruno@clisp.org>
89391         * modules/argmatch-tests: New file.
89392         * tests/test-argmatch.c: New file.
89394         * tests/test-allocsa.c (main): Halve the number of loop runs.
89396         * modules/alloca-opt-tests: New file.
89397         * tests/test-alloca-opt.c: New file.
89399 2007-03-04  Jim Meyering  <jim@meyering.net>
89401         Work around difference between Linux ACLs and Solaris 10 ZFS.
89402         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
89403         for EINVAL.
89405 2007-03-03  Bruno Haible  <bruno@clisp.org>
89407         * modules/relocatable-prog (Depends-on): Add back progreloc's
89408         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
89410 2007-03-03  Bruno Haible  <bruno@clisp.org>
89412         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
89413         * modules/relocatable-lib: New file.
89415 2007-03-03  Bruno Haible  <bruno@clisp.org>
89417         * modules/relocatable-prog: Renamed from modules/relocatable.
89418         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
89420 2007-03-03  Bruno Haible  <bruno@clisp.org>
89422         * modules/relocatable-script (Files): Add doc/relocatable.texi,
89423         m4/relocatable-lib.m4.
89424         (Depends-on): Remove 'relocatable'.
89425         (configure.ac): Add gl_RELOCATABLE_NOP.
89427 2007-03-03  Bruno Haible  <bruno@clisp.org>
89429         * modules/relocatable-prog-wrapper: New file.
89430         * modules/relocatable (Depends-on): Add it. Remove all other
89431         dependencies except progname.
89432         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
89434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
89435         (gl_FUNC_STRERROR): Nop.
89436         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
89438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
89439         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
89441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
89442         (gl_FUNC_READLINK): Update.
89444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
89446 2007-03-03  Bruno Haible  <bruno@clisp.org>
89448         * lib/xreadlink.c: Include <unistd.h> unconditionally.
89449         * modules/xreadlink (Depends-on): Add unistd.
89450         * modules/xreadlink-with-size (Depends-on): Likewise.
89452 2007-03-03  Bruno Haible  <bruno@clisp.org>
89454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
89455         extracted from gt_FUNC_SETENV.
89456         (gt_FUNC_SETENV): Remove macro.
89457         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
89458         remove gt_FUNC_SETENV.
89460 2007-03-03  Bruno Haible  <bruno@clisp.org>
89462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
89463         ENABLE_RELOCATABLE here.
89464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
89466 2007-03-03  Bruno Haible  <bruno@clisp.org>
89468         * modules/rbtreehash-list-tests (Depends-on): Add progname.
89469         * tests/test-rbtreehash_list.c: Include progname.h.
89470         (main): Call set_program_name.
89472         * modules/rbtree-oset-tests (Depends-on): Add progname.
89473         * tests/test-rbtree_oset.c: Include progname.h.
89474         (main): Call set_program_name.
89476         * modules/rbtree-list-tests (Depends-on): Add progname.
89477         * tests/test-rbtree_list.c: Include progname.h.
89478         (main): Call set_program_name.
89480         * modules/linked-list-tests (Depends-on): Add progname.
89481         * tests/test-linked_list.c: Include progname.h.
89482         (main): Call set_program_name.
89484 2007-03-03  Bruno Haible  <bruno@clisp.org>
89486         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
89487         All uses of __restrict changed to _Restrict_.
89488         * lib/glob_.h (__restrict): Remove macro.
89490 2007-03-02  Bruno Haible  <bruno@clisp.org>
89492         * modules/gettext (configure.ac): Require gettext infrastructure
89493         from version 0.16.1.
89495 2007-03-02  Bruno Haible  <bruno@clisp.org>
89497         * modules/linkedhash-list-tests (Depends-on): Add progname.
89498         * tests/test-linkedhash_list.c: Include progname.h.
89499         (main): Call set_program_name.
89501         * modules/carray-list-tests (Depends-on): Add progname.
89502         * tests/test-carray_list.c: Include progname.h.
89503         (main): Call set_program_name.
89505         * modules/avltreehash-list-tests (Depends-on): Add progname.
89506         * tests/test-avltreehash_list.c: Include progname.h.
89507         (main): Call set_program_name.
89509         * modules/avltree-oset-tests (Depends-on): Add progname.
89510         * tests/test-avltree_oset.c: Include progname.h.
89511         (main): Call set_program_name.
89513         * modules/avltree-list-tests (Depends-on): Add progname.
89514         * tests/test-avltree_list.c: Include progname.h.
89515         (main): Call set_program_name.
89517         * modules/array-oset-tests (Depends-on): Add progname.
89518         * tests/test-array_oset.c: Include progname.h.
89519         (main): Call set_program_name.
89521         * modules/array-list-tests (Depends-on): Add progname.
89522         * tests/test-array_list.c: Include progname.h.
89523         (main): Call set_program_name.
89525         * modules/argp-tests (Depends-on): Add progname.
89526         * tests/test-argp.c: Include argp.h first. Include progname.h.
89527         (main): Call set_program_name.
89529 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
89531         * doc/gnulib-tool.texi (Initial import): Reword description of
89532         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
89533         limited effect even if defined after the first system include.
89535 2007-03-01  Bruno Haible  <bruno@clisp.org>
89537         * build-aux/config.libpath: Update to libtool-1.5.22.
89538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89540 2007-03-01  Bruno Haible  <bruno@clisp.org>
89542         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
89543         foo_CFLAGS.
89544         Reported by Ralf Wildenhues.
89546 2007-03-01  Bruno Haible  <bruno@clisp.org>
89548         * build-aux/install-reloc: Remove object files left over by some
89549         compilers.
89550         Reported by Ralf Wildenhues.
89552 2007-03-01  Bruno Haible  <bruno@clisp.org>
89554         * build-aux/install-reloc: Break long lines.
89556 2007-03-01  Bruno Haible  <bruno@clisp.org>
89558         * doc/relocatable.texi: Document that it may not work on OpenBSD.
89559         Reported by Ralf Wildenhues.
89561 2007-03-01  Bruno Haible  <bruno@clisp.org>
89563         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
89564         include ordering constraints.
89566 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89568         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
89569         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
89570         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
89571         as another example.
89572         * lib/time_.h: Fix misspelling.
89573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89574         Require gl_HEADER_TIME_H_DEFAULTS.
89575         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
89576         * m4/time_r.m4 (gl_TIME_R): Likewise.
89577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
89579 2007-03-01  Bruno Haible  <bruno@clisp.org>
89581         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
89582         * m4/utimens.m4 (gl_UTIMENS): Likewise.
89584 2007-03-01  Jim Meyering  <jim@meyering.net>
89586         * modules/xreadlink (Maintainer): Add my name.
89587         * modules/xreadlink-with-size (Depends-on): Alphabetize.
89589 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
89590             Bruno Haible  <bruno@clisp.org>
89592         * build-aux/install-reloc: Compile also c-ctype.c.
89593         * build-aux/relocatable.sh.in: New file.
89594         * doc/relocatable.texi: New file.
89595         * doc/relocatable-maint.texi: New file.
89596         * doc/gnulib.texi: Include relocatable-maint.texi.
89597         * lib/progreloc.c: Include unistd.h unconditionally.
89598         * lib/relocwrapper.c: Include unistd.h unconditionally.
89599         Include c-ctype.h.
89600         (add_dotbin): Use c_tolower.
89601         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
89602         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
89603         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
89604         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
89605         to m4/relocatable-lib.m4.
89606         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
89607         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
89608         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
89609         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
89610         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
89611         * modules/relocatable: New file.
89612         * modules/relocatable-lib: New file.
89613         * modules/relocatable-script: New file.
89615 2007-02-28  Bruno Haible  <bruno@clisp.org>
89617         Import --enable-relocatable infrastructure.
89618         * build-aux/config.libpath: New file, from GNU gettext.
89619         * build-aux/install-reloc: New file, from GNU gettext.
89620         * build-aux/reloc-ldflags: New file, from GNU gettext.
89621         * lib/relocatable.h: New file, from GNU gettext.
89622         * lib/relocatable.c: New file, from GNU gettext.
89623         * lib/relocwrapper.c: New file, from GNU gettext.
89624         * m4/relocatable.m4: New file, from GNU gettext.
89626 2007-02-28  Bruno Haible  <bruno@clisp.org>
89628         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
89630         * modules/xreadlink: New file, from GNU gettext with modifications.
89631         * lib/xreadlink.c: New file, from GNU gettext.
89632         * lib/xreadlink.h: Add comments.
89633         (xreadlink): New declaration.
89635         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
89636         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
89637         lib/xreadlink-with-size.c.
89638         (configure.ac): Remove gl_XREADLINK invocation.
89639         (Makefile.am): Augment lib_SOURCES.
89640         * m4/xreadlink.m4: Remove file.
89641         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
89642         (xreadlink_with_size): Renamed from xreadink.
89643         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
89644         * modules/canonicalize (Depends-on): Replace xreadlink with
89645         xreadlink-with-size.
89646         * lib/canonicalize.c (canonicalize_filename_mode): Update.
89648 2007-02-25  Jim Meyering  <jim@meyering.net>
89650         * build-aux/announce-gen: When complaining about excess arguments,
89651         list them.
89653 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89655         * README: Document signed integer overflow situation more
89656         accurately.
89658 2007-02-25  Bruno Haible  <bruno@clisp.org>
89660         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
89661         'a' or 'A' conversion.
89663 2007-02-25  Bruno Haible  <bruno@clisp.org>
89665         * modules/filename: Renamed from modules/pathname.
89666         (Files): Replace lib/pathname.h with lib/filename.h. Replace
89667         lib/concatpath.c with lib/concat-filename.c.
89668         (Makefile.am): Update.
89669         (Include): Replace pathname.h with filename.h.
89670         * lib/filename.h: Renamed from lib/pathname.h.
89671         (concatenated_filename): Renamed from concatenated_pathname.
89672         * lib/concat-filename.c: Renamed from lib/concatpath.c.
89673         (concatenated_filename): Renamed from concatenated_pathname.
89674         * lib/findprog.c: Include filename.h instead of pathname.h.
89675         (find_in_path): Update.
89676         * lib/javacomp.c: Include filename.h instead of pathname.h.
89677         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89678         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89679         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89680         is_oldgcj_14_13_usable, is_javac_usable): Update.
89681         * lib/javaexec.c: Include filename.h instead of pathname.h.
89682         (execute_java_class): Update.
89683         * modules/findprog: Update.
89684         * modules/javacomp: Update.
89685         * modules/javaexec: Update.
89686         * MODULES.html.sh (File system functions): Add 'filename', remove
89687         'pathname'.
89689 2007-02-25  Bruno Haible  <bruno@clisp.org>
89691         * modules/printf-frexpl-tests: New file.
89692         * tests/test-printf-frexpl.c: New file.
89694         * modules/printf-frexpl: New file.
89695         * lib/printf-frexpl.h: New file.
89696         * lib/printf-frexpl.c: New file.
89697         * m4/printf-frexpl.m4: New file.
89699 2007-02-25  Bruno Haible  <bruno@clisp.org>
89701         * modules/printf-frexp-tests: New file.
89702         * tests/test-printf-frexp.c: New file.
89704         * modules/printf-frexp: New file.
89705         * lib/printf-frexp.h: New file.
89706         * lib/printf-frexp.c: New file.
89707         * m4/printf-frexp.m4: New file.
89709 2007-02-25  Bruno Haible  <bruno@clisp.org>
89711         Assume automake >= 1.10 for the tests.
89712         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
89713         * modules/arctwo-tests: Likewise.
89714         * modules/argp-tests: Likewise.
89715         * modules/avltree-list-tests: Likewise.
89716         * modules/avltree-oset-tests: Likewise.
89717         * modules/avltreehash-list-tests: Likewise.
89718         * modules/carray-list-tests: Likewise.
89719         * modules/crc-tests: Likewise.
89720         * modules/des-tests: Likewise.
89721         * modules/gc-arcfour-tests: Likewise.
89722         * modules/gc-arctwo-tests: Likewise.
89723         * modules/gc-des-tests: Likewise.
89724         * modules/gc-hmac-md5-tests: Likewise.
89725         * modules/gc-hmac-sha1-tests: Likewise.
89726         * modules/gc-md2-tests: Likewise.
89727         * modules/gc-md4-tests: Likewise.
89728         * modules/gc-md5-tests: Likewise.
89729         * modules/gc-pbkdf2-sha1-tests: Likewise.
89730         * modules/gc-rijndael-tests: Likewise.
89731         * modules/gc-sha1-tests: Likewise.
89732         * modules/gc-tests: Likewise.
89733         * modules/getaddrinfo-tests: Likewise.
89734         * modules/hmac-md5-tests: Likewise.
89735         * modules/hmac-sha1-tests: Likewise.
89736         * modules/linked-list-tests: Likewise.
89737         * modules/linkedhash-list-tests: Likewise.
89738         * modules/lock-tests: Likewise.
89739         * modules/md2-tests: Likewise.
89740         * modules/md4-tests: Likewise.
89741         * modules/md5-tests: Likewise.
89742         * modules/rbtree-list-tests: Likewise.
89743         * modules/rbtree-oset-tests: Likewise.
89744         * modules/rbtreehash-list-tests: Likewise.
89745         * modules/read-file-tests: Likewise.
89746         * modules/rijndael-tests: Likewise.
89747         * modules/stdint-tests: Likewise.
89748         * modules/tls-tests: Likewise.
89750 2007-02-24  Bruno Haible  <bruno@clisp.org>
89752         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
89753         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
89754         function; instead check whether isnan with a double argument links.
89755         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
89756         function; instead check whether isnan with a 'long double' argument
89757         links.
89758         Reported by Eric Blake <ebb9@byu.net>.
89760 2007-02-24  Bruno Haible  <bruno@clisp.org>
89762         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
89763         defined.
89764         * lib/isnanl.c: Remove all code. Just include isnan.c.
89765         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
89767 2007-02-25  Jim Meyering  <jim@meyering.net>
89769         Avoid conflicting types for 'unsetenv' on FreeBSD.
89770         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
89771         conflicting with FreeBSD's (5.0 and 6.1) function declaration
89772         in stdlib.h.
89774 2007-02-24  Bruno Haible  <bruno@clisp.org>
89776         * modules/isnanl-nolibm-tests: New file.
89777         * tests/test-isnanl.c: New file.
89779         * modules/isnanl-nolibm: New file.
89780         * lib/isnanl.h: New file.
89781         * lib/isnanl.c: New file.
89782         * m4/isnanl.m4: New file.
89784 2007-02-24  Bruno Haible  <bruno@clisp.org>
89786         * modules/isnan-nolibm-tests: New file.
89787         * tests/test-isnan.c: New file.
89789         * modules/isnan-nolibm: New file.
89790         * lib/isnan.h: New file.
89791         * lib/isnan.c: New file.
89792         * m4/isnan.m4: New file.
89794 2007-02-24  Bruno Haible  <bruno@clisp.org>
89796         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
89797         assume that an exponent fits in 20 bits.
89799 2007-02-24  Jim Meyering  <jim@meyering.net>
89801         * m4/regex.m4: Update the description of the configure-time option,
89802         --without-included-regex, to state accurately what the defaults are,
89803         and perhaps to give people an idea why using this option is risky.
89805 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
89807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
89808         loops on small arguments.  This attempts to avoid the problem
89809         Bruno Haible reported for AIX 4.3.2 in
89810         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
89812 2007-02-23  Bruno Haible  <bruno@clisp.org>
89814         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
89815         Needed for help2man.
89817 2007-02-23  Karl Berry  <karl@gnu.org>
89819         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
89820         exists, foo.h should be cvs-ignored, not committed.
89822 2007-02-23  Eric Blake  <ebb9@byu.net>
89824         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
89825         * lib/stat-time.h (includes): Likewise.
89826         * lib/utimecmp.c (includes): Likewise.
89827         * lib/utimens.h (includes): Likewise.
89828         * lib/getdate.y (includes): Also include "timespec.h" for use
89829         internal to the module.
89830         * modules/utimens (Depends-on): Revert yesterday's patch.
89831         * modules/nanosleep (Depends-on): Add missing dependency.
89833 2007-02-22  Bruno Haible  <bruno@clisp.org>
89835         * lib/glob.c: Don't include getlogin_r.h.
89837 2007-02-22  Jim Meyering  <jim@meyering.net>
89839         * modules/utimens (Depends-on): Add timespec, required for
89840         utimens.h's inclusion of timespec.h.
89842 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
89844         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
89845         long unreadable paths in GNU/Linux.  Problem reported by Andreas
89846         Schwab in
89847         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
89848         I'll try to think of a better way to fix the Solaris problem.
89850         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89851         like glibc; on Solaris 10, it fails with errno == EINVAL.
89852         POSIX says the behavior is unspecified if the first argument is NULL,
89853         so play it safe and never pass NULL to the system getcwd.
89855 2007-02-21  Jim Meyering  <jim@meyering.net>
89857         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89858         of gettimeofday.  It would conflict with the one now always
89859         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89860         an IRIX 6.5 build failure.
89862 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89864         Minor fixups to port to Solaris 10 with Sun C 5.8.
89865         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89866         * modules/getcwd (Depends-on): Add dirfd.
89867         * lib/putenv.c (putenv): #undef it.
89868         (rpl_putenv): New decl.
89869         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89871 2007-02-20  Bruno Haible  <bruno@clisp.org>
89873         * modules/stdio-tests: New file.
89874         * tests/test-stdio.c: New file.
89876         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89877         (Depends-on): Add stdio.
89878         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89879         (Include): Use <stdio.h> instead of vsnprintf.h.
89880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89881         HAVE_DECL_VSNPRINTF.
89882         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89884         * modules/snprintf (Files): Remove lib/snprintf.h.
89885         (Depends-on): Add stdio.
89886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89887         (Include): Use <stdio.h> instead of snprintf.h.
89888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89889         HAVE_DECL_SNPRINTF.
89890         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89891         * lib/getaddrinfo.c: Likewise.
89893         * modules/stdio: New file.
89894         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89895         * lib/snprintf.h: Remove file.
89896         * lib/vsnprintf.h: Remove file.
89897         * lib/.cppi-disable: Remove snprintf.h.
89898         * m4/stdio_h.m4: New file.
89899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89901 2007-02-20  Jim Meyering  <jim@meyering.net>
89903         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89904         used by e.g., mingw.  From Bruno Haible.
89906 2007-02-19  Bruno Haible  <bruno@clisp.org>
89908         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89909         warnings.
89910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89912 2007-02-19  Bruno Haible  <bruno@clisp.org>
89914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89915         from mingw users.
89917 2007-02-19  Bruno Haible  <bruno@clisp.org>
89919         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89920         warnings.
89921         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89923 2007-02-19  Jim Meyering  <jim@meyering.net>
89925         Don't use FD after a successful "fdopendir (fd)".
89926         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89927         Reset it by calling dirfd on the just-obtained DIR*.
89929         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89930         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89932 2007-02-18  Bruno Haible  <bruno@clisp.org>
89934         * lib/readlink.c: Include <unistd.h>.
89935         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89936         HAVE_READLINK.
89937         * modules/readlink (Depends-on): Add unistd.
89938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89939         (Include): Add <unistd.h>.
89941         * lib/getlogin_r.h: Remove file.
89942         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89944         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89945         HAVE_DECL_GETLOGIN_R.
89946         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89948         (Include): Use <unistd.h> instead of getlogin_r.h.
89950         * lib/getcwd.h: Remove file.
89951         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89952         * lib/xgetcwd.c: Likewise.
89953         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89954         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89955         * modules/getcwd (Files): Remove lib/getcwd.h.
89956         (Depends-on): Add unistd.
89957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89958         (Include): Use <unistd.h> instad of getcwd.h.
89960         * lib/ftruncate.c: Include <unistd.h> first.
89961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89962         Set HAVE_FTRUNCATE.
89963         * modules/ftruncate (Depends-on): Add unistd.
89964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89966         * lib/fchdir.c: Include <unistd.h> first.
89967         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89969         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89970         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89971         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89973         * lib/dup2.c: Include <unistd.h> first.
89974         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89975         HAVE_DUP2.
89976         * modules/dup2 (Depends-on): Add unistd.
89977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89979         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89980         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89981         REPLACE_CHOWN. Don't define chown as a macro here.
89982         * modules/chown (Depends-on): Add unistd.
89983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89985         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89986         Add definition for GL_LINK_WARNING.
89987         (chown, dup2): New declarations.
89988         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89989         link warning.
89990         (ftruncate): New declaration.
89991         (getcwd): New declaration, taken from old getcwd.h.
89992         (getlogin_r): New declaration, taken from old getlogin_r.h.
89993         (readlink): New declaration.
89994         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89995         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89996         (gl_PREREQ_UNISTD): Remove macro.
89997         (gl_UNISTD_MODULE_INDICATOR): New macro.
89998         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89999         many new variables. Don't set UNISTD_H.
90000         * modules/unistd (Description): Change.
90001         (Depends-on): Add link-warning.
90002         (configure.ac): Update.
90003         (Makefile.am): Create unistd.h always. Substitute many new variables
90004         into it.
90006 2007-02-18  Bruno Haible  <bruno@clisp.org>
90008         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
90009         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
90010         HAVE_GETSUBOPT.
90011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
90012         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
90013         * lib/getsubopt.h: Remove file.
90014         * modules/getsubopt (Files): Remove lib/getsubopt.h.
90015         (Depends-on): Add stdlib.
90016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90017         (Includes): Use <stdlib.h> instead of getsubopt.h.
90018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
90019         Set HAVE_GETSUBOPT.
90020         * lib/getsubopt.c: Don't include getsubopt.h.
90022 2007-02-18  Bruno Haible  <bruno@clisp.org>
90024         * modules/fchdir (Depends-on): Add dup2.
90026 2007-02-18  Bruno Haible  <bruno@clisp.org>
90028         * lib/stdlib_.h: Handle glibc's special invocation convention
90029         specially.
90031 2007-02-18  Bruno Haible  <bruno@clisp.org>
90033         * modules/stdlib-tests: New file.
90034         * tests/test-stdlib.c: New file.
90036         * modules/mkstemp (Files): Remove lib/mkstemp.h.
90037         (Depends-on): Add stdlib.
90038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90039         (Includes): Use <stdlib.h> instead of mkstemp.h.
90040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
90041         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
90042         * lib/mkstemp.c: Don't include mkstemp.h.
90043         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
90044         * lib/stdlib--.h: Don't include mkstemp.h.
90046         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
90047         (Depends-on): Add stdlib.
90048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90049         (Includes): Use <stdlib.h> instead of mkdtemp.h.
90050         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
90051         HAVE_MKDTEMP.
90052         * lib/mkdtemp.c: Don't include mkdtemp.h.
90053         * lib/clean-temp.c: Don't include mkdtemp.h.
90055         * modules/exit (Files): Remove lib/exit.h.
90056         (Depends-on): Add stdlib.
90057         (Makefile.am): Remove lib_SOURCES.
90058         (Include): Use <stdlib.h> instead of exit.h.
90059         * lib/argmatch.c: Don't include exit.h.
90060         * lib/execute.c: Likewise.
90061         * lib/pagealign_alloc.c: Likewise.
90062         * lib/pipe.c: Likewise.
90063         * lib/wait-process.c: Likewise.
90064         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
90065         * lib/exitfail.c: Likewise.
90066         * lib/savewd.c: Likewise.
90067         * lib/xsetenv.c: Likewise.
90069         * modules/stdlib: New file.
90070         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
90071         and extra comments about mkstemp().
90072         * lib/exit.h: Remove file.
90073         * lib/mkdtemp.h: Remove file.
90074         * lib/mkstemp.h: Remove file.
90075         * m4/stdlib_h.m4: New file.
90076         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
90078 2007-02-18  Bruno Haible  <bruno@clisp.org>
90080         * modules/math-tests: New file.
90081         * tests/test-math.c: New file.
90083         * modules/math: New file.
90084         * modules/mathl (Files): Remove lib/mathl.h.
90085         (Depends-on): Add math.
90086         (Makefile.am): Don't mention mathl.h.
90087         (Include): Use <math.h> instead of mathl.h.
90088         * lib/math_.h: New file.
90089         * lib/mathl.h: Remove file.
90090         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
90091         mathl.h.
90092         * lib/asinl.c: Likewise.
90093         * lib/atanl.c: Likewise.
90094         * lib/ceill.c: Likewise.
90095         * lib/cosl.c: Likewise.
90096         * lib/expl.c: Likewise.
90097         * lib/floorl.c: Likewise.
90098         * lib/frexpl.c: Likewise.
90099         * lib/ldexpl.c: Likewise.
90100         * lib/logl.c: Likewise.
90101         * lib/sincosl.c: Likewise.
90102         * lib/sinl.c: Likewise.
90103         * lib/sqrtl.c: Likewise.
90104         * lib/tanl.c: Likewise.
90105         * lib/trigl.c: Likewise.
90106         * m4/math_h.m4: New file.
90107         * MODULES.html.sh (Mathematics): Add math.
90109 2007-02-17  Bruno Haible  <bruno@clisp.org>
90111         * modules/wctype-tests: New file.
90112         * tests/test-wctype.c: New file.
90114         * modules/wchar-tests: New file.
90115         * tests/test-wchar.c: New file.
90117         * modules/unistd-tests: New file.
90118         * tests/test-unistd.c: New file.
90120         * modules/time-tests: New file.
90121         * tests/test-time.c: New file.
90123         * modules/sysexits-tests: New file.
90124         * tests/test-sysexits.c: New file.
90126         * modules/sys_time-tests: New file.
90127         * tests/test-sys_time.c: New file.
90129         * modules/sys_stat-tests: New file.
90130         * tests/test-sys_stat.c: New file.
90132         * modules/sys_socket-tests: New file.
90133         * tests/test-sys_socket.c: New file.
90135         * modules/sys_select-tests: New file.
90136         * tests/test-sys_select.c: New file.
90138         * modules/string-tests: New file.
90139         * tests/test-string.c: New file.
90141         * modules/stdbool-tests: New file.
90142         * tests/test-stdbool.c: New file.
90144         * modules/netinet_in-tests: New file.
90145         * tests/test-netinet_in.c: New file.
90147         * modules/inttypes-tests: New file.
90148         * tests/test-inttypes.c: New file.
90150         * modules/fcntl-tests: New file.
90151         * tests/test-fcntl.c: New file.
90153         * modules/byteswap-tests: New file.
90154         * tests/test-byteswap.c: New file.
90156         * modules/arpa_inet-tests: New file.
90157         * tests/test-arpa_inet.c: New file.
90159 2007-02-17  Bruno Haible  <bruno@clisp.org>
90161         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
90162         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
90163         if the corresponding module is not enabled. Emit link warnings if
90164         the function is used nevertheless.
90165         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
90166         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
90167         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
90168         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
90169         * modules/inttypes (Depends-on): Add link-warning.
90170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
90171         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
90172         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
90173         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
90174         * modules/imaxdiv (configure.ac): Likewise.
90175         * modules/strtoimax (configure.ac): Likewise.
90176         * modules/strtoumax (configure.ac): Likewise.
90178 2007-02-17  Bruno Haible  <bruno@clisp.org>
90180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
90181         gl_STRING_MODULE_INDICATOR_DEFAULTS.
90182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
90183         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
90185 2007-02-17  Bruno Haible  <bruno@clisp.org>
90187         * modules/link-warning: New file.
90188         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
90189         * lib/string_.h (GL_LINK_WARNING): Remove definition.
90190         * modules/string (Depends-on): Add link-warning.
90191         (Makefile.am): Copy the contents of build-aux/link-warning.h into
90192         string.h.
90193         * MODULES.html.sh (Support for building libraries and executables): Add
90194         link-warning.
90196 2007-02-17  Bruno Haible  <bruno@clisp.org>
90198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
90199         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
90200         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
90201         long lines.
90203 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
90204             Bruno Haible  <bruno@clisp.org>
90206         * modules/tmpfile: New file.
90207         * lib/tmpfile.c: New file.
90208         * m4/tmpfile.m4: New file.
90209         * MODULES.html.sh (func_all_modules): New section "Input/output".
90211 2007-02-15  Bruno Haible  <bruno@clisp.org>
90213         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
90214         (supports_delete_on_close): New function.
90215         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
90217 2007-02-14  Bruno Haible  <bruno@clisp.org>
90219         * modules/mbspcasecmp-tests: New file.
90220         * tests/test-mbspcasecmp.sh: New file.
90221         * tests/test-mbspcasecmp.c: New file.
90223         New module mbspcasecmp.
90224         * modules/mbspcasecmp: New file.
90225         * lib/mbspcasecmp.c: New file.
90226         * lib/string_.h (strncasecmp): Change warning message.
90227         (mbspcasecmp): New declaration.
90228         * m4/mbspcasecmp.m4: New file.
90229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90230         GNULIB_MBSPCASECMP.
90231         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
90232         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
90234 2007-02-14  Bruno Haible  <bruno@clisp.org>
90236         * modules/mbsncasecmp-tests: New file.
90237         * tests/test-mbsncasecmp.sh: New file.
90238         * tests/test-mbsncasecmp.c: New file.
90240         New module mbsncasecmp.
90241         * modules/mbsncasecmp: New file.
90242         * lib/mbsncasecmp.c: New file.
90243         * lib/string_.h (mbsncasecmp): New declaration.
90244         * m4/mbsncasecmp.m4: New file.
90245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90246         GNULIB_MBSNCASECMP.
90247         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
90248         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
90250 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
90252         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
90253         Verify that it doesn't overlap with our flags.
90254         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
90255         do not have the desired effect in multibyte locales; instead, use
90256         mbscasecmp.
90257         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
90258         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
90259         we don't require GNU fnmatch ourselves (if our users require it, they
90260         should do so explicitly).
90262         Fix regex code so it doesn't rely on strcasecmp.
90263         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
90264         Otherwise, include gnulib's langinfo.h.
90265         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
90266         undesirable behavior in non-C locales.  Instead, rely on localecharset.
90267         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
90268         * modules/regex (FILES): Remove m4/codeset.m4.
90269         (Depends-on): Add localcharset.  Remove strcase.
90271 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90273         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
90274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
90276 2007-02-13  Bruno Haible  <bruno@clisp.org>
90278         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
90279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90281 2007-02-12  Bruno Haible  <bruno@clisp.org>
90283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
90285         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
90286         time warning rather than a link error.
90288 2007-02-12  Bruno Haible  <bruno@clisp.org>
90290         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
90291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
90292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90294 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90296         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
90297         args, not 2.
90299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90301         New module 'time', so that apps can include <time.h> as per
90302         POSIX and GNU instead of separate include files like time_r.h
90303         and timegm.h.  This implementation tries out a simpler approach
90304         for replacing decls in standard include files (as compared to
90305         the string module), somewhat as an experiment.
90307         * config/srclist.txt: Comment out mktime.c for now.
90308         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
90309         since it doesn't apply any more.  Use generic wording instead.
90310         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
90311         'time'.
90312         * lib/time_.h, m4/time_h.m4, modules/time: New files.
90313         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
90314         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
90315         Don't include <sys/types.h>; no longer needed since we assume C89.
90316         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
90317         * lib/strftime.c: Likewise.
90318         * lib/time_r.c: Likewise.
90319         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
90320         * lib/nanosleep.c: Include <time.h> first, to check interface.
90321         * lib/strptime.c: Likewise.
90322         * lib/time_r.c: Likewise.
90323         * lib/timegm.c: Likewise.
90324         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
90325         needed.
90326         * lib/timegm.c: Don't include timegm.h; no longer needed.
90327         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
90328         time.h now handles any problems in that area.
90329         (struct timespec, nanosleep): Remove; time.h now arranges for these.
90330         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
90331         that time.h defines struct timespec.
90332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
90333         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
90334         handles that.
90335         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
90336         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
90337         needed.  Set REPLACE_LOCALTIME.
90338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
90339         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
90340         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
90341         nanosleep; time_h.m4 now does that.  Don't require
90342         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
90343         module handles this now.
90344         * modules/getdate (Depends-on): Remove timespec.  Add time.
90345         * modules/nanosleep (Depends-on): Likewise.
90346         * modules/stat-time (Depends-on): Likewise.
90347         * modules/nanosleep (Include): Include time.h, not timespec.h.
90348         * modules/strptime (Files): Remove lib/strptime.h.
90349         (Depends-on): Add extensions, time.
90350         (Include): Include time.h, not strptime.h.
90351         * modules/time_r (Files): Remove lib/time_r.h.
90352         (Depends-on): Add time.
90353         (Include): Include time.h, not time_r.h.
90354         * modules/timegm: Likewise.
90355         * modules/timespec (Description): Now does timespec-related decls
90356         of our own, instead of struct timespec itself.
90357         (Depends-on): Add time; remove extensions.
90358         (Maintainer): Add self.
90359         * modules/utimecmp (Depends-on): Add time; remove timespec.
90360         * modules/utimens (Depends-on): Likewise.
90361         * modules/xnanosleep (Depends-on): Likewise.
90363 2007-02-11  Bruno Haible  <bruno@clisp.org>
90365         * lib/c-strstr.c: Include allocsa.h.
90366         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90367         * lib/c-strcasestr.c: Include allocsa.h.
90368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90369         * lib/strcasestr.c: Include allocsa.h.
90370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90371         * lib/mbsstr.c: Include allocsa.h.
90372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90373         allocsa/freesa instead of malloc/free.
90374         * lib/mbscasestr.c: Include allocsa.h.
90375         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90376         allocsa/freesa instead of malloc/free.
90377         * modules/c-strstr (Depends-on): Add allocsa.
90378         * modules/c-strcasestr (Depends-on): Likewise.
90379         * modules/strcasestr (Depends-on): Likewise.
90380         * modules/mbsstr (Depends-on): Likewise.
90381         * modules/mbscasestr (Depends-on): Likewise.
90383 2007-02-11  Bruno Haible  <bruno@clisp.org>
90385         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
90387         * modules/mbsspn-tests: New file.
90388         * tests/test-mbsspn.sh: New file.
90389         * tests/test-mbsspn.c: New file.
90391 2007-02-11  Bruno Haible  <bruno@clisp.org>
90393         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
90395         * modules/mbspbrk-tests: New file.
90396         * tests/test-mbspbrk.sh: New file.
90397         * tests/test-mbspbrk.c: New file.
90399 2007-02-11  Bruno Haible  <bruno@clisp.org>
90401         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
90402         unneeded cast.
90404         * modules/mbscspn-tests: New file.
90405         * tests/test-mbscspn.sh: New file.
90406         * tests/test-mbscspn.c: New file.
90408 2007-02-11  Bruno Haible  <bruno@clisp.org>
90410         * modules/mbscasecmp-tests: New file.
90411         * tests/test-mbscasecmp.sh: New file.
90412         * tests/test-mbscasecmp.c: New file.
90414 2007-02-11  Bruno Haible  <bruno@clisp.org>
90416         Ensure O(n) worst-case complexity of mbscasestr.
90417         * lib/mbscasestr.c: Include stdbool.h.
90418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90419         functions.
90420         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
90421         the bookkeeping indicates that it's worth it.
90422         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
90424         * modules/mbscasestr-tests: New file.
90425         * tests/test-mbscasestr1.c: New file.
90426         * tests/test-mbscasestr2.sh: New file.
90427         * tests/test-mbscasestr2.c: New file.
90428         * tests/test-mbscasestr3.sh: New file.
90429         * tests/test-mbscasestr3.c: New file.
90430         * tests/test-mbscasestr4.sh: New file.
90431         * tests/test-mbscasestr4.c: New file.
90432         * m4/locale-tr.m4: New file.
90434 2007-02-11  Bruno Haible  <bruno@clisp.org>
90436         Ensure O(n) worst-case complexity of mbsstr.
90437         * lib/mbsstr.c: Include stdbool.h.
90438         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90439         functions.
90440         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
90441         bookkeeping indicates that it's worth it.
90442         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
90444         * modules/mbsstr-tests: New file.
90445         * tests/test-mbsstr1.c: New file.
90446         * tests/test-mbsstr2.sh: New file.
90447         * tests/test-mbsstr2.c: New file.
90448         * tests/test-mbsstr3.sh: New file.
90449         * tests/test-mbsstr3.c: New file.
90450         * m4/locale-fr.m4: New file.
90452 2007-02-11  Bruno Haible  <bruno@clisp.org>
90454         * lib/mbsrchr.c (mbsrchr): Fix bug.
90456         * modules/mbsrchr-tests: New file.
90457         * tests/test-mbsrchr.sh: New file.
90458         * tests/test-mbsrchr.c: New file.
90460 2007-02-11  Bruno Haible  <bruno@clisp.org>
90462         * lib/mbschr.c (mbschr): Fix bug.
90464         * modules/mbschr-tests: New file.
90465         * tests/test-mbschr.sh: New file.
90466         * tests/test-mbschr.c: New file.
90467         * m4/locale-zh.m4: New file.
90469 2007-02-11  Bruno Haible  <bruno@clisp.org>
90471         Support for copying multibyte string iterators.
90472         * lib/mbiter.h: Include <string.h>.
90473         (mbiter_multi_copy): New function.
90474         (mbi_copy): New macro.
90475         * lib/mbuiter.h: Include <string.h>.
90476         (mbuiter_multi_copy): New function.
90477         (mbui_copy): New macro.
90479 2007-02-11  Bruno Haible  <bruno@clisp.org>
90481         New module mbslen.
90482         * modules/mbslen: New file.
90483         * lib/mbslen.c: New file.
90484         * lib/string_.h (mbslen): New declaration.
90485         * m4/mbslen.m4: New file.
90486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90487         GNULIB_MBSLEN.
90488         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
90489         * MODULES.html.sh (Internationalization functions): Add mbslen.
90491 2007-02-11  Bruno Haible  <bruno@clisp.org>
90493         Ensure O(n) worst-case complexity of strcasestr substitute.
90494         * lib/strcasestr.c: Include stdbool.h.
90495         (knuth_morris_pratt): New function.
90496         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90497         bookkeeping indicates that it's worth it.
90498         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
90500         * modules/strcasestr-tests: New file.
90501         * tests/test-strcasestr.c: New file.
90503 2007-02-11  Bruno Haible  <bruno@clisp.org>
90505         Ensure O(n) worst-case complexity of c_strcasestr.
90506         * lib/c-strcasestr.c: Include stdbool.h, string.h.
90507         (knuth_morris_pratt): New function.
90508         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
90509         the bookkeeping indicates that it's worth it.
90510         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
90512         * modules/c-strcasestr-tests: New file.
90513         * tests/test-c-strcasestr.c: New file.
90515 2007-02-11  Bruno Haible  <bruno@clisp.org>
90517         Ensure O(n) worst-case complexity of c_strstr.
90518         * lib/c-strstr.c: Include stdbool.h, string.h.
90519         (knuth_morris_pratt): New function.
90520         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90521         bookkeeping indicates that it's worth it.
90522         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
90524         * lib/c-strstr.c: Complete rewrite for maintainability.
90526         * modules/c-strstr-tests: New file.
90527         * tests/test-c-strstr.c: New file.
90529 2007-02-11  Bruno Haible  <bruno@clisp.org>
90531         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
90532         5.2.1 and earlier, whereby \055 was treated just like the range
90533         delimiter '-'.
90534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90536 2007-02-08  Bruno Haible  <bruno@clisp.org>
90538         * modules/regex (Depends-on): Add stdbool.
90539         Reported by Dalibor Topic <robilad@kaffe.org>.
90541 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
90543         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
90544         Prefer returning from main to exiting from it.
90545         Remove unnecessary parens after sizeof.
90547 2007-02-05  Bruno Haible  <bruno@clisp.org>
90549         New module mbssep.
90550         * modules/mbssep: New file.
90551         * lib/mbssep.c: New file.
90552         * lib/string_.h (strsep): Add a conditional link warning.
90553         (mbssep): New declaration.
90554         * m4/mbssep.m4: New file.
90555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90556         GNULIB_MBSSEP.
90557         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
90558         * MODULES.html.sh (Internationalization functions): Add mbssep.
90560 2007-02-05  Bruno Haible  <bruno@clisp.org>
90562         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
90563         Optimize search in case of 1 delimiter.
90565 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90567         * lib/acl.h: Include sys/types.h before sys/acl.h.
90569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90571         Merge upstream fix for glibc bugzilla #3957:
90573         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
90575         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
90576         bit for RE_HAT_LISTS_NOT_NEWLINE.
90577         (build_charclass_op): Remove bogus comment.
90579 2007-02-05  Simon Josefsson  <simon@josefsson.org>
90581         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
90583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90585         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
90586         * lib/memmem.c [!defined _LIBC]: Include config.h.
90588 2007-02-04  Bruno Haible  <bruno@clisp.org>
90590         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
90591         warning message.
90593 2007-02-04  Bruno Haible  <bruno@clisp.org>
90595         New module mbstok_r.
90596         * modules/mbstok_r: New file.
90597         * lib/mbstok_r.c: New file.
90598         * lib/string_.h (strtok_r): Change argument names to match the
90599         comments. Add a conditional link warning.
90600         (mbstok_r): New declaration.
90601         * m4/mbstok_r.m4: New file.
90602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90603         GNULIB_MBSTOK_R.
90604         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
90605         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
90607 2007-02-04  Bruno Haible  <bruno@clisp.org>
90609         New module mbsspn.
90610         * modules/mbsspn: New file.
90611         * lib/mbsspn.c: New file.
90612         * lib/string_.h (strspn): Add a conditional link warning.
90613         (mbsspn): New declaration.
90614         * m4/mbsspn.m4: New file.
90615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90616         GNULIB_MBSSPN.
90617         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
90618         * MODULES.html.sh (Internationalization functions): Add mbsspn.
90620 2007-02-04  Bruno Haible  <bruno@clisp.org>
90622         New module mbspbrk.
90623         * modules/mbspbrk: New file.
90624         * lib/mbspbrk.c: New file.
90625         * lib/string_.h (strpbrk): Add a conditional link warning.
90626         (mbspbrk): New declaration.
90627         * m4/mbspbrk.m4: New file.
90628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90629         GNULIB_MBSPBRK.
90630         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
90631         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
90633 2007-02-04  Bruno Haible  <bruno@clisp.org>
90635         New module mbscspn.
90636         * modules/mbscspn: New file.
90637         * lib/mbscspn.c: New file.
90638         * lib/string_.h (strcspn): Add a conditional link warning.
90639         (mbscspn): New declaration.
90640         * m4/mbscspn.m4: New file.
90641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90642         GNULIB_MBSCSPN.
90643         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
90644         * MODULES.html.sh (Internationalization functions): Add mbscspn.
90646 2007-02-04  Bruno Haible  <bruno@clisp.org>
90648         New module mbscasestr, reduced goal of strcasestr.
90649         * modules/mbscasestr: New file.
90650         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
90651         (mbscasestr): Renamed from strcasestr.
90652         * lib/strcasestr.c: Don't include mbuiter.h.
90653         (strcasestr): Remove support for multibyte locales.
90654         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
90655         Change the conditional link warning.
90656         (mbscasestr): New declaration.
90657         * m4/mbscasestr.m4: New file.
90658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
90659         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
90660         REPLACE_STRCASESTR.
90661         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
90662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90663         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
90665         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
90666         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90667         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
90668         (Depends-on): Remove mbuiter.
90669         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
90671 2007-02-04  Bruno Haible  <bruno@clisp.org>
90673         Simplify handling of strncasecmp.
90674         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
90675         the conditional link warning.
90676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90677         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
90678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
90679         * modules/strcase (configure.ac): Don't invoke
90680         gl_STRING_MODULE_INDICATOR.
90681         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
90683 2007-02-04  Bruno Haible  <bruno@clisp.org>
90685         New module mbscasecmp, reduced goal of strcasecmp.
90686         * modules/mbscasecmp: New file.
90687         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
90688         (mbscasecmp): Renamed from strcasecmp.
90689         * lib/strcasecmp.c: Don't include mbuiter.h.
90690         (strcasecmp): Remove support for multibyte locales.
90691         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
90692         Change the conditional link warning.
90693         (mbscasecmp): New declaration.
90694         * m4/mbscasecmp.m4: New file.
90695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
90696         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
90697         REPLACE_STRCASECMP.
90698         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
90699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90700         GNULIB_MBSCASECMP.
90701         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
90702         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
90703         * modules/strcase (Files): Remove m4/mbrtowc.m4.
90704         (Depends-on): Remove mbuiter.
90705         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
90707 2007-02-04  Bruno Haible  <bruno@clisp.org>
90709         New module mbsstr. Remove module strstr.
90710         * modules/mbsstr: New file.
90711         * modules/strstr: Remove file.
90712         * lib/mbsstr.c: Renamed from lib/strstr.c.
90713         (mbsstr): Renamed from strstr.
90714         * lib/string_.h (strstr): Remove declaration. Change the conditional
90715         link warning.
90716         (mbsstr): New declaration.
90717         * m4/mbsstr.m4: New file.
90718         * m4/strstr.m4: Remove file.
90719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
90720         REPLACE_STRSTR.
90721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
90722         Don't initialize GNULIB_STRSTR.
90723         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
90724         substitute GNULIB_STRSTR and REPLACE_STRSTR.
90725         * MODULES.html.sh (Internationalization functions): Add mbsstr.
90726         (Support for systems lacking ANSI C 89): Remove strstr.
90728 2007-02-04  Bruno Haible  <bruno@clisp.org>
90730         New module mbsrchr.
90731         * modules/mbsrchr: New file.
90732         * lib/mbsrchr.c: New file.
90733         * lib/string_.h (strrchr): Add a conditional link warning.
90734         (mbsrchr): New declaration.
90735         * m4/mbsrchr.m4: New file.
90736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90737         GNULIB_MBSRCHR.
90738         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
90739         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
90741 2007-02-04  Bruno Haible  <bruno@clisp.org>
90743         New module mbschr.
90744         * modules/mbschr: New file.
90745         * lib/mbschr.c: New file.
90746         * lib/string_.h (strchr): Add a conditional link warning.
90747         (mbschr): New declaration.
90748         * m4/mbschr.m4: New file.
90749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90750         GNULIB_MBSCHR.
90751         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
90752         * MODULES.html.sh (Internationalization functions): Add mbschr.
90754 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90756         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
90758         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
90760 2007-02-04  Bruno Haible  <bruno@clisp.org>
90762         New module description section 'configure.ac-early'.
90763         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
90764         (func_get_autoconf_early_snippet): New function.
90765         (func_import, func_create_testdir): Use it. Remove special cases for
90766         modules 'extensions' and 'lock'.
90767         * modules/extensions (configure.ac-early): Require
90768         gl_USE_SYSTEM_EXTENSIONS.
90769         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
90771 2007-02-04  Bruno Haible  <bruno@clisp.org>
90773         Make use of gcj-4.3's -fsource and -ftarget option.
90774         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
90775         and if so try the options -fsource and -ftarget.
90776         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
90777         source_version, ftarget_option, target_version arguments.
90778         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
90779         (is_envjavac_oldgcj_14_14_usable): Renamed from
90780         is_envjavac_gcj_14_14_usable.
90781         (is_envjavac_oldgcj_14_13_usable): Renamed from
90782         is_envjavac_gcj_14_13_usable.
90783         (is_gcj_present): Update.
90784         (is_gcj_43, is_gcj43_usable): New functions.
90785         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
90786         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
90787         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
90788         try the options -fsource and -ftarget.
90790 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
90792         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
90793         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
90794         larger value.
90796 2007-02-03  Jim Meyering  <jim@meyering.net>
90798         Give tools a better chance to allocate space for very large buffers.
90799         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
90801         Make pwd and readlink work also when run with an unreadable parent dir
90802         on systems with openat support.
90803         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
90804         provided getcwd function, even when we have openat support.
90805         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
90807 2007-02-02  Bruno Haible  <bruno@clisp.org>
90809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
90811         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
90812         portability problems if one of these functions is only used on specific
90813         platforms.
90814         Reported by Paul Eggert.
90816 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
90818         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
90819         is causing more trouble than it's curing.
90820         * lib/regex_internal.h (__mempcpy): Remove.
90821         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
90822         (and make the code a tad smaller to boot).
90823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
90825 2007-02-02  Jim Meyering  <jim@meyering.net>
90827         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
90828         section, not in the Makefile.am: one.
90830 2007-02-02  Eric Blake  <ebb9@byu.net>
90832         * lib/strchrnul.c: Always include config.h first.
90834         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
90835         gnulib strstr is not necessary here.
90837 2007-02-02  Simon Josefsson  <simon@josefsson.org>
90839         * m4/socklen.m4: Fix typo.
90841 2007-02-02  Eric Blake  <ebb9@byu.net>
90843         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
90844         * modules/netinet_in (Makefile.am): Likewise.
90846 2007-02-01  Bruno Haible  <bruno@clisp.org>
90848         * lib/string_.h (GL_LINK_WARNING): New macro.
90849         (strcasecmp, strstr, strcasestr): If provided by the system,
90850         conditionally define as a macro that leads to a warning instead of to
90851         an error.
90852         (strncasecmp): Conditionally define as a macro that leads to a warning.
90854 2007-02-01  Karl Berry  <karl@gnu.org>
90856         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90858 2007-02-01  Bruno Haible  <bruno@clisp.org>
90860         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90861         renamings.
90863 2007-02-01  Eric Blake  <ebb9@byu.net>
90865         * modules/regex (Depends-on): Revert dependence on mempcpy.
90866         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90867         module's definition of mempcpy.
90868         Reported by Paul Eggert.
90870 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90872         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90873         the symbol XYZ before redefining it.  This fixes a problem with
90874         programs that don't use XYZ, when compiled on systems that define
90875         XYZ to something else.
90877 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90879         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90880         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90881         writeable to group or other and (2) is intended to have a special
90882         mode bit that is set or cleared.  In such a case, the directory
90883         should be neither group- nor other-writeable until the special
90884         mode bits are right.
90886 2007-01-31  Eric Blake  <ebb9@byu.net>
90888         * modules/mountlist (Depends-on): Add strstr.
90890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90891         bug.
90892         * modules/string (Makefile.am): Remove redundant replacement.
90893         * modules/regex (Depends-on): Add mempcpy.
90895 2007-01-31  Bruno Haible  <bruno@clisp.org>
90897         New module description field 'Link'.
90898         * gnulib-tool (func_usage): Document --extract-link-directive.
90899         (sed_extract_prog): Recognize 'Link' directive.
90900         (func_get_link_directive): New function.
90901         (func_import): Show summary of link directives.
90902         Handle --extract-link-directive option.
90903         * modules/acl (Link): New section.
90904         * modules/clock-time (Link): New section.
90905         * modules/euidaccess (Link): New section.
90906         * modules/gettext (Link): New section.
90907         * modules/iconv (Link): New section.
90908         * modules/lock (Link): New section.
90909         * modules/nanosleep (Link): New section.
90910         * modules/readline (Link): New section.
90912 2007-01-27  Bruno Haible  <bruno@clisp.org>
90914         Enforce the use of gnulib modules for unportable <string.h> functions.
90915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90917         (gl_HEADER_STRING_H_BODY): Require it.
90918         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90919         the symbol XYZ to one that gives a link error.
90920         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90921         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90922         * modules/mempcpy (configure.ac): Likewise.
90923         * modules/memrchr (configure.ac): Likewise.
90924         * modules/stpcpy (configure.ac): Likewise.
90925         * modules/stpncpy (configure.ac): Likewise.
90926         * modules/strcase (configure.ac): Likewise.
90927         * modules/strcasestr (configure.ac): Likewise.
90928         * modules/strchrnul (configure.ac): Likewise.
90929         * modules/strdup (configure.ac): Likewise.
90930         * modules/strndup (configure.ac): Likewise.
90931         * modules/strnlen (configure.ac): Likewise.
90932         * modules/strpbrk (configure.ac): Likewise.
90933         * modules/strsep (configure.ac): Likewise.
90934         * modules/strstr (configure.ac): Likewise.
90935         * modules/strtok_r (configure.ac): Likewise.
90937 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90939         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90941 2007-01-30  Jim Meyering  <jim@meyering.net>
90943         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90945 2007-01-29  Bruno Haible  <bruno@clisp.org>
90947         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90948         * lib/execute.c: Likewise.
90949         * lib/pipe.c: Likewise.
90950         * lib/printf-args.h: Likewise.
90951         * lib/printf-args.c: Likewise.
90952         * lib/printf-parse.c: Likewise.
90953         * lib/vasnprintf.c: Likewise.
90955 2007-01-29  Eric Blake  <ebb9@byu.net>
90957         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90958         declaration.
90960 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90962         * lib/strptime.h (strptime): Use 'restrict' for args where
90963         POSIX requires this.
90964         * lib/strptime.c (strptime): Likewise.
90965         Change license notice from LGPL to GPL, since gnulib-tool will
90966         change this as needed.
90967         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90968         defined.
90969         Include "strptime.h" first, to check interface.
90970         Do not #undef _LIBC and _NL_CURRENT.
90971         Do not include <stdlib.h>; no longer needed.
90972         Include "time_r.h" and declare ptime_locale_status
90973         only if _LIBC is not defined.
90974         (__P): Remove unused macro.
90975         (match_string): Bring back glibc version, but use it only if _LIBC
90976         is defined.
90977         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90978         Remove unnecessary assertion and abort() call.
90979         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90980         * m4/strptime.m4: Fix serial number comment.
90981         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90982         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90983         (Depends-on): Add time_r.
90985 2007-01-29  Bruno Haible  <bruno@clisp.org>
90987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90988         strptime.
90989         * modules/strptime (Depends-on): Add stdbool.
90990         * lib/strptime.h: Include <time.h> always. Add comments.
90992 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90994         * modules/strptime: New file.
90995         * lib/strptime.h: New file.
90996         * lib/strptime.c: New file.
90997         * m4/strptime.m4: New file.
90999 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
91001         * MODULES.html.sh: New module mpsort.
91002         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
91004         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
91005         a circularity problem with HP-UX ia64 reported by Bob Proulx in
91006         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
91007         All uses changed.
91008         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
91009         All uses changed.
91010         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
91011         to _Restrict_.
91012         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
91013         the parameter matches the prototype.
91015 2007-01-28  Jim Meyering  <jim@meyering.net>
91017         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
91018         sys/time.h here, reverting that part of the previous patch:
91019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
91021 2007-01-28  Bruno Haible  <bruno@clisp.org>
91023         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
91024         value of $(SYS_TIME_H).
91025         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
91026         remove it conditionally, too. [added by Jim Meyering]
91027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
91028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
91030         GETTIMEOFDAY_REPLACEMENT to 1.
91032 2007-01-28  Bruno Haible  <bruno@clisp.org>
91034         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
91035         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
91036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
91037         Set UNISTD_H instead of UNISTD_H2.
91038         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
91040 2007-01-28  Bruno Haible  <bruno@clisp.org>
91042         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
91043         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
91045 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91047         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
91048         (func_create_testdir): Ensure C locale for `grep' and `tr'
91049         character ranges.
91050         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
91051         ACLOCAL_AMFLAGS parsing state machine.
91053 2007-01-27  Bruno Haible  <bruno@clisp.org>
91055         * modules/unistr/base: Update.
91057 2007-01-27  Bruno Haible  <bruno@clisp.org>
91059         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
91060         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
91061         * modules/unistr/u32-mbtouc-unsafe: Renamed from
91062         modules/unistr/u32-mbtouc.
91063         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
91064         * lib/unistr.h: Update.
91065         * lib/linebreak.c: Update.
91066         * modules/unistr/u32-mbtouc: Renamed from
91067         modules/unistr/u32-mbtouc-safe.
91068         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
91069         * lib/unistr.h: Update.
91070         * lib/unistr/u32-to-u8.c: Update.
91071         * lib/unistr/u32-to-u16.c: Update.
91073 2007-01-27  Bruno Haible  <bruno@clisp.org>
91075         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
91076         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
91077         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
91078         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
91079         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
91080         * modules/unistr/u16-mbtouc-unsafe: Renamed from
91081         modules/unistr/u16-mbtouc.
91082         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
91083         * lib/unistr.h: Update.
91084         * lib/linebreak.c: Update.
91085         * modules/linebreak: Update.
91086         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
91087         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
91088         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
91089         * modules/unistr/u16-mbtouc: Renamed from
91090         modules/unistr/u16-mbtouc-safe.
91091         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
91092         * lib/unistr.h: Update.
91093         * lib/unistr/u16-to-u8.c: Update.
91094         * modules/unistr/u16-to-u8: Update.
91095         * lib/unistr/u16-to-u32.c: Update.
91096         * modules/unistr/u16-to-u32: Update.
91098 2007-01-27  Bruno Haible  <bruno@clisp.org>
91100         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
91101         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
91102         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
91103         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
91104         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
91105         * modules/unistr/u8-mbtouc-unsafe: Renamed from
91106         modules/unistr/u8-mbtouc.
91107         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
91108         * lib/unistr.h: Update.
91109         * lib/striconveh.c: Update.
91110         * modules/striconveh: Update.
91111         * lib/linebreak.c: Update.
91112         * modules/linebreak: Update.
91113         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
91114         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
91115         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
91116         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
91117         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
91118         * lib/unistr.h: Update.
91119         * lib/striconveh.c: Update.
91120         * modules/striconveh: Update.
91121         * lib/unistr/u8-to-u16.c: Update.
91122         * modules/unistr/u8-to-u16: Update.
91123         * lib/unistr/u8-to-u32.c: Update.
91124         * modules/unistr/u8-to-u32: Update.
91126 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91128         Sync from Libtool.
91129         * lib/argz.c: Do not include strings.h nor memory.h, include
91130         string.h unconditionally.  Patch by Simon Josefsson.
91132 2007-01-27  Bruno Haible  <bruno@clisp.org>
91134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
91135         from gl_HEADER_STRING_H_BODY.
91136         (gl_HEADER_STRING_H_BODY): Require it.
91137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
91138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
91139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
91140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
91141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
91142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
91143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
91145         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
91146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
91148         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
91149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
91150         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
91153 2007-01-27  Bruno Haible  <bruno@clisp.org>
91155         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
91156         check_PROGRAMS into noinst_PROGRAMS.
91157         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
91158         check_PROGRAMS in this case.
91159         (func_import): Set for_test to false.
91160         (func_create_testdir): Set for_test to true.
91162 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91163             Bruno Haible  <bruno@clisp.org>
91165         * modules/strcasestr (Files): Remove lib/strcasestr.h.
91166         (Depends-on): Add string.
91167         (Includes): Use <string.h> instead of strcasestr.h.
91168         * modules/string (Makefile.am): Also substitute the value of
91169         REPLACE_STRCASESTR.
91170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
91171         assume strcasestr is declared in <string.h> not <strings.h>. Also
91172         set REPLACE_STRCASESTR.
91173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
91174         REPLACE_STRCASESTR.
91175         * lib/strcasestr.h: Remove file.
91176         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
91177         * lib/string_.h (strcasestr): New declaration.
91179 2007-01-27  Bruno Haible  <bruno@clisp.org>
91181         * lib/string_.h: Use 'extern'.
91183 2007-01-27  Jim Meyering  <jim@meyering.net>
91185         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
91186         of set-but-not-used local, "q".
91188         * lib/mempcpy.c: Include <config.h> before <string.h>.
91189         This fixes a compilation error on HP-UX, due to the system's
91190         "restrict"-using mempcpy prototype.
91192 2007-01-26  Bruno Haible  <bruno@clisp.org>
91194         Small optimization.
91195         * lib/javacomp.c: Include c-strstr.h.
91196          (is_envjavac_gcj): Use c_strstr instead of strstr.
91197         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
91199 2007-01-26  Bruno Haible  <bruno@clisp.org>
91201         * MODULES.html.sh (Unicode string functions): Add the new modules.
91203         * modules/uniconv/u32-strconv-to-locale: New file.
91204         * lib/uniconv/u32-strconv-to-locale.c: New file.
91206         * modules/uniconv/u16-strconv-to-locale: New file.
91207         * lib/uniconv/u16-strconv-to-locale.c: New file.
91209         * modules/uniconv/u8-strconv-to-locale: New file.
91210         * lib/uniconv/u8-strconv-to-locale.c: New file.
91212         * modules/uniconv/u32-strconv-from-locale: New file.
91213         * lib/uniconv/u32-strconv-from-locale.c: New file.
91215         * modules/uniconv/u16-strconv-from-locale: New file.
91216         * lib/uniconv/u16-strconv-from-locale.c: New file.
91218         * modules/uniconv/u8-strconv-from-locale: New file.
91219         * lib/uniconv/u8-strconv-from-locale.c: New file.
91221         * modules/uniconv/u32-strconv-to-enc: New file.
91222         * lib/uniconv/u32-strconv-to-enc.c: New file.
91223         * modules/uniconv/u32-strconv-to-enc-tests: New file.
91224         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
91226         * modules/uniconv/u16-strconv-to-enc: New file.
91227         * lib/uniconv/u16-strconv-to-enc.c: New file.
91228         * lib/uniconv/u-strconv-to-enc.h: New file.
91229         * modules/uniconv/u16-strconv-to-enc-tests: New file.
91230         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
91232         * modules/uniconv/u8-strconv-to-enc: New file.
91233         * lib/uniconv/u8-strconv-to-enc.c: New file.
91234         * modules/uniconv/u8-strconv-to-enc-tests: New file.
91235         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
91237         * modules/uniconv/u32-strconv-from-enc: New file.
91238         * lib/uniconv/u32-strconv-from-enc.c: New file.
91239         * modules/uniconv/u32-strconv-from-enc-tests: New file.
91240         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
91242         * modules/uniconv/u16-strconv-from-enc: New file.
91243         * lib/uniconv/u16-strconv-from-enc.c: New file.
91244         * modules/uniconv/u16-strconv-from-enc-tests: New file.
91245         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
91247         * modules/uniconv/u8-strconv-from-enc: New file.
91248         * lib/uniconv/u8-strconv-from-enc.c: New file.
91249         * lib/uniconv/u-strconv-from-enc.h: New file.
91250         * modules/uniconv/u8-strconv-from-enc-tests: New file.
91251         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
91253         * modules/uniconv/u32-conv-from-enc: New file.
91254         * lib/uniconv/u32-conv-from-enc.c: New file.
91255         * modules/uniconv/u32-conv-from-enc-tests: New file.
91256         * tests/uniconv/test-u32-conv-from-enc.c: New file.
91258         * modules/uniconv/u16-conv-from-enc: New file.
91259         * lib/uniconv/u16-conv-from-enc.c: New file.
91260         * lib/uniconv/u-conv-from-enc.h: New file.
91261         * modules/uniconv/u16-conv-from-enc-tests: New file.
91262         * tests/uniconv/test-u16-conv-from-enc.c: New file.
91264         * modules/uniconv/u8-conv-from-enc: New file.
91265         * lib/uniconv/u8-conv-from-enc.c: New file.
91266         * modules/uniconv/u8-conv-from-enc-tests: New file.
91267         * tests/uniconv/test-u8-conv-from-enc.c: New file.
91269         * modules/uniconv/base: New file.
91270         * lib/uniconv.h: New file.
91272 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
91274         * doc/gnulib-tool.texi (Initial import): Update to match current
91275         behavior with strdup module.
91276         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
91277         * lib/memmem.h: Remove; all uses removed.  This is now done
91278         by <string.h>.
91279         * lib/mempcpy.h: Likewise.
91280         * lib/memrchr.h: Likewise.
91281         * lib/stpcpy.h: Likewise.
91282         * lib/stpncpy.h: Likewise.
91283         * lib/strcase.h: Likewise.
91284         * lib/strchrnul.h: Likewise.
91285         * lib/strdup.h: Likewise.
91286         * lib/strndup.h: Likewise.
91287         * lib/strnlen.h: Likewise.
91288         * lib/strpbrk.h: Likewise.
91289         * lib/strsep.h: Likewise.
91290         * lib/strstr.h: Likewise.
91291         * lib/strtok_r.h: Likewise.
91292         * lib/string_.h: New file.
91293         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
91294         Rely on <string.h> instead.
91295         * lib/canon-host.c: Likewise.
91296         * lib/chdir-long.c: Likewise.
91297         * lib/concatpath.c: Likewise.
91298         * lib/exclude.c: Likewise.
91299         * lib/fchdir.c: Likewise.
91300         * lib/getaddrinfo.c: Likewise.
91301         * lib/getcwd.c: Likewise.
91302         * lib/getsubopt.c: Likewise.
91303         * lib/glob.c: Likewise.
91304         * lib/hard-locale.c: Likewise.
91305         * lib/iconvme.c: Likewise.
91306         * lib/javacomp.c: Likewise.
91307         * lib/mempcpy.c: Likewise.
91308         * lib/memrchr.c: Likewise.
91309         * lib/regex_internal.h: Likewise.
91310         * lib/stpncpy.c: Likewise.
91311         * lib/strcasecmp.c: Likewise.
91312         * lib/strchrnul.c: Likewise.
91313         * lib/strdup.c: Likewise.
91314         * lib/striconv.c: Likewise.
91315         * lib/striconveh.c: Likewise.
91316         * lib/striconveha.c: Likewise.
91317         * lib/strncasecmp.c: Likewise.
91318         * lib/strndup.c: Likewise.
91319         * lib/strnlen.c: Likewise.
91320         * lib/strsep.c: Likewise.
91321         * lib/strstr.c: Likewise.
91322         * lib/strtok_r.c: Likewise.
91323         * lib/userspec.c: Likewise.
91324         * lib/w32spawn.h: Likewise.
91325         * lib/xstrndup.c: Likewise.
91326         * lib/mountlist.c (strstr): Remove decl.
91327         * m4/string_h.m4: New file.
91328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
91329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
91330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
91331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
91332         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
91333         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
91334         Set REPLACE_STRCASECMP if necessary.
91335         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
91336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
91337         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
91338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
91339         HAVE_DECL_STRDUP if necessary.
91340         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
91341         since gl_FUNC_STRNDUP does that now.
91342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
91343         Check for decl here...
91344         (gl_PREREQ_STRNLEN): ... not here.
91345         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
91346         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
91347         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
91348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
91349         necessary.
91350         * modules/string: New file.
91351         * modules/memmem (Files): Remove special-purpose include file.
91352         (Depends-on): Add string.
91353         (Include): Include <string.h>, not the removed file.
91354         * modules/mempcpy: Likewise.
91355         * modules/memrchr: Likewise.
91356         * modules/stpcpy: Likewise.
91357         * modules/stpncpy: Likewise.
91358         * modules/strcase: Likewise.
91359         * modules/strchrnul: Likewise.
91360         * modules/strdup: Likewise.
91361         * modules/strndup: Likewise.
91362         * modules/strnlen: Likewise.
91363         * modules/strpbrk: Likewise.
91364         * modules/strsep: Likewise.
91365         * modules/strstr: Likewise.
91366         * modules/strtok_r: Likewise.
91367         * tests/test-dirname.c: Don't include "strdup.h", since
91368         <string.h> now suffices.
91369         * tests/test-memmem.c: Don't include "memmem.h", since
91370         <string.h> now suffices.
91372 2007-01-25  Bruno Haible  <bruno@clisp.org>
91374         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
91375         *resultp is 0.
91377         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
91378         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
91379         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
91380         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
91382         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
91383         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
91384         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
91385         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
91386         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
91387         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
91389 2007-01-24  Bruno Haible  <bruno@clisp.org>
91391         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
91392         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
91393         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
91394         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
91395         gl_FUNC_FTS_CORE.
91396         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
91397         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
91398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91399         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
91400         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
91401         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
91402         gl_FUNC_FCHOWNAT.
91403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
91404         gl_FUNC_STRFTIME.
91405         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
91406         Reported by Ralf Wildenhues.
91408 2007-01-24  Bruno Haible  <bruno@clisp.org>
91410         Drop AC_REQUIRE calls that are redundant with the module dependencies.
91411         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
91412         gl_GETADDRINFO.
91413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
91414         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
91415         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
91417 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
91419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
91420         Don't use 'exit'; just return from 'main'.
91421         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
91423         * lib/fnmatch_.h: Readjust white space and comments to match
91424         glibc, to avoid spurious diffs.
91426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91428         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
91429         2004-12-01 change by Jakub Jelinek, since this code won't compile
91430         if !LIBC.  Problem reported by Bob Proulx.
91432 2007-01-23  Bruno Haible  <bruno@clisp.org>
91434         * lib/striconveh.c: Include c-strcaseeq.h.
91435         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
91436         * modules/striconveh (Depends-on): Add c-strcaseeq.
91438 2007-01-23  Bruno Haible  <bruno@clisp.org>
91440         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
91442         * modules/c-strcaseeq: New file.
91443         * lib/c-strcaseeq.h: New file.
91445         * modules/streq: New file.
91446         * lib/streq.h: New file.
91448 2007-01-23  Bruno Haible  <bruno@clisp.org>
91450         * modules/striconveha-tests: New file.
91451         * tests/test-striconveha.c: New file.
91453         * lib/striconveha.h: Include <stdbool.h>.
91454         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
91455         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
91456         (mem_iconveha_notranslit): Renamed from mem_iconveha.
91457         (mem_iconveha): New function.
91458         (str_iconveha_notranslit): Renamed from str_iconveha.
91459         (str_iconveha): New function.
91460         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
91461         c-strcase.
91463 2007-01-23  Bruno Haible  <bruno@clisp.org>
91465         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
91466         encodings without forgiving before trying any encoding with handler.
91467         (str_iconveha): Try all encodings without forgiving before trying any
91468         encoding with handler.
91470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91472         Import the following changes from libc.
91474         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
91476         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
91478         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
91480         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
91481         normal_bracket label.
91483         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
91485         [BZ #361]
91486         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
91487         to normal_bracket after fetching the next character.
91489 2007-01-22  Bruno Haible  <bruno@clisp.org>
91491         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
91492         argument.
91493         * lib/striconveh.c (iconv_carefully_1): New function.
91494         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
91495         argument.
91496         (str_cd_iconveh): Update.
91497         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
91498         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
91499         * tests/test-striconveh.c (MAGIC): New macro.
91500         (new_offsets): New function.
91501         (main): Test call with and without offsets.
91503 2007-01-22  Bruno Haible  <bruno@clisp.org>
91505         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
91506         * modules/sys_select (Makefile.am): Likewise.
91507         * modules/sys_socket (Makefile.am): Likewise.
91508         * modules/sys_time (Makefile.am): Likewise.
91510 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
91512         * modules/gettimeofday (License): Change from GPL to LGPL, since
91513         gettimeofday is a library function.
91515 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91517         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
91519 2007-01-21  Bruno Haible  <bruno@clisp.org>
91521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
91523 2007-01-21  Bruno Haible  <bruno@clisp.org>
91525         * modules/striconveha: New file.
91526         * lib/striconveha.h: New file.
91527         * lib/striconveha.c: New file.
91528         * MODULES.html.sh (Internationalization functions): Add striconveha.
91529         * lib/striconv.c (str_iconv): Optimize the case of an empty input
91530         string.
91531         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
91533 2007-01-21  Bruno Haible  <bruno@clisp.org>
91535         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
91536         * lib/striconveh.c (str_iconveh): Likewise.
91538 2007-01-21  Bruno Haible  <bruno@clisp.org>
91540         * lib/striconveh.h (mem_iconveh): New declaration.
91541         * lib/striconveh.c (mem_iconveh): New function.
91542         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
91544 2007-01-21  Bruno Haible  <bruno@clisp.org>
91546         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
91548         * lib/striconveh.h (mem_cd_iconveh): Change specification.
91549         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
91550         original result buffer.
91551         (str_cd_iconveh): Update.
91552         * tests/test-striconveh.c (main): Update.
91554         * lib/striconv.h (mem_cd_iconv): Change specification.
91555         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
91556         result buffer.
91557         (str_cd_iconv): Update.
91558         * tests/test-striconv.c (main): Update.
91560 2007-01-21  Bruno Haible  <bruno@clisp.org>
91562         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
91564 2007-01-20  Jim Meyering  <jim@meyering.net>
91566         * lib/userspec.c (parse_with_separator): If a user or group string
91567         starts with "+", skip the corresponding name-to-ID look-up, since
91568         such a look-up must fail: user and group names may not include "+".
91570 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
91572         * lib/poll.c: Include sys/time.h and time.h unconditionally,
91573         since we now assume the sys_time module.
91574         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
91575         check for sys/time.h; no longer needed.
91576         * modules/poll (Depends-on): Depend on sys_time.
91578 2007-01-18  Bruno Haible  <bruno@clisp.org>
91580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
91581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91583         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
91584         gettimeofday.
91586         * tests/test-gettimeofday.c: Include <time.h>.
91587         (dummy): Remove variable.
91589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
91590         gl_HEADER_SYS_TIME_H.
91591         (gl_HEADER_SYS_TIME_H): New macro.
91593         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
91594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
91596         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
91597         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
91599         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
91600         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91601         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
91602         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
91603         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
91606         last change; it caused a compilation error when cross-compiling to
91607         Cygwin.
91609 2007-01-18  Jim Meyering  <jim@meyering.net>
91611         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
91612         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
91613         than the race-prone "test -d sys || mkdir sys".
91614         (configure.ac): Use AC_PROG_MKDIR_P.
91615         * modules/sys_select: Likewise.
91616         * modules/sys_socket: Likewise.
91617         * modules/sys_time: Likewise.
91619 2007-01-18  Eric Blake  <ebb9@byu.net>
91621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
91622         replace gettimeofday.
91623         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
91624         name, to avoid infinite recursion.
91626 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
91628         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
91629         module sys_time.
91630         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
91631         assume timespec.h defines struct timeval.
91632         * lib/settime.c: Likewise.
91633         * lib/utimens.c: Likewise.
91634         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
91635         since we now assume the gettimeofday module.
91636         * lib/tempname.c (__gen_tempname): Likewise.
91637         * lib/gettimeofday.h: Remove.
91638         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
91639         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
91640         Include <time.h>, for 'time()'.
91641         (localtime_buffer_addr): Also use this workaround if
91642         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
91643         to simplify the uses.  All uses changed.
91644         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
91645         that #undef is inside {}, and 'const' follows type name consistently.
91646         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
91647         (gettimeofday): Do not use the maximum possible value for
91648         tv->tv_usec, since that might break usages other than ls.c.
91649         Instead, we'll leave ls.c alone.  This undoes today's patch
91650         by Bruno.  Add a compile-time warning for 1s-clock resolution;
91651         we've never observed the problem but might as well keep the
91652         canary.
91653         * lib/nanosleep.c: Include timespec.h first, for interface check.
91654         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
91655         now assume the sys_time module.
91656         * lib/tempname.c: Likewise.
91657         * lib/timespec.h: Likewise.
91658         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
91659         needed.
91660         * lib/strftime.c: Likewise.
91661         * lib/timespec.h: Likewise.
91662         * lib/posixtm.c: Include posixtm.h first, for interface check.
91663         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
91664         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
91665         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
91666         * lib/sys_time_.h: New file.
91667         * lib/timespec.h (struct timespec): Use long int, not long.
91668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91669         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
91670         Remove obsolescent call to AC_HEADER_TIME.
91671         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
91672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91674         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
91675         Likewise.
91676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
91677         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
91678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
91679         into the sys_time module.  Check for gettimeofday just once.
91680         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
91681         for gettimeofday signature to just check the signature.  Merely
91682         compile it, since linking doesn't test signature.  Improve test for
91683         whether gettimeofday.o is actually needed.
91684         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
91685         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
91686         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
91687         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
91689         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
91690         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
91691         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
91692         than worrying about sys/time.h.
91693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91694         Don't bother worrying about TIME_WITH_SYS_TIME.
91695         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
91696         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
91697         * m4/sys_time_h.m4: New file.
91698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
91699         Don't include sys/time.h.  Return from main rather than exiting.
91700         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
91701         all uses changed.
91702         * modules/gethrxtime (Depends-on): Add sys_time.
91703         * modules/gettime (Depends-on): Likewise.
91704         * modules/gettimeofday (Depends-on): Likewise.
91705         * modules/nanosleep (Depends-on): Likewise.
91706         * modules/settime (Depends-on): Likewise.
91707         * modules/tempname (Depends-on): Likewise.
91708         * modules/utimens (Depends-on): Likewise.
91709         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
91710         (Include): Change back to <sys/time.h>.
91711         (Maintainer): Add self.
91712         * modules/sys_time: New file.
91713         * modules/tempname (Depends-on): Add gettimeofday.
91714         * tests/test-gettimeofday.c: Include <sys/time.h>
91715         rather than gettimeofday.h.
91717 2007-01-17  Bruno Haible  <bruno@clisp.org>
91719         * gnulib-tool (func_get_license): Revert last patch. Instead, let
91720         the license default to GPL.
91721         (func_create_testdir): Don't complain if a module is LGPL and its
91722         tests module depends on GPLed modules.
91724 2007-01-17  Bruno Haible  <bruno@clisp.org>
91726         * lib/gettimeofday.c (gettimeofday): Add code for the case
91727         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
91728         maximum possible value for tv->tv_usec, rather than the minimum one.
91730 2005-10-08  Martin Lambers  <marlam@marlam.de>
91731 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91732 2007-01-16  Bruno Haible  <bruno@clisp.org>
91734         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
91735         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
91736         gl_FUNC_GETTIMEOFDAY.
91737         (Include): Add gettimeofday.h.
91738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
91739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
91740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
91741         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
91742         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
91743         * lib/gettimeofday.h: New file.
91744         * lib/gettimeofday.c: Include <sys/timeb.h>.
91745         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
91746         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91747         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
91748         fall back on time().
91750         * tests/test-gettimeofday.c: New file.
91751         * modules/gettimeofday-tests: New file.
91753 2007-01-16  Eric Blake  <ebb9@byu.net>
91755         * modules/fnmatch (Depends-on): Depend on wchar.
91756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
91757         * m4/fnmatch.m4: Likewise.
91758         * modules/mbchar (Makefile.am): Assume <wchar.h>.
91759         * m4/mbchar.m4: Likewise.
91760         * modules/mbswidth (Depends-on): Depend on wchar.
91761         * lib/mbswidth.c: Assume <wchar.h>.
91762         * m4/mbswidth.m4: Likewise.
91763         * modules/quotearg (Depends-on): Depend on wchar.
91764         * lib/quotearg.c: Assume <wchar.h>.
91765         * m4/quotearg.m4: Likewise.
91766         * modules/regex (Depends-on): Depend on wchar.
91767         * lib/regex_internal.h: Assume <wchar.h>.
91768         * m4/regex.m4: Likewise.
91769         * modules/stdint (Depends-on): Depend on wchar.
91770         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
91771         * m4/stdint.m4: Likewise.
91772         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
91773         * modules/strftime (Depends-on): Depend on wchar.
91774         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
91775         * modules/strtol (Depends-on): Depend on wchar.
91776         * lib/strtol.c: Assume <wchar.h>.
91777         * modules/wcwidth (Depends-on): Depend on wchar.
91778         * lib/wcwidth.h: Assume <wchar.h>.
91779         * m4/wcwidth.m4: Likewise.
91781 2007-01-16  Bruno Haible  <bruno@clisp.org>
91783         * modules/csharpexec-script: New, created from...
91784         * modules/csharpexec: ... this.
91786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91788         * modules/javaexec-script: New, created from...
91789         * modules/javaexec: ... this.
91791 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91793         * modules/poll (Dependencies): Add sys_select.
91795 2007-01-15  Jim Meyering  <jim@meyering.net>
91797         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
91798         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
91799         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
91800         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
91802 2007-01-15  Bruno Haible  <bruno@clisp.org>
91804         * modules/striconveh: New file.
91805         * lib/striconveh.h: New file.
91806         * lib/striconveh.c: New file.
91807         * MODULES.html.sh (Internationalization functions): Add striconveh.
91809         * modules/striconveh-tests: New file.
91810         * tests/test-striconveh.c: New file.
91812 2007-01-15  Bruno Haible  <bruno@clisp.org>
91814         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
91815         not from GNU libiconv or GNU libc.
91817 2007-01-15  Bruno Haible  <bruno@clisp.org>
91819         * doc/gnulib-intro.texi (Copyright): Explain the different license
91820         terms for module descriptions, autoconf macros, tests, documentation.
91822 2007-01-14  Bruno Haible  <bruno@clisp.org>
91824         * modules/striconv-tests: New file.
91825         * tests/test-striconv.c: New file.
91827 2007-01-14  Bruno Haible  <bruno@clisp.org>
91829         * modules/iconv-tests: New file.
91830         * tests/test-iconv.c: New file.
91832 2007-01-14  Bruno Haible  <bruno@clisp.org>
91834         * gnulib-tool (func_get_license): For test modules, use the license of
91835         the main module.
91837 2007-01-14  Bruno Haible  <bruno@clisp.org>
91839         * modules/iconv (Include): Clarify that <iconv.h> can only be included
91840         if iconv is found to exist.
91842 2007-01-14  Bruno Haible  <bruno@clisp.org>
91844         * modules/c-ctype-tests: New file.
91845         * tests/test-c-ctype.c: New file.
91847 2007-01-14  Bruno Haible  <bruno@clisp.org>
91849         * modules/binary-io-tests: New file.
91850         * tests/test-binary-io.sh: New file.
91851         * tests/test-binary-io.c: New file.
91853 2007-01-14  Bruno Haible  <bruno@clisp.org>
91855         * modules/array-oset-tests: New file.
91856         * tests/test-array_oset.c: New file.
91858 2007-01-14  Bruno Haible  <bruno@clisp.org>
91860         * modules/array-list-tests: New file.
91861         * tests/test-array_list.c: New file.
91863 2007-01-14  Bruno Haible  <bruno@clisp.org>
91865         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91866         and make.
91867         Reported by Simon Josefsson in
91868         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91870 2007-01-14  Bruno Haible  <bruno@clisp.org>
91872         * modules/allocsa-tests: New file.
91873         * tests/test-allocsa.c: New file.
91875 2007-01-14  Bruno Haible  <bruno@clisp.org>
91877         * modules/fchdir (Depends-on): Add absolute-header.
91878         * modules/unistd (Depends-on): Likewise.
91880 2006-12-30  Bruno Haible  <bruno@clisp.org>
91882         * modules/fchdir: New file.
91883         * modules/unistd (Files): Add lib/unistd_.h.
91884         (Makefile.am): Generate unistd.h from unistd_.h.
91885         * lib/fchdir.c: New file.
91886         * lib/dirent_.h: New file.
91887         * lib/unistd_.h: New file.
91888         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91889         * m4/fchdir.m4: New file.
91890         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91891         (gl_HEADER_UNISTD): Invoke it.
91892         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91893         function.
91894         * lib/backupfile.c (opendir, closedir): Undefine.
91895         * lib/chown.c (open, close): Undefine.
91896         * lib/clean-temp.c (open, close): Undefine.
91897         * lib/copy-file.c (open, close): Undefine.
91898         * lib/execute.c (open, close): Undefine.
91899         * lib/fsusage.c (open, close): Undefine.
91900         * lib/gc-gnulib.c (open, close): Undefine.
91901         * lib/getcwd.c (opendir, closedir): Undefine.
91902         * lib/glob.c (opendir, closedir): Undefine.
91903         * lib/javacomp.c (open, close): Undefine.
91904         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91905         * lib/openat-proc.c (open, close): Undefine.
91906         * lib/pagealign_alloc.c (open, close): Undefine.
91907         * lib/pipe.c (open, close): Undefine.
91908         * lib/progreloc.c (open, close): Undefine.
91909         * lib/savedir.c (opendir, closedir): Undefine.
91910         * lib/utime.c (open, close): Undefine.
91911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91913 2007-01-10  Bruno Haible  <bruno@clisp.org>
91915         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91917 2007-01-12  Eric Blake  <ebb9@byu.net>
91919         Provide a robust <wchar.h>.  Further simplifications are now
91920         possible in other modules, but not included here.
91921         * modules/wchar: New module.
91922         * m4/wchar.m4: New file.
91923         * lib/wchar_.h: Likewise.
91924         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91925         of the new module.
91926         * MODULES.html.sh (Extended multibyte and wide character utilities):
91927         New section.
91929 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91931         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91932         to a reasonable default for memory allocation.
91933         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91934         file system that reports garbage st_size values for symlinks.
91935         Problem reported by Liyang Hu.
91937 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91939         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91940         Emacs .#* auto-save files).
91942 2007-01-11  Bruno Haible  <bruno@clisp.org>
91944         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91945         directory.
91947 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91949         Use @...@ consistently in lib/wctype_.h.
91950         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91951         on it being set to 1 or 0.
91952         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91953         go back to AC_SUBSTing it.
91954         * modules/wctype (Makefile.am): Undo previous change.
91956 2007-01-10  Eric Blake  <ebb9@byu.net>
91958         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91959         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91960         * modules/wctype (Makefile.am): Likewise.
91961         Reported by Chris McGuire.
91963 2007-01-10  Jim Meyering  <jim@meyering.net>
91965         fts.c: a small readability/maintainability improvement
91966         * lib/fts.c (fts_read): Make this code slightly more readable and
91967         maintainable by hoisting the "sp->fts_cur = p" assignments to
91968         immediately follow the statements that set P.  Derived from
91969         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91971 2007-01-10  Eric Blake  <ebb9@byu.net>
91973         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91974         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91976         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91977         Reported by Chris McGuire.
91979 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91981         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91982         in sed script.
91984 2007-01-09  Bruno Haible  <bruno@clisp.org>
91986         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91987         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91988         variables.
91989         (func_module): Use them.
91991 2007-01-09  Bruno Haible  <bruno@clisp.org>
91993         * modules/unistr/base: New file.
91994         * lib/unistr.h: New file.
91996         * modules/unistr/u8-to-u16: New file.
91997         * lib/unistr/u8-to-u16.c: New file.
91999         * modules/unistr/u8-to-u32: New file.
92000         * lib/unistr/u8-to-u32.c: New file.
92002         * modules/unistr/u16-to-u8: New file.
92003         * lib/unistr/u16-to-u8.c: New file.
92005         * modules/unistr/u16-to-u32: New file.
92006         * lib/unistr/u16-to-u32.c: New file.
92008         * modules/unistr/u32-to-u8: New file.
92009         * lib/unistr/u32-to-u8.c: New file.
92011         * modules/unistr/u32-to-u16: New file.
92012         * lib/unistr/u32-to-u16.c: New file.
92014         * modules/unistr/u8-check: New file.
92015         * modules/unistr/u16-check: New file.
92016         * modules/unistr/u32-check: New file.
92017         * lib/unistr/u8-check.c: New file.
92018         * lib/unistr/u16-check.c: New file.
92019         * lib/unistr/u32-check.c: New file.
92021         * modules/unistr/u8-chr: New file.
92022         * modules/unistr/u16-chr: New file.
92023         * modules/unistr/u32-chr: New file.
92024         * lib/unistr/u8-chr.c: New file.
92025         * lib/unistr/u16-chr.c: New file.
92026         * lib/unistr/u32-chr.c: New file.
92028         * modules/unistr/u8-cmp: New file.
92029         * modules/unistr/u16-cmp: New file.
92030         * modules/unistr/u32-cmp: New file.
92031         * lib/unistr/u8-cmp.c: New file.
92032         * lib/unistr/u16-cmp.c: New file.
92033         * lib/unistr/u32-cmp.c: New file.
92035         * modules/unistr/u8-cpy: New file.
92036         * modules/unistr/u16-cpy: New file.
92037         * modules/unistr/u32-cpy: New file.
92038         * lib/unistr/u8-cpy.c: New file.
92039         * lib/unistr/u16-cpy.c: New file.
92040         * lib/unistr/u32-cpy.c: New file.
92041         * lib/unistr/u-cpy.h: New file.
92043         * modules/unistr/u8-cpy-alloc: New file.
92044         * modules/unistr/u16-cpy-alloc: New file.
92045         * modules/unistr/u32-cpy-alloc: New file.
92046         * lib/unistr/u8-cpy-alloc.c: New file.
92047         * lib/unistr/u16-cpy-alloc.c: New file.
92048         * lib/unistr/u32-cpy-alloc.c: New file.
92049         * lib/unistr/u-cpy-alloc.h: New file.
92051         * modules/unistr/u8-endswith: New file.
92052         * modules/unistr/u16-endswith: New file.
92053         * modules/unistr/u32-endswith: New file.
92054         * lib/unistr/u8-endswith.c: New file.
92055         * lib/unistr/u16-endswith.c: New file.
92056         * lib/unistr/u32-endswith.c: New file.
92057         * lib/unistr/u-endswith.h: New file.
92059         * modules/unistr/u8-mblen: New file.
92060         * modules/unistr/u16-mblen: New file.
92061         * modules/unistr/u32-mblen: New file.
92062         * lib/unistr/u8-mblen.c: New file.
92063         * lib/unistr/u16-mblen.c: New file.
92064         * lib/unistr/u32-mblen.c: New file.
92066         * modules/unistr/u8-mbtouc: New file.
92067         * modules/unistr/u16-mbtouc: New file.
92068         * modules/unistr/u32-mbtouc: New file.
92069         * lib/unistr/u8-mbtouc.c: New file.
92070         * lib/unistr/u16-mbtouc.c: New file.
92071         * lib/unistr/u32-mbtouc.c: New file.
92073         * modules/unistr/u8-mbtouc-safe: New file.
92074         * modules/unistr/u16-mbtouc-safe: New file.
92075         * modules/unistr/u32-mbtouc-safe: New file.
92076         * lib/unistr/u8-mbtouc-safe.c: New file.
92077         * lib/unistr/u16-mbtouc-safe.c: New file.
92078         * lib/unistr/u32-mbtouc-safe.c: New file.
92080         * modules/unistr/u8-move: New file.
92081         * modules/unistr/u16-move: New file.
92082         * modules/unistr/u32-move: New file.
92083         * lib/unistr/u8-move.c: New file.
92084         * lib/unistr/u16-move.c: New file.
92085         * lib/unistr/u32-move.c: New file.
92086         * lib/unistr/u-move.h: New file.
92088         * modules/unistr/u8-next: New file.
92089         * modules/unistr/u16-next: New file.
92090         * modules/unistr/u32-next: New file.
92091         * lib/unistr/u8-next.c: New file.
92092         * lib/unistr/u16-next.c: New file.
92093         * lib/unistr/u32-next.c: New file.
92095         * modules/unistr/u8-prev: New file.
92096         * modules/unistr/u16-prev: New file.
92097         * modules/unistr/u32-prev: New file.
92098         * lib/unistr/u8-prev.c: New file.
92099         * lib/unistr/u16-prev.c: New file.
92100         * lib/unistr/u32-prev.c: New file.
92102         * modules/unistr/u8-set: New file.
92103         * modules/unistr/u16-set: New file.
92104         * modules/unistr/u32-set: New file.
92105         * lib/unistr/u8-set.c: New file.
92106         * lib/unistr/u16-set.c: New file.
92107         * lib/unistr/u32-set.c: New file.
92108         * lib/unistr/u-set.h: New file.
92110         * modules/unistr/u8-startswith: New file.
92111         * modules/unistr/u16-startswith: New file.
92112         * modules/unistr/u32-startswith: New file.
92113         * lib/unistr/u8-startswith.c: New file.
92114         * lib/unistr/u16-startswith.c: New file.
92115         * lib/unistr/u32-startswith.c: New file.
92116         * lib/unistr/u-startswith.h: New file.
92118         * modules/unistr/u8-stpcpy: New file.
92119         * modules/unistr/u16-stpcpy: New file.
92120         * modules/unistr/u32-stpcpy: New file.
92121         * lib/unistr/u8-stpcpy.c: New file.
92122         * lib/unistr/u16-stpcpy.c: New file.
92123         * lib/unistr/u32-stpcpy.c: New file.
92124         * lib/unistr/u-stpcpy.h: New file.
92126         * modules/unistr/u8-stpncpy: New file.
92127         * modules/unistr/u16-stpncpy: New file.
92128         * modules/unistr/u32-stpncpy: New file.
92129         * lib/unistr/u8-stpncpy.c: New file.
92130         * lib/unistr/u16-stpncpy.c: New file.
92131         * lib/unistr/u32-stpncpy.c: New file.
92132         * lib/unistr/u-stpncpy.h: New file.
92134         * modules/unistr/u8-strcat: New file.
92135         * modules/unistr/u16-strcat: New file.
92136         * modules/unistr/u32-strcat: New file.
92137         * lib/unistr/u8-strcat.c: New file.
92138         * lib/unistr/u16-strcat.c: New file.
92139         * lib/unistr/u32-strcat.c: New file.
92140         * lib/unistr/u-strcat.h: New file.
92142         * modules/unistr/u8-strchr: New file.
92143         * modules/unistr/u16-strchr: New file.
92144         * modules/unistr/u32-strchr: New file.
92145         * lib/unistr/u8-strchr.c: New file.
92146         * lib/unistr/u16-strchr.c: New file.
92147         * lib/unistr/u32-strchr.c: New file.
92149         * modules/unistr/u8-strcmp: New file.
92150         * modules/unistr/u16-strcmp: New file.
92151         * modules/unistr/u32-strcmp: New file.
92152         * lib/unistr/u8-strcmp.c: New file.
92153         * lib/unistr/u16-strcmp.c: New file.
92154         * lib/unistr/u32-strcmp.c: New file.
92156         * modules/unistr/u8-strcpy: New file.
92157         * modules/unistr/u16-strcpy: New file.
92158         * modules/unistr/u32-strcpy: New file.
92159         * lib/unistr/u8-strcpy.c: New file.
92160         * lib/unistr/u16-strcpy.c: New file.
92161         * lib/unistr/u32-strcpy.c: New file.
92162         * lib/unistr/u-strcpy.h: New file.
92164         * modules/unistr/u8-strcspn: New file.
92165         * modules/unistr/u16-strcspn: New file.
92166         * modules/unistr/u32-strcspn: New file.
92167         * lib/unistr/u8-strcspn.c: New file.
92168         * lib/unistr/u16-strcspn.c: New file.
92169         * lib/unistr/u32-strcspn.c: New file.
92170         * lib/unistr/u-strcspn.h: New file.
92172         * modules/unistr/u8-strdup: New file.
92173         * modules/unistr/u16-strdup: New file.
92174         * modules/unistr/u32-strdup: New file.
92175         * lib/unistr/u8-strdup.c: New file.
92176         * lib/unistr/u16-strdup.c: New file.
92177         * lib/unistr/u32-strdup.c: New file.
92178         * lib/unistr/u-strdup.h: New file.
92180         * modules/unistr/u8-strlen: New file.
92181         * modules/unistr/u16-strlen: New file.
92182         * modules/unistr/u32-strlen: New file.
92183         * lib/unistr/u8-strlen.c: New file.
92184         * lib/unistr/u16-strlen.c: New file.
92185         * lib/unistr/u32-strlen.c: New file.
92186         * lib/unistr/u-strlen.h: New file.
92188         * modules/unistr/u8-strmblen: New file.
92189         * modules/unistr/u16-strmblen: New file.
92190         * modules/unistr/u32-strmblen: New file.
92191         * lib/unistr/u8-strmblen.c: New file.
92192         * lib/unistr/u16-strmblen.c: New file.
92193         * lib/unistr/u32-strmblen.c: New file.
92195         * modules/unistr/u8-strmbtouc: New file.
92196         * modules/unistr/u16-strmbtouc: New file.
92197         * modules/unistr/u32-strmbtouc: New file.
92198         * lib/unistr/u8-strmbtouc.c: New file.
92199         * lib/unistr/u16-strmbtouc.c: New file.
92200         * lib/unistr/u32-strmbtouc.c: New file.
92202         * modules/unistr/u8-strncat: New file.
92203         * modules/unistr/u16-strncat: New file.
92204         * modules/unistr/u32-strncat: New file.
92205         * lib/unistr/u8-strncat.c: New file.
92206         * lib/unistr/u16-strncat.c: New file.
92207         * lib/unistr/u32-strncat.c: New file.
92208         * lib/unistr/u-strncat.h: New file.
92210         * modules/unistr/u8-strncmp: New file.
92211         * modules/unistr/u16-strncmp: New file.
92212         * modules/unistr/u32-strncmp: New file.
92213         * lib/unistr/u8-strncmp.c: New file.
92214         * lib/unistr/u16-strncmp.c: New file.
92215         * lib/unistr/u32-strncmp.c: New file.
92217         * modules/unistr/u8-strncpy: New file.
92218         * modules/unistr/u16-strncpy: New file.
92219         * modules/unistr/u32-strncpy: New file.
92220         * lib/unistr/u8-strncpy.c: New file.
92221         * lib/unistr/u16-strncpy.c: New file.
92222         * lib/unistr/u32-strncpy.c: New file.
92223         * lib/unistr/u-strncpy.h: New file.
92225         * modules/unistr/u8-strnlen: New file.
92226         * modules/unistr/u16-strnlen: New file.
92227         * modules/unistr/u32-strnlen: New file.
92228         * lib/unistr/u8-strnlen.c: New file.
92229         * lib/unistr/u16-strnlen.c: New file.
92230         * lib/unistr/u32-strnlen.c: New file.
92231         * lib/unistr/u-strnlen.h: New file.
92233         * modules/unistr/u8-strpbrk: New file.
92234         * modules/unistr/u16-strpbrk: New file.
92235         * modules/unistr/u32-strpbrk: New file.
92236         * lib/unistr/u8-strpbrk.c: New file.
92237         * lib/unistr/u16-strpbrk.c: New file.
92238         * lib/unistr/u32-strpbrk.c: New file.
92239         * lib/unistr/u-strpbrk.h: New file.
92241         * modules/unistr/u8-strrchr: New file.
92242         * modules/unistr/u16-strrchr: New file.
92243         * modules/unistr/u32-strrchr: New file.
92244         * lib/unistr/u8-strrchr.c: New file.
92245         * lib/unistr/u16-strrchr.c: New file.
92246         * lib/unistr/u32-strrchr.c: New file.
92248         * modules/unistr/u8-strspn: New file.
92249         * modules/unistr/u16-strspn: New file.
92250         * modules/unistr/u32-strspn: New file.
92251         * lib/unistr/u8-strspn.c: New file.
92252         * lib/unistr/u16-strspn.c: New file.
92253         * lib/unistr/u32-strspn.c: New file.
92254         * lib/unistr/u-strspn.h: New file.
92256         * modules/unistr/u8-strstr: New file.
92257         * modules/unistr/u16-strstr: New file.
92258         * modules/unistr/u32-strstr: New file.
92259         * lib/unistr/u8-strstr.c: New file.
92260         * lib/unistr/u16-strstr.c: New file.
92261         * lib/unistr/u32-strstr.c: New file.
92262         * lib/unistr/u-strstr.h: New file.
92264         * modules/unistr/u8-strtok: New file.
92265         * modules/unistr/u16-strtok: New file.
92266         * modules/unistr/u32-strtok: New file.
92267         * lib/unistr/u8-strtok.c: New file.
92268         * lib/unistr/u16-strtok.c: New file.
92269         * lib/unistr/u32-strtok.c: New file.
92270         * lib/unistr/u-strtok.h: New file.
92272         * modules/unistr/u8-uctomb: New file.
92273         * modules/unistr/u16-uctomb: New file.
92274         * modules/unistr/u32-uctomb: New file.
92275         * lib/unistr/u8-uctomb.c: New file.
92276         * lib/unistr/u16-uctomb.c: New file.
92277         * lib/unistr/u32-uctomb.c: New file.
92279         * MODULES.html.sh (Unicode string functions): Add the new modules.
92281 2007-01-08  Bruno Haible  <bruno@clisp.org>
92283         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
92284         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
92285         subdirectories.
92287 2007-01-08  Karl Berry  <karl@gnu.org>
92289         * doc/error.texi: mention that main() fns must set program_name
92290         when progname is used.
92292 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
92294         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
92295         WCTYPE_H is empty, for the benefit of builds from non-distclean
92296         directories.  Problem reported by Eric Blake in
92297         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
92299 2007-01-08  Bruno Haible  <bruno@clisp.org>
92301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
92302         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
92303         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
92304         PROVIDE_CANONICALIZE_FILENAME_MODE.
92305         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
92307 2007-01-08  Bruno Haible  <bruno@clisp.org>
92309         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
92310         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
92311         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
92312         * lib/fts.c: Likewise.
92313         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
92315 2006-12-25  Bruno Haible  <bruno@clisp.org>
92317         * modules/utf8-ucs4-safe: New file.
92318         * lib/utf8-ucs4-safe.h: New file.
92319         * lib/unistr/utf8-ucs4-safe.c: New file.
92321         * modules/utf16-ucs4-safe: New file.
92322         * lib/utf16-ucs4-safe.h: New file.
92323         * lib/unistr/utf16-ucs4-safe.c: New file.
92325         * MODULES.html.sh (Unicode string functions): Add the new modules.
92327 2007-01-08  Bruno Haible  <bruno@clisp.org>
92329         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
92330         (Depends-on): Add unitypes.
92331         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92332         (u8_mbtouc_aux): Move out to separate file.
92333         (u8_mbtouc): Use ucs4_t, uint8_t types.
92334         * lib/unistr/utf8-ucs4.c: New file.
92336         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
92337         (Depends-on): Add unitypes.
92338         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92339         (u16_mbtouc_aux): Move out to separate file.
92340         (u16_mbtouc): Use ucs4_t, uint16_t types.
92341         * lib/unistr/utf16-ucs4.c: New file.
92343         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
92344         (Depends-on): Add unitypes.
92345         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
92346         (u8_uctomb_aux): Move out to separate file.
92347         (u8_uctomb): Use ucs4_t, uint8_t types.
92348         * lib/unistr/ucs4-utf8.c: New file.
92350         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
92351         (Depends-on): Add unitypes.
92352         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
92353         (u16_uctomb_aux): Move out to separate file.
92354         (u16_uctomb): Use ucs4_t, uint16_t types.
92355         * lib/unistr/ucs4-utf16.c: New file.
92357 2006-12-25  Bruno Haible  <bruno@clisp.org>
92359         * modules/unitypes: New file.
92360         * lib/unitypes.h: New file.
92361         * MODULES.html.sh (func_all_modules): New section "Unicode string
92362         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
92363         this section. Add unitypes.
92365 2007-01-08  Bruno Haible  <bruno@clisp.org>
92367         Avoid variable names that conflict with those from libtool.
92368         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
92369         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
92370         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
92371         library_names_spec to acl_library_names_spec, hardcode_* to
92372         acl_hardcode_*.
92373         Reported by Ralf Wildenhues.
92375 2007-01-08  Bruno Haible  <bruno@clisp.org>
92377         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
92378         definition.
92379         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
92380         definition.
92381         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
92382         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
92383         definition.
92384         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
92385         definition.
92386         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
92387         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
92388         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
92389         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
92390         definition.
92391         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
92392         definition.
92393         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
92394         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
92395         GC_USE_<algorithm>.
92396         * lib/gc-libgcrypt.c: Likewise.
92397         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
92398         * modules/gc-arctwo (configure.ac): Likewise.
92399         * modules/gc-des (configure.ac): Likewise.
92400         * modules/gc-hmac-md5 (configure.ac): Likewise.
92401         * modules/gc-hmac-sha1 (configure.ac): Likewise.
92402         * modules/gc-md2 (configure.ac): Likewise.
92403         * modules/gc-md4 (configure.ac): Likewise.
92404         * modules/gc-md5 (configure.ac): Likewise.
92405         * modules/gc-random (configure.ac): Likewise.
92406         * modules/gc-rijndael (configure.ac): Likewise.
92407         * modules/gc-sha1 (configure.ac): Likewise.
92409 2007-01-08  Bruno Haible  <bruno@clisp.org>
92411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
92412         macro definition.
92413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
92414         definition.
92415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
92416         definition.
92417         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
92418         * modules/fcntl-safer (configure.ac): Likewise.
92419         * modules/fopen-safer (configure.ac): Likewise.
92420         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
92421         GNULIB_FWRITEERROR macro definition.
92423 2007-01-08  Bruno Haible  <bruno@clisp.org>
92425         * m4/gnulib-common.m4: New file.
92426         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
92427         (func_get_filelist): Add m4/gnulib-common.m4.
92429 2007-01-08  Bruno Haible  <bruno@clisp.org>
92431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
92432         command.
92434 2007-01-08  Jim Meyering  <jim@meyering.net>
92436         Use a more robust test for a "can't happen" condition.
92437         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
92438         narrowed the st_size value.  Presuming the "can't happen" condition
92439         is true, that narrowing could conceivably convert an invalid st_size
92440         value into a valid one.  Instead, use a change based on Matthew
92441         Woehlke's original patch.
92443         Slight readability improvement: use an assert-like macro
92444         in place of literal "abort ()" uses.
92445         * lib/fts.c (fts_assert): Define.
92446         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
92447         Use this macro instead of a bare 'abort'.
92449 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
92451         Don't worry about using IRIX 5.3's wctype.h broken definitions;
92452         simply work around them.
92453         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
92454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
92455         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
92456         declaring.
92457         Don't bother to define as macros, since the standard doesn't require it.
92458         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
92459         longer worry about IRIX 5.3.
92460         (HAVE_WCTYPE_CTMP_BUG): Remove.
92462 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
92464         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
92465         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
92466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
92467         Problems reported by Georg Schwarz for IRIX 5.3.
92469         * gnulib-tool (autoconf_minversion): Take the maximum version number
92470         found, not the minimum.  Problem reported by James Youngman.
92472 2007-01-03  Karl Berry  <karl@gnu.org>
92474         * doc/error.texi: new file, explaining interaction with progname.
92475         * doc/gnulib.texi: include it.  Update copyright.
92477 2007-01-03  Simon Josefsson  <simon@josefsson.org>
92479         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
92480         AC_CANONICAL_HOST, to improve autobuild outputs.
92482 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
92483             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
92485         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
92486         sockets, server sockets, and other file descriptors.  Count errors
92487         to compute the return value.  Reorder the code a bit to be easier
92488         to follow.  Don't set event bits that were not requested (except
92489         POLLERR and POLLHUP).
92491 2007-01-01  Bruno Haible  <bruno@clisp.org>
92493         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
92495 2007-01-03  Jim Meyering  <jim@meyering.net>
92497         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
92499 2007-01-02  Bruno Haible  <bruno@clisp.org>
92501         * modules/settime (Include): Require timespec.h.
92502         * modules/nanosleep (Include): Likewise.
92504 2007-01-01  Bruno Haible  <bruno@clisp.org>
92506         * gnulib-tool (func_emit_copyright_notice): Bump year.
92507         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
92509 2007-01-01  Bruno Haible  <bruno@clisp.org>
92511         Improve support for OpenBSD.
92512         * build-aux/config.rpath (libname_spec): Export.
92513         (library_names_spec): New variable. Export.
92514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
92515         library_names_spec from the config.rpath output. Locate shared library
92516         through the name pattern in library_names_spec.
92518 2007-01-01  Eric Blake  <ebb9@byu.net>
92520         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
92522 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
92524         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
92525         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
92526         assume the C locale, and avoid an "eval" that could cause trouble.
92527         Problem with SORT reported by Bob Proulx.
92529         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
92530         Define.  Trivial patch from Henning Nielsen Lund, originally
92531         sent to bug-grep@gnu.org today.
92533 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
92535         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
92536         struct stat.  Problem reported by Henning Nielsen Lund.
92537         * lib/acl.c: Include acl.h first, to check interface.  Don't
92538         bother to include sys/types.h and sys/stat.h again.
92540 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
92542         Import the following change from libc; problem reported by
92543         Sven Verdoolaege.
92545         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
92547         [BZ #1373]
92548         * lib/argp.h: Remove __NTH for __argp_usage inline function.
92550 2006-12-28  Jim Meyering  <jim@meyering.net>
92552         * build-aux/announce-gen: Do not assume that the package
92553         builds any of tar.gz, tar.bz2, and .xdelta files.
92554         Suggestion from Simon Josefsson.
92556 2006-12-28  Simon Josefsson  <simon@josefsson.org>
92558         * modules/announce-gen: New file.
92560 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
92562         * lib/mbchar.h: Just include <wctype.h>; the wctype module
92563         handles its gotchas now.
92564         * lib/mbswidth.c: Likewise.
92565         * lib/wcwidth.h: Likewise.
92566         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
92567         and iswcntrl; the wctype module does this stuff now.
92568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
92570         * modules/mbchar (Depends-on): Add wctype.
92571         * modules/mbswidth (Depends-on): Likewise.
92572         * modules/wcwidth (Depends-on): Likewise.
92574 2006-12-27  Eric Blake  <ebb9@byu.net>
92576         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
92577         module uses more than what <wctype.h> is required to provide.
92579 2006-12-26  Eric Blake  <ebb9@byu.net>
92581         * gnulib-tool (sed_extract_prog): Avoid space-tab.
92583 2006-12-26  Eric Blake  <ebb9@byu.net>
92585         * modules/absolute-header: New module.
92586         * modules/fcntl (Depends-on): Depend on it.
92587         * modules/inttypes (Depends-on): Likewise.
92588         * modules/stdint (Depends-on): Likewise.
92589         * modules/sys_stat (Depends-on): Likewise.
92590         * modules/wctype (Depends-on): Likewise.
92591         * MODULES.html.sh (Support for building libraries and
92592         executables): Document it.
92594 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
92596         * gnulib-tool (SED): Remove, undoing previous change.
92597         The problem was that it broke coreutils on Solaris, because
92598         "sed --posix" leaked into a makefile.
92599         (sed): New alias, if 'alias' and GNU sed.
92601 2006-12-24  Jim Meyering  <jim@meyering.net>
92603         Work around an fchownat bug in glibc-2.4:
92604         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
92605         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
92606         in spite of the -P option.
92607         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
92608         New macros.
92609         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
92610         * modules/openat (Files): Add lib/fchownat.c.
92611         * lib/openat.c (fchownat): Don't define here.  Move to...
92612         * lib/fchownat.c: ...this new file.
92614 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
92616         Fix bug reported by Bruno Haible in
92617         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
92618         where quotearg.c didn't compile on Mac OS X 10.2 because it
92619         lacks <wchar.h> and wint_t.
92620         * lib/wctype_.h (__wctype_wint_t): New type.
92621         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
92622         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
92623         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
92624         Arg is now of type __wctype_wint_t, not wint_t.
92625         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
92626         substitute HAVE_WINT_T.
92627         * modules/wctype (Files): Add m4/wint_t.m4.
92628         (wctype.h): Substitute HAVE_WINT_T.
92630 2006-12-23  Bruno Haible  <bruno@clisp.org>
92632         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
92634 2006-12-23  Bruno Haible  <bruno@clisp.org>
92636         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
92637         S_ISLNK.
92638         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
92639         mingw.
92641 2006-12-22  Bruno Haible  <bruno@clisp.org>
92643         * lib/copy-file.c: Include acl.h.
92644         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
92645         Close the file descriptors only after being done with copy_acl.
92646         * modules/copy-file (Depends-on): Add acl.
92648 2006-12-22  Bruno Haible  <bruno@clisp.org>
92650         * gnulib-tool (SED): New variable.
92651         Use $SED instead of sed everywhere.
92653 2006-12-22  Bruno Haible  <bruno@clisp.org>
92655         * modules/no-c++: New file.
92656         * m4/no-c++.m4: New file.
92657         * MODULES.html.sh (Support for building libraries and executables):
92658         Add no-c++.
92660 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
92662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92663         Include <limits.h>, and use its INT_MAX to rewrite the
92664         j loop so that it does not overflow 'int'.  Problem reported by
92665         Ralf Wildenhues in
92666         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
92667         Play it safe by shifting left by 1 rather than multiplying by 2,
92668         as GCC is less likely to optimize this away when the value
92669         is signed (when it assumes overflow leads to undefined behavior).
92670         Also, don't assume time_t uses two's complement.
92672 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
92674         * MODULES.html.sh: New module wctype.
92675         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
92676         * lib/fnmatch.c: Don't bother to include <wchar.h> before
92677         <wctype.h>, since the new wctype module should fix this.
92678         * lib/quotearg.c: Include <wctype.h> unconditionally, since
92679         the wctype module should arrange for it.
92680         * lib/regex_internal.h: Likewise.
92681         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
92682         since the wctype module should handle this now.
92683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
92684         * modules/fnmatch (Depends-on): Add wctype.
92685         * modules/quotearg (Depends-on): Likewise.
92686         * modules/regex (Depends-on): Likewise.
92688 2006-12-19  Bruno Haible  <bruno@clisp.org>
92690         * lib/strdup.h [C++]: Wrap definitions in extern "C".
92691         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
92693 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92695         * modules/savewd (Depends-on): Fix dependency on fcntl.
92697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92699         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
92700         conforms to C99, rather than relying on the user's environment
92701         setting of STDINT_H.
92703 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92704         and Eric Blake  <ebb9@byu.net>
92706         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
92707         This is more consistent with the other defines here.
92708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
92709         Port to z/OS.  Problem reported by Paul Gilmartin.
92710         Change local vars to use gl_ prefix rather than ac_.
92711         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
92712         with other defines.
92713         * modules/double-slash-root: New module.
92714         * modules/dirname (Files): Remove m4/double-slash-root.m4.
92715         (Depends-on): Add double-slash-root.
92716         * MODULES.html.sh (File system functions): Mention new module.
92718 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
92720         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
92721         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
92722         This is for the benefit of gzip, which doesn't do i18n.
92724 2006-12-12  Jim Meyering  <jim@meyering.net>
92726         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
92727         Reported by Andreas Schwab <schwab@suse.de>.
92729 2006-12-12  Bruno Haible  <bruno@clisp.org>
92731         Merge these changes.
92732         2006-09-05  Bruno Haible  <bruno@clisp.org>
92733         * lib/iconvme.c (iconv_string): No need to save and restore errno when
92734         iconv_alloc succeeded.
92735         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
92736         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
92737         test for " && dest " at the end - dest is always != NULL there. Call
92738         iconv with 4xNULL arguments initially, to reset the state. Call iconv
92739         with 2xNULL arguments, also to flush the state storage. Handle the
92740         IRIX iconv behaviour. Realloc the final result, to throw away unused
92741         memory.
92743 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
92745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
92746         and fchmodat unconditionally, since glibc 2.4 has them.
92747         Problem reported by Arkadiusz Miskiewicz.
92749 2006-12-10  Bruno Haible  <bruno@clisp.org>
92751         * gnulib-tool (func_import): Show the include files only for those
92752         modules that are copied and specified.
92753         Reported by Karl Berry.
92755 2006-12-08  Jim Meyering  <jim@meyering.net>
92757         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
92758         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
92760         * build-aux/announce-gen: Add two new options, both optional:
92761         --bootstrap-tools=TOOL_LIST
92762               a comma-separated list of tools, e.g.,
92763               autoconf,automake,bison,gnulib
92764         --gnulib-snapshot-date=DATE
92765               if gnulib is in the bootstrap tool list,
92766               then report this as the snapshot date.
92767               If not specified, use the current date/time.
92768               If you specify a date here, be sure it's UTC.
92770 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92772         * tests/test-argp-2.sh: Fix test to match actual output.
92773         (func_compare): Fix sed script to be portable.
92775 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
92777         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
92778         workaround for this case.  It is not autoconfigured now; offhand
92779         it's hard to see how to autoconfigure it.
92781 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92783         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
92784         a directory that is about to be chowned.  Such a directory's
92785         initial file permissions should permit the owner only and this
92786         should not be changed until after the chown, since the group and
92787         other bits would be incorrect if they granted permission before
92788         the chown.
92790         Fix porting problem for iswctype reported by Georg Schwarz in:
92791         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
92792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
92793         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
92794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
92795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92797 2006-12-03  Jim Meyering  <jim@meyering.net>
92799         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
92800         p->fts_statp may not yet be defined.
92801         (fts_read): Instead, set it in the caller, once p->fts_statp is
92802         sure to be defined, and corresponds to a top-level directory.
92803         This bug made du -x fail.  Here's the coreutils test case:
92804         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
92805         Reported by Mike Frysinger.
92807 2006-12-01  Jim Meyering  <jim@meyering.net>
92809         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
92810         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
92811         Reported by Simon Josefsson.
92813 2006-11-30  Jim Meyering  <jim@meyering.net>
92815         * m4/warning.m4: Use the all-permissive copyright notice
92816         recommended by RMS (rather than LGPL).
92817         * m4/vararrays.m4: Likewise.
92818         * m4/flexmember.m4: Likewise.
92820 2006-11-29  Bruno Haible  <bruno@clisp.org>
92822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92823         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
92824         using +=.
92825         Reported by Simon Josefsson <simon@josefsson.org>.
92827 2006-11-28  James Youngman  <jay@gnu.org>
92829         * README: Advise users that they might find the bug-gnulib@gnu.org
92830         and autotools-announce@gnu.org mailing lists useful.
92832 2006-11-28  Bruno Haible  <bruno@clisp.org>
92834         * m4/ptrdiff_max.m4: Remove file.
92836 2006-11-21  Bruno Haible  <bruno@clisp.org>
92838         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
92839         _AC_COMPUTE_INT.
92840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92841         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
92842         _AC_COMPUTE_INT.
92843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
92845         _AC_COMPUTE_INT.
92846         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92848 2006-11-28  Jim Meyering  <jim@meyering.net>
92850         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92851         warning from "gcc -Wshadow" about shadowing the builtin.
92853 2006-11-27  Bruno Haible  <bruno@clisp.org>
92855         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92856         _AC_COMPUTE_INT.
92857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92859 2006-11-27  Bruno Haible  <bruno@clisp.org>
92860             Paul Eggert  <eggert@cs.ucla.edu>
92862         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92864 2006-11-26  Bruno Haible  <bruno@clisp.org>
92866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92867         noinst_LTLIBRARIES.
92869 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92870             Bruno Haible  <bruno@clisp.org>
92872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92873         if compiling with "gcc -ansi".
92875 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92877         Fix some incompatibilities with gcc -ansi -pedantic.
92878         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92879         if compiling pedantically with GCC, unless it's C99 or later.
92880         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92881         it mishandles gcc -ansi -pedantic as well.
92882         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92883         if gcc -pedantic.
92884         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92885         initializers for struct if -pedantic, unless it's C99 or later.
92887 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92889         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92890         Don't close an fd more than once. Identical atimes indicate
92891         success, not failure.
92893 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92895         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92897 2006-11-23  Jim Meyering  <jim@meyering.net>
92899         * build-aux/announce-gen: New file.  From coreutils.
92901 2006-11-22  Jim Meyering  <jim@meyering.net>
92903         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92904         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92905         (fts_read): Use a temporary to narrow the overused st_size member
92906         before using it in a switch statement.  Reported by Matthew Woehlke.
92908         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92911 2006-11-20  Bruno Haible  <bruno@clisp.org>
92913         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92914         changequote instead of pairs of brackets.
92915         Reported by Andreas Schwab <schwab@suse.de>.
92917 2006-11-21  Jim Meyering  <jim@meyering.net>
92919         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92920         so as to remain compatible with older compilers.
92921         Patch from Michael Deutschmann.
92923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92925         * MODULES.html.sh (File system functions): Add openat.
92927         * lib/openat.h (rpl_fstatat): New macro, if
92928         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92929         (fstatat): Define to rpl_fstatat under the same conditions,
92930         unless COMPILING_FSTATAT.
92931         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92932         seems to have the bug.
92933         * lib/fstatat.c: New file.
92934         * modules/openat (Files): Add it.
92936 2006-11-20  Bruno Haible  <bruno@clisp.org>
92938         * Makefile: New file.
92940 2006-11-20  Jim Meyering  <jim@meyering.net>
92942         The beginnings of syntax-related checks for gnulib.
92943         * lib/Makefile: New file.
92944         * lib/t-idcache: New script.  Ensure that the two halves of
92945         idcache.c stay in sync.
92947         * lib/idcache.c: Adjust comments in user- and group- portions to
92948         be more accurate, and to be consistent with one another.
92950 2006-11-20  Jim Meyering  <jim@meyering.net>
92952         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92953         continue using the flexible array member (thus, this module performs
92954         half as many malloc calls), with the addition that...
92955         (getgroup, getuser): Consistently record a non-match via an empty
92956         "name" string, and map an empty string match to a NULL return value.
92957         * modules/idcache (Depends-on): Re-add flexmember.
92959         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92960         (getuidbyname, getgroup, getgidbyname): Likewise.
92962         Use cleaner syntax: NULL rather than 0.
92963         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92967         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92968         It mishandled the case where the group was missing.
92969         Problem reported by Greg Schafer.
92970         * modules/idcache: Likewise.
92972 2006-11-18  Jim Meyering  <jim@meyering.net>
92974         * check-module (%exempt_header): Add exception for some
92975         conditionally-included headers.
92977         * modules/i-ring (Depends-on): Add verify.
92978         (License): Change to LGPL.
92980 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92982         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92983         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92984         and inttostr.h.  Use snprintf rather than uinttostr, so that
92985         LGPLed code doesn't depend on GPLed.
92987 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92989         * modules/inline (License): Change from GPL to LGPL.
92991 2006-11-17  Jim Meyering  <jim@meyering.net>
92993         * modules/d-type (License): Switch to LGPL.
92995 2006-11-15  Bruno Haible  <bruno@clisp.org>
92997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92999 2006-11-15  Eric Blake  <ebb9@byu.net>
93001         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
93002         the module dependency.
93004 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93005             Bruno Haible  <bruno@clisp.org>
93007         * gnulib-tool (func_create_testdir): Add license consistency check.
93009 2006-11-15  Eric Blake  <ebb9@byu.net>
93011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
93012         random "(cached)" in configure output.
93014 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93016         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
93017         test for conforming inttypes.h is both announced and cached.
93019         * MODULES.html.sh (seen_modules, seen_files): New variables.
93020         (func_module): Rewrite to use a few less gnulib-tool and sed
93021         invocations.  Avoid a couple of quadratic algorithms for ...
93022         (missed_modules, missed_files): ... these, with ...
93023         (func_append, func_tmpdir): ... these new functions, from
93024         gnulib-tool.  Analogously, install traps for cleanup.
93026         * tests/test-gc.c (main): Remove unused variables.
93027         * tests/test-read-file.c: Include stdlib.h, for 'free'.
93029 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
93031         * modules/inttostr (License): Change to LGPL.
93033 2006-11-14  Eric Blake  <ebb9@byu.net>
93035         * modules/tempname (License): Change to LGPL.
93037 2006-11-14  Eric Blake  <ebb9@byu.net>
93039         * doc/functions.texi (Function Portability): *printf functions on
93040         Cygwin now understand all POSIX size specifiers.
93042 2006-11-14  Bruno Haible  <bruno@clisp.org>
93044         * modules/c-ctype (License): Change to LGPL.
93046 2006-11-12  Bruno Haible  <bruno@clisp.org>
93048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93049         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
93050         for GNOME libraries, for which the include files are installed in
93051         subdirectories of $prefix/include.
93053 2006-11-12  Bruno Haible  <bruno@clisp.org>
93055         * m4/lib-link.m4: Require at least autoconf-2.54.
93056         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
93057         name to underscores for the --with option.
93059 2006-11-13  Bruno Haible  <bruno@clisp.org>
93061         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
93062         the tests directory.
93063         Reported by Ralf Wildenhues.
93065 2006-11-13  Bruno Haible  <bruno@clisp.org>
93067         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
93068         (func_emit_initmacro_end): Undo the override here.
93069         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
93070         Works around the famous automake error in coreutils.
93072 2006-11-13  Eric Blake  <ebb9@byu.net>
93074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
93075         element, not its node.
93077 2006-11-12  Bruno Haible  <bruno@clisp.org>
93079         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
93080         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
93082 2006-11-12  Bruno Haible  <bruno@clisp.org>
93084         * gnulib-tool: New option --local-symlink.
93085         (func_usage): Document it.
93086         (lsymbolic): New variable.
93087         (func_import, func_create_testdir): If --symlink was not specified,
93088         test whether --local-symlink was specified and the file comes from
93089         the local_gnulib_dir.
93091 2006-11-12  Bruno Haible  <bruno@clisp.org>
93093         * gnulib-tool (func_ln): New function.
93094         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
93096 2006-11-12  Bruno Haible  <bruno@clisp.org>
93098         Finish support for source files in subdirectories.
93099         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
93100         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
93101         AUTOMAKE_OPTIONS.
93102         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
93104 2006-11-12  Bruno Haible  <bruno@clisp.org>
93106         * gnulib-tool (func_get_automake_snippet): Synthesize also an
93107         EXTRA_lib_SOURCES augmentation.
93108         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
93110 2006-11-12  Jim Meyering  <jim@meyering.net>
93112         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
93113         file descriptors.  This also averts a failure on systems with
93114         native openat support when a traversed directory lacks "x" access.
93115         * lib/fts_.h: Include "i-ring.h"
93116         (struct FTS) [fts_fd_ring]: New member.
93117         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
93118         (FCHDIR): Add parentheses.
93119         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
93120         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
93121         When descending, rather than simply closing the previous
93122         fts_cwd_fd value, push that file descriptor onto the ring.
93123         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
93124         (fts_open): Initialize the new fd_ring member.
93125         (fts_close): Clear the ring.
93126         (fts_safe_changedir): When possible, use our new fd_ring to skip
93127         the diropen and fstat and dev/ino comparison that would normally
93128         accompany a virtual `chdir ("..")'.
93130         * modules/fts (Depends-on): Add i-ring.
93131         * modules/i-ring: New module.
93132         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
93133         * m4/i-ring.m4: New file.
93135 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93137         * gnulib-tool (func_create_testdir): Fix replacement of
93138         `build-aux' in configure.ac.  Run autotools in gltests
93139         subdirectory.
93140         (func_create_testdir, func_create_megatestdir, test): There is
93141         no need for '--force' in most autotool invocations in a new
93142         tree.  Actually fail the whole test if any of the tools, or the
93143         configure or make stages fail.
93145         Sync from Automake.
93146         * build-aux/gnupload: Revert last change.  Add pointer to upload
93147         instructions of the GNU Maintenance Instructions.
93148         Suggestion by Karl Berry.
93150 2006-11-10  Jim Meyering  <jim@meyering.net>
93152         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
93154 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
93156         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
93157         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
93158         (bind_textdomain_codeset) [! ENABLE_NLS]:
93159         Evaluate all the arguments.  That way, callers get compatible behavior
93160         if the arguments have side effects.  Also, it avoids some GCC
93161         diagnostics in some cases; Joel E. Denny reported problems when Bison
93162         was configured with --enable-gcc-warnigs.
93164 2006-11-10  Jim Meyering  <jim@meyering.net>
93166         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
93167         relevant options in CFLAGS (like -O, -fno-inline) are taken into
93168         account.
93170 2006-11-10  Jim Meyering  <jim@meyering.net>
93172         * modules/inline: New file/module.
93173         * modules/xalloc (Files): Remove m4/inline.m4.
93174         (Depends-on): Add inline, instead.
93175         * modules/oset: Likewise.
93176         * modules/list: Likewise.
93178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
93180         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
93181         Problem reported by Matthew Woehlke.
93183 2006-11-09  Bruno Haible  <bruno@clisp.org>
93185         * lib/tempname.c (gen_tempname): Remove variant that invokes
93186         __gen_tempname.
93187         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
93188         __gen_tempname.
93190 2006-11-08  Bruno Haible  <bruno@clisp.org>
93192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
93193         to 'yes' instead of 'cross-compiling'.
93195 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
93197         * lib/quotearg.h (quotearg_free): New decl.
93198         * lib/quotearg.c (quotearg_free): New function.
93199         (slot0, nslots, slotvec0, slotvec):
93200         Now file-scope so that quotearg_free can get at them.
93202 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93204         Sync from Automake.
93205         * build-aux/gnupload: Add missing 'gnu' to example URL.
93206         Report by Karl Berry.
93208 2006-11-08  Bruno Haible  <bruno@clisp.org>
93210         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
93211         Suggested by Paul Eggert.
93213 2006-11-08  Jim Meyering  <jim@meyering.net>
93215         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
93216         It's already included if !_LIBC.
93217         (fts_safe_changedir): Add a comment.
93219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
93222         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
93223         Matthew Woehlke.
93225         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
93226         definitions up, to avoid colliding with change below.
93227         (static_inline) [HAVE_INLINE]: New macro.
93228         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
93229         Provide extern decls when !HAVE_INLINE.  Do not define unless
93230         static_inline is defined, either by us or by xmalloc.c.  Use
93231         static_inline rather than static inline.
93232         (XCALLOC): Optimize sizeof(T) = 1 case.
93233         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
93235 2006-11-07  Bruno Haible  <bruno@clisp.org>
93237         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
93238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
93239         AC_C_INLINE.
93240         * modules/xalloc (Files): Add m4/inline.m4.
93242 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93244         * README: Fix typo.
93245         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
93246         (Miscellanous Notes): ...from this.
93248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93250         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
93251         Mention that offsetof should be used instead of sizeof.
93252         From Bruno Haible.
93254 2006-11-07  Bruno Haible  <bruno@clisp.org>
93256         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
93258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93260         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93261         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
93262         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93263         (gl_tree_add_before, gl_tree_add_after):
93264         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
93265         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
93266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
93267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
93268         (gl_linked_add_after, gl_linked_add_at): Likewise.
93269         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
93270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93271         (gl_tree_add_before, gl_tree_add_after): Likewise.
93272         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
93273         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
93274         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
93276 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93278         * lib/gl_oset.h: Use C comment style, not C++ comment style.
93280 2006-11-06  Bruno Haible  <bruno@clisp.org>
93282         * m4/inline.m4: New file.
93283         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
93284         * modules/list (Files): Add m4/inline.m4.
93285         * modules/oset (Files): Likewise.
93287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93289         * lib/idcache.c: Include <stddef.h>, for offsetof.
93290         (struct userid.name): Change from char * to a flexible array member.
93291         All uses changed.
93292         * modules/idcache (Depends-on): Add flexmember.
93294         * MODULES.html.sh (Core language properties): New module flexmember.
93295         * modules/flexmember, m4/flexmember.m4: New files.
93297         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
93298         inline functions that are identical with the old xnmalloc_inline,
93299         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
93300         that we can avoid some unnecessary integer multiplications and
93301         divisions in the common case where the element size is known at
93302         compile time.
93303         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
93304         needed.
93305         (xnboundedmalloc): Remove.
93306         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
93307         arguments, for consistency with rest of this header.
93308         (xcharalloc): Rewrite using XNMALLOC.
93309         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
93310         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
93311         versions have been moved to lib/xalloc.h and renamed to be the
93312         non-*_inline versions.
93313         (xmalloc, xrealloc): Implement without reference to the xnmalloc
93314         and xnrealloc functions, since those functions are now inline and
93315         now call us.
93316         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
93317         renaming described above.
93318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
93319         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
93320         captures the dependency in AC_C_INLINE.
93322         New module canonicalize-lgpl, proposed by Charles Wilson in
93323         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
93324         with a few small changes afterwards.
93325         * MODULES.html.sh (File system functions): New module
93326         canonicalize-lgpl.
93327         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
93328         and canonicalize_file_name.
93329         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
93330         * modules/canonicalize-lgpl: New files.
93332 2006-11-05  Bruno Haible  <bruno@clisp.org>
93334         * gnulib-tool (func_import, func_create_testdir): Create directories
93335         also for files in subdirectories of lib/.
93337 2006-11-05  Bruno Haible  <bruno@clisp.org>
93339         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
93340         ANSI C compliant.
93342 2006-11-03  Bruno Haible  <bruno@clisp.org>
93344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
93346         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
93347         (xnboundedmalloc): New inline function.
93348         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
93349         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
93350         xmalloc.
93351         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
93352         xmalloc.
93353         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
93354         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
93355         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
93356         xmalloc.
93357         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93358         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
93359         xmalloc.
93360         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
93361         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93362         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
93363         xmalloc.
93364         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93365         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
93366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93367         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
93368         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
93369         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
93370         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
93372 2006-11-03  Bruno Haible  <bruno@clisp.org>
93374         * lib/c-ctype.h [C++]: Define functions without name mangling.
93375         * lib/fwriteerror.h [C++]: Likewise.
93376         * lib/gcd.h [C++]: Likewise.
93377         * lib/linebreak.h [C++]: Likewise.
93379 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
93381         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
93382         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
93383         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
93384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
93385         Check for functions and headers just once.
93386         Check for declaration of canonicalize_file_name.
93387         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
93389 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93391         * gnulib-tool (func_import): Fix typo in actioncmd.
93393 2006-11-02  Bruno Haible  <bruno@clisp.org>
93395         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
93396         newline sequence in the Makefile.am snippet as a space, like "make"
93397         does.
93398         Reported by Roger Persson <perrog@gmail.com>.
93400 2006-11-01  Bruno Haible  <bruno@clisp.org>
93402         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
93403         already declared in <string.h>.
93404         * lib/strcase.h (strncasecmp): Don't declare it if yes.
93406 2006-11-01  Bruno Haible  <bruno@clisp.org>
93408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
93409         * lib/strcase.h: Include <string.h>.
93410         (strcasecmp): Define to rpl_strcasecmp here.
93412 2006-11-01  Bruno Haible  <bruno@clisp.org>
93414         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
93416 2006-11-01  Eric Blake  <ebb9@byu.net>
93418         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
93420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
93422 2006-10-29  Bruno Haible  <bruno@clisp.org>
93424         Make it compile in C++ mode.
93425         * lib/full-write.c (full_rw): Add a cast.
93427 2006-11-01  Bruno Haible  <bruno@clisp.org>
93429         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
93430         be POSIX compliant.
93431         Reported by Roger Persson <perrog@gmail.com>.
93433 2006-11-01  Eric Blake  <ebb9@byu.net>
93435         * lib/getopt_.h: Fix comments.
93437 2006-10-31  Eric Blake  <ebb9@byu.net>
93439         * modules/tmpdir (Depends-on): Add sys_stat.
93440         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
93441         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
93442         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
93443         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
93444         tempname.
93446 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
93448         Avoid some C++ diagnostics reported by Bruno Haible.
93449         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
93450         xmalloc.
93451         (quotearg_alloc): Use xcharalloc rather than xmalloc.
93452         (struct slotvec): Move to top level.
93453         (quotearg_n_options): Rewrite to avoid xmalloc.
93454         * lib/xalloc.h (xcharalloc): New function.
93455         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
93456         [defined __cplusplus]: Add function template that provides result
93457         type propagation.  This part of the change is from Bruno Haible.
93459 2006-10-29  Bruno Haible  <bruno@clisp.org>
93461         Make it compile in C++ mode.
93462         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
93463         * lib/strnlen1.c (strnlen1): Cast memchr result.
93464         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
93465         * lib/clean-temp.c (string_equals, string_hash): Add casts.
93466         (create_temp_dir): Rename local variable 'template'.
93467         (compile_csharp_using_sscli): Add cast.
93468         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
93469         * lib/findprog.c (find_in_path): Likewise.
93470         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
93471         * lib/wait-process.c (register_slave_subprocess): Likewise.
93473 2006-10-22  Bruno Haible  <bruno@clisp.org>
93475         * modules/tsearch: New file.
93476         * lib/tsearch.h: New file.
93477         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
93478         * m4/tsearch.m4: New file.
93479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
93481 2006-10-29  Eric Blake  <ebb9@byu.net>
93483         * lib/arcfour.c: Assume config.h.
93484         * lib/arctwo.c: Likewise.
93485         * lib/base64.c: Likewise.
93486         * lib/check-version.c: Likewise.
93487         * lib/crc.c: Likewise.
93488         * lib/des.c: Likewise.
93489         * lib/gc-gnulib.c: Likewise.
93490         * lib/gc-libgcrypt.c: Likewise.
93491         * lib/gc-pbkdf2-sha1.c: Likewise.
93492         * lib/getaddrinfo.c: Likewise.
93493         * lib/getdelim.c: Likewise.
93494         * lib/getline.c: Likewise.
93495         * lib/hmac-md5.c: Likewise.
93496         * lib/hmac-sha1.c: Likewise.
93497         * lib/iconvme.c: Likewise.
93498         * lib/md2.c: Likewise.
93499         * lib/md4.c: Likewise.
93500         * lib/memxor.c: Likewise.
93501         * lib/read-file.c: Likewise.
93502         * lib/readline.c: Likewise.
93503         * lib/rijndael-alg-fst.c: Likewise.
93504         * lib/rijndael-api-fst.c: Likewise.
93505         * lib/xgetdomainname.c: Likewise.
93507 2006-10-28  Eric Blake  <ebb9@byu.net>
93509         * lib/xstrndup.c: Assume config.h.
93511 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
93513         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
93514         stat-macros.h is now for our own macros, whereas stat_h is for
93515         macros in the <sys/stat.h> name space.
93516         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
93517         (STAT_MACROS_H): Remove.
93518         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
93519         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
93520         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
93521         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
93522         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
93523         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
93524         Move these macros to ...
93525         * lib/stat_.h: here.  Don't include stat-macros.h.
93526         * lib/canonicalize.c: Don't include stat-macros.h.
93527         * lib/chown.c: Likewise.
93528         * lib/euidaccess.c: Likewise.
93529         * lib/file-type.c: Likewise.
93530         * lib/filemode.c: Likewise.
93531         * lib/glob.c: Likewise.
93532         * lib/isapipe.c: Likewise.
93533         * lib/lchown.c: Likewise.
93534         * lib/lstat.c: Likewise.
93535         * lib/mkdir-p.c: Likewise.
93536         * lib/rmdir.c: Likewise.
93537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
93538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
93539         unless mkdir isn't declared, to speed up 'configure'.
93540         Always create sys/stat.h, since it's unlikely any real sys/stat.h
93541         would define all the S_* symbols.
93542         * modules/canonicalize (Depends-on):
93543         Depend on sys_stat, not stat-macros.
93544         * modules/chown: Likewise.
93545         * modules/euidaccess: Likewise.
93546         * modules/filemode: Likewise.
93547         * modules/file-type: Likewise.
93548         * modules/glob: Likewise.
93549         * modules/isapipe: Likewise.
93550         * modules/lchown: Likewise.
93551         * modules/lstat: Likewise.
93552         * modules/mkancesdirs: Likewise.
93553         * modules/rmdir: Likewise.
93554         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
93555         * modules/modechange: Likewise.
93556         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
93557         (configure.ac): Remove gl_STAT_MACROS.
93558         * modules/sys_stat (Depends-on): Remove stat-macros.
93560 2006-10-27  Bruno Haible  <bruno@clisp.org>
93562         * m4/signed.m4: Remove file.
93563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
93564         invocation.
93565         * modules/vasnprintf (Files): Remove m4/signed.m4.
93567 2006-10-27  Bruno Haible  <bruno@clisp.org>
93569         Update to GNU gettext 0.16.
93570         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
93571         m4/inttypes-h.m4, m4/signed.m4.
93572         * m4/gettext.m4: Update to GNU gettext 0.16.
93573         * m4/intl.m4: New file, from GNU gettext.
93574         * m4/intldir.m4: New file, from GNU gettext.
93575         * config/srclist.txt: Update
93577 2006-10-27  Eric Blake  <ebb9@byu.net>
93579         * MODULES.html.sh: Document tempname.
93580         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
93581         dependencies.
93582         (Files): Move lib/tempname.c...
93583         * modules/tempname: ...to this new module.
93584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
93585         (gl_PREREQ_TEMPNAME): Move...
93586         * m4/tempname.m4: ...to this new file.
93587         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
93588         * modules/sys_stat (Depends-on): Add stat-macros.
93589         * lib/stat_.h (includes): Pick up stat macros.
93590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
93591         if stat macros are broken.
93592         * lib/tempname.c (includes): No need to include "stat-macros.h".
93593         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
93594         (direxists, __path_search) [!_LIBC]: Don't compile these in
93595         gnulib; the tmpdir module covers that.
93596         * lib/tempname.h: New file.
93598 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
93600         * COPYING: Explain how gnulib-tool converts licence headers.
93601         Almost all wording by Eric Blake.
93603 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
93605         * lib/mbchar.h (is_basic_table): Make read-only.
93606         * lib/mbchar.c (is_basic_table): Likewise.
93607         Reported by John Darrington.
93609 2006-10-25  Bruno Haible  <bruno@clisp.org>
93611         * lib/progname.h (set_program_name): Undefine before defining.
93613 2006-10-25  Bruno Haible  <bruno@clisp.org>
93615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
93616         false for non-gcc C++ compilers.
93617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
93619 2006-10-24  Bruno Haible  <bruno@clisp.org>
93621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
93622         iconv implementations like Irix iconv.
93624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93626         * modules/vararrays: New file.
93627         * m4/vararrays.m4: New file, taken from diffutils.
93628         * MODULES.html.sh: New module vararrays.
93630 2006-10-24  Karl Berry  <karl@gnu.org>
93632         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
93633         Don't call GNU Unix.
93635 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93637         * users.txt: Add Libtool.
93639         Sync from Libtool:
93641         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93643         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
93644         to gnulib's policy of including config.h unconditionally.
93646 2006-10-24  Bruno Haible  <bruno@clisp.org>
93648         * modules/wcwidth (Files): Add m4/wint_t.m4.
93649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
93650         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
93652 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93654         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
93655         to pacify GCC with some -W flags enabled.  Problem reported by
93656         Bruno Haible.
93658 2006-10-24  Jim Meyering  <jim@meyering.net>
93660         * MODULES.html.sh: Remove uinttostr.  It's not a module.
93661         Reported by Karl Berry.
93663 2006-10-23  Bruno Haible  <bruno@clisp.org>
93665         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
93667 2006-10-24  Bruno Haible  <bruno@clisp.org>
93669         * lib/gl_list.h: Use C comment style, not C++ comment style.
93671 2006-10-23  Eric Blake  <ebb9@byu.net>
93673         * lib/getaddrinfo.c (includes): Add missing include.
93675 2006-10-23  Bruno Haible  <bruno@clisp.org>
93676             Paul Eggert  <eggert@cs.ucla.edu>
93678         Ability to rename obstack_free.
93679         * lib/obstack.h (__obstack_free): New macro. Declare instead of
93680         obstack_free.
93681         (obstack_free): Invoke the __obstack_free macro.
93682         * lib/obstack.c (obstack_free): Use __obstack_free macro.
93684 2006-10-23  Bruno Haible  <bruno@clisp.org>
93685             Paul Eggert  <eggert@cs.ucla.edu>
93687         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
93688         __argc, __argv from the declaration. (They are defined as macros on
93689         mingw.)
93691 2006-10-22  Bruno Haible  <bruno@clisp.org>
93693         * doc/gnulib-intro.texi: New file.
93694         * doc/gnulib.texi: Include it.
93696 2006-10-21  Bruno Haible  <bruno@clisp.org>
93698         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
93699         "Introduction", "Miscellanous Notes", "Particular Modules".
93701 2006-10-21  Bruno Haible  <bruno@clisp.org>
93703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93704         Change mostlyclean-local rule to avoid sh syntax error from bash
93705         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
93707 2006-10-23  Jim Meyering  <jim@meyering.net>
93709         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
93710         in place of snprintf.
93712         * modules/inttostr (Files): Add lib/uinttostr.c.
93713         * lib/uinttostr.c (inttostr): New file/function.
93714         * lib/inttostr.h (uinttostr): Declare.
93715         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
93716         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
93717         Add uinttostr.
93718         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
93720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93722         * lib/canonicalize.c (ELOOP): Define if not already defined.
93723         Problem reported by Bruno Haible in
93724         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
93726 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93728         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
93729         Problem reported by Perry Smith and Ville Laurikari.
93731         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
93732         uses.
93734 2006-10-19  Bruno Haible  <bruno@clisp.org>
93736         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
93737         for mingw.
93739 2006-10-19  Bruno Haible  <bruno@clisp.org>
93741         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
93742         Needed for mingw.
93744 2006-10-19  Bruno Haible  <bruno@clisp.org>
93746         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
93748 2006-10-19  Bruno Haible  <bruno@clisp.org>
93750         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
93751         it.
93753 2006-10-19  Bruno Haible  <bruno@clisp.org>
93755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
93756         invocation.
93758 2006-10-19  Bruno Haible  <bruno@clisp.org>
93760         * gnulib-tool (func_create_testdir): Don't include ftruncate and
93761         mountlist by default.
93763 2006-10-16  Bruno Haible  <bruno@clisp.org>
93765         * lib/c-strstr.c: Include c-strstr.h.
93767 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93769         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
93770         in a slash.
93772 2006-10-18  Bruno Haible  <bruno@clisp.org>
93774         * lib/lock.h [C++]: Wrap definitions in extern "C".
93776 2006-10-18  Bruno Haible  <bruno@clisp.org>
93778         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
93779         gl_LIBOBJS list.
93781 2006-10-18  Bruno Haible  <bruno@clisp.org>
93783         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
93785 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
93787         * lib/xstrtol.h: Include gettext.h.
93788         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
93789         Problem reported by Eric Blake.
93790         * modules/xstrtol (Depends-on): Add gettext-h.
93792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
93794         * lib/strftime.c (advance): New macro.
93795         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
93796         incomplete type, so you can't add 0 to it.  Problem and patch
93797         reported by Eelco Dolstra for dietlibc.
93799 2006-10-18  Jim Meyering  <jim@meyering.net>
93801         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
93802         type for a local, and rename it: s/up/user_proc/.
93804 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93806         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
93807         READ_UTMP_USER_PROCESS.
93808         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
93810 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
93812         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
93813         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
93815 2006-10-17  Eric Blake  <ebb9@byu.net>
93817         * lib/sigprocmask.c (sigprocmask): Fix typo.
93819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
93821         * modules/clean-temp (Makefile.am): Don't add to make output...
93822         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
93823         config.h.
93825 2006-10-17  Bruno Haible  <bruno@clisp.org>
93827         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
93828         differently if DEFAULT_TEXT_DOMAIN is set.
93830 2006-10-16  Bruno Haible  <bruno@clisp.org>
93832         * lib/clean-temp.c: Include fwriteerror.h.
93834 2006-10-16  Bruno Haible  <bruno@clisp.org>
93836         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
93838 2006-10-16  Bruno Haible  <bruno@clisp.org>
93840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
93841         * lib/sigprocmask.h: Include <sys/types.h>.
93842         (sigset_t): Use the system's definition if present.
93844 2006-10-17  Eric Blake  <ebb9@byu.net>
93846         * lib/xvasprintf.c (includes): Assume config.h.
93847         * lib/xasprintf.c (includes): Likewise.
93849 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93851         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93852         at least as wide as intmax_t.
93854 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93856         (Imported from Automake.)
93857         * build-aux/gnupload: Update to version 1.1 of directive file.
93859 2006-10-16  Eric Blake  <ebb9@byu.net>
93861         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93862         match Automake 1.10a.
93864 2006-10-14  Bruno Haible  <bruno@clisp.org>
93866         * modules/sigprocmask: New file.
93867         * lib/sigprocmask.h: New file.
93868         * lib/sigprocmask.c: New file.
93869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93870         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93871         request sigprocmask.o.
93872         (gl_PREREQ_SIGPROCMASK): New macro.
93873         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93874         (Depends-on): Add sigprocmask.
93875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93876         gt_SIGNALBLOCKING. Test for 'raise' only once.
93877         * lib/fatal-signal.c: Include sigprocmask.h.
93878         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93879         unblock_fatal_signals): Define always.
93880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93881         sigprocmask.
93883 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93885         Sync from Automake.
93886         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93887         which incorrectly sets the mode of an existing destination
93888         directory.  In some cases the unpatched install-sh could do the
93889         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93890         system.  We hope this is rare in practice, but it's clearly worth
93891         fixing.  Problem reported by Alex Unleashed in
93892         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93893         Also, don't bother to check for -m bugs unless we're using -m;
93894         suggested by Stepan Kasal.
93896 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93898         Sync from Automake.
93899         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93900         `-c' flag, so they appear at the same position as in %FASTDEP%
93901         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93902         which ignores unknown options only after the first non-option.
93903         Bug report against M4 by Nelson H. F. Beebe.
93905 2006-10-13  Jim Meyering  <jim@meyering.net>
93907         Fix a bug in yesterday's change.
93908         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93909         p->fts_statp->st_dev would be used uninitialized.
93910         Ensures that we always call fts_stat on the very first entry.
93911         Miklos Szeredi reported that find -xdev stopped working.
93913 2006-10-12  Bruno Haible  <bruno@clisp.org>
93915         * gnulib-tool (func_get_automake_snippet): Append an automatically
93916         computed EXTRA_DIST augmentation.
93917         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93918         * modules/alloca-opt (Makefile.am): Likewise.
93919         * modules/allocsa (Makefile.am): Likewise.
93920         * modules/arcfour (Makefile.am): Likewise.
93921         * modules/arctwo (Makefile.am): Likewise.
93922         * modules/argmatch (Makefile.am): Likewise.
93923         * modules/argz (Makefile.am): Likewise.
93924         * modules/atexit (Makefile.am): Likewise.
93925         * modules/backupfile (Makefile.am): Likewise.
93926         * modules/byteswap (Makefile.am): Likewise.
93927         * modules/c-strtod (Makefile.am): Likewise.
93928         * modules/c-strtold (Makefile.am): Likewise.
93929         * modules/calloc (Makefile.am): Likewise.
93930         * modules/canon-host (Makefile.am): Likewise.
93931         * modules/canonicalize (Makefile.am): Likewise.
93932         * modules/chdir-long (Makefile.am): Likewise.
93933         * modules/chdir-safer (Makefile.am): Likewise.
93934         * modules/check-version (Makefile.am): Likewise.
93935         * modules/chown (Makefile.am): Likewise.
93936         * modules/cloexec (Makefile.am): Likewise.
93937         * modules/close-stream (Makefile.am): Likewise.
93938         * modules/closeout (Makefile.am): Likewise.
93939         * modules/crc (Makefile.am): Likewise.
93940         * modules/csharpexec (Makefile.am): Likewise.
93941         * modules/cycle-check (Makefile.am): Likewise.
93942         * modules/des (Makefile.am): Likewise.
93943         * modules/dev-ino (Makefile.am): Likewise.
93944         * modules/dirfd (Makefile.am): Likewise.
93945         * modules/dirname (Makefile.am): Likewise.
93946         * modules/dup2 (Makefile.am): Likewise.
93947         * modules/eealloc (Makefile.am): Likewise.
93948         * modules/error (Makefile.am): Likewise.
93949         * modules/euidaccess (Makefile.am): Likewise.
93950         * modules/exclude (Makefile.am): Likewise.
93951         * modules/exitfail (Makefile.am): Likewise.
93952         * modules/fcntl-safer (Makefile.am): Likewise.
93953         * modules/fcntl (Makefile.am): Likewise.
93954         * modules/file-type (Makefile.am): Likewise.
93955         * modules/fileblocks (Makefile.am): Likewise.
93956         * modules/filemode (Makefile.am): Likewise.
93957         * modules/filenamecat (Makefile.am): Likewise.
93958         * modules/fnmatch (Makefile.am): Likewise.
93959         * modules/fopen-safer (Makefile.am): Likewise.
93960         * modules/fpending (Makefile.am): Likewise.
93961         * modules/fprintftime (Makefile.am): Likewise.
93962         * modules/free (Makefile.am): Likewise.
93963         * modules/fsusage (Makefile.am): Likewise.
93964         * modules/ftruncate (Makefile.am): Likewise.
93965         * modules/fts (Makefile.am): Likewise.
93966         * modules/gc-arcfour (Makefile.am): Likewise.
93967         * modules/gc-des (Makefile.am): Likewise.
93968         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93969         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93970         * modules/gc-md4 (Makefile.am): Likewise.
93971         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93972         * modules/gc-sha1 (Makefile.am): Likewise.
93973         * modules/gc (Makefile.am): Likewise.
93974         * modules/getaddrinfo (Makefile.am): Likewise.
93975         * modules/getcwd (Makefile.am): Likewise.
93976         * modules/getdelim (Makefile.am): Likewise.
93977         * modules/getdomainname (Makefile.am): Likewise.
93978         * modules/getgroups (Makefile.am): Likewise.
93979         * modules/gethostname (Makefile.am): Likewise.
93980         * modules/gethrxtime (Makefile.am): Likewise.
93981         * modules/getline (Makefile.am): Likewise.
93982         * modules/getloadavg (Makefile.am): Likewise.
93983         * modules/getlogin_r (Makefile.am): Likewise.
93984         * modules/getndelim2 (Makefile.am): Likewise.
93985         * modules/getopt (Makefile.am): Likewise.
93986         * modules/getpagesize (Makefile.am): Likewise.
93987         * modules/getpass-gnu (Makefile.am): Likewise.
93988         * modules/getpass (Makefile.am): Likewise.
93989         * modules/getsubopt (Makefile.am): Likewise.
93990         * modules/gettime (Makefile.am): Likewise.
93991         * modules/gettimeofday (Makefile.am): Likewise.
93992         * modules/getugroups (Makefile.am): Likewise.
93993         * modules/getusershell (Makefile.am): Likewise.
93994         * modules/glob (Makefile.am): Likewise.
93995         * modules/group-member (Makefile.am): Likewise.
93996         * modules/hard-locale (Makefile.am): Likewise.
93997         * modules/hash (Makefile.am): Likewise.
93998         * modules/hmac-md5 (Makefile.am): Likewise.
93999         * modules/hmac-sha1 (Makefile.am): Likewise.
94000         * modules/human (Makefile.am): Likewise.
94001         * modules/idcache (Makefile.am): Likewise.
94002         * modules/imaxabs (Makefile.am): Likewise.
94003         * modules/imaxdiv (Makefile.am): Likewise.
94004         * modules/inet_ntop (Makefile.am): Likewise.
94005         * modules/inet_pton (Makefile.am): Likewise.
94006         * modules/intprops (Makefile.am): Likewise.
94007         * modules/inttostr (Makefile.am): Likewise.
94008         * modules/inttypes (Makefile.am): Likewise.
94009         * modules/isapipe (Makefile.am): Likewise.
94010         * modules/javaversion (Makefile.am): Likewise.
94011         * modules/lchmod (Makefile.am): Likewise.
94012         * modules/lchown (Makefile.am): Likewise.
94013         * modules/localcharset (Makefile.am): Likewise.
94014         * modules/long-options (Makefile.am): Likewise.
94015         * modules/lstat (Makefile.am): Likewise.
94016         * modules/malloc (Makefile.am): Likewise.
94017         * modules/mathl (Makefile.am): Likewise.
94018         * modules/mbchar (Makefile.am): Likewise.
94019         * modules/md2 (Makefile.am): Likewise.
94020         * modules/md4 (Makefile.am): Likewise.
94021         * modules/md5 (Makefile.am): Likewise.
94022         * modules/memcasecmp (Makefile.am): Likewise.
94023         * modules/memchr (Makefile.am): Likewise.
94024         * modules/memcmp (Makefile.am): Likewise.
94025         * modules/memcoll (Makefile.am): Likewise.
94026         * modules/memcpy (Makefile.am): Likewise.
94027         * modules/memmem (Makefile.am): Likewise.
94028         * modules/memmove (Makefile.am): Likewise.
94029         * modules/mempcpy (Makefile.am): Likewise.
94030         * modules/memrchr (Makefile.am): Likewise.
94031         * modules/memset (Makefile.am): Likewise.
94032         * modules/memxor (Makefile.am): Likewise.
94033         * modules/mkancesdirs (Makefile.am): Likewise.
94034         * modules/mkdir-p (Makefile.am): Likewise.
94035         * modules/mkdir (Makefile.am): Likewise.
94036         * modules/mkdtemp (Makefile.am): Likewise.
94037         * modules/mkstemp (Makefile.am): Likewise.
94038         * modules/mktime (Makefile.am): Likewise.
94039         * modules/modechange (Makefile.am): Likewise.
94040         * modules/mountlist (Makefile.am): Likewise.
94041         * modules/nanosleep (Makefile.am): Likewise.
94042         * modules/obstack (Makefile.am): Likewise.
94043         * modules/openat (Makefile.am): Likewise.
94044         * modules/pagealign_alloc (Makefile.am): Likewise.
94045         * modules/pathmax (Makefile.am): Likewise.
94046         * modules/physmem (Makefile.am): Likewise.
94047         * modules/poll (Makefile.am): Likewise.
94048         * modules/posixtm (Makefile.am): Likewise.
94049         * modules/posixver (Makefile.am): Likewise.
94050         * modules/putenv (Makefile.am): Likewise.
94051         * modules/quote (Makefile.am): Likewise.
94052         * modules/quotearg (Makefile.am): Likewise.
94053         * modules/raise (Makefile.am): Likewise.
94054         * modules/read-file (Makefile.am): Likewise.
94055         * modules/readline (Makefile.am): Likewise.
94056         * modules/readlink (Makefile.am): Likewise.
94057         * modules/readtokens (Makefile.am): Likewise.
94058         * modules/readutmp (Makefile.am): Likewise.
94059         * modules/realloc (Makefile.am): Likewise.
94060         * modules/regex (Makefile.am): Likewise.
94061         * modules/rename-dest-slash (Makefile.am): Likewise.
94062         * modules/rename (Makefile.am): Likewise.
94063         * modules/rijndael (Makefile.am): Likewise.
94064         * modules/rmdir (Makefile.am): Likewise.
94065         * modules/rpmatch (Makefile.am): Likewise.
94066         * modules/safe-read (Makefile.am): Likewise.
94067         * modules/safe-write (Makefile.am): Likewise.
94068         * modules/same-inode (Makefile.am): Likewise.
94069         * modules/same (Makefile.am): Likewise.
94070         * modules/save-cwd (Makefile.am): Likewise.
94071         * modules/savedir (Makefile.am): Likewise.
94072         * modules/setenv (Makefile.am): Likewise.
94073         * modules/settime (Makefile.am): Likewise.
94074         * modules/sha1 (Makefile.am): Likewise.
94075         * modules/sig2str (Makefile.am): Likewise.
94076         * modules/snprintf (Makefile.am): Likewise.
94077         * modules/stat-macros (Makefile.am): Likewise.
94078         * modules/stat-time (Makefile.am): Likewise.
94079         * modules/stdbool (Makefile.am): Likewise.
94080         * modules/stdint (Makefile.am): Likewise.
94081         * modules/stdlib-safer (Makefile.am): Likewise.
94082         * modules/stpcpy (Makefile.am): Likewise.
94083         * modules/stpncpy (Makefile.am): Likewise.
94084         * modules/strcase (Makefile.am): Likewise.
94085         * modules/strcasestr (Makefile.am): Likewise.
94086         * modules/strchrnul (Makefile.am): Likewise.
94087         * modules/strcspn (Makefile.am): Likewise.
94088         * modules/strdup (Makefile.am): Likewise.
94089         * modules/strerror (Makefile.am): Likewise.
94090         * modules/strftime (Makefile.am): Likewise.
94091         * modules/strndup (Makefile.am): Likewise.
94092         * modules/strnlen (Makefile.am): Likewise.
94093         * modules/strpbrk (Makefile.am): Likewise.
94094         * modules/strsep (Makefile.am): Likewise.
94095         * modules/strstr (Makefile.am): Likewise.
94096         * modules/strtod (Makefile.am): Likewise.
94097         * modules/strtoimax (Makefile.am): Likewise.
94098         * modules/strtok_r (Makefile.am): Likewise.
94099         * modules/strtol (Makefile.am): Likewise.
94100         * modules/strtoll (Makefile.am): Likewise.
94101         * modules/strtoul (Makefile.am): Likewise.
94102         * modules/strtoull (Makefile.am): Likewise.
94103         * modules/strtoumax (Makefile.am): Likewise.
94104         * modules/strverscmp (Makefile.am): Likewise.
94105         * modules/sys_socket (Makefile.am): Likewise.
94106         * modules/sys_stat (Makefile.am): Likewise.
94107         * modules/sysexits (Makefile.am): Likewise.
94108         * modules/time_r (Makefile.am): Likewise.
94109         * modules/timegm (Makefile.am): Likewise.
94110         * modules/timespec (Makefile.am): Likewise.
94111         * modules/tmpfile-safer (Makefile.am): Likewise.
94112         * modules/trim (Makefile.am): Likewise.
94113         * modules/unistd-safer (Makefile.am): Likewise.
94114         * modules/unlinkdir (Makefile.am): Likewise.
94115         * modules/unlocked-io (Makefile.am): Likewise.
94116         * modules/userspec (Makefile.am): Likewise.
94117         * modules/utime (Makefile.am): Likewise.
94118         * modules/utimecmp (Makefile.am): Likewise.
94119         * modules/utimens (Makefile.am): Likewise.
94120         * modules/vasnprintf (Makefile.am): Likewise.
94121         * modules/vasprintf (Makefile.am): Likewise.
94122         * modules/vsnprintf (Makefile.am): Likewise.
94123         * modules/xalloc (Makefile.am): Likewise.
94124         * modules/xgetcwd (Makefile.am): Likewise.
94125         * modules/xnanosleep (Makefile.am): Likewise.
94126         * modules/xreadlink (Makefile.am): Likewise.
94127         * modules/xstrtod (Makefile.am): Likewise.
94128         * modules/xstrtol (Makefile.am): Likewise.
94129         * modules/xstrtold (Makefile.am): Likewise.
94130         * modules/yesno (Makefile.am): Likewise.
94131         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
94133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94135         * modules/error (Makefile.am): Distribute files through
94136         EXTRA_DIST, not lib_SOURCES.
94138 2006-10-12  Eric Blake  <ebb9@byu.net>
94140         * modules/error (Makefile.am): Distribute files in /lib.
94141         * modules/obstack (Makefile.am): Likewise.
94143 2006-10-12  Bruno Haible  <bruno@clisp.org>
94145         * modules/acl (Makefile.am): Distribute all files in lib/ through
94146         EXTRA_DIST.
94147         * modules/arcfour (Makefile.am): Likewise.
94148         * modules/arctwo (Makefile.am): Likewise.
94149         * modules/argmatch (Makefile.am): Likewise.
94150         * modules/argz (Makefile.am): Likewise.
94151         * modules/atexit (Makefile.am): Likewise.
94152         * modules/backupfile (Makefile.am): Likewise.
94153         * modules/c-strtod (Makefile.am): Likewise.
94154         * modules/c-strtold (Makefile.am): Likewise.
94155         * modules/calloc (Makefile.am): Likewise.
94156         * modules/canon-host (Makefile.am): Likewise.
94157         * modules/canonicalize (Makefile.am): Likewise.
94158         * modules/chdir-long (Makefile.am): Likewise.
94159         * modules/chdir-safer (Makefile.am): Likewise.
94160         * modules/check-version (Makefile.am): Likewise.
94161         * modules/chown (Makefile.am): Likewise.
94162         * modules/cloexec (Makefile.am): Likewise.
94163         * modules/close-stream (Makefile.am): Likewise.
94164         * modules/closeout (Makefile.am): Likewise.
94165         * modules/crc (Makefile.am): Likewise.
94166         * modules/cycle-check (Makefile.am): Likewise.
94167         * modules/des (Makefile.am): Likewise.
94168         * modules/dirfd (Makefile.am): Likewise.
94169         * modules/dirname (Makefile.am): Likewise.
94170         * modules/dup2 (Makefile.am): Likewise.
94171         * modules/euidaccess (Makefile.am): Likewise.
94172         * modules/exclude (Makefile.am): Likewise.
94173         * modules/exitfail (Makefile.am): Likewise.
94174         * modules/fcntl-safer (Makefile.am): Likewise.
94175         * modules/file-type (Makefile.am): Likewise.
94176         * modules/fileblocks (Makefile.am): Likewise.
94177         * modules/filemode (Makefile.am): Likewise.
94178         * modules/filenamecat (Makefile.am): Likewise.
94179         * modules/fnmatch (Makefile.am): Likewise.
94180         * modules/fopen-safer (Makefile.am): Likewise.
94181         * modules/fpending (Makefile.am): Likewise.
94182         * modules/fprintftime (Makefile.am): Likewise.
94183         * modules/free (Makefile.am): Likewise.
94184         * modules/fsusage (Makefile.am): Likewise.
94185         * modules/ftruncate (Makefile.am): Likewise.
94186         * modules/fts (Makefile.am): Likewise.
94187         * modules/gc (Makefile.am): Likewise.
94188         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
94189         * modules/getaddrinfo (Makefile.am): Likewise.
94190         * modules/getcwd (Makefile.am): Likewise.
94191         * modules/getdelim (Makefile.am): Likewise.
94192         * modules/getdomainname (Makefile.am): Likewise.
94193         * modules/getgroups (Makefile.am): Likewise.
94194         * modules/gethostname (Makefile.am): Likewise.
94195         * modules/gethrxtime (Makefile.am): Likewise.
94196         * modules/getline (Makefile.am): Likewise.
94197         * modules/getloadavg (Makefile.am): Likewise.
94198         * modules/getlogin_r (Makefile.am): Likewise.
94199         * modules/getopt (Makefile.am): Likewise.
94200         * modules/getpass (Makefile.am): Likewise.
94201         * modules/getpass-gnu (Makefile.am): Likewise.
94202         * modules/getsubopt (Makefile.am): Likewise.
94203         * modules/gettime (Makefile.am): Likewise.
94204         * modules/gettimeofday (Makefile.am): Likewise.
94205         * modules/getugroups (Makefile.am): Likewise.
94206         * modules/getusershell (Makefile.am): Likewise.
94207         * modules/glob (Makefile.am): Likewise.
94208         * modules/group-member (Makefile.am): Likewise.
94209         * modules/hard-locale (Makefile.am): Likewise.
94210         * modules/hash (Makefile.am): Likewise.
94211         * modules/hmac-md5 (Makefile.am): Likewise.
94212         * modules/hmac-sha1 (Makefile.am): Likewise.
94213         * modules/human (Makefile.am): Likewise.
94214         * modules/idcache (Makefile.am): Likewise.
94215         * modules/imaxabs (Makefile.am): Likewise.
94216         * modules/imaxdiv (Makefile.am): Likewise.
94217         * modules/inet_ntop (Makefile.am): Likewise.
94218         * modules/inet_pton (Makefile.am): Likewise.
94219         * modules/inttostr (Makefile.am): Likewise.
94220         * modules/isapipe (Makefile.am): Likewise.
94221         * modules/lchown (Makefile.am): Likewise.
94222         * modules/long-options (Makefile.am): Likewise.
94223         * modules/lstat (Makefile.am): Likewise.
94224         * modules/malloc (Makefile.am): Likewise.
94225         * modules/mathl (Makefile.am): Likewise.
94226         * modules/mbchar (Makefile.am): Likewise.
94227         * modules/md2 (Makefile.am): Likewise.
94228         * modules/md4 (Makefile.am): Likewise.
94229         * modules/md5 (Makefile.am): Likewise.
94230         * modules/memcasecmp (Makefile.am): Likewise.
94231         * modules/memchr (Makefile.am): Likewise.
94232         * modules/memcmp (Makefile.am): Likewise.
94233         * modules/memcoll (Makefile.am): Likewise.
94234         * modules/memcpy (Makefile.am): Likewise.
94235         * modules/memmem (Makefile.am): Likewise.
94236         * modules/memmove (Makefile.am): Likewise.
94237         * modules/mempcpy (Makefile.am): Likewise.
94238         * modules/memrchr (Makefile.am): Likewise.
94239         * modules/memset (Makefile.am): Likewise.
94240         * modules/memxor (Makefile.am): Likewise.
94241         * modules/mkancesdirs (Makefile.am): Likewise.
94242         * modules/mkdir (Makefile.am): Likewise.
94243         * modules/mkdir-p (Makefile.am): Likewise.
94244         * modules/mkdtemp (Makefile.am): Likewise.
94245         * modules/mkstemp (Makefile.am): Likewise.
94246         * modules/mktime (Makefile.am): Likewise.
94247         * modules/modechange (Makefile.am): Likewise.
94248         * modules/mountlist (Makefile.am): Likewise.
94249         * modules/nanosleep (Makefile.am): Likewise.
94250         * modules/openat (Makefile.am): Likewise.
94251         * modules/pagealign_alloc (Makefile.am): Likewise.
94252         * modules/physmem (Makefile.am): Likewise.
94253         * modules/poll (Makefile.am): Likewise.
94254         * modules/posixtm (Makefile.am): Likewise.
94255         * modules/posixver (Makefile.am): Likewise.
94256         * modules/putenv (Makefile.am): Likewise.
94257         * modules/quote (Makefile.am): Likewise.
94258         * modules/quotearg (Makefile.am): Likewise.
94259         * modules/raise (Makefile.am): Likewise.
94260         * modules/read-file (Makefile.am): Likewise.
94261         * modules/readline (Makefile.am): Likewise.
94262         * modules/readlink (Makefile.am): Likewise.
94263         * modules/readtokens (Makefile.am): Likewise.
94264         * modules/readutmp (Makefile.am): Likewise.
94265         * modules/realloc (Makefile.am): Likewise.
94266         * modules/regex (Makefile.am): Likewise.
94267         * modules/rename (Makefile.am): Likewise.
94268         * modules/rename-dest-slash (Makefile.am): Likewise.
94269         * modules/rijndael (Makefile.am): Likewise.
94270         * modules/rmdir (Makefile.am): Likewise.
94271         * modules/rpmatch (Makefile.am): Likewise.
94272         * modules/safe-read (Makefile.am): Likewise.
94273         * modules/safe-write (Makefile.am): Likewise.
94274         * modules/same (Makefile.am): Likewise.
94275         * modules/save-cwd (Makefile.am): Likewise.
94276         * modules/savedir (Makefile.am): Likewise.
94277         * modules/setenv (Makefile.am): Likewise.
94278         * modules/settime (Makefile.am): Likewise.
94279         * modules/sha1 (Makefile.am): Likewise.
94280         * modules/sig2str (Makefile.am): Likewise.
94281         * modules/snprintf (Makefile.am): Likewise.
94282         * modules/stdlib-safer (Makefile.am): Likewise.
94283         * modules/stpcpy (Makefile.am): Likewise.
94284         * modules/stpncpy (Makefile.am): Likewise.
94285         * modules/strcase (Makefile.am): Likewise.
94286         * modules/strcasestr (Makefile.am): Likewise.
94287         * modules/strchrnul (Makefile.am): Likewise.
94288         * modules/strcspn (Makefile.am): Likewise.
94289         * modules/strdup (Makefile.am): Likewise.
94290         * modules/strerror (Makefile.am): Likewise.
94291         * modules/strftime (Makefile.am): Likewise.
94292         * modules/strndup (Makefile.am): Likewise.
94293         * modules/strnlen (Makefile.am): Likewise.
94294         * modules/strpbrk (Makefile.am): Likewise.
94295         * modules/strsep (Makefile.am): Likewise.
94296         * modules/strstr (Makefile.am): Likewise.
94297         * modules/strtod (Makefile.am): Likewise.
94298         * modules/strtoimax (Makefile.am): Likewise.
94299         * modules/strtok_r (Makefile.am): Likewise.
94300         * modules/strtol (Makefile.am): Likewise.
94301         * modules/strtoll (Makefile.am): Likewise.
94302         * modules/strtoul (Makefile.am): Likewise.
94303         * modules/strtoull (Makefile.am): Likewise.
94304         * modules/strtoumax (Makefile.am): Likewise.
94305         * modules/strverscmp (Makefile.am): Likewise.
94306         * modules/time_r (Makefile.am): Likewise.
94307         * modules/timegm (Makefile.am): Likewise.
94308         * modules/tmpfile-safer (Makefile.am): Likewise.
94309         * modules/unistd-safer (Makefile.am): Likewise.
94310         * modules/unlinkdir (Makefile.am): Likewise.
94311         * modules/userspec (Makefile.am): Likewise.
94312         * modules/utime (Makefile.am): Likewise.
94313         * modules/utimecmp (Makefile.am): Likewise.
94314         * modules/utimens (Makefile.am): Likewise.
94315         * modules/vasnprintf (Makefile.am): Likewise.
94316         * modules/vasprintf (Makefile.am): Likewise.
94317         * modules/vsnprintf (Makefile.am): Likewise.
94318         * modules/xalloc (Makefile.am): Likewise.
94319         * modules/xgetcwd (Makefile.am): Likewise.
94320         * modules/xnanosleep (Makefile.am): Likewise.
94321         * modules/xreadlink (Makefile.am): Likewise.
94322         * modules/xstrtod (Makefile.am): Likewise.
94323         * modules/xstrtol (Makefile.am): Likewise.
94324         * modules/xstrtold (Makefile.am): Likewise.
94325         * modules/yesno (Makefile.am): Likewise.
94327 2006-10-12  Jim Meyering  <jim@meyering.net>
94329         * m4/getloadavg.m4: Revert the change below.
94331         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
94332         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
94333         fail with a symlink, which is what coreutils' ./bootstrap now
94334         creates by default.
94336 2006-10-12  Bruno Haible  <bruno@clisp.org>
94338         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
94339         mingw.
94340         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
94341         MSVC and mingw explicitly.
94343 2006-10-11  Simon Josefsson  <jas@extundo.com>
94344             Bruno Haible  <bruno@clisp.org>
94346         Add support for multiple gnulib-tool invocations in the scope of a
94347         single configure.ac file.
94348         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
94349         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
94350         with the same contents as the _LIBADD variable.
94351         (func_emit_initmacro_start, func_emit_initmacro_end,
94352         func_emit_initmacro_done): New functions.
94353         (func_import, func_create_testdir): Invoke them. Allow the identifiers
94354         gl_LIBOBJS and gl_LTLIBOBJS.
94356 2006-10-11  Bruno Haible  <bruno@clisp.org>
94358         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
94359         (func_create_testdir): Don't create po/Makefile.am, don't invoke
94360         autoreconf. Instead, invoke autopoint explicitly but move back the
94361         *.m4 files from gnulib.
94363 2006-10-11  Bruno Haible  <bruno@clisp.org>
94365         * gnulib-tool (func_usage): Make module names after --create-testdir
94366         optional.
94367         (func_create_testdir): If no module was specified, use nearly all
94368         modules.
94370 2006-10-12  Jim Meyering  <jim@meyering.net>
94372         Big performance improvement for fts-based tools that use FTS_NOSTAT.
94373         Avoid spurious inode-mismatch problems on non-POSIX file systems.
94374         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
94375         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
94376         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
94377         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
94378         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
94379         (fts_set_stat_required): New function.
94380         (fts_open): Defer the calls to fts_stat, if possible or requested.
94381         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
94382         into fts_stat itself.
94383         (fts_read): Perform any required (deferred) fts_stat call.
94384         (fts_build): Likewise, for the directory we're about to open and read.
94385         In the readdir loop, carefully decide whether each entry will require
94386         an eventual call to fts_stat, using dirent.d_type info if available.
94387         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
94388         a command line argument into this function.  Update all callers.
94389         Map a return value of FTS_DOT to FTS_D for a command line argument.
94390         * modules/fts (Depends-on): Add d-type.  Alphabetize.
94391         Thanks to Miklos Szeredi for his tenacity and for the initial
94392         bug report about "find" failing on a FUSE-based file system.
94394         * lib/fts.c (fts_open): Use consistent indentation.
94396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
94399         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
94400         reported by Jim Meyering.  All uses of cache variables renamed
94401         to match Autoconf's.
94402         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
94403         the other one.
94405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
94406         Fix misspelling in diagnostic.
94408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94410         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
94411         defined.  Problem reported by Matthew Woehlke.
94413         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
94414         Add support for Tandem NonStop R series.
94415         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
94416         Use new macro.
94418         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
94419         (has_trailing_slash): Omit size arg; all callers changed.
94420         Omit 'inline', since it doesn't help performance and we'd
94421         need to configure it.
94422         Don't count //, ///, etc. as having a trailing slash.
94423         As a side effect, this removes a C99ism reported by Matthew Woehlke.
94424         (rpl_rename_dest_slash): On failure, use rename's errno rather
94425         than (in some cases) an incorrect or junk errno.
94426         Simplify code by removing need to compute length; this does
94427         cause it to make two passes instead of one over the file name,
94428         but it's worth it.
94430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
94431         change, since Autoconf's version may no longer be appropriate now
94432         that we are using CVS Autoconf's version.  Add support for Tandem.
94434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94435             Bruno Haible  <bruno@clisp.org>
94437         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
94438         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
94439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
94440         gl_AC_TYPE_LONG_LONG.
94442         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
94443         instead of HAVE_LONG_LONG.
94444         * lib/printf-args.c (printf_fetchargs): Likewise.
94445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
94446         * lib/vasnprintf.c (VASNPRINTF): Likewise.
94447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
94448         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
94449         gl_AC_TYPE_LONG_LONG.
94451 2006-10-11  Bruno Haible  <bruno@clisp.org>
94453         * m4/longlong.m4: Add comments.
94454         * m4/ulonglong.m4: Likewise.
94456 2006-10-10  Bruno Haible  <bruno@clisp.org>
94458         Make it possible to #define stpcpy, strdup to aliases.
94459         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
94460         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
94462 2006-10-10  Bruno Haible  <bruno@clisp.org>
94464         Make it possible to #define gcd to an alias.
94465         * lib/gcd.c: Include config.h.
94467 2006-10-10  Bruno Haible  <bruno@clisp.org>
94469         Make it possible to #define c_isascii to an alias.
94470         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
94471         defined. Undefine the macros before defining them, to avoid gcc
94472         warnings.
94473         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
94474         define NO_C_CTYPE_MACROS early.
94476 2006-10-10  Bruno Haible  <bruno@clisp.org>
94478         Make it possible to #define set_program_name to an alias.
94479         * lib/progname.c: Don't undefine set_program_name; instead, undefine
94480         ENABLE_RELOCATABLE early.
94482 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
94484         Port to Tandem NSK OSS, which has 64-bit signed int but at most
94485         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
94486         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
94487         More generally, don't assume that 64-bit signed int is available
94488         if unsigned int is, and vice versa.
94489         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
94490         unsigned symbols, not on their signed counterparts.
94491         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
94492         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
94493         (UINT64_C, UINTMAX_C):
94494         Likewise.
94495         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
94496         unsigned counterparts.
94497         (Have_long_long, Unsigned): New macros.
94498         (Int): Renamed from INT.
94499         (strtoimax): Use the new macros.
94500         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
94501         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
94502         * modules/inttypes (inttypes.h): Substitute
94503         HAVE_UNSIGNED_LONG_LONG_INT.
94504         * modules/stdint (stdint.h): Likewise.
94505         (Files): Add m4/ulonglong.m4.
94507 2006-10-10  Bruno Haible  <bruno@clisp.org>
94509         Fix a gcc -Wshadow warning.
94510         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
94511         to 'bucket'.
94512         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
94513         gl_linked_indexof_from_to): Likewise.
94514         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
94515         Likewise.
94516         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
94517         Likewise.
94518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
94519         Reported by Eric Blake.
94521 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
94523         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
94524         for NetBSD.  Problem reported by Bruno Haible.
94526 2006-10-09  Jim Meyering  <jim@meyering.net>
94528         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
94529         Patch from Bruno Haible.
94531 2006-10-09  Jim Meyering  <jim@meyering.net>
94533         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
94534         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
94535         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
94537 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94539         Don't include <config.h> twice; this doesn't work in some cases,
94540         e.g., when config.h has "#define intmax_t long long int" and
94541         we include <config.h>, <inttypes.h>, <config.h> in that order.
94542         Problem reported by Matthew Woehlke in:
94543         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
94544         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
94545         * lib/fts-cycle.c: Don't include config.h.
94546         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
94547         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
94548         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
94549         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
94550         inttypes.h.
94551         * lib/xstrtoumax.c: Likewise.
94552         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
94553         __strtol and the like, so that this module is more like its siblings.
94554         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
94555         Remove; no longer needed now that we assume gnulib inttypes.h.
94557 2006-10-08  Bruno Haible  <bruno@clisp.org>
94559         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
94560         option.
94562 2006-10-07  Jim Meyering  <jim@meyering.net>
94564         * modules/inttypes (inttypes.h): Revert what seems to have been
94565         an inadvertent part of today's change: use "|", not "/" in the
94566         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
94568 2006-10-07  Bruno Haible  <bruno@clisp.org>
94570         * modules/sublist: New file.
94572 2006-10-07  Bruno Haible  <bruno@clisp.org>
94574         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
94575         * modules/argz (argz.h): Likewise.
94576         * modules/arpa_inet (arpa/inet.h): Likewise.
94577         * modules/byteswap (byteswap.h): Likewise.
94578         * modules/configmake (configmake.h): Likewise.
94579         * modules/fcntl (fcntl.h): Likewise.
94580         * modules/fnmatch (fnmatch.h): Likewise.
94581         * modules/getopt (getopt.h): Likewise.
94582         * modules/glob (glob.h): Likewise.
94583         * modules/inttypes (inttypes.h): Likewise.
94584         * modules/netinet_in (netinet/in.h): Likewise.
94585         * modules/poll (poll.h): Likewise.
94586         * modules/stdbool (stdbool.h): Likewise.
94587         * modules/stdint (stdint.h): Likewise.
94588         * modules/sys_select (sys/select.h): Likewise.
94589         * modules/sys_socket (sys/socket.h): Likewise.
94590         * modules/sys_stat (sys/stat.h): Likewise.
94591         * modules/sysexits (sysexits.h): Likewise.
94592         * modules/unistd (unistd.h): Likewise.
94593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94594         Add a "DO NOT EDIT" comment to the generated file.
94595         (func_import): Likewise for gnulib-comp.m4.
94597 2006-10-07  Bruno Haible  <bruno@clisp.org>
94599         * lib/gl_sublist.h: New file.
94600         * lib/gl_sublist.c: New file.
94602 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
94604         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
94605         name (relative to the original working directory) and the file
94606         name component (relative to the temporary working directory).  All
94607         callers changed.
94608         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
94609         * lib/mkdir-p.c (make_dir_parents): Likewise.
94610         * lib/mkdir-p.h (make_dir_parents): Likewise.
94612 2006-10-06  Eric Blake  <ebb9@byu.net>
94614         Define several macros for use by the clean-temp module.
94615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
94616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
94617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
94619         * lib/clean-temp.h (close_stream_temp): New declaration.
94620         * lib/clean-temp.c (includes): Pull in headers according to what
94621         other modules are in use.
94622         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
94624 2006-10-06  Bruno Haible  <bruno@clisp.org>
94626         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
94627         instead of fopen, fwriteerror.
94629 2006-10-06  Bruno Haible  <bruno@clisp.org>
94631         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
94632         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
94633         int.
94634         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
94635         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
94636         Return an error indicator.
94637         Suggested by Eric Blake.
94639 2006-10-06  Bruno Haible  <bruno@clisp.org>
94641         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
94642         Reported by Eric Blake.
94644 2006-10-06  Bruno Haible  <bruno@clisp.org>
94646         * modules/closeout (Description): Mention stderr too.
94648 2006-10-06  Bruno Haible  <bruno@clisp.org>
94649         and Paul Eggert  <eggert@cs.ucla.edu>
94651         * lib/closeout.c (close_stdout): Also close stderr.
94652         * lib/closeout.h: Update comment.
94654 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
94656         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
94657         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
94658         * lib/dirchownmod.c: Include lchown.h.
94659         * lib/lchown.c: Don't include files that lchown.h now includes.
94660         Don't declare chown, since lchown.h now does that.
94661         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
94662         (lchown): Define to rpl_chown if lchown is declared but
94663         does not exist.  Declare using a prototype if lchown is not
94664         declared.  Add a copyright notice.
94665         * lib/mkstemp.h: Include <unistd.h>.
94666         * lib/openat.c: Include lchown.h.
94668         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
94669         we now test for that separately.
94670         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
94671         rather than O_NOFOLLOW, when testing whether it's possible to
94672         avoid a race condition reliably.
94673         * lib/savewd.c (savewd_chdir): Likewise.
94675         Remove macros that are no longer needed now that stdint.h is
94676         reliable.
94677         * lib/fsusage.c (UINTMAX_MAX): Remove.
94678         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
94679         * lib/utimecmp.c (SIZE_MAX): Remove.
94681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
94683         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
94684         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
94685         O_NOATIME works.
94687 2006-10-05  Bruno Haible  <bruno@clisp.org>
94689         * lib/gl_list.h (gl_sortedlist_search_from_to,
94690         gl_sortedlist_indexof_from_to): New declarations.
94691         (gl_list_implementation): New fields sortedlist_search_from_to,
94692         sortedlist_indexof_from_to.
94693         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
94694         inline functions.
94695         * lib/gl_list.c (gl_sortedlist_search_from_to,
94696         gl_sortedlist_indexof_from_to): New functions.
94697         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
94698         function.
94699         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
94700         (gl_array_sortedlist_search_from_to): New function.
94701         (gl_array_list_implementation): Update.
94702         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
94703         function.
94704         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
94705         (gl_carray_sortedlist_search_from_to): New function.
94706         (gl_carray_list_implementation): Update.
94707         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
94708         gl_linked_sortedlist_indexof_from_to): New functions.
94709         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94710         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94711         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
94712         gl_tree_sortedlist_indexof_from_to): New functions.
94713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94715         Update.
94716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94717         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
94718         Update.
94720 2006-10-05  Bruno Haible  <bruno@clisp.org>
94722         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
94723         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
94724         (struct gl_list_implementation): Add fields search_from_to,
94725         indexof_from_to. Remove fields search, indexof.
94726         (gl_list_search): Use the search_from_to method.
94727         (gl_list_search_from, gl_list_search_from_to): New functions.
94728         (gl_list_indexof): Use the indexof_from_to method.
94729         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94730         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
94731         (gl_list_search_from, gl_list_search_from_to): New functions.
94732         (gl_list_indexof): Use the indexof_from_to method.
94733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94734         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
94735         gl_array_indexof. Add start_index, end_index arguments.
94736         (gl_array_search_from_to): Renamed from gl_array_search. Add
94737         start_index, end_index arguments.
94738         (gl_array_remove, gl_array_list_implementation): Update.
94739         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
94740         gl_carray_indexof. Add start_index, end_index arguments.
94741         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
94742         start_index, end_index arguments.
94743         (gl_carray_remove, gl_carray_list_implementation): Update.
94744         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
94745         gl_linked_search. Add start_index, end_index arguments.
94746         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
94747         start_index, end_index arguments.
94748         (gl_linked_remove): Update.
94749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94751         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
94752         field to 'size_t'.
94753         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
94754         gl_tree_search. Add start_index, end_index arguments.
94755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94756         start_index, end_index arguments.
94757         (gl_tree_remove): Update.
94758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94760         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
94761         function.
94762         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
94763         gl_tree_search. Add start_index, end_index arguments.
94764         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94765         start_index, end_index arguments.
94766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94767         Update.
94768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94770 2006-10-05  Bruno Haible  <bruno@clisp.org>
94772         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
94774         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
94775         fwriteerror_temp): New declarations.
94776         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
94777         (descriptors): New variable.
94778         (cleanup): First, close the descriptors.
94779         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
94780         fclose_temp, fwriteerror_temp): New functions.
94782 2006-10-04  Jim Meyering  <jim@meyering.net>
94784         * lib/fts.c (fts_open): Tiny comment change.
94786 2006-10-04  Bruno Haible  <bruno@clisp.org>
94788         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
94789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
94790         gl_LOCK_BODY.
94791         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
94792         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
94793         gl_LOCK_EARLY_BODY.
94794         (gl_LOCK): Require gl_LOCK_BODY.
94796 2006-10-04  Bruno Haible  <bruno@clisp.org>
94798         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
94799         (gl_oset_search_atleast): New declaration.
94800         (struct gl_oset_implementation): Add field 'search_atleast'.
94801         (gl_oset_search_atleast): New inline function.
94802         * lib/gl_oset.c (gl_oset_search_atleast): New function.
94803         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
94804         (gl_array_oset_implementation): Update.
94805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
94806         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
94807         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
94809 2006-10-04  Bruno Haible  <bruno@clisp.org>
94811         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
94813 2006-10-03  Bruno Haible  <bruno@clisp.org>
94815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
94816         from gl_avltreehash_list_implementation.
94818 2006-10-03  Bruno Haible  <bruno@clisp.org>
94820         * lib/gl_oset.c (gl_oset_add): Fix return type.
94822 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
94824         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
94826 2006-10-02  Eric Blake  <ebb9@byu.net>
94828         * modules/strnlen (Depends-on): Add extensions.
94830 2006-10-02  Eric Blake  <ebb9@byu.net>
94832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
94833         definition in 2.60+.
94835 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
94837         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
94838         checks.
94840 2006-10-02  Bruno Haible  <bruno@clisp.org>
94842         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
94843         to the AUTOMAKE_OPTIONS.
94844         Reported by Jim Meyering.
94846 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94848         Work around bug in Solaris 10 /proc file system:
94849         /proc/self/fd/NNN/.. isn't the parent directory of
94850         the directory whose file descriptor is NNN.  This needs to
94851         be worked around at run time, not compile time, since a
94852         program might be built on Solaris 8, where things work, and
94853         run on Solaris 10.
94854         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94855         to use the following interface instead:
94856         (OPENAT_BUFFER_SIZE): New macro.
94857         (openat_proc_name): New function.
94858         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94859         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94860         Likewise.
94861         * lib/openat-proc.c: New file.
94862         * modules/openat (Files): Add lib/openat-proc.c.
94863         (Depends-on): Add same-inode, stdbool.
94864         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94866 2006-09-29  Bruno Haible  <bruno@clisp.org>
94868         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94869         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94870         argument. Set stdout_closed before testing for ferror, not after.
94871         (fwriteerror, fwriteerror_no_ebadf): New functions.
94873 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94877 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94879         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94880         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94882 2006-09-28  Jim Meyering  <jim@meyering.net>
94884         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94885         Include <unistd.h>.
94887 2006-09-28  Bruno Haible  <bruno@clisp.org>
94889         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94890         * modules/linkedhash-list (Depends-on): Likewise.
94891         * modules/rbtreehash-list (Depends-on): Likewise.
94893 2006-09-28  Bruno Haible  <bruno@clisp.org>
94895         * lib/strndup.h: Simplify the redefinition of strndup.
94896         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94899 2006-09-28  Bruno Haible  <bruno@clisp.org>
94901         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94902         * lib/gl_linkedhash_list.c: Likewise.
94903         * lib/gl_rbtreehash_list.c: Likewise.
94905 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94907         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94908         getaddrinfo.
94910         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94911         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94912         it causes <stdio_ext.h> to cause a compile-time error.
94913         Problem reported by Nelson H. F. Beebe.
94914         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94915         of HAVE_DECL___PENDING.
94917         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94919         declaration.
94921 2006-09-27  Jim Meyering  <jim@meyering.net>
94923         This file could end up with a definition for a function
94924         named __strndup, rather than rpl_strndup on a system with
94925         incomplete weak_alias support.
94926         * lib/strndup.c (strndup): Rename from __strndup.
94927         Remove #defines that used to map __strndup to strndup.
94928         Don't use K&R prototypes.
94929         Remove LIBC-related code, since this file is not sync'd with glibc.
94930         * lib/strndup.h: Revamp, accordingly.
94931         * m4/strndup.m4: Modernize.
94933 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94935         * modules/savewd (Depends-on): Add 'raise'.
94936         * lib/savewd.c: Include <signal.h>, for 'raise'.
94938 2006-09-26  Jim Meyering  <jim@meyering.net>
94940         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94941         when we detect Darwin 8.7.0's acl_get_file bug.
94942         Rearrange to perform the new (below) run-test while $LIBS
94943         contains any acl-related library.  Set USE_ACL at the end.
94944         (gl_ACL_GET_FILE): New function.
94946 2006-09-26  Eric Blake  <ebb9@byu.net>
94948         * lib/verror.c: Include <config.h> unconditionally.
94950 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94952         * modules/clock-time (Maintainer): Add self.
94953         * modules/getlogin_r (Depends-on): Add extensions.
94955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94957         * modules/clock-time: New module.
94958         * modules/nanosleep (Depends-on): Add clock-time.
94959         * modules/gethrxtime (Depends-on): Likewise.
94960         * modules/gettime (Depends-on): Likewise.
94961         * modules/settime (Depends-on): Likewise.
94963         * modules/fts-lgpl: Depend on openat.
94964         * modules/mkancesdirs: Depend on savewd.
94965         * modules/mkdir-p: Likewise.
94967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94969         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94972         `gl_have_arbitrary_file_name_length_limit' to
94973         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94974         actually works between configure runs.
94976 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94977             Bruno Haible  <bruno@clisp.org>
94979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94981 2006-09-25  Jim Meyering  <jim@meyering.net>
94983         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94984         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94986 2006-09-25  Eric Blake  <ebb9@byu.net>
94988         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94989         exec's in 2006-09-18 patch when shuffling fds.
94991 2006-09-25  Bruno Haible  <bruno@clisp.org>
94993         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94994         Reported by Jim Meyering.
94996 2006-09-24  Jim Meyering  <jim@meyering.net>
94998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94999         compare a pointer against a literal "0".  That caused failures with
95000         at least HP-UX's hpcc.
95002 2006-09-22  Simon Josefsson  <jas@extundo.com>
95004         * modules/gc-sha1:
95005         * modules/gc-md4:
95006         * modules/gc-hmac-sha1:
95007         * modules/gc-hmac-md5:
95008         * modules/gc-des:
95009         * modules/gc-arcfour: Distribute more files.
95011 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95013         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
95014         (gl_linked_iterator_from_to): Initialize struct completely.
95015         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
95016         (gl_tree_iterator_from_to): Likewise
95017         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
95018         * lib/gl_array_list.c [lint] (gl_array_iterator)
95019         (gl_array_iterator_from_to): Likewise.
95020         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
95021         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
95022         (gl_carray_iterator_from_to): Likewise.
95024         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
95025         * lib/md4.c (md4_process_block): Remove unused variable.
95026         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
95027         parentheses for clarity.
95029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95031         * modules/bison-i18n (Depends-on): Add gettext.
95033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95035         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
95036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
95037         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
95038         also add missing comma that caused broken test.
95039         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
95040         stdlib.h, for `abort'.
95041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
95042         variables.
95043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
95044         include unistd.h if present, for `rmdir'.
95045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
95046         variables.
95047         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
95048         in the process include standard headers for prototypes.
95049         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
95050         gets declared on GNU/Linux.
95051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
95052         unistd.h, for `rmdir'.
95053         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
95055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
95056         always true.
95057         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
95059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
95061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95063         * gnulib-tool (func_version): Create output all at once.  This
95064         may help avoid triggering unnecessary SIGPIPEs, and at any
95065         rate it doesn't hurt.
95067 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95068             Bruno Haible  <bruno@clisp.org>
95070         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
95071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
95072         * m4/signed.m4 (bh_C_SIGNED): Likewise.
95074         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
95075         (gl_FUNC_VASPRINTF): Invoke it.
95077 2006-09-22  Bruno Haible  <bruno@clisp.org>
95079         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
95080         getloadavg.c as first argument.
95082 2006-09-22  Bruno Haible  <bruno@clisp.org>
95084         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
95085         at the beginning of the gl_INIT macro.
95086         * modules/getloadavg (configure.ac): Pass $gl_source_base to
95087         gl_GETLOADAVG.
95089 2006-09-22  Bruno Haible  <bruno@clisp.org>
95091         * gnulib-tool (func_create_megatestdir): Don't include the config-h
95092         module.
95093         Suggested by Ralf Wildenhues.
95095 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
95097         Import this patch from libc:
95099         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
95101         * lib/regex_internal.c (re_string_reconstruct): Handle
95102         offset < pstr->valid_raw_len && pstr->offsets_needed case.
95103         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
95104         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
95105         re_string_context_at.
95107         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
95108         now requires it.
95109         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
95110         gl_REGEX now does it for us.
95111         (gl_REGEX): Add test taken from
95112         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
95114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
95115         Check that large offsets work.  Modernize Autoconf usages.
95116         Prefer "yes" to mean a good thing rather than a bad.
95117         Don't put "#define mkstemp" in config.h, as this might interfere
95118         with standard system headers that "#define mkstemp mkstemp64".
95120         * modules/mkstemp (Depends-on): Add extensions, so that
95121         mkstemp is visible on some platforms.
95122         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
95123         (Include): Change to "mkstemp.h" from <stdlib.h>.
95124         (Files): Add mkstemp.h.
95126         * lib/mkstemp.h: New file, since some standard headers
95127         #define mkstemp.
95128         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
95129         Include "mkstemp.h".
95130         Make the _LIBC code resemble glibc original more,
95131         e.g., use K&R style.
95132         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
95133         (mkstemp): Remove, since mkstemp.h does this for us.
95134         * lib/stdlib--.h: Include mkstemp.h.
95136         Import this patch from libc:
95138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
95140         * lib/tempname.c (__gen_tempname): Change attempts_min
95141         into a macro.  Use preprocessor to decide how to initialize
95142         attempts [Coverity CID 67].
95144 2006-09-20  Bruno Haible  <bruno@clisp.org>
95146         * lib/mkdtemp.c: Import from libc.
95147         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
95148                 * sysdeps/posix/tempname.c (__gen_tempname): Change
95149                 attempts_min into a macro.  Use preprocessor to decide how to
95150                 initialize attempts [Coverity CID 67].
95151         2001-11-27  Paul Eggert  <eggert@twinsun.com>
95152                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
95153                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
95155 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95157         * gnulib-tool (func_exit): New function, to allow to pass the
95158         exit status portably through the trap.  Use everywhere.
95159         (--help, --version): Signal a write error.
95160         (trap): catch SIGPIPE, for write errors.
95161         Exit at the end of the trap, with the correct exit status.
95163 2006-09-19  Karl Berry  <karl@gnu.org>
95165         * doc/gnulib.texi: note about the license texinfo files.
95167 2006-09-19  Eric Blake  <ebb9@byu.net>
95169         * gnulib-tool: Avoid space-tab.
95171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
95173         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
95174         that prevented coreutils 6.1 from building.  Problem reported
95175         by Petter Reinholdtsen.
95177 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
95179         * gnulib-tool (avoidlist): Fix typo that broke options like
95180         --avoid=lock that are used by coreutils bootstrap.
95182 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
95184         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
95185         more systematically.
95187 2006-09-18  Jim Meyering  <jim@meyering.net>
95189         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
95191 2006-09-18  Bruno Haible  <bruno@clisp.org>
95193         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
95195 2006-09-18  Bruno Haible  <bruno@clisp.org>
95197         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
95198         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
95199         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
95200         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
95201         * m4/gettext.m4: Require autoconf >= 2.52.
95202         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
95203         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
95204         of gl_cv_header_inttypes_h.
95206 2006-09-18  Bruno Haible  <bruno@clisp.org>
95208         * lib/javaversion.c: Include configmake.h.
95210 2006-09-18  Bruno Haible  <bruno@clisp.org>
95212         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
95213         avoid that the while loops be executed in a subshell.
95215 2006-09-18  Bruno Haible  <bruno@clisp.org>
95217         * MODULES.html.sh (func_module): Break long lines.
95218         Suggested by Bruce Korb <bkorb@gnu.org>.
95220 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95222         Speed up by a factor of 1.12.
95223         * gnulib-tool (nl): New variable.
95224         (func_import): Rewrite include directive extraction to only read each
95225         directive once.
95227 2006-09-17  Bruno Haible  <bruno@clisp.org>
95229         * modules/javaversion (Makefile.am): Remove DEFS setting.
95230         (Depends-on): Add configmake, for PKGDATADIR definition.
95232 2006-09-17  Bruno Haible  <bruno@clisp.org>
95234         * gnulib-tool (func_create_testdir): Rewrite all files at once.
95236 2006-09-17  Bruno Haible  <bruno@clisp.org>
95238         * gnulib-tool (func_append): New function, stolen from libtool.m4.
95239         (func_modules_transitive_closure, func_modules_add_dummy,
95240         func_modules_to_filelist, func_import, func_create_testdir,
95241         func_create_megatestdir, ...): Use it wherever possible.
95242         Suggested by Ralf Wildenhues.
95244 2006-09-16  Karl Berry  <karl@gnu.org>
95246         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
95247         to avoid sectioning errors.
95248         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
95249         [ifinfo]: blank line after @center-ed titles.
95250         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
95251         Spell FSF address consistently with others.
95252         (These changes approved by rms.)
95254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95256         Speed up by a factor of 1.61.
95257         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
95258         already checked module names again.
95260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95262         Speed up by a factor of 1.13.
95263         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
95264         for new_files, and the input to func_add_or_update.
95266 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95268         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
95269         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
95271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95273         * modules/mkancesdirs (Depends-on): Add fcntl.
95274         * modules/savewd: New file.
95275         * MODULES.html.sh (File system functions): Add savewd.
95277         * modules/configmake (Makefile.am): Add support for the
95278         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
95280 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95282         * m4/savewd.m4: New file.
95284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95286         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
95287         (dirchownmod): New arg FD.  All callers changed.
95288         Use FD rather than opening the directory ourself, as opening is
95289         now the caller's responsibility.
95290         * lib/dirchownmod.h: Likewise.
95291         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
95292         hosts that require <sys/types.h> before <sys/stat.h>.  Include
95293         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
95294         (test_dir): Remove.
95295         (mkancesdirs): Return length of prefix of FILE that has already
95296         been made, or -2 if there is a child doing the work.  Redo
95297         algorithm so that it is O(N) rather than O(N**2).  Optimize away
95298         ".", and treat ".." specially since it might stray back into
95299         already-created areas.  Use a subprocess if necessary.  New arg
95300         WD; all users changed.  MAKE_DIR function should now return 1
95301         if it creates a directory that is not readable.  Return -2 if
95302         a child process is spun off.
95303         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
95304         Adjust signature to match code.
95305         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
95306         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
95307         all users changed.
95308         * lib/savewd.c, lib/savewd.h: New files.
95310 2006-09-15  Jim Meyering  <jim@meyering.net>
95312         * modules/rename-dest-slash: New module.
95313         * MODULES.html.sh (posix_compat): Add it here.
95315         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
95317 2006-09-15  Jim Meyering  <jim@meyering.net>
95319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
95320         file.
95322         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
95324 2006-09-15  Jim Meyering  <jim@meyering.net>
95326         * lib/rename-dest-slash.c (has_trailing_slash): Use
95327         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
95328         (rpl_rename_dest_slash): Perform the cheaper trailing slash
95329         test before testing whether SRC is a directory.
95330         Suggestions from Bruno Haible.
95332         Avoid a warning about an unused variable.
95333         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
95334         into the #ifdef block where it's used.
95336         * lib/rename-dest-slash.c: New file.
95338 2006-09-14  Bruno Haible  <bruno@clisp.org>
95340         * lib/allocsa.c: Include <config.h> unconditionally.
95341         * lib/asnprintf.c: Likewise.
95342         * lib/asprintf.c: Likewise.
95343         * lib/c-strcasecmp.c: Likewise.
95344         * lib/c-strcasestr.c: Likewise.
95345         * lib/c-strncasecmp.c: Likewise.
95346         * lib/c-strstr.c: Likewise.
95347         * lib/classpath.c: Likewise.
95348         * lib/clean-temp.c: Likewise.
95349         * lib/concatpath.c: Likewise.
95350         * lib/copy-file.c: Likewise.
95351         * lib/csharpcomp.c: Likewise.
95352         * lib/csharpexec.c: Likewise.
95353         * lib/execute.c: Likewise.
95354         * lib/fatal-signal.c: Likewise.
95355         * lib/findprog.c: Likewise.
95356         * lib/fwriteerror.c: Likewise.
95357         * lib/gl_array_list.c: Likewise.
95358         * lib/gl_array_oset.c: Likewise.
95359         * lib/gl_avltree_list.c: Likewise.
95360         * lib/gl_avltree_oset.c: Likewise.
95361         * lib/gl_avltreehash_list.c: Likewise.
95362         * lib/gl_carray_list.c: Likewise.
95363         * lib/gl_linked_list.c: Likewise.
95364         * lib/gl_linkedhash_list.c: Likewise.
95365         * lib/gl_list.c: Likewise.
95366         * lib/gl_oset.c: Likewise.
95367         * lib/gl_rbtree_list.c: Likewise.
95368         * lib/gl_rbtree_oset.c: Likewise.
95369         * lib/gl_rbtreehash_list.c: Likewise.
95370         * lib/imaxabs.c: Likewise.
95371         * lib/imaxdiv.c: Likewise.
95372         * lib/javacomp.c: Likewise.
95373         * lib/javaexec.c: Likewise.
95374         * lib/javaversion.c: Likewise.
95375         * lib/linebreak.c: Likewise.
95376         * lib/localcharset.c: Likewise.
95377         * lib/lock.c: Likewise.
95378         * lib/mbchar.c: Likewise.
95379         * lib/mbswidth.c: Likewise.
95380         * lib/mkdtemp.c: Likewise.
95381         * lib/pipe.c: Likewise.
95382         * lib/printf-args.c: Likewise.
95383         * lib/printf-parse.c: Likewise.
95384         * lib/progname.c: Likewise.
95385         * lib/progreloc.c: Likewise.
95386         * lib/readlink.c: Likewise.
95387         * lib/sh-quote.c: Likewise.
95388         * lib/stpcpy.c: Likewise.
95389         * lib/stpncpy.c: Likewise.
95390         * lib/strcasecmp.c: Likewise.
95391         * lib/strcasestr.c: Likewise.
95392         * lib/strcspn.c: Likewise.
95393         * lib/striconv.c: Likewise.
95394         * lib/strncasecmp.c: Likewise.
95395         * lib/strnlen1.c: Likewise.
95396         * lib/strstr.c: Likewise.
95397         * lib/strtok_r.c: Likewise.
95398         * lib/tls.c: Likewise.
95399         * lib/tmpdir.c: Likewise.
95400         * lib/unicodeio.c: Likewise.
95401         * lib/unsetenv.c: Likewise.
95402         * lib/vasnprintf.c: Likewise.
95403         * lib/vasprintf.c: Likewise.
95404         * lib/wait-process.c: Likewise.
95405         * lib/xallocsa.c: Likewise.
95406         * lib/xsetenv.c: Likewise.
95407         * lib/xstriconv.c: Likewise.
95409 2006-09-13  Simon Josefsson  <jas@extundo.com>
95411         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
95412         that internally, suggested by Ralf Wildenhues
95413         <Ralf.Wildenhues@gmx.de>.
95415 2006-09-13  Simon Josefsson  <jas@extundo.com>
95417         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
95418         @LIBOBJS@.
95419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95421 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
95423         * lib/_fpending.c: Include <config.h> unconditionally, since we no
95424         longer worry about uses that don't define HAVE_CONFIG_H.
95425         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
95426         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
95427         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
95428         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
95429         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
95430         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
95431         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
95432         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
95433         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
95434         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
95435         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
95436         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
95437         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
95438         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
95439         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
95440         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
95441         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
95442         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
95443         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
95444         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
95445         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
95446         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
95447         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
95448         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
95449         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
95450         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
95451         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
95452         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
95453         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
95454         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
95455         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
95456         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
95457         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
95458         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
95459         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
95460         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
95461         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
95462         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
95463         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
95464         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
95465         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
95466         Likewise.
95468 2006-09-13  Eric Blake  <ebb9@byu.net>
95470         * lib/getopt.c: Fix typo in last commit.
95472 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95474         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
95475         dgettext.
95477 2006-09-12  Jim Meyering  <jim@meyering.net>
95479         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
95480         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
95481         Reported by Nelson H. F. Beebe.
95483 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95485         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
95486         program_invocation_name and program_invocation_short_name are
95487         initialized.
95488         * lib/argp-namefrob.h: Move declarations of program_invocation_name
95489         and program_invocation_short_name to argp.h, so they are visible
95490         to user programs.
95491         * lib/argp.h: Likewise
95493 2006-09-10  Bruno Haible  <bruno@clisp.org>
95495         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95496         m4/inttypes_h.m4, m4/uintmax_t.m4.
95498 2006-09-10  Bruno Haible  <bruno@clisp.org>
95500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
95501         gl_AC_TYPE_UINTMAX_T.
95503 2006-09-10  Bruno Haible  <bruno@clisp.org>
95505         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
95507 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95509         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
95510         convention.  Text proposed by Bruno Haible.
95511         (struct argp_option): Document the use of N_() wrappers.
95513         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
95514         '\v', and translate the two parts separately, instead of feeding
95515         the whole string to gettext.  This allows to exclude
95516         '\v' from the strings visible to the translator by writing doc
95517         strings as N_("..") "\v" N_("..").
95519 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
95521         * config/srclist.txt: Undo latest change; the bug was fixed.
95523 2006-09-09  Bruno Haible  <bruno@clisp.org>
95525         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
95526         assignments if building a library without libtool.
95527         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
95528         in func_emit_lib_Makefile_am.
95529         (func_import): When building a static library libfoo.a, arrange to
95530         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
95531         (func_create_testdir): Likewise.
95532         * modules/gc (configure.ac, Makefile.am): If building statically,
95533         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
95534         * modules/iconvme (configure.ac, Makefile.am): Likewise.
95535         * modules/striconv (configure.ac, Makefile.am): Likewise.
95536         Based on a suggestion by Ralf Wildenhues.
95538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
95541         Check for unistd.h too, since Autoconf doesn't assume POSIX.
95542         Also:
95544         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95545         Add year_2050_test to catch glibc bug 2821
95546         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95548         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95549         Prefer #ifdef to #if.
95551         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
95552         Return from 'main' instead of calling 'exit'.
95554 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95556         * lib/mktime.c (guess_time_tm): Fix bug where mktime
95557         returned the maximum time_t value rather than (time_t) -1.
95558         Problem originally reported by William Bardwell
95559         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95561         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95562         Moved to here ...
95563         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95564         ... from here.
95566 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95568         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
95569         2821 is fixed.
95571 2006-09-08  Jim Meyering  <jim@meyering.net>
95573         Don't make generated files read-only.  That would bother too many
95574         people.  However, do retain the ability to work when targets are
95575         read-only: remove the destination and temporary files before writing
95576         them (when generated via sed or echo), or by using the -f option for
95577         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
95578         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95579         * modules/byteswap, modules/configmake, modules/fcntl:
95580         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95581         * modules/localcharset, modules/netinet_in, modules/poll:
95582         * modules/stdbool, modules/stdint, modules/sys_select:
95583         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95585 2006-09-08  Jim Meyering  <jim@meyering.net>
95587         Avoid new build failure on FreeBSD 6.0.
95588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
95589         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
95590         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
95592 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
95596 2006-09-07  Jim Meyering  <jim@meyering.net>
95598         Fix global typo in last change: use chmod u-w, not chmod u-x.
95599         Spotted by Paul Eggert and Bruce Korb.
95600         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95601         * modules/byteswap, modules/configmake, modules/fcntl:
95602         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95603         * modules/localcharset, modules/netinet_in, modules/poll:
95604         * modules/stdbool, modules/stdint, modules/sys_select:
95605         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95607 2006-09-06  Jim Meyering  <jim@meyering.net>
95609         Make generated files be read-only.
95610         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
95611         Ensure that each generated file is now read-only.
95612         * modules/argz: Likewise.
95613         * modules/arpa_inet: Likewise.
95614         * modules/byteswap: Likewise.
95615         * modules/configmake: Likewise.
95616         * modules/fcntl: Likewise.
95617         * modules/fnmatch: Likewise.
95618         * modules/getopt: Likewise.
95619         * modules/glob: Likewise.
95620         * modules/inttypes: Likewise.
95621         * modules/netinet_in: Likewise.
95622         * modules/poll: Likewise.
95623         * modules/stdbool: Likewise.
95624         * modules/stdint: Likewise.
95625         * modules/sys_select: Likewise.
95626         * modules/sys_socket: Likewise.
95627         * modules/sys_stat: Likewise.
95628         * modules/sysexits: Likewise.
95629         * modules/localcharset: Same as above, but continue using temporary
95630         file named "t-$@" (why different?) rather than the "$@-t" used
95631         everywhere else.
95633         * modules/sysexits (Makefile.am): Replace literal occurrences
95634         of "sysexit.h" more readable, and more consistent, "$@".
95636 2006-09-06  Bruno Haible  <bruno@clisp.org>
95638         * modules/striconv: New file.
95639         * modules/xstriconv: New file.
95640         * MODULES.html.sh (Internationalization functions): Add striconv,
95641         xstriconv.
95643 2006-09-06  Bruno Haible  <bruno@clisp.org>
95645         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
95646         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
95647         not using libtool correctly.
95649 2006-09-06  Bruno Haible  <bruno@clisp.org>
95651         * lib/striconv.h: New file.
95652         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
95653         iconvstring.c.
95654         * lib/xstriconv.h: New file.
95655         * lib/xstriconv.c: New file.
95657 2006-09-06  Bruno Haible  <bruno@clisp.org>
95659         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95660         lib_..._LDFLAGS.
95662 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95664         * lib/argz_.h: Sync from Libtool.
95666         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
95667                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95669         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
95671 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95673         * modules/trim: New file.
95675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95677         * lib/trim.h: New file.
95678         * lib/trim.c: New file.
95680 2006-09-05  Bruno Haible  <bruno@clisp.org>
95682         * MODULES.html.sh (String handling): Add trim.
95684 2006-09-04  Karl Berry  <karl@gnu.org>
95686         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
95687         until next release.
95689 2006-09-03  Bruno Haible  <bruno@clisp.org>
95691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
95692         correctly.
95694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95696         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
95697         not gl_GETLOADAVG.  Omit unneeded semicolons.
95698         Problems reported by Ralf Wildenhues in
95699         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95700         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
95701         at the end, which is the usual gnulib style.
95703         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
95704         of doing all the work ourselves.
95705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
95706         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
95708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95710         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
95711         Problem reported by Ralf Wildenhues in
95712         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95714         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
95715         HAVE_STRUCT_STATFS_F_FSTYPENAME.
95717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95719         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
95720         yesterday's patch by changing test -n to test -z.
95722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95724         * modules/getloadavg (Files): Add m4/getloadavg.m4.
95725         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
95726         the former is now obsolescent.
95728         * modules/chdir-long (Depends-on): Add fcntl.
95730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95732         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
95733         obsolescent, and programs should use gnulib instead.
95734         * m4/getloadavg.m4: New file, with contents taken from Autoconf
95735         but with prefixes changed.
95737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95739         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
95740         or stdbool.h, because they might not exist while configuring.
95742         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
95743         Don't include unistd.h or limits.h; not needed, since chdir-long.h
95744         does that for us.
95745         (O_DIRECTORY): Remove.
95747 2006-08-31  Eric Blake  <ebb9@byu.net>
95749         * gnulib-tool: Don't let emacs change spaces to TAB.
95751 2006-08-31  Bruno Haible  <bruno@clisp.org>
95753         * gnulib-tool: When calling func_import more than once, do it in a
95754         subshell.
95755         Reported by Eric Blake <ebb9@byu.net>.
95757 2006-08-31  Bruno Haible  <bruno@clisp.org>
95759         * gnulib-tool (nl): Remove variable.
95760         (sed_transform_lib_file): Use more robust test for config-h module.
95761         (func_import): Fix typo in 2006-08-25 patch.
95763 2006-08-31  Bruno Haible  <bruno@clisp.org>
95765         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
95766         specified, augment Makefile.am variables instead of assigning them.
95768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95770         Work around a bug in both the Linux and SunOS 64-bit kernels:
95771         nanosleep mishandles sleeps for longer than 2**31 seconds.
95772         Problem reported by Frank v Waveren in
95773         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
95775         Check for nanosleep bug.
95776         (LIB_NANOSLEEP): Append clock_gettime library if needed.
95778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95780         Work around a bug in both the Linux and SunOS 64-bit kernels:
95781         nanosleep mishandles sleeps for longer than 2**31 seconds.
95782         Problem reported by Frank v Waveren in
95783         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95784         * lib/nanosleep.c (BILLION): New constant.
95785         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
95786         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
95787         implementation.
95789 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95791         * modules/nanosleep (Depends-on): Add gettime.
95793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95794         and Simon Josefsson  <jas@extundo.com>
95795         and Oskar Liljeblad  <oskar@osk.mine.nu>
95797         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
95798         * gnulib-tool (func_import): New license type 'unmodifiable license
95799         text'.
95800         * modules/fdl: Use it.  Longer description.
95801         * module/gpl, module/lgpl: New files.
95803 2006-08-30  Jim Meyering  <jim@meyering.net>
95805         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
95806         shadowing the parameter.
95808 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95810         Sync from Libtool:
95812         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95814         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
95815         sharing with gnulib.  Report by Eric Blake.
95817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95819         * modules/isapipe: New file.
95820         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
95822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95824         * modules/configmake (Makefile.am): Add a comment, and omit
95825         the CONFIGMAKE_ prefix from generated macro names.  Suggested
95826         by Bruno Haible.
95828 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95830         * m4/isapipe.m4: New file.
95832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95834         * lib/isapipe.c, lib/isapipe.h: New files.
95836 2006-08-29  Jim Meyering  <jim@meyering.net>
95838         * modules/configmake (Makefile.am): Make configmake.h depend on
95839         Makefile.  Otherwise, a stale configmake.h could hang around.
95841 2006-08-29  Eric Blake  <ebb9@byu.net>
95843         * lib/error.c (error_at_line, print_errno_message): Match libc, after
95844         resolution of upstream bug 3044.
95846 2006-08-29  Bruno Haible  <bruno@clisp.org>
95848         * modules/localcharset (Depends-on): Add configmake.
95849         (Makefile.am): Remove setting of LIBDIR through DEFS.
95851 2006-08-29  Bruno Haible  <bruno@clisp.org>
95853         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95854         defined.
95856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95858         * modules/fcntl: New file.
95859         * modules/chdir-safer (Depends-on): Add fcntl.
95860         * modules/fts: Likewise.
95861         * modules/mkdir-p: Likewise.
95863         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95864         This undoes the most recent change, since we're now addressing the
95865         problem in a different way.
95867         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95868         into output, since the output might be called Makefile.am even
95869         if $makefile_name is something different.
95870         (func_import): Use $makefile_am rather than
95871         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95872         empty.
95874         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95876 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95878         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95879         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95880         recent change to stdint.m4, since we're now addressing the problem in a
95881         different way.
95883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95885         * m4/fcntl_h.m4: New file.
95887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95889         * lib/fcntl_.h: New file.
95890         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95891         the fcntl module.
95892         * lib/dirchownmod.c: Likewise.
95893         * lib/fts.c: Likewise.
95895         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95896         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95897         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95898         just before including <inttypes.h>, to avoid circular inclusion.
95900 2006-08-28  Jim Meyering  <jim@meyering.net>
95902         * doc/visibility.texi: Actually read and correct the grammar of the
95903         sentence affected by yesterday's change.
95905 2006-08-28  Eric Blake  <ebb9@byu.net>
95907         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95908         needs wrapper.
95910 2006-08-28  Eric Blake  <ebb9@byu.net>
95912         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95914 2006-08-28  Eric Blake  <ebb9@byu.net>
95916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95918 2006-08-28  Bruno Haible  <bruno@clisp.org>
95920         * modules/c-strstr: New file, from GNU gettext.
95921         * MODULES.html.sh (String handling): Add c-strstr.
95923 2006-08-28  Bruno Haible  <bruno@clisp.org>
95925         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95926         macros.
95927         Reported by Eric Blake.
95929 2006-08-28  Bruno Haible  <bruno@clisp.org>
95931         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95932         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95933         * lib/vasprintf.c: Include errno.h, limits.h.
95934         (EOVERFLOW): New fallback definition.
95935         (vasprintf): Test here whether the string length is > INT_MAX.
95936         * lib/vsnprintf.c: Include errno.h, limits.h.
95937         (EOVERFLOW): New fallback definition.
95938         (vsnprintf): Fix bug when generated string was too long for the buffer.
95939         Test here whether the string length is > INT_MAX.
95941 2006-08-28  Bruno Haible  <bruno@clisp.org>
95943         * lib/inttypes_.h (SCNX*): Remove definitions.
95944         Reported by Eric Blake.
95946 2006-08-28  Bruno Haible  <bruno@clisp.org>
95948         * lib/c-strstr.h: New file, from GNU gettext.
95949         * lib/c-strstr.c: New file, from GNU gettext.
95951 2006-08-28  Bruno Haible  <bruno@clisp.org>
95953         * gnulib-tool: Reorder some statements.
95955 2006-08-28  Bruno Haible  <bruno@clisp.org>
95957         * gnulib-tool: New option --makefile-name.
95958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95959         $makefile_name.
95960         (func_import): Write $makefile_name to the cache file, and read it from
95961         there unless explicitly specified. Use $makefile_name as file name
95962         instead of Makefile.am. Adjust the recommendations accordingly.
95964 2006-08-28  Bruno Haible  <bruno@clisp.org>
95966         * gnulib-tool (func_verify_module): Check against misapplying patch.
95968 2006-08-28  Bruno Haible  <bruno@clisp.org>
95970         * gnulib-tool (func_relativize, func_relconcat): New functions.
95971         Give an error if --local-dir is given with --update.
95972         Remove trailing slashes from $local_gnulib_dir.
95973         (func_import): Store the relativized $local_gnulib_dir in
95974         gnulib-cache.m4, and read it from there if not specified explicitly.
95976 2006-08-28  Bruno Haible  <bruno@clisp.org>
95978         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95979         is the current directory. Respect also $local_gnulib_dir.
95981 2006-08-28  Bruno Haible  <bruno@clisp.org>
95982             Simon Josefsson  <jas@extundo.com>
95984         BeOS portability.
95985         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95987 2006-08-27  Jim Meyering  <jim@meyering.net>
95989         * doc/visibility.texi: Remove duplicate word: "pointer".
95991 2006-08-26  Bruno Haible  <bruno@clisp.org>
95993         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95994         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95995         (Makefile.am): Create inttypes.h from inttypes_.h.
95996         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95998         * modules/imaxabs: New file.
96000         * modules/imaxdiv: New file.
96002 2006-08-26  Bruno Haible  <bruno@clisp.org>
96004         * m4/inttypes.m4: New file.
96005         * m4/_inttypes_h.m4: Remove file.
96006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
96007         PRI_MACROS_BROKEN.
96008         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
96010         * m4/imaxabs.m4: New file.
96012         * m4/imaxdiv.m4: New file.
96014 2006-08-26  Bruno Haible  <bruno@clisp.org>
96016         * lib/inttypes_.h: New file.
96017         * lib/inttypes.h: Remove file.
96018         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
96020         * lib/imaxabs.c: New file.
96022         * lib/imaxdiv.c: New file.
96024 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96026         New config-h module, so that "make" output needn't be cluttered
96027         by -DHAVE_CONFIG_H.
96028         * MODULES.html.sh (Support for building libraries and executables):
96029         Add config-h.
96030         * modules/config-h: New file.
96031         * gnulib-tool (nl, sed_transform_lib_file): New vars.
96032         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
96033         the config-h module is used.
96035         New configmake module, so that "make" output needn't be cluttered
96036         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
96037         * MODULES.html.sh (Support for building libraries and executables):
96038         Add configmake.
96039         * modules/configmake: New file.
96041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96043         * m4/config-h.m4: New file.
96045 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96047         * config/srclist.txt: Add elisp-comp.
96049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96051         * MODULES.html.sh (Support for building libraries and executables):
96052         Add elisp-comp.
96053         * build-aux/elisp-comp: New file.
96054         * modules/elisp-comp: New file.
96056 2006-08-24  Bruno Haible  <bruno@clisp.org>
96058         * gnulib-tool (func_create_testdir): Use non-default values of
96059         sourcebase and m4base.
96061 2006-08-24  Bruno Haible  <bruno@clisp.org>
96063         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
96064         HTML structure.
96066 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
96068         * modules/openat (Depends-on): Add lchown.
96070 2006-08-23  Bruno Haible  <bruno@clisp.org>
96072         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
96073         of gl_LOCK_EARLY instead of gl_LOCK.
96075 2006-08-23  Bruno Haible  <bruno@clisp.org>
96077         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
96078         on OSF/1 to no.
96079         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
96081 2006-08-23  Bruno Haible  <bruno@clisp.org>
96083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
96084         as unusable.
96086         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
96087         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
96088         (gl_LOCK): New macro.
96090 2006-08-22  Simon Josefsson  <jas@extundo.com>
96092         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
96093         to md5 module.
96095 2006-08-22  Simon Josefsson  <jas@extundo.com>
96097         * MODULES.html.sh: Add "Support for maintaining and release
96098         projects".
96100         * build-aux/gnupload: New file, from coreutils.
96102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96104         Avoid the need for AC_LIBSOURCES in m4 macros.
96105         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
96106         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
96107         * modules/check-version (EXTRA_DIST): Add check-version.h.
96108         * modules/crc (EXTRA_DIST): Add crc.h.
96109         * modules/des (EXTRA_DIST): Add des.h.
96110         * modules/gc (EXTRA_DIST): Add gc.h.
96111         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
96112         * modules/getline (EXTRA_DIST): Add getline.h.
96113         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
96114         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
96115         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
96116         * modules/md2 (EXTRA_DIST): Add md2.h.
96117         * modules/md4 (EXTRA_DIST): Add md4.h.
96118         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
96119         * modules/read-file (EXTRA_DIST): Add read-file.h.
96120         * modules/readline (EXTRA_DIST): Add readline.h.
96121         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
96122         rijndael-api-fst.h.
96124 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96126         * m4/rijndael.m4 (gl_ARCFOUR):
96127         * m4/arctwo.m4 (gl_ARCTWO):
96128         * m4/check-version.m4 (gl_CHECK_VERSION):
96129         * m4/crc.m4 (gl_CRC):
96130         * m4/des.m4 (gl_DES):
96131         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
96132         * m4/gc.m4 (gl_GC):
96133         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
96134         * m4/getline.m4 (gl_FUNC_GETLINE):
96135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
96136         * m4/hmac-md5.m4 (gl_HMAC_MD5):
96137         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
96138         * m4/md2.m4 (gl_MD2):
96139         * m4/md4.m4 (gl_MD4):
96140         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
96141         * m4/read-file.m4 (gl_FUNC_READ_FILE):
96142         * m4/readline.m4 (gl_FUNC_READLINE):
96143         * m4/rijndael.m4 (gl_RIJNDAEL):
96144         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
96145         to get the necessary .h files and whatnot.
96147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96149         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
96150         gnulib rather than the other way around.
96151         * config/srclistvars.sh (COREUTILS): Remove.
96153 2006-08-22  Jim Meyering  <jim@meyering.net>
96155         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
96157         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
96159 2006-08-22  Eric Blake  <ebb9@byu.net>
96161         * modules/regexprops-generic: New file.
96162         * MODULES.html.sh (Support for building documentation): List it.
96164 2006-08-22  Eric Blake  <ebb9@byu.net>
96166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
96167         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
96168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
96169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
96171 2006-08-22  Bruno Haible  <bruno@clisp.org>
96173         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
96174         and lib_LTLIBRARIES like the other lib_* variables.
96176 2006-08-22  Bruno Haible  <bruno@clisp.org>
96178         * build-aux/x-to-1.in: New file, from GNU gettext.
96180 2006-08-22  Bruno Haible  <bruno@clisp.org>
96182         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
96183         <utmpx.h> exists.
96185 2006-08-22  Bruno Haible  <bruno@clisp.org>
96187         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
96188         <utmpx.h> exists.
96190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96192         BeOS portability.
96193         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
96194         exist.
96195         Problem reported by Bruno Haible.
96197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96199         Avoid the need for AC_LIBSOURCES in m4 macros.
96200         * modules/acl (EXTRA_DIST): Add acl.h.
96201         * modules/argmatch (Files): Add m4/argmatch.m4.
96202         (configure.ac): Add gl_ARGMATCH.
96203         (EXTRA_DIST): Renamed from lib_SOURCES, for
96204         consistency with the other modules.  Remove argmatch.c.
96205         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
96206         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
96207         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
96208         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
96209         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
96210         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
96211         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
96212         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
96213         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
96214         * modules/closeout (EXTRA_DIST): Add closeout.h.
96215         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
96216         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
96217         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
96218         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
96219         dirname.h; remove basename.c and stripslash.c.
96220         * modules/exclude (EXTRA_DIST): Add exclude.h.
96221         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
96222         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
96223         * modules/file-type (EXTRA_DIST): Add file-type.h.
96224         * modules/filemode (EXTRA_DIST): Add filemode.h.
96225         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
96226         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96227         * modules/fpending (EXTRA_DIST): Add __fpending.h.
96228         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
96229         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
96230         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
96231         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
96232         * modules/getdate (EXTRA_DIST): Add getdate.c.
96233         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
96234         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
96235         * modules/getpass (EXTRA_DIST): Add getpass.h.
96236         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
96237         * modules/group-member (EXTRA_DIST): Add group-member.h.
96238         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
96239         * modules/hash (EXTRA_DIST): Add hash.h.
96240         * modules/human (EXTRA_DIST): Add human.h.
96241         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
96242         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
96243         * modules/lchown (EXTRA_DIST): Add lchown.h.
96244         * modules/long-options (EXTRA_DIST): Add long-options.h.
96245         * modules/lstat (EXTRA_DIST): Add lstat.h.
96246         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
96247         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
96248         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
96249         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
96250         * modules/memxor (EXTRA_DIST): Add memxor.h.
96251         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
96252         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
96253         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
96254         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
96255         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
96256         * modules/physmem (EXTRA_DIST): Add physmem.h.
96257         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
96258         * modules/posixver (EXTRA_DIST): Add posixver.h.
96259         * modules/quote (EXTRA_DIST): Add quote.h.
96260         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
96261         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
96262         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
96263         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
96264         regex_internal.h regexec.c.
96265         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
96266         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
96267         * modules/same (EXTRA_DIST): Add same.h.
96268         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
96269         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
96270         * modules/savedir (EXTRA_DIST): Add savedir.h.
96271         * modules/sha1 (EXTRA_DIST): Add sha1.h.
96272         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
96273         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
96274         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
96275         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
96276         * modules/strdup (EXTRA_DIST): Add strdup.h.
96277         * modules/strftime (EXTRA_DIST): Add strftime.h.
96278         * modules/strndup (EXTRA_DIST): Add strndup.h.
96279         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
96280         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
96281         * modules/time_r (EXTRA_DIST): Add time_r.h.
96282         * modules/timespec (EXTRA_DIST): Add timespec.h.
96283         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96284         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
96285         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
96286         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
96287         * modules/userspec (EXTRA_DIST): Add userspec.h.
96288         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
96289         * modules/utimens (EXTRA_DIST): Add utimens.h.
96290         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
96291         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
96292         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
96293         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
96294         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
96295         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
96296         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
96297         * modules/yesno (EXTRA_DIST): Add yesno.h.
96299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
96303         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
96304         * m4/dev-ino.m4, same-inode.m4: Remove.
96306         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
96307         * m4/acl.m4 (AC_FUNC_ACL):
96308         * m4/backupfile.m4 (gl_BACKUPFILE):
96309         * m4/c-strtod.m4 (gl_C99_STRTOLD):
96310         * m4/canon-host.m4 (gl_CANON_HOST):
96311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
96312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
96313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
96314         * m4/cloexec.m4 (gl_CLOEXEC):
96315         * m4/close-stream.m4 (gl_CLOSE_STREAM):
96316         * m4/closeout.m4 (gl_CLOSEOUT):
96317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
96318         * m4/dirname.m4 (gl_DIRNAME):
96319         * m4/exclude.m4 (gl_EXCLUDE):
96320         * m4/exitfail.m4 (gl_EXITFAIL):
96321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
96322         * m4/file-type.m4 (gl_FILE_TYPE):
96323         * m4/filemode.m4 (gl_FILEMODE):
96324         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
96325         * m4/fpending.m4 (gl_FUNC_FPENDING):
96326         * m4/fprintftime.m4 (gl_FPRINTFTIME):
96327         * m4/fts.m4 (gl_FUNC_FTS):
96328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
96329         * m4/getdate.m4 (gl_GETDATE):
96330         * m4/gethrxtime.m4 (gl_GETHRXTIME):
96331         * m4/getpagesize.m4 (gl_GETPAGESIZE):
96332         * m4/getpass.m4 (gl_FUNC_GETPASS):
96333         * m4/gettime.m4 (gl_GETTIME):
96334         * m4/getugroups.m4 (gl_GETUGROUPS):
96335         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
96336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
96337         * m4/hard-locale.m4 (gl_HARD_LOCALE):
96338         * m4/hash.m4 (gl_HASH):
96339         * m4/idcache.m4 (gl_IDCACHE):
96340         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
96341         * m4/lchown.m4 (gl_FUNC_LCHOWN):
96342         * m4/long-options.m4 (gl_LONG_OPTIONS):
96343         * m4/lstat.m4 (gl_FUNC_LSTAT):
96344         * m4/md5.m4 (gl_MD5):
96345         * m4/memcasecmp.m4 (gl_MEMCASECMP):
96346         * m4/memcoll.m4 (gl_MEMCOLL):
96347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
96348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
96349         * m4/memxor.m4 (gl_MEMXOR):
96350         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
96351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
96352         * m4/modechange.m4 (gl_MODECHANGE):
96353         * m4/mountlist.m4 (gl_MOUNTLIST):
96354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
96355         * m4/openat.m4 (gl_FUNC_OPENAT):
96356         * m4/pathmax.m4 (gl_PATHMAX):
96357         * m4/physmem.m4 (gl_PHYSMEM):
96358         * m4/posixtm.m4 (gl_POSIXTM):
96359         * m4/posixver.m4 (gl_POSIXVER):
96360         * m4/quote.m4 (gl_QUOTE):
96361         * m4/quotearg.m4 (gl_QUOTEARG):
96362         * m4/readtokens.m4 (gl_READTOKENS):
96363         * m4/readutmp.m4 (gl_READUTMP):
96364         * m4/regex.m4 (gl_REGEX):
96365         * m4/safe-read.m4 (gl_SAFE_READ):
96366         * m4/safe-write.m4 (gl_SAFE_WRITE):
96367         * m4/same.m4 (gl_SAME):
96368         * m4/save-cwd.m4 (gl_SAVE_CWD):
96369         * m4/savedir.m4 (gl_SAVEDIR):
96370         * m4/settime.m4 (gl_SETTIME):
96371         * m4/sha1.m4 (gl_SHA1):
96372         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
96373         * m4/stat-macros.m4 (gl_STAT_MACROS):
96374         * m4/stat-time.m4 (gl_STAT_TIME):
96375         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
96376         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
96377         * m4/strdup.m4 (gl_FUNC_STRDUP):
96378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
96379         * m4/strndup.m4 (gl_FUNC_STRNDUP):
96380         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
96381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
96382         * m4/time_r.m4 (gl_TIME_R):
96383         * m4/timespec.m4 (gl_TIMESPEC):
96384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
96385         * m4/unlinkdir.m4 (gl_UNLINKDIR):
96386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
96387         * m4/userspec.m4 (gl_USERSPEC):
96388         * m4/utimecmp.m4 (gl_UTIMECMP):
96389         * m4/utimens.m4 (gl_UTIMENS):
96390         * m4/xalloc.m4 (gl_XALLOC):
96391         * m4/xgetcwd.m4 (gl_XGETCWD):
96392         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
96393         * m4/xreadlink.m4 (gl_XREADLINK):
96394         * m4/xstrtod.m4 (gl_XSTRTOD):
96395         * m4/yesno.m4 (gl_YESNO):
96396         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
96397         to get the necessary .h files and whatnot.
96399 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
96400             Bruno Haible  <bruno@clisp.org>
96402         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
96403         /bin/sh understanding of '!' conditional negation.
96405 2006-08-21  Jim Meyering  <jim@meyering.net>
96407         * modules/openat (Depends-on): Really alphabetize.
96409         * modules/acl (Depends-on): Add error and quote.
96411         * check-module (find_included_lib_files): Add at-func.c to the
96412         ok-to-include-more-than-once white list.
96414         * modules/openat (Depends-on): Add lstat.  Alphabetize.
96416 2006-08-21  Bruno Haible  <bruno@clisp.org>
96418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96419         Emit a pkgdata_DATA variable only if some snippets add contents to it.
96420         Reported by Martin Lambers <marlam@marlam.de>.
96422 2006-08-21  Bruno Haible  <bruno@clisp.org>
96424         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
96425         specify an installation location, don't emit a noinst_LIBRARIES or
96426         noinst_LTLIBRARIES assignment.
96428 2006-08-21  Bruno Haible  <bruno@clisp.org>
96430         BeOS portability.
96431         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
96432         BeOS has mbrtowc() but no <wctype.h>.
96434 2006-08-21  Bruno Haible  <bruno@clisp.org>
96436         BeOS portability.
96437         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
96438         exist.
96440 2006-08-21  Bruno Haible  <bruno@clisp.org>
96442         BeOS portability.
96443         * lib/mbchar.h: Include <wctype.h> only if it exists.
96445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96447         Remove files that are no longer needed by their respective modules.
96448         * m4/obstack.m4: Remove.
96449         * m4/strerror_r.m4: Remove.
96450         * m4/uint32_t.m4: Remove.
96451         * m4/uintptr_t.m4: Remove.
96452         * m4/ullong_max.m4: Remove.
96453         * m4/xstrtoimax.m4: Remove.
96454         * m4/xstrtoumax.m4: Remove.
96456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
96457         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
96458         dependencies now capture this.
96460         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
96461         Do not use AC_LIBSOURCES, since gnulib modules now do this.
96462         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
96463         * m4/human.m4 (gl_HUMAN): Likewise.
96464         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
96465         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
96467         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
96469         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
96470         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
96471         stdint.
96472         * m4/human.m4 (gl_HUMAN): Likewise.
96473         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
96474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
96475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96476         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96477         * m4/xstrtol (gl_XSTRTOL): Likewise.
96479         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
96480         AC_TYPE_LONG_LONG_INT.
96481         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96482         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
96483         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
96484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96486         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
96487         on stdbool.
96489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
96490         (gl_PREREQ_XSTRTOUL): Remove.
96492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
96494         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
96495         mode.
96497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96499         Add and change modules to make it easier for coreutils to use
96500         gnulib-tool.
96501         * modules/backupfile (Files): Remove m4/d-ino.m4.
96502         (Depends-on): Add d-ino.
96503         * modules/cycle-check (Depends-on): Add stdint.
96504         (lib_SOURCES): Add cycle-check.h.
96505         * modules/d-ino: New module.
96506         * modules/d-type: New module.
96507         * modules/error (Files): Remove m4/strerror_r.m4.
96508         * modules/filemode (Files): Add m4/st_dm_mode.m4.
96509         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
96510         m4/inttypes_h.m4, m4/uintmax_t.m4.
96511         (Depends-on): Add stdint.
96512         (lib_SOURCES): Add fsusage.h.
96513         * modules/getcwd (Files): Remove d-ino.m4.
96514         (Depends-on): Add d-ino.
96515         * modules/getndelim2 (Depends-on): Add stdint.
96516         * modules/glob (Files): Remove m4/d-type.m4.
96517         (Depends-on): Add d-type.
96518         * modules/host-os: New module.
96519         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
96520         m4/inttypes_h.m4, m4/uintmax_t.m4.
96521         * Depends-on: Add stdint.
96522         (lib_SOURCES): Add human.h.
96523         * modules/inttostr (Files): Remove m4/intmax_t.m4,
96524         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
96525         m4/uintmax_t.m4, m4/ulonglong.m4.
96526         (Depends-on): Add stdint.
96527         (EXTRA_DIST): Add inttostr.h.
96528         * modules/lchmod: New module.
96529         * modules/link-follow: New module.
96530         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
96531         (Depends-on): Add lchmod.
96532         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
96533         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
96534         (Depends-on): Add stdint.
96535         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
96536         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
96537         (Depends-on): Add stdint.
96538         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
96539         * modules/perl: New module.
96540         * modules/regex (Depends-on): Add stdint.
96541         * modules/rmdir-errno: New module.
96542         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96543         m4/intmax_t.m4.
96544         (Depends-on): Add stdint.
96545         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96546         m4/uintmax_t.m4.
96547         (Depends-on): Add stdint.
96548         * modules/unlink-busy: New module.
96549         * modules/utimecmp (Depends-on): Add stdint.
96550         * modules/uptime: New module.
96551         * modules/winsz-ioctl: New module.
96552         * modules/winsz-termios: New module.
96553         * modules/xnanosleep (Depends-on): Add nanosleep.
96554         * modules/ullong_max: Remove.
96555         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
96556         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
96557         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
96558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
96559         (Depends-on): Add inttypes.
96560         (lib_SOURCES): Add xstrtol.h.
96561         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
96562         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
96563         * MODULES.html.sh: Move 'assert' into the assert section.
96564         Move 'dummy' into the linking section.
96565         Remove ullong_max.
96566         Add section for compatibility checks for POSIX:2001 functions,
96567         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
96568         winsz-ioctl, and winsz-termios into it.
96569         Add lchmod.
96570         Add top-level Misc section and put host-os, perl, and uptime
96571         into it.
96573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96575         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
96576         now assume the stdint module.  Do not include inttypes.h.
96577         * lib/fsusage.h: Likewise.
96578         * lib/getndelim2.c: Likewise.
96579         * lib/human.h: Likewise.
96580         * lib/inttostr.h: Likewise.
96581         * lib/obstack.c: Likewise.
96582         * lib/regex_internal.h: Likewise.
96583         * lib/tempname.c: Likewise.
96584         * lib/utimecmp.c: Likewise.
96585         * lib/xstrtol.h: Likewise.
96587         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
96589         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
96590         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
96591         * lib/xtime.h: Likewise.
96593 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96595         * modules/openat (Files): Add lib/fchmodat.c.
96596         Fixes problem reported by Jay Youngman.
96598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96600         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
96601         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
96603 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
96604             Bruno Haible  <bruno@clisp.org>
96606         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
96607         and is a script that invokes bison. Tighten the code. Add comments.
96609 2006-08-18  Jim Meyering  <jim@meyering.net>
96611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
96612         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
96613         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
96614         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
96616 2006-08-18  Bruno Haible  <bruno@clisp.org>
96618         * modules/bison-i18n: New file.
96619         * MODULES.html.sh (Internationalization functions): Add it.
96621 2006-08-18  Bruno Haible  <bruno@clisp.org>
96623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
96624         sys/statvfs.h. When getmntinfo was found, check its declaration and
96625         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
96627 2006-08-18  Bruno Haible  <bruno@clisp.org>
96629         * m4/bison-i18n.m4: New file, from bison.
96631 2006-08-18  Bruno Haible  <bruno@clisp.org>
96633         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
96634         (ME_DUMMY): Treat "kernfs" as a dummy.
96635         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
96637 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96639         Update from coreutils.
96641         2006-08-15  Jim Meyering  <jim@meyering.net>
96643         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
96645         2006-01-17  Jim Meyering  <jim@meyering.net>
96647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
96649         2006-01-11  Jim Meyering  <jim@meyering.net>
96651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
96652         Check for the lchmod function.
96654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96656         Update from coreutils.
96658         * lib/__fpending.h: Add copyright notice.
96659         * lib/fprintftime.h: Likewise.
96660         * lib/savedir.c: Use (C) in copyright notice.
96661         * lib/savedir.h: Likewise.
96663         2006-08-15  Jim Meyering  <jim@meyering.net>
96665         * lib/at-func.c: New file, with the logic of all emulated at-functions.
96666         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
96667         in support of the EXPECTED_ERRNO macro.
96668         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
96669         definitions.  Instead, define the appropriate symbols and include
96670         "at-func.c".
96671         * lib/mkdirat.c (mkdirat): Likewise.
96672         * lib/fchmodat.c (fchmodat): Likewise.
96673         (ENOSYS): Remove definition.
96674         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
96675         it.  Don't include "unistd--.h" -- it wasn't ever used.
96677         2006-01-17  Jim Meyering  <jim@meyering.net>
96679         Rewrite fts.c not to change the current working directory,
96680         by using openat, fstatat, fdopendir, etc..
96682         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
96683         (HAVE_OPENAT_SUPPORT): Define.
96684         [_LIBC] (fchdir): Don't undef or define; no longer used.
96685         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
96686         Now, this `function' always succeeds, and consumes its file descriptor
96687         parameter -- so callers must not close such FDs.  Update callers.
96688         (diropen_fd, opendirat, cwd_advance_fd): New functions.
96689         (diropen): Add parameter, SP.  Adjust all callers.
96690         Implement using diropen_fd, rather than open.
96691         (fts_open): Initialize new member, fts_cwd_fd.
96692         Remove fts_rft-setting code.
96693         (fts_close): Close fts_cwd_fd, if necessary.
96694         (__opendir2): Define in terms of opendir or opendirat,
96695         depending on whether the FST_NOCHDIR flag is set.
96696         (fts_build): Since fts_safe_changedir consumes its FD, and since
96697         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
96698         and close the dup'd file descriptor upon failure.
96699         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
96700         (fts_safe_changedir): Tweak semantics to reflect that this function
96701         now calls cwd_advance_fd and hence consumes its FD argument.
96702         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
96703         [struct FTS] (fts_rft): Remove now-unused member.
96704         [struct FTS] (fts_cycle.state): Improve comment.
96706         * lib/openat.c (openat_needs_fchdir): New function.
96707         * lib/openat.h (openat_needs_fchdir): Declare it.
96709 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96711         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
96712         Problem and fix reported by Pádraig Brady in
96713         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
96715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96717         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
96719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96721         * lib/memcoll.c (memcoll): Optimize for the common case where the
96722         arguments are bytewise equal.
96724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96726         * doc/regexprops-generic.texi: Add a copyright notice.
96728 2006-08-15  Bruno Haible  <bruno@clisp.org>
96730         * modules/tmpdir (License): Change to LGPL.
96732 2006-08-15  Bruno Haible  <bruno@clisp.org>
96734         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
96735         module.
96737 2006-08-14  Simon Josefsson  <jas@extundo.com>
96739         * config/srclist.txt: Add gnupload.
96741 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96743         Change copyright notice from LGPL 2 to GPL 2, since that's the
96744         standard form used in the gnulib repository.
96745         * tests/test-lock.c: Likewise.
96746         * tests/test-stdint.c: Likewise.
96747         * tests/test-tls.c: Likewise.
96749         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
96750         prelude-manager.  User shorter URLs for GNU projects, without '?'.
96751         Add copyright notice.
96753         * check-module: Add copyright notice.  Output a copyright
96754         notice if "--version" is specified.
96755         * modules/COPYING: New file.
96756         * tests/test-getaddrinfo.c: Add copyright notice.
96757         * tests/test-verify.c: Likewise.
96759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96761         Change copyright notice from LGPL 2 to GPL 2, since that's the
96762         standard form used in the gnulib repository.
96763         * lib/lock.c: LGPL -> GPL.
96764         * lib/lock.h: Likewise.
96765         * lib/strnlen1.c: Likewise.
96766         * lib/strnlen1.h: Likewise.
96767         * lib/tls.c: Likewise.
96768         * lib/tls.h: Likewise.
96769         * lib/tmpdir.c: Likewise.
96771         * lib/TODO: Remove; this belongs only in coreutils.
96773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96775         Add copyright notices to long-enough files that lack them, since
96776         otherwise the files aren't clearly free.  Use the same notice that
96777         getdate.texi already uses.
96778         * doc/alloca-opt.texi: Add copyright notice.
96779         * doc/alloca.texi: Likewise.
96780         * doc/ctime.texi: Likewise.
96781         * doc/functions.texi: Likewise.
96782         * doc/gcd.texi: Likewise.
96783         * doc/gnulib-tool.texi: Likewise.
96784         * doc/inet_ntoa.texi: Likewise.
96785         * doc/visibility.texi: Likewise.
96787         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
96788         * doc/quote.texi: Add copyright notice.
96790         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
96791         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
96792         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
96793         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
96794         is now obsolete, and give a pointer to the Sun list.
96795         Add copyright notice.
96797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96799         * config/srclistvars.sh: Add copyright notice.
96801 2006-08-14  Eric Blake  <ebb9@byu.net>
96803         Import the following change from libc:
96805         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
96807         Upstream bug 2997.
96808         * lib/misc/error.c: Add space between program name and message if file
96809         name is missing.
96811 2006-08-12  Karl Berry  <karl@gnu.org>
96813         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
96814         remove, these originate in gnulib now.
96816 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96818         * doc/Makefile (standards.info standards.html standards.dvi):
96819         Also depend on make-stds.texi.
96821 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
96823         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
96824         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
96826         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
96827         in wchar_t.  Problem reported by Eric Blake.
96829         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
96830         LEN is smaller than SIZE.  Suggested by Bruno Haible.
96831         Also, help the compiler to keep LEN in a register.
96833 2006-08-11  Eric Blake  <ebb9@byu.net>
96835         * users.txt: Sort.  Add tar.
96837 2006-08-11  Bruno Haible  <bruno@clisp.org>
96839         * users.txt: New file.
96841 2006-08-11  Bruno Haible  <bruno@clisp.org>
96843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
96844         before <wchar.h>. Needed for OSF/1 and BSD/OS.
96846 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96848         * modules/snprintf (Depends-on): Remove minmax.
96849         (Maintainer): Add self and Bruno.
96851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96853         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96854         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96855         (EOVERFLOW): Define if the system does not.
96856         Do not include "minmax.h"; it wasn't used.
96857         (snprintf): Don't assume size_t promotes to an unsigned type.
96858         Fix bug when generated string was too long for the buffer: the
96859         buffer's contents are supposed to be the initial prefix of the
96860         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96861         exceeds INT_MAX; do the check ourselves.
96863         Import the following changes from libc:
96865         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96867         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96868         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96869         set wc to the byte which couldn't be converted.
96870         (re_string_reconstruct): Don't clear valid_raw_len before calling
96871         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96872         tip_context using re_string_context_at.
96874         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96876         * lib/posix/regex.h: g++ still cannot handled [restrict].
96878         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96880         * lib/posix/regex.h: Remove special handling for VMS.
96882 2006-08-10  Jim Meyering  <jim@meyering.net>
96884         * modules/same-inode: New module.
96885         * modules/dev-ino: New module.
96886         * modules/cycle-check: Depend on these modules, rather than simply
96887         including their .h files.
96888         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96889         required via m4/cycle-check.m4.
96890         * modules/same: Depend on new same-inode module, rather than
96891         including same-inode.h.
96892         * modules/chdir-safer: New file.
96894         * modules/chown (Depends-on): Add stat-macros.
96896 2006-08-10  Jim Meyering  <jim@meyering.net>
96898         * m4/cycle-check.m4: New file.
96899         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96900         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96902 2006-08-10  Eric Blake  <ebb9@byu.net>
96904         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96905         in from original proposal.
96907 2006-08-10  Eric Blake  <ebb9@byu.net>
96908         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96910         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96911         namespace.
96913 2006-08-10  Bruno Haible  <bruno@clisp.org>
96915         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96916         as well.
96918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96920         Sync from coreutils.
96922         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96924         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96925         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96927 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96929         * modules/restrict: Remove; no longer needed now that we assume
96930         Autoconf 2.59 or later.
96931         * MODULES.html.sh: Remove 'restrict'.
96932         * modules/argp (Depends-on): Remove 'restrict'.
96933         * modules/base64 (Depends-on): Likewise.
96934         * modules/gc (Depends-on): Likewise.
96935         * modules/getaddrinfo (Depends-on): Likewise.
96936         * modules/glob (Depends-on): Likewise.
96937         * modules/inet_ntop (Depends-on): Likewise.
96938         * modules/inet_pton (Depends-on): Likewise.
96939         * modules/memxor (Depends-on): Likewise.
96940         * modules/regex (Depends-on): Likewise.
96941         * modules/strtok_r (Depends-on): Likewise.
96942         * modules/time_r (Depends-on): Likewise.
96944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96946         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96947         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96949         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96951         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96952         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96953         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96955         Merge from coreutils.
96956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96957         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96959         * m4/time_r.m4 (gl_TIME_R): Likewise.
96961 2006-08-09  Karl Berry  <karl@gnu.org>
96963         * config/srclist.txt: no more gettext-tools, per Bruno.
96965 2006-08-08  Eric Blake  <ebb9@byu.net>
96967         * modules/verror: New module.
96968         * MODULES.html.sh: Document it.
96970 2006-08-08  Eric Blake  <ebb9@byu.net>
96972         * lib/verror.h, lib/verror.c: New files.
96974 2006-08-08  Eric Blake  <ebb9@byu.net>
96976         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96977         verror_at_line output complies with GNU Coding Standards even when
96978         file is NULL.
96980 2006-08-07  Bruno Haible  <bruno@clisp.org>
96982         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96983         versions of AIX.
96984         Reported by Ralf Wildenhues.
96986 2006-08-07  Bruno Haible  <bruno@clisp.org>
96988         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96989         in an AC_DEFUN. Needed so that the autoconf snippets can use
96990         AC_REQUIRE.
96992 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96995         Initialize pkgdata_DATA.
96996         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96997         overriding it.
96999 2006-08-06  Eric Blake  <ebb9@byu.net>
97001         * lib/error.h: Fold in some upstream changes from glibc.
97002         * lib/error.c: Likewise.
97004 2006-08-04  Bruno Haible  <bruno@clisp.org>
97006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97007         Make the mostlyclean-local rule depend on mostlyclean-generic.
97008         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
97010 2006-07-31  Bruno Haible  <bruno@clisp.org>
97012         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
97013         <stdlib.h>, <string.h>.
97015 2006-07-30  Bruno Haible  <bruno@clisp.org>
97017         * modules/readlink (License): Change to LGPL.
97019 2006-07-30  Bruno Haible  <bruno@clisp.org>
97021         * modules/javaversion (Makefile.am): Distribute javaversion.java and
97022         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
97023         set PKGDATADIR to point to it.
97025 2006-07-30  Bruno Haible  <bruno@clisp.org>
97027         * modules/csharpexec (configure.ac): Comment out macro invocation.
97028         * modules/javaexec (configure.ac): Likewise.
97029         * modules/javacomp-script (configure.ac): Likewise.
97031         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
97033 2006-07-30  Bruno Haible  <bruno@clisp.org>
97035         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
97036         linked-list.
97038 2006-07-30  Bruno Haible  <bruno@clisp.org>
97040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
97042 2006-07-30  Bruno Haible  <bruno@clisp.org>
97044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97045         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
97046         get removed.
97048 2006-07-29  Bruno Haible  <bruno@clisp.org>
97050         Make it possible for gnulib-tool to work with locally modified or
97051         augmented gnulib repositories.
97052         * gnulib-tool (func_usage): Document --local-dir option.
97053         (local_gnulib_dir): New variable.
97054         Handle --local-dir option.
97055         (func_lookup_file): New function.
97056         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
97057         (func_get_description, func_get_filelist, func_get_description,
97058         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
97059         func_get_automake_snippet, func_get_include_directive,
97060         func_get_license, func_get_maintainer): Use func_lookup_file.
97061         (func_import, func_create_testdir): Use func_lookup_file.
97063 2006-07-29  Bruno Haible  <bruno@clisp.org>
97065         * modules/setenv (Depends-on): Add unistd.
97067 2006-07-29  Bruno Haible  <bruno@clisp.org>
97069         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
97071 2006-07-29  Bruno Haible  <bruno@clisp.org>
97073         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
97075 2006-07-29  Bruno Haible  <bruno@clisp.org>
97077         * gnulib-tool (import, update): If there is no Makefile.am, look at
97078         aclocal.m4, instead of bailing out.
97080 2006-07-29  Bruno Haible  <bruno@clisp.org>
97082         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
97083         Categorize the options by when they are useful.
97085 2006-07-29  Bruno Haible  <bruno@clisp.org>
97087         * gnulib-tool (func_usage): Document option --no-libtool.
97088         Handle option --no-libtool.
97089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
97090         for changed semantics of $libtool variable.
97091         (func_import): Likewise. If libtool is not used, show this through
97092         an option --no-libtool.
97093         (func_create_testdir): Update.
97095 2006-07-29  Bruno Haible  <bruno@clisp.org>
97097         * gnulib-tool (func_import): Extend error message about missing
97098         --doc-base.
97100 2006-07-29  Bruno Haible  <bruno@clisp.org>
97102         * gnulib-tool (func_import): Don't create the $docbase directory if
97103         there is no file to store there.
97105 2006-07-29  Bruno Haible  <bruno@clisp.org>
97107         * gnulib-tool (autoconf_minversion): If a --dir option is given and
97108         relevant, look for configure.ac there, not in the current directory.
97109         Also use a simple search for AC_PREREQ, not "autoconf --trace".
97111 2006-07-29  Bruno Haible  <bruno@clisp.org>
97113         * gnulib-tool (SORT): New variable.
97114         (func_usage): Undocument --assume-autoconf option.
97115         Remove --assume-autoconf option handling.
97116         (autoconf_minversion): Determine from the contents of configure.ac.
97117         (func_import): Remove autoconf_minversion handling.
97118         Suggested by Eric Blake.
97120 2006-07-29  Bruno Haible  <bruno@clisp.org>
97122         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
97124 2006-07-29  Bruno Haible  <bruno@clisp.org>
97126         * config/srclist.txt (*setenv.[ch]): Remove rules.
97128 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97130         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
97132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97134         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
97135         arpa/inet.h.
97137 2006-07-28  Simon Josefsson  <jas@extundo.com>
97139         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
97140         * modules/inet_pton (Depends-on): Likewise.
97142 2006-07-28  Simon Josefsson  <jas@extundo.com>
97144         * m4/netinet_in_h.m4: New file.
97146 2006-07-28  Simon Josefsson  <jas@extundo.com>
97148         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
97149         #include's.
97151 2006-07-28  Simon Josefsson  <jas@extundo.com>
97153         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
97154         #include's.
97156 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
97158         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
97159         setgid on directories only if they set these bits.
97160         * lib/modechange.h: Remove obsolete comment about masks.
97162 2006-07-28  Eric Blake  <ebb9@byu.net>
97164         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
97165         macro expansion.
97167 2006-07-28  Bruno Haible  <bruno@clisp.org>
97169         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
97171 2006-07-28  Bruno Haible  <bruno@clisp.org>
97173         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
97175 2006-07-28  Bruno Haible  <bruno@clisp.org>
97177         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
97178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
97179         Define fallbacks.
97180         Avoids link error on FreeBSD 4.x.
97181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97183         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
97184         encoding.
97185         * lib/mbswidth.c (iswcntrl): Likewise.
97187 2006-07-27  Bruno Haible  <bruno@clisp.org>
97189         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
97190         test.
97192 2006-07-27  Bruno Haible  <bruno@clisp.org>
97194         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
97195         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
97196         defined.
97198 2006-07-26  Eric Blake  <ebb9@byu.net>
97200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
97202 2006-07-26  Eric Blake  <ebb9@byu.net>
97204         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
97205         like mingw that lack mkstemp.
97206         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
97207         avoid compilation warning on mingw.
97209 2006-07-26  Bruno Haible  <bruno@clisp.org>
97211         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
97212         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
97213         INT_FAST*_MIN, INTPTR_MIN.
97215 2006-07-25  Bruno Haible  <bruno@clisp.org>
97217         * modules/version-etc (Depends-on): Add stdarg.
97219 2006-07-25  Bruno Haible  <bruno@clisp.org>
97221         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
97222         complex commands.
97224 2006-07-25  Bruno Haible  <bruno@clisp.org>
97226         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
97227         defined in <stdarg.h> or config.h.
97229 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
97232         (gl_STDIO_SAFER): Remove.
97234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97236         * MODULES.html.sh (File stream based Input/Output):
97237         Add fopen-safer, tmpfile-safer; remove stdio-safer.
97238         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
97239         * modules/fopen-safer, modules/tmpfile-safer: New files.
97240         * modules/stdio-safer: Remove.
97242 2006-07-24  Bruno Haible  <bruno@clisp.org>
97244         * modules/tmpdir: New file.
97245         * MODULES.html.sh (File system functions): Add it.
97247 2006-07-24  Bruno Haible  <bruno@clisp.org>
97249         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
97250         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
97252 2006-07-24  Bruno Haible  <bruno@clisp.org>
97254         * modules/clean-temp: New file.
97256 2006-07-24  Bruno Haible  <bruno@clisp.org>
97258         * m4/tmpdir.m4: New file, from GNU gettext.
97260 2006-07-24  Bruno Haible  <bruno@clisp.org>
97262         * lib/tmpdir.h: New file, from GNU gettext.
97263         * lib/tmpdir.c: New file, from GNU gettext.
97265 2006-07-24  Bruno Haible  <bruno@clisp.org>
97267         * lib/clean-temp.h: New file, from GNU gettext.
97268         * lib/clean-temp.c: New file, from GNU gettext.
97270 2006-07-23  Eric Blake  <ebb9@byu.net>
97272         * modules/stdio-safer (Files): Add tmpfile-safer.c.
97273         (Depends-on): Add binary-io.
97275 2006-07-23  Eric Blake  <ebb9@byu.net>
97277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
97279 2006-07-23  Eric Blake  <ebb9@byu.net>
97281         * lib/tmpfile-safer.c: New file.
97282         * lib/stdio-safer.h (fopen_safer): Add prototype.
97283         * lib/stdio--.h (tmpfile): Make safer.
97285 2006-07-23  Bruno Haible  <bruno@clisp.org>
97287         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
97288         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
97289         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
97290         gl_linked_remove_at): Use it.
97292 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97293         and Simon Josefsson <jas@extundo.com>
97295         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
97297         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
97299 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97301         * modules/close-stream: New file.
97302         * modules/closeout (Description): Make it clear that it exits
97303         with a diagnostic on error.
97304         (Depends-on): Add close-stream.  Remove fpending, stdbool.
97305         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
97307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97309         * m4/close-stream.m4: New file.
97311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97313         * lib/close-stream.c, lib/close-stream.h: New files.
97315 2006-07-22  Bruno Haible  <bruno@clisp.org>
97317         Merge from GNU gettext 0.15.
97319         2006-05-01  Bruno Haible  <bruno@clisp.org>
97321                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
97323         2006-07-22  Bruno Haible  <bruno@clisp.org>
97325                 * modules/javaversion: New file.
97326                 * MODULES.html.sh (Java): Add javaversion.
97328         2006-03-12  Bruno Haible  <bruno@clisp.org>
97330                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
97332         2005-12-04  Bruno Haible  <bruno@clisp.org>
97334                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
97335                 (untested).
97337         2006-06-21  Bruno Haible  <bruno@clisp.org>
97339                 Avoid warnings from recent versions of mcs.
97340                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
97341                 -o, -L, -r any more. Use options documented since mcs-1.0
97342                 instead. Similarly for -g.
97344         2005-12-04  Bruno Haible  <bruno@clisp.org>
97346                 * build-aux/csharpcomp.sh.in: Suffix for resources is
97347                 .resources, not .resource.
97349         2005-07-09  Bruno Haible  <bruno@clisp.org>
97351                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
97352                 add a .dll suffix.
97353                 Reported by Mark Junker <mjscod@gmx.de>.
97355         2006-07-22  Bruno Haible  <bruno@clisp.org>
97357                 * modules/gettext: Upgrade to gettext-0.15.
97358                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
97359                 m4/visibility.m4.
97360                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
97362 2006-07-22  Bruno Haible  <bruno@clisp.org>
97364         Merge from GNU gettext 0.15.
97366         2006-03-25  Bruno Haible  <bruno@clisp.org>
97368                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
97370         2006-07-21  Bruno Haible  <bruno@clisp.org>
97372                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
97373                 "1.1".
97375         2006-05-09  Bruno Haible  <bruno@clisp.org>
97377                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
97378                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
97379                 for the conftestver execution.
97381         2006-05-01  Bruno Haible  <bruno@clisp.org>
97383                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
97384                 optional target-version argument. Verify that the compiler
97385                 groks source of the specified source-version, or add -source
97386                 option as necessary. Verify that the compiler produces
97387                 bytecode in the specified target-version, or add -target and
97388                 -source options as necessary. Make the result of the test
97389                 available as variable CONF_JAVAC. Also log error output in
97390                 config.log.
97392         2006-03-11  Bruno Haible  <bruno@clisp.org>
97394                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
97396         2006-05-09  Bruno Haible  <bruno@clisp.org>
97398                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
97399                 CLASSPATH_SEPARATOR to a semicolon.
97401         2006-03-12  Bruno Haible  <bruno@clisp.org>
97403                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
97404                 available as variable CONF_JAVA, for subsequent autoconf
97405                 tests. Also log error output in config.log.
97407         2006-07-19  Bruno Haible  <bruno@clisp.org>
97409                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
97410                 that getline works on glibc2 systems. Needed to avoid trouble
97411                 in relocatable.c.
97412                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
97414         2005-12-04  Bruno Haible  <bruno@clisp.org>
97416                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
97417                 launcher (untested).
97419         2005-12-04  Bruno Haible  <bruno@clisp.org>
97421                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
97423         2006-07-22  Bruno Haible  <bruno@clisp.org>
97425                 * gettext.m4: Update from GNU gettext-0.15.
97426                 * nls.m4: Likewise.
97427                 * po.m4: Likewise.
97428                 * inttypes-pri.m4: Likewise.
97429                 * inttypes-h.m4: Renamed from inttypes.m4.
97430                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
97432 2006-07-22  Bruno Haible  <bruno@clisp.org>
97434         Merge from GNU gettext 0.15.
97436         2005-07-05  Bruno Haible  <bruno@clisp.org>
97438                 * printf-args.c (printf_fetchargs): Work around broken
97439                 definition of wint_t on mingw.
97441         2005-02-12  Bruno Haible  <bruno@clisp.org>
97443                 * xallocsa.h: Add extern "C" for C++.
97445         2006-05-17  Bruno Haible  <bruno@clisp.org>
97447                 Cygwin portability.
97448                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
97450         2006-04-30  Bruno Haible  <bruno@clisp.org>
97452                 * progreloc.c: Include <mach-o/dyld.h> if available.
97453                 (find_executable): Use _NSGetExecutablePath when possible.
97455         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
97457                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
97458                 function.
97460         2005-12-29  Bruno Haible  <bruno@clisp.org>
97462                 * progreloc.c (set_program_name_and_installdir): Fix
97463                 compilation error.
97465         2005-12-04  Bruno Haible  <bruno@clisp.org>
97467                 Cygwin portability.
97468                 * progreloc.c: Include <windows.h> also on Cygwin.
97469                 (find_executable): Add support for Cygwin.
97470                 (set_program_name_and_installdir): Handle also platforms with
97471                 nonempty EXEEXT.
97473         2006-07-11  Bruno Haible  <bruno@clisp.org>
97475                 * javacomp.c: Fix a comment.
97476                 Reported by Jim Meyering.
97478         2006-04-30  Bruno Haible  <bruno@clisp.org>
97480                 * javacomp.h (compile_java_class): Add source_version,
97481                 target_version arguments.
97482                 * javacomp.c: Rewritten to choose only a compiler that
97483                 respects the specified source_version and target_version.
97485         2006-06-27  Bruno Haible  <bruno@clisp.org>
97487                 Assume correct S_ISDIR macro.
97488                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
97490         2006-07-22  Bruno Haible  <bruno@clisp.org>
97492                 * javaversion.h: New file, from GNU gettext.
97493                 * javaversion.c: New file, from GNU gettext.
97494                 * javaversion.java: New file, from GNU gettext.
97495                 * javaversion.class: New file, from GNU gettext.
97497         2006-05-17  Bruno Haible  <bruno@clisp.org>
97499                 Cygwin portability.
97500                 * javaexec.c (execute_java_class): Test for jview program
97501                 also on Cygwin.
97503         2006-04-09  Bruno Haible  <bruno@clisp.org>
97505                 * fatal-signal.c: Don't include string.h.
97506                 (at_fatal_signal): Use a copying loop instead of memcpy.
97508         2005-12-04  Bruno Haible  <bruno@clisp.org>
97510                 * csharpexec.c: Add support for 'clix' launcher (untested).
97511                 (execute_csharp_using_sscli): New function.
97512                 (execute_csharp_program): Call it.
97514         2006-06-21  Bruno Haible  <bruno@clisp.org>
97516                 Avoid warnings from recent versions of mcs.
97517                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
97518                 -o, -L, -r any more. Use options documented since mcs-1.0
97519                 instead. Similarly for -g.
97521         2005-07-09  Bruno Haible  <bruno@clisp.org>
97523                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
97524                 add a .dll suffix.
97525                 Reported by Mark Junker <mjscod@gmx.de>.
97527         2006-06-17  Bruno Haible  <bruno@clisp.org>
97529                 * config.charset: Update for NetBSD 3.0.
97531         2006-05-17  Bruno Haible  <bruno@clisp.org>
97533                 Cygwin portability.
97534                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
97536         2006-05-16  Bruno Haible  <bruno@clisp.org>
97538                 * localcharset.c [CYGWIN]: Include <windows.h>.
97539                 (get_charset_aliases): For Cygwin, return the same CPxxx
97540                 aliases list as under WIN32.
97541                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
97542                 the environment variables. Fall back to GetACP().
97544         2006-04-05  Bruno Haible  <bruno@clisp.org>
97546                 * config.charset: Update Juan Manuel Guerrero's address.
97548         2005-02-12  Bruno Haible  <bruno@clisp.org>
97550                 * allocsa.h: Add extern "C" for C++.
97552         2005-02-10  Bruno Haible  <bruno@clisp.org>
97554                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
97555                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
97557         2006-07-22  Bruno Haible  <bruno@clisp.org>
97559                 * gettext.h: Update to GNU gettext-0.15.
97561 2006-07-22  Bruno Haible  <bruno@clisp.org>
97563         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
97564         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
97565         lib-prefix.m4, longdouble.m4, ssize_t.m4.
97567 2006-07-21  Eric Blake  <ebb9@byu.net>
97569         * modules/stdlib-safer: New file.
97570         * MODULES.html.sh (File stream based Input/Output): Add
97571         stdlib-safer.
97573 2006-07-21  Eric Blake  <ebb9@byu.net>
97575         * lib/stdlib-safer.h: New file from coreutils, required by
97576         stdlib--.h.
97578 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
97580         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
97582 2006-07-20  Bruno Haible  <bruno@clisp.org>
97584         * gnulib-tool: Recognize new option --assume-autoconf.
97585         (autoconf_minversion): New variable.
97586         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
97588 2006-07-20  Bruno Haible  <bruno@clisp.org>
97590         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
97592 2006-07-19  Derek R. Price  <derek@ximbiot.com>
97594         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
97595         Reindent and repaginate.
97597 2006-07-19  Derek Price  <derek@ximbiot.com>
97599         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
97600         Correct grammar.
97602 2006-07-17  Bruno Haible  <bruno@clisp.org>
97604         * modules/list: New file.
97605         * modules/array-list: New file.
97606         * modules/carray-list, modules/carray-list-tests: New files.
97607         * modules/linked-list, modules/linked-list-tests: New files.
97608         * modules/avltree-list, modules/avltree-list-tests: New files.
97609         * modules/rbtree-list, modules/rbtree-list-tests: New files.
97610         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
97611         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
97612         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
97613         * modules/oset: New file.
97614         * modules/array-oset: New file.
97615         * modules/avltree-oset, modules/avltree-oset-tests: New files.
97616         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
97617         * tests/test-carray_list.c: New file.
97618         * tests/test-linked_list.c: New file.
97619         * tests/test-avltree_list.c: New file.
97620         * tests/test-rbtree_list.c: New file.
97621         * tests/test-linkedhash_list.c: New file.
97622         * tests/test-avltreehash_list.c: New file.
97623         * tests/test-rbtreehash_list.c: New file.
97624         * tests/test-avltree_oset.c: New file.
97625         * tests/test-rbtree_oset.c: New file.
97626         * MODULES.html.sh (Container data structures): New section.
97628 2006-07-17  Bruno Haible  <bruno@clisp.org>
97630         * m4/gl_list.m4: New file.
97632 2006-07-17  Bruno Haible  <bruno@clisp.org>
97634         * lib/gl_list.h: New file.
97635         * lib/gl_list.c: New file.
97636         * lib/gl_array_list.h: New file.
97637         * lib/gl_array_list.c: New file.
97638         * lib/gl_carray_list.h: New file.
97639         * lib/gl_carray_list.c: New file.
97640         * lib/gl_linked_list.h: New file.
97641         * lib/gl_linked_list.c: New file.
97642         * lib/gl_anylinked_list1.h: New file.
97643         * lib/gl_anylinked_list2.h: New file.
97644         * lib/gl_avltree_list.h: New file.
97645         * lib/gl_avltree_list.c: New file.
97646         * lib/gl_anyavltree_list1.h: New file.
97647         * lib/gl_anyavltree_list2.h: New file.
97648         * lib/gl_rbtree_list.h: New file.
97649         * lib/gl_rbtree_list.c: New file.
97650         * lib/gl_anyrbtree_list1.h: New file.
97651         * lib/gl_anyrbtree_list2.h: New file.
97652         * lib/gl_anytree_list1.h: New file.
97653         * lib/gl_anytree_list2.h: New file.
97654         * lib/gl_linkedhash_list.h: New file.
97655         * lib/gl_linkedhash_list.c: New file.
97656         * lib/gl_anyhash_list1.h: New file.
97657         * lib/gl_anyhash_list2.h: New file.
97658         * lib/gl_avltreehash_list.h: New file.
97659         * lib/gl_avltreehash_list.c: New file.
97660         * lib/gl_rbtreehash_list.h: New file.
97661         * lib/gl_rbtreehash_list.c: New file.
97662         * lib/gl_anytreehash_list1.h: New file.
97663         * lib/gl_anytreehash_list2.h: New file.
97665         * lib/gl_oset.h: New file.
97666         * lib/gl_oset.c: New file.
97667         * lib/gl_array_oset.h: New file.
97668         * lib/gl_array_oset.c: New file.
97669         * lib/gl_avltree_oset.h: New file.
97670         * lib/gl_avltree_oset.c: New file.
97671         * lib/gl_rbtree_oset.h: New file.
97672         * lib/gl_rbtree_oset.c: New file.
97673         * lib/gl_anytree_oset.h: New file.
97675 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97677         * m4/mkancesdirs.m4: New file.
97678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
97679         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
97680         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
97681         it.
97683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97685         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
97686         * lib/mkancesdirs.h: New files.
97687         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
97688         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
97689         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
97690         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
97691         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
97692         callers changed.  Revamp internals significantly, by not
97693         attempting to create directories that are temporarily more
97694         permissive than the final results.  Do not attempt to use
97695         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
97696         This removes some race conditions, fixes some bugs, and simplifies
97697         things.  Use new dirchownmod function to do owner and mode changes.
97698         * lib/mkdir-p.h: Likewise.
97699         * lib/modechange.c (octal_to_mode): New function.
97700         (struct mode_change): New member mentioned.
97701         (make_node_op_equals): New arg mentioned.  All callers changed.
97702         (mode_compile): Keep track of which mode bits the user has explicitly
97703         mentioned.
97704         (mode_adjust): New arg DIR, so that we implement the X op correctly.
97705         New arg PMODE_BITS, to keep track of which mode bits the user
97706         mentioned; it treats S_ISUID and S_ISGID speciall.
97707         All callers changed.
97708         * lib/modechange.h: Likewise.
97710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97712         * MODULES.html.sh: Add mkancestors.
97713         * modules/mkancesdirs: New module.
97714         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
97715         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
97716         The chdir-safer and afs files are now orphans; I'll remove them
97717         unless someone speaks up.
97718         Add lib/dirchownmod.c, lib/dirchownmod.h.
97719         (Depends-on): Remove alloca, chown, save-cwd, dirname.
97720         Add lchown, mkancesdirs.
97721         (Maintainer): Add self.
97723 2006-07-15  Karl Berry  <karl@gnu.org>
97725         * gnulib-tool: help message wording/arrangement.
97727 2006-07-14  Simon Josefsson  <jas@extundo.com>
97729         * doc/gnulib.texi (Libtool and Windows): New section.
97731 2006-07-12  Simon Josefsson  <jas@extundo.com>
97733         * modules/gendocs (License): Fix license, approved by Karl.
97735 2006-07-12  Eric Blake  <ebb9@byu.net>
97737         * MODULES.html.sh: Add gendocs.
97739 2006-07-11  Eric Blake  <ebb9@byu.net>
97741         * modules/fdl: New module, to install doc/fdl.texi.
97742         * MODULES.html.sh: Add new section for documentation modules.
97743         * gnulib-tool: Avoid space-tab.
97744         (--doc-base): New option, to manage files from doc.
97746 2006-07-11  Eric Blake  <ebb9@byu.net>
97748         * m4/absolute-header.m4: Fix comments to match recent change.
97750 2006-07-11  Eric Blake  <ebb9@byu.net>
97752         * gnulib-tool: List --doc-base before --tests-base.
97754 2006-07-11  Derek R. Price  <derek@ximbiot.com>
97756         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
97758 2006-07-11  Bruno Haible  <bruno@clisp.org>
97760         * README: Mention where to put documentation.
97762 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97764         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
97766 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
97769         to stdint.m4.
97771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97773         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
97774         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
97775         "no/such/file/stdint.h" when there is no such file, so that
97776         the resulting C code can be parsed by dodgy compilers.
97777         Problems reported by Bob Proulx.
97779 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97781         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
97782         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97783         macros into the GNU _D_EXACT_NAMLEN.
97784         * lib/savedir.c:  Likewise.
97785         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
97787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97788         and Paul Eggert  <eggert@cs.ucla.edu>
97790         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
97791         * m4/savedir.m4:
97792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97793         macros into the GNU _D_EXACT_NAMLEN.
97795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
97798         around the absolute name, to work around a problem with the HP-UX
97799         11.23 native C compiler, reported by Bob Proulx.
97801 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97803         * doc/maintain.texi, make-stds.texi: Sync from
97804         <http://savannah.gnu.org/projects/gnustandards>.
97806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97808         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
97810 2006-07-09  Jim Meyering  <jim@meyering.net>
97812         * m4/glob.m4: Remove a doubled word in a comment.
97814 2006-07-09  Jim Meyering  <jim@meyering.net>
97816         * lib/argp-pv.c: Remove a doubled word in a comment.
97817         * lib/check-version.c (check_version): Likewise.
97818         * lib/javacomp.c (compile_java_class): Likewise.
97820 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97822         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
97823         for the benefit of people using Autoconf 2.60.  If you want to
97824         support older Autoconf versions you can copy m4/onceonly_2_57.m4
97825         (or m4/onceonly.m4, if pre-2.57) manually.
97827 2006-07-08  Jim Meyering  <jim@meyering.net>
97829         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
97830         comment.
97831         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
97832         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
97833         comment.
97835 2006-07-08  Jim Meyering  <jim@meyering.net>
97837         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
97839 2006-07-07  Simon Josefsson  <jas@extundo.com>
97841         * tests/test-crc.c: Change expected crc value, the test vector
97842         were probably computed using the old broken crc.c?
97844 2006-07-06  Simon Josefsson  <jas@extundo.com>
97846         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
97847         now the canonical place for the M4 file).
97849         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97850         from the sys_socket dependency now.
97852         * modules/inet_pton (Files): Ditto.
97854         * modules/inet_ntop (Files): Ditto.
97856 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97858         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97859         not gl_PREREQ_GETUSERSHELL.
97861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97863         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97864         with only one argument, for Autoconf 2.60.
97865         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97866         expand to nothing, so add a shell command to avoid syntax error.
97867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97871         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97876         no longer needed.  Check for isblank decl.
97877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97878         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97879         of existence.
97881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97883         * lib/getloadavg.c: Use __VMS, not VMS.
97884         * lib/getopt.c: Likewise.
97885         * lib/getpagesize.h: Likewise.
97886         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97887         and probably does not work.
97889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97891         * lib/.cppi-disable: Add wcwidth.
97892         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97893         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97894         (ISGRAPH): Remove.  All uses changed to isgraph.
97895         (FOLD) [!defined _LIBC]: Remove special case.
97896         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97897         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97898         HAVE_ISBLANK.
97899         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97900         case.
97902 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97904         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97905         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97906         brackets.  Other minor changes to suppress some compiler
97907         warnings.
97909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97910         and Paul Eggert  <eggert@cs.ucla.edu>
97912         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97913         of invoking obsolescent AC_HEADER_DIRENT macro.
97914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97915         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97918         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97920         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97921         * m4/readdir.m4: Remove; no longer needed.
97923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97924         and Paul Eggert  <eggert@cs.ucla.edu>
97926         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97927         Don't worry about this obsolete case any more.
97928         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97929         directories.
97930         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97931         worry about this obsolete case any more.
97932         * lib/fts.c: Likewise.
97933         * lib/getcwd.c: Likewise.
97934         * lib/glob.h: Likewise.
97935         * lib/savedir.c: Likewise.
97937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97940         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97942         needed.
97943         All uses removed.
97944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97945         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97947         needed.
97948         * m4/getdate.m4 (gl_GETDATE): Likewise.
97949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97955         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97956         needed.
97958 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97960         * lib/memcasecmp.c: Include <limits.h>.
97961         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97962         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97963         Don't assume isdigit succeeds only on '0' through '9'.
97965 2006-07-05  Eric Blake  <ebb9@byu.net>
97967         * modules/getaddrinfo (Depends-on): Add snprintf.
97969 2006-07-05  Eric Blake  <ebb9@byu.net>
97971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97972         to avoid 'header present but could not be compiled' on cygwin.
97974 2006-07-05  Eric Blake  <ebb9@byu.net>
97976         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97977         missing from netdb.h.
97978         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97980 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97983         no longer needed.
97984         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97985         * m4/getdate.m4 (gl_GETDATE): Likewise.
97986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97992 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97994         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97995         All uses of is_space replaced by isspace.
97996         * lib/exit.h: Don't talk about STDC_HEADERS.
97997         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97998         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97999         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
98000         replaced by isprint etc.
98001         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
98002         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
98003         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
98004         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
98005         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
98006         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
98008 2006-07-05  Bruno Haible  <bruno@clisp.org>
98010         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
98011         the function exists, before testing against AIX.
98012         Reported by Martin Lambers <marlam@marlam.de>.
98014 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
98016         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
98017         From Mark D. Baushke.
98019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
98021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
98022         to the absolute name, not just one, to bypass Sun C 5.8's
98023         "warning: #include of /usr/include/... may be non-portable".
98025 2006-07-04  Eric Blake  <ebb9@byu.net>
98027         * modules/dirname-tests: New test module.
98028         * tests/test-dirname.c: New file, replacing dirname.c
98029         TEST_DIRNAME section that was recently deleted.
98031 2006-07-04  Bruno Haible  <bruno@clisp.org>
98033         Assume ANSI C header files and <ctype.h> functions.
98034         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
98035         (mbsnwidth): Use isprint, iscntrl instead.
98037 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98039         Merge from coreutils.
98040         * MODULES.html.sh: Add xstrtold.
98041         * modules/xstrtold: New file.
98042         * modules/cycle-check (Files): Add lib/same-inode.h.
98043         * modules/dirname (Files): Add m4/double-slash-root.m4.
98044         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
98045         * modules/mkdir-p (Files): Add lib/same-inode.h.
98046         * modules/same (Files): Add lib/same-inode.h.
98048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98050         * m4/absolute-header.m4: Renamed from full-header-path.m4.
98051         This is to keep the terminology clean; POSIX talks about
98052         "absolute pathnames", not "full pathnames", but the GNU
98053         Coding Standards say to use "path" for something else;
98054         so use "absolute" to keep both sides happy.
98055         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
98056         Set gl_absolute_header, not gl_full_header_path.
98057         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
98058         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
98059         All uses changed.
98061         Merge from coreutils.
98063         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
98065         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
98066         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
98067         want to require the building of c-strtod.o.
98068         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
98069         needs -lm directly.
98070         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
98072         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
98075         --as-needed option if available.  Problem reported by Albert Chin in
98076         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
98077         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
98078         cc merely issues a bunch of annoying warnings for --as-needed
98079         (this problem was reported by Bob Proulx).  Also, try linking with
98080         -lm to detect a bug in binutils 2.16 (this problem was reported
98081         by Ralf Wildenhues).
98083         2006-06-18  Jim Meyering  <jim@meyering.net>
98085         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
98086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
98087         macro.
98088         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
98089         also check for glibc-2.4's abort-inducing bug.
98091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
98092         Low-probability clean-up should be to use rmdir to get rid of
98093         the just-created directory, not unlink.
98095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
98096         configure fail, and request a bug report to inform us about it.
98097         Add a comment that, barring reports to the contrary, in 2007 we'll
98098         assume ftruncate is universally available.
98100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
98102         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
98104         2006-03-12  Jim Meyering  <jim@meyering.net>
98106         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
98107         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
98108         * m4/same.m4 (gl_SAME): Likewise.
98109         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
98111         2006-03-11  Eric Blake  <ebb9@byu.net>
98113         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
98114         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
98115         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
98116         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
98118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98120         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
98121         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
98122         reported by Mark D. Baushke, one in
98123         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
98125         Merge from coreutils.
98127         * lib/.cppi-disable: Add stdint_.h.
98128         * lib/.cvsignore: Add stdint.h.
98130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
98132         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
98133         both double and long double versions.
98134         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
98135         * lib/xstrtold.c: New file.
98136         * lib/xstrtod.h (xstrtold): New decl.
98138         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
98140         * lib/filemode.c (setst): Remove.
98141         (strmode): Rewrite to avoid setst.  This makes the code shorter,
98142         (arguably) clearer, and the generated code is a bit smaller on my
98143         Debian GNU/Linux stable x86 host.
98145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
98147         * lib/filemode.c: Include "filemode.h" first, to test the interface.
98148         Assume that filemode.h includes sys/types.h and sys/stat.h.
98149         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
98150         (ftypelet): Reorder to put common cases first, for efficiency.
98151         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
98152         to do 'M'.
98153         (strmode): Renamed from mode_string, and now stores 12 bytes instead
98154         of 10, for compatibility with FreeBSD.  All callers changed.
98155         (filemodestring): Now stores 12 bytes instead of 10, and sets file
98156         types that can't be deduced solely from st_mode.  First arg is now a
98157         const pointer.
98158         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
98159         (strmode): Renamed from mode_string.
98160         (filemodestring): New decl.
98161         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
98162         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
98163         needed.
98164         (S_ISPORT, S_ISWHT): New macros, if not already defined.
98166         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
98168         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
98169         fsusage.h now does that.  Include fsusage.h first, to test interface.
98170         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
98171         at most one method (the old code could have generated decls that
98172         didn't conform to C89, not that this was ever exercised).
98173         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
98175         2006-03-19  Jim Meyering  <jim@meyering.net>
98177         Work even in a chroot where d_ino values for entries in "/"
98178         don't match the stat.st_ino values for the same names.
98179         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
98180         number, iterate through all entries again, using lstat instead.
98181         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
98182         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
98184         * lib/getcwd.c (__getcwd): Clarify a comment.
98185         Use memcpy in place of a call to strcpy.
98187         2006-03-12  Jim Meyering  <jim@meyering.net>
98189         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
98190         matches that of the current directory (which we're about to chdir ".."
98191         out of), then save the dev-ino of the parent, instead.
98193         * lib/same-inode.h (SAME_INODE): New file/macro.
98194         * lib/chdir-safer.c (SAME_INODE): Remove definition.
98195         Include "same-inode.h", instead.
98196         * lib/same.c: Likewise.
98197         * lib/cycle-check.h: Include "same-inode.h".
98198         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
98199         * lib/cycle-check.c (SAME_INODE): Remove definition.
98200         * lib/root-dev-ino.h: Include "same-inode.h".
98202         2006-03-11  Eric Blake  <ebb9@byu.net>
98204         * lib/same.c (same_name): s/base_name/last_component/
98205         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
98206         * lib/filenamecat.c (file_name_concat): Likewise.
98208         2006-03-11  Eric Blake  <ebb9@byu.net>,
98209                     Paul Eggert  <eggert@cs.ucla.edu>
98211         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
98212         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
98213         drive prefix.
98214         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
98215         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
98216         (last_component): New method.
98217         * lib/dirname.c (dir_len): Determine when drive letters need a
98218         subsequent slash.  Preserve // when it is special.
98219         (dir_name): Don't append dot when drive letter is absolute.
98220         [TEST_DIRNAME]: Move into a full-blown gnulib test.
98221         * lib/basename.c (base_name): New semantics - malloc the result.
98222         Preserve // when it is special.  Preserve relative files that look
98223         like drive letters.
98224         (base_len): Preserve // when it is special.
98225         (last_component): New method, similar to old base_name semantics.
98226         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
98227         base_name.  Strip redundant slashes from ///.
98229 2006-07-03  Jim Meyering  <jim@meyering.net>
98231         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
98232         macro is used before the first cycle_check call.
98234 2006-07-03  Eric Blake  <ebb9@byu.net>
98236         * modules/dirname (Depends-on): Add xstrndup.
98238 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98240         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
98241         test cases, so that config.log is a bit easier to follow.
98243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98245         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
98246         both are 64 bits, since this seems to be the tradition, and this
98247         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
98248         we ever run into a host that prefers long long to long in this
98249         case, we'll need another configure-time test.  Problem reported by
98250         Jim Meyering.
98252 2006-07-02  Eric Blake  <ebb9@byu.net>
98254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
98256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98258         * modules/inttypes (Depends-on): No longer depends on stdint.
98259         * modules/stdint (Description): Say more about assumptions.
98260         Say that the fast types might differ.  Say macros are used.
98261         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
98262         (Makefile.am): Revise list of substituted symbols to match
98263         new stdint.m4.
98264         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
98265         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
98266         * tests/test-stdint.c (verify_same_types)
98267         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
98268         the code conforms to C99/C89.
98269         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
98270         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
98272 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
98275         but fix a bug, by requiring at least 64 bits.
98276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98277         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
98278         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
98279         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98281         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
98282         changes.  Make 2.59 a prerequisite.  Check and substitute for
98283         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
98284         inttypes.h.  Do not use special include files; just use the
98285         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
98286         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
98287         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
98288         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
98289         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
98290         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
98291         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
98292         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
98293         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
98294         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
98295         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
98296         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
98297         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
98298         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
98299         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
98300         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
98301         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
98302         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
98303         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
98304         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
98305         WINT_MAX.  Check for C99 conformance more strictly, by detecting
98306         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
98307         not check for things that C99 does not require, e.g., int8_t.  If
98308         a test isn't needed unless <stdint.h> isn't working, and is
98309         unlikely to be needed for any other reason, then don't do it
98310         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
98311         size_t, since we assume C89 freestanding at least.  Do not check
98312         for sig_atomic_t, wchar_t, or wint_t, since the code now does
98313         the right thing even if the types are not defined.  Instead use:
98314         (gl_STDINT_TYPE_PROPERTIES): New macro.
98315         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
98316         testing whether <sys/types.h> clashes, as Autoconf does this for
98317         us now.  All uses removed.
98318         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
98319         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
98320         (gl_CHECK_TYPE_SAME):
98321         Remove; no longer needed.
98322         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
98323         exists, since we'll return 0 anyway in that case.
98324         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
98326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98328         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
98329         possible collision with system files.
98330         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
98331         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
98332         WCHAR_MIN and WCHAR_MAX in this case.
98333         (<stddef.h>): Do not include; no longer needed.
98334         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
98335         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
98336         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
98337         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
98338         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
98339         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
98340         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
98341         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
98342         !defined(__c99))]: Include in this case too, since it's harmless
98343         now.
98344         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
98345         dangerous to do so.
98346         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
98347         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
98348         (_STDINT_MIN, _STDINT_MAX): New macros.
98349         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
98350         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
98351         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
98352         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
98353         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
98354         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
98355         macros, not typedefs; this simplifies things quite a bit.
98356         Use long int for all types narrower than int64_t.
98357         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
98358         Define in terms of long long int or int64_t or long int,
98359         not int64_t or int32_t.  This saves some compile-time testing.
98360         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
98361         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
98362         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
98363         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
98364         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
98365         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
98366         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
98367         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
98368         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
98369         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
98370         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98371         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98372         undef any previous version and define our own version, for
98373         simplicity and consistency with the new macros for types.
98374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98376         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
98377         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
98378         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
98379         @WINT_T_SUFFIX@ to keep things simple here.
98380         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
98381         Simplify by assuming typical 8/16/32/64 host, since we're
98382         already doing that elsewhere anyway.
98383         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
98384         and assume long long int is 64 bits if available.  This
98385         speeds up 'configure'.
98387 2006-07-01  Eric Blake  <ebb9@byu.net>
98389         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
98390         Reported by Andreas Buening.
98392 2006-07-01  Eric Blake  <ebb9@byu.net>
98394         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
98396 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
98398         * lib/getaddrinfo.c: fixed typo
98400 2006-06-29  Jim Meyering  <jim@meyering.net>
98402         * modules/strftime (Maintainer): Add my name, since with the
98403         FPRINTFTIME changes strftime.c has forked from glibc.
98405 2006-06-29  Eric Blake  <ebb9@byu.net>
98407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
98409 2006-06-29  Eric Blake  <ebb9@byu.net>
98411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
98413 2006-06-29  Eric Blake  <ebb9@byu.net>
98415         * lib/stat_.h: New file.
98417 2006-06-29  Eric Blake  <ebb9@byu.net>
98419         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
98420         unused static function.
98422 2006-06-29  Eric Blake  <ebb9@byu.net>
98424         * doc/functions.texi (Function Portability): Document missing lstat
98425         on mingw.
98427 2006-06-29  Eric Blake  <ebb9@byu.net>
98429         * MODULES.html.sh: Add sys_stat.
98430         * modules/sys_stat: New module.
98431         * modules/mkstemp (Depends-on): Add sys_stat.
98433 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98435         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
98437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98439         * m4/c-bs-a.m4: Removed.
98441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98443         * lib/strftime.c: Assume strftime() exists.
98445 2006-06-29  Derek Price  <derek@ximbiot.com>
98447         * modules/c-bs-a: Removed - \a is C89.
98448         * MODULES.html.sh: Remove c-bs-a.
98450 2006-06-29  Bruno Haible  <bruno@clisp.org>
98452         * modules/wcwidth (License): Change to LGPL.
98454 2006-06-28  Simon Josefsson  <jas@extundo.com>
98456         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
98457         on _WIN32.
98459         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
98460         getnameinfo.
98462 2006-06-28  Simon Josefsson  <jas@extundo.com>
98464         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
98466 2006-06-28  Simon Josefsson  <jas@extundo.com>
98468         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
98469         functions there.  It will succeed on Windows XP, but on Windows
98470         2000 and (presumably) earlier, it will fail, and use the internal
98471         re-implementation.
98472         (use_win32_p): New function.
98473         (getaddrinfo): Use strtoul on servname, to support numeric ports.
98474         Support AI_NUMERICSERV to disable getservbyname.
98475         (getnameinfo): New function, only supports
98476         NI_NUMERICHOST|NI_NUMERICSERV for now.
98478         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
98479         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
98480         getnameinfo.
98482 2006-06-28  Eric Blake  <ebb9@byu.net>
98484         * modules/wcwidth: New file.
98485         * modules/mbchar (Depends-on): Add wcwidth.
98486         * modules/mbswidth (Depends-on): Add wcwidth.
98487         * MODULES.html.sh: Add wcwidth.
98489 2006-06-28  Eric Blake  <ebb9@byu.net>
98491         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
98492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
98494 2006-06-28  Eric Blake  <ebb9@byu.net>
98496         * lib/xvasprintf.h: Fix comments.
98498 2006-06-28  Eric Blake  <ebb9@byu.net>
98500         * lib/mbchar.h (wcwidth): Include wcwidth.h.
98501         * lib/mbswidth.c (wcwidth): Move from here...
98502         * lib/wcwidth.h: ...to this new file.
98504 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98506         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
98508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
98509         it's obsolete.
98510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
98512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98514         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
98515         Autoconf 2.60 says this stuff was obsolete.
98517 2006-06-28  Bruno Haible  <bruno@clisp.org>
98519         * modules/wcwidth (Files): Add m4/wchar_t.m4.
98521 2006-06-28  Bruno Haible  <bruno@clisp.org>
98523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
98524         gt_TYPE_WCHAR_T.
98526 2006-06-28  Bruno Haible  <bruno@clisp.org>
98528         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
98529         declaration for wcwidth.
98530         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
98532 2006-06-28  Bruno Haible  <bruno@clisp.org>
98534         * lib/mkdtemp.c [MINGW]: Include <io.h>.
98535         (mkdir): Define using _mkdir.
98537 2006-06-28  Bruno Haible  <bruno@clisp.org>
98539         * lib/getaddrinfo.h: Fix POSIX URL.
98540         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
98541         _WIN32.
98542         (use_win32_p): Make static.
98543         (getaddrinfo): Reject service name if it is empty or does not consist
98544         solely of decimal digits, or if its value is > 65535.
98545         (getnameinfo): Remove useless casts.
98547 2006-06-27  Simon Josefsson  <jas@extundo.com>
98549         * modules/sys_select: New file, suggested by Bruno Haible, Paul
98550         Eggert and Martin Lambers.
98552 2006-06-27  Simon Josefsson  <jas@extundo.com>
98554         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
98555         Eggert and Martin Lambers.
98557 2006-06-27  Bruno Haible  <bruno@clisp.org>
98559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
98560         result to 0, not to empty.
98561         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
98563 2006-06-27  Bruno Haible  <bruno@clisp.org>
98565         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
98567 2006-06-26  Simon Josefsson  <jas@extundo.com>
98569         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
98570         present.
98572 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
98574         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
98575         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
98576         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
98578 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
98580         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
98582 2006-06-26  Bruno Haible  <bruno@clisp.org>
98584         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
98586 2006-06-26  Bruno Haible  <bruno@clisp.org>
98588         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
98590 2006-06-26  Bruno Haible  <bruno@clisp.org>
98592         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
98593         SGI C compiler in pre-C99 mode.
98594         Suggested by Mark D. Baushke and Larry Jones.
98596 2006-06-26  Bruno Haible  <bruno@clisp.org>
98598         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
98599         WCHAR_MAX.
98600         Reported by Mark D. Baushke and Larry Jones.
98602 2006-06-26  Bruno Haible  <bruno@clisp.org>
98604         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
98605         in pre-C99 mode.
98606         Suggested by Mark D. Baushke and Larry Jones.
98608 2006-06-23  Simon Josefsson  <jas@extundo.com>
98609             Bruno Haible  <bruno@clisp.org>
98611         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
98612         Emit mostlyclean-local rule.
98613         (func_emit_tests_Makefile_am): Likewise.
98614         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
98616 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
98618         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
98620 2006-06-23  Bruno Haible  <bruno@clisp.org>
98622         * tests/test-stdint.c: Update to match ISO C 99 Technical
98623         Corrigendum 1.
98625 2006-06-23  Bruno Haible  <bruno@clisp.org>
98627         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
98629 2006-06-23  Bruno Haible  <bruno@clisp.org>
98631         * lib/stdint_.h: Treat IRIX like OpenBSD.
98633 2006-06-23  Bruno Haible  <bruno@clisp.org>
98635         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
98636         ISO C 99 Technical Corrigendum 1.
98638 2006-06-22  Simon Josefsson  <jas@extundo.com>
98640         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
98641         MinGW.
98643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98645         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
98646         needed.  Some compiler complained about some of them.  Problem reported
98647         by Larry Jones in
98648         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
98650 2006-06-21  Simon Josefsson  <jas@extundo.com>
98652         * tests/test-getaddrinfo.c: New file.
98654         * modules/getaddrinfo-tests: New file.
98656         * MODULES.html.sh: Add inet_pton.
98658         * modules/inet_pton: New file.
98660 2006-06-21  Simon Josefsson  <jas@extundo.com>
98662         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
98663         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
98664         of using the (limited) gnulib implementation on Windows XP.
98666         * m4/inet_pton.m4: New file.
98668 2006-06-21  Simon Josefsson  <jas@extundo.com>
98670         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
98671         variable.
98673         * lib/socket_.h: Don't define WINVER.
98675         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
98676         slightly modified to work in gnulib.
98678 2006-06-21  Simon Josefsson  <jas@extundo.com>
98680         * doc/gnulib.texi (Windows sockets): Add.
98682 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98684         * lib/read-file.c (fread_file): Start with buffer allocation of
98685         0 bytes rather than 1 byte; this simplifies the code.
98686         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
98687         code to free buffer and save/restore errno.
98688         (internal_read_file): Remove unused local.
98690 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98692         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
98693         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
98694         Problem reported by Denis Excoffier in
98695         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
98697 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98699         * modules/sys_socket, modules/socklen: Include sys/types since
98700         FreeBSD 4.x's sys/socket.h needs it.
98702 2006-06-19  Simon Josefsson  <jas@extundo.com>
98704         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
98706 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98708         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
98710 2006-06-19  Bruno Haible  <bruno@clisp.org>
98712         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
98713         and FULL_PATH_INTTYPES_H in angle brackets.
98714         Reported by Mark D. Baushke <mdb@gnu.org>.
98716 2006-06-17  Eric Blake  <ebb9@byu.net>
98718         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
98719         errno.
98721 2006-06-17  Bruno Haible  <bruno@clisp.org>
98723         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
98724         <sys/inttypes.h>.
98726 2006-06-17  Bruno Haible  <bruno@clisp.org>
98728         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
98729         whether errno is declared. Assume <errno.h> declares errno.
98731 2006-06-17  Bruno Haible  <bruno@clisp.org>
98733         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
98735 2006-06-17  Bruno Haible  <bruno@clisp.org>
98737         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
98738         problem on Solaris 2.5.1.
98740 2006-06-16  Eric Blake  <ebb9@byu.net>
98742         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
98743         * lib/unicodeio.c [!defined errno]: Likewise.
98744         * lib/strtol.c [!defined errno]: Likewise.
98745         * lib/strtod.c [!defined errno]: Likewise.
98747 2006-06-15  Eric Blake  <ebb9@byu.net>
98749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
98751 2006-06-15  Eric Blake  <ebb9@byu.net>
98753         * config/srclist.txt (ssize_t.m4): Lose sync.
98755 2006-06-15  Bruno Haible  <bruno@clisp.org>
98757         * modules/stdint (Files): Include m4/full-header-path.m4,
98758         m4/size_max.m4, m4/wchar_t.m4.
98759         (Makefile.am): Many more substitutions.
98760         * modules/stdint-tests: New file.
98761         * tests/test-stdint.c: New file.
98763 2006-06-15  Bruno Haible  <bruno@clisp.org>
98765         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
98766         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
98767         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
98768         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
98769         gl_CHECK_TYPE_SAME): New macros.
98771 2006-06-15  Bruno Haible  <bruno@clisp.org>
98773         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
98775 2006-06-15  Bruno Haible  <bruno@clisp.org>
98777         * lib/stdint_.h: Rewritten to be fully auto-configured.
98778         Fixes bug on HP-UX/IA64.
98780 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
98782         * lib/getdate.y (__attribute__): Don't define if already defined.
98783         Problem reported by Larry Jones.
98784         * lib/utimens.c (__attribute__): Likewise.
98786 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
98788         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
98789         reported by Andreas Schwab.
98791 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98792             Bruno Haible  <bruno@clisp.org>
98794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
98795         check for the declaration of strnlen and a run test that exposes the
98796         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
98797         rpl_strndup.
98799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98800             Bruno Haible  <bruno@clisp.org>
98802         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
98804 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98806         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
98807         compile test, for Tru64 4.0D.
98809 2006-05-28  Karl Berry  <karl@gnu.org>
98811         * config/srclist.txt (printf-args.c): lose sync.
98813 2006-05-26  Martin Lambers  <marlam@marlam.de>
98815         * lib/getpass.c: Updates the test for the native W32 API, and adds
98816         missing includes, thus fixing compilation warnings.
98818 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98820         * lib/exclude.c (exclude_fnmatch): New function.
98821         (excluded_file_name): Call exclude_fnmatch.
98822         * lib/exclude.h (excluded_file_name): New prototype
98824 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
98826         * lib/tempname.c (small_open, large_open): New macros.
98827         (__open, __open64) [!_LIBC]: Remove.
98828         (__gen_tempname): Use small_open and large_open instead of __open
98829         and __open64.  This fixes a portability bug on HP-UX 11.11i
98830         reported by Simon Wing-Tang in
98831         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
98833 2006-05-24  Bruno Haible  <bruno@clisp.org>
98835         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
98836         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
98837         Reported by Thorsten Maerz <torte@netztorte.de> via
98838         Aaron Stone <aaron@serendipity.cx>.
98840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
98843         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
98844         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
98845         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
98846         not really conditional on the cache.
98847         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
98849 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98851         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98852         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98853         (my_usleep): Don't mishandle maximum value.
98855 2006-05-19  Jim Meyering  <jim@meyering.net>
98857         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98859 2006-05-17  Bruno Haible  <bruno@clisp.org>
98861         Cygwin portability.
98862         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98864 2006-05-17  Bruno Haible  <bruno@clisp.org>
98866         * lib/stdint_.h: Fix recognition of Cygwin.
98868 2006-05-15  Bruno Haible  <bruno@clisp.org>
98870         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98871         on libtool patch by Ralf Wildenhues.
98873 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98876         test for C99 conformance; (bool) 0.5 is an integer constant
98877         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98878         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98880 2006-05-11  Simon Josefsson  <jas@extundo.com>
98882         * m4/xvasprintf.m4: Fix obvious typo.
98884 2006-05-11  Jim Meyering  <jim@meyering.net>
98886         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98887         James Lemley.
98889 2006-05-10  Simon Josefsson  <jas@extundo.com>
98891         * lib/md4.c: Typo fix, update copyright years.
98892         (K1, K2): Don't use L because it turn computations into 64-bit on
98893         64-bit platforms.
98895 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98897         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98898         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98899         unwanted sign propagation, e.g., on hosts with 64-bit int.
98900         There still are some problems with reeelly weird theoretical hosts
98901         (e.g., 33-bit int) but it's not worth worrying about now.
98902         * lib/sha1.c (rol): Likewise.
98903         (K1, K2, K3, K4): Remove unnecessary L suffix.
98905 2006-05-10  Bruno Haible  <bruno@clisp.org>
98907         * lib/des.c: Cast to avoid warnings.
98909 2006-05-09  Bruno Haible  <bruno@clisp.org>
98911         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98912         (Depends-on): Depend also on xsize, stdarg.
98913         (configure.ac): Add gl_XVASPRINTF.
98915 2006-05-09  Bruno Haible  <bruno@clisp.org>
98917         * m4/xvasprintf.m4: New file.
98919 2006-05-09  Bruno Haible  <bruno@clisp.org>
98921         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98922         (EOVERFLOW): Define fallback value.
98923         (xstrcat): New function.
98924         (xvasprintf): Recognize the special case of a string concatenation.
98926 2006-05-08  Eric Blake  <ebb9@byu.net>
98928         * gnulib-tool (func_version): Base copyright year on CVS date.
98929         (func_emit_copyright_notice): New function.
98930         (func_emit_lib_Makefile_am): Use it.
98931         (func_emit_tests_Makefile_am): Likewise.
98932         (func_import): Likewise.
98934 2006-05-08  Bruno Haible  <bruno@clisp.org>
98936         * modules/stdarg: New file.
98937         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98939 2006-05-08  Bruno Haible  <bruno@clisp.org>
98941         * m4/stdarg.m4: New file, from GNU gettext.
98943 2006-05-08  Bruno Haible  <bruno@clisp.org>
98945         * config/srclist.txt (build-aux/config.rpath): different from latest
98946         release.
98948 2006-05-08  Bruno Haible  <bruno@clisp.org>
98950         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98952 2006-05-05  Jim Meyering  <jim@meyering.net>
98954         * m4/warning.m4: New file, derived from bison's file by the same name.
98956 2006-05-03  Bruno Haible  <bruno@clisp.org>
98958         * lib/stdint_.h: Shorter URL.
98959         * lib/inttypes.h: Likewise.
98961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98963         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98967         * lib/verify.h: Document the internals better.  Most of this change
98968         was written by Bruno Haible.
98970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98972         * doc/verify.texi: New file, partly based on a proposal by
98973         Bruno Haible.
98975 2006-05-02  Bruno Haible  <bruno@clisp.org>
98977         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98978         test from here...
98979         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98981 2006-04-29  Bruno Haible  <bruno@clisp.org>
98983         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98984         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98986 2006-04-29  Bruno Haible  <bruno@clisp.org>
98988         * gnulib-tool: Make --update option actually work.
98990 2006-04-29  Bruno Haible  <bruno@clisp.org>
98992         * doc/gcd.texi: New file.
98993         * doc/gnulib.texi: Include it.
98995 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98997         * lib/getdate.y (get_date): When adding relative date, start with the
98998         initial time, not with the result of the first mktime call.
99000 2006-04-25  Bruno Haible  <bruno@clisp.org>
99002         * gnulib-tool (func_import): Output the include directives in three
99003         blocks, sorted separately.
99004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99006 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
99008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
99009         to define main with arguments, for C++.  Reported by Eric Blake.
99010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
99011         Prefer 'int main ()' to 'int main (void)', for C++.
99012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
99013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
99014         for 'main', for C99 and C++.
99016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
99018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
99019         Don't assume that exit status -1 is valid.
99020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99021         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
99022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
99023         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
99024         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
99025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
99026         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
99027         functions can be used without declaring them, or that you can
99028         exit with status -1.
99029         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
99031 2006-04-24  Karl Berry  <karl@gnu.org>
99033         * config/srclist.txt (longdouble.m4): sync lost.
99035 2006-04-24  Eric Blake  <ebb9@byu.net>
99037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
99039 2006-04-24  Bruno Haible  <bruno@clisp.org>
99041         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
99042         poll() implementation in AIX.
99043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99045 2006-04-24  Bruno Haible  <bruno@clisp.org>
99047         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
99048         assigned exactly once.
99050 2006-04-23  Claudio Fontana  <claudio@gnu.org>
99051             Bruno Haible  <bruno@clisp.org>
99053         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
99054         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
99055         for AM_CPPFLAGS.
99057 2006-04-23  Bruno Haible  <bruno@clisp.org>
99059         * modules/copy-file: Depend on unistd.
99060         * modules/execute: Likewise.
99061         * modules/fatal-signal: Likewise.
99062         * modules/findprog: Likewise.
99063         * modules/mkdtemp : Likewise.
99064         * modules/pipe: Likewise.
99065         * modules/wait-process: Likewise.
99067 2006-04-23  Bruno Haible  <bruno@clisp.org>
99069         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
99070         condition was already detected.
99071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99073 2006-04-23  Bruno Haible  <bruno@clisp.org>
99075         * lib/copy-file.c: Include <unistd.h> unconditionally.
99076         * lib/execute.c: Likewise.
99077         * lib/fatal-signal.c: Likewise.
99078         * lib/findprog.c: Likewise.
99079         * lib/mkdtemp.c: Likewise.
99080         * lib/pipe.h: Likewise.
99081         * lib/pipe.c: Likewise.
99082         * lib/wait-process.h: Likewise.
99084 2006-04-23  Bruno Haible  <bruno@clisp.org>
99086         * gnulib-tool (func_usage): Fix --import description. Document
99087         --update.
99088         (func_import): Create temporary file in a temporary directory, if
99089         --dry-run is specified. Silence errors from 'grep' when there are no
99090         m4 files in $m4dir.
99091         (func_create_testdir): Silence errors from 'grep' when there are no
99092         m4 files in $m4dir.
99093         Reported by Karl Berry <karl@freefriends.org>.
99095 2006-04-20  Bruno Haible  <bruno@clisp.org>
99097         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
99098         one argument, so that the code will be portable to Autoconf 2.60.
99099         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
99100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99101         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
99103 2006-04-19  Derek Price  <derek@ximbiot.com>
99104             Eric Blake  <ebb9@byu.net>
99106         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
99107         rather than "/full/path.h".  Update comment to match.  Shorten &
99108         generalize m4_translit call via AS_TR_CPP.
99110 2006-04-19  Derek Price  <derek@ximbiot.com>
99111             Eric Blake  <ebb9@byu.net>
99113         * lib/inttypes.h: Correct grammar in comment.
99115 2006-04-18  Derek Price  <derek@ximbiot.com>
99116             Paul Eggert  <eggert@cs.ucla.edu>
99118         * modules/inttypes: New file.
99119         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
99121 2006-04-18  Derek Price  <derek@ximbiot.com>
99122             Paul Eggert  <eggert@cs.ucla.edu>
99124         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
99125         New files.
99127 2006-04-18  Derek Price  <derek@ximbiot.com>
99128             Paul Eggert  <eggert@cs.ucla.edu>
99130         * lib/inttypes.h: New file.
99131         * lib/strtoimax.c: Assume <inttypes.h>.
99133 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
99135         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
99136         isn't mounted.  Problem reported by Kir Kolyshkin.
99138 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99140         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
99141         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
99142         Derek R. Price.
99143         * lib/regex.h (RE_DUP_MAX): Update comment to match current
99144         implementation.
99146 2006-04-12  Eric Blake  <ebb9@byu.net>
99148         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
99149         is now done automatically by the corresponding Autoconf macro.
99151 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
99153         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
99154         time_r.h.
99156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99158         Merge regex changes from libc, removing some of our
99159         POSIX-conformance changes that were rejected and redoing them in a
99160         less-intrusive way.
99162         * lib/regcomp.c (re_compile_internal, init_dfa):
99163         Length arg is now size_t, not Idx.  All uses changed.
99164         (peek_token): Forward decl now says internal_function.
99165         (__re_error_msgid, __re_error_msgid_idx):
99166         Now static rather than extern with attribute_hidden.
99167         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
99168         For some reason libc prefers K&R style defns for external functions.
99169         (regerror) [!defined _LIBC]: Likewise.
99170         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
99171         (seek_collating_symbol_entry, lookup_collation_sequence_value):
99172         (build_range_exp, build_collating_symbol):
99173         Use K&R-style defn.
99174         (re_compile_fastmap): Use '\0' to memset, not 0.
99175         (utf8_sb_map): Make the calculations more obvious.
99176         (init_dfa, parse_bracket_exp, build_charclass_op):
99177         Call calloc and cast result, as glibc does.
99178         (init_word_char, fetch_token, peek_token, peek_token_bracket):
99179         (build_range_exp, build_collating_symbol):
99180         Now internal functions.
99182         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
99184         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
99185         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
99186         Don't depend on VMS; depend on __VMS instead, for POSIX
99187         namespace cleanness.
99188         (regoff_t): Define to ssize_t, not long int.
99190         Remove the REG_ macros named below.  Instead, make the old names
99191         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
99192         __USE_GNU_REGEX.
99193         (REG_BACKSLASH_ESCAPE_IN_LISTS):
99194         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
99195         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
99196         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
99197         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
99198         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
99199         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
99200         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
99201         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
99202         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
99203         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
99204         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
99205         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
99206         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
99207         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
99208         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
99209         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
99210         (REG_NREGS):
99211         Remove.  All uses replaced by the old RE_* names.
99212         (RE_BACKSLASH_ESCAPE_IN_LISTS):
99213         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
99214         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
99215         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
99216         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
99217         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
99218         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
99219         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
99220         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
99221         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
99222         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
99223         Don't bother having these macros be independent of each others'
99224         values, since they no longer exist in the POSIX name space.
99226         Rename the following member names back to their old names,
99227         unless !__USE_GNU_REGEX.  All uses changed back.
99228         (buffer): Renamed from re_buffer.
99229         (allocated): Renamed from re_allocated.
99230         (used): Renamed from re_used.
99231         (syntax): Renamed from re_syntax.
99232         (fastmap): Renamed from re_fastmap.
99233         (translate): Renamed from re_translate.
99234         (can_be_null): Renamed from re_can_be_null.
99235         (regs_allocated): Renamed from re_regs_allocated.
99236         (fastmap_accurate): Renamed from re_fastmap_accurate.
99237         (no_sub): Renamed from re_no_sub.
99238         (not_bol): Renamed from re_not_bol.
99239         (not_eol): Renamed from re_not_eol.
99240         (newline_anchor): Renamed from re_newline_anchor.
99241         (num_regs): Renamed from rm_num_regs.
99242         (start): Renamed from rm_start.
99243         (end): Renamed from rm_end.
99245         (free_state): Move up a bit.
99247         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
99248         #define to be empty.
99249         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
99250         when that is what is intended.
99251         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
99252         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
99253         (MAX): New macro.
99254         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
99255         All uses changed back to re_malloc, etc.  It's now the caller's
99256         responsibility to check for overflow; all callers changed.
99257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
99258         (re_x2nrealloc): Remove.
99259         (free_state): Remove decl.
99261         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
99262         (re_set_registers, re_exec):
99263         Use K&R-style defn.
99265         2006-01-31  Roland McGrath  <roland@redhat.com>
99267         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
99268         Reported by Mike Frysinger <vapier@gentoo.org>.
99270         2006-01-15  Andreas Jaeger  <aj@suse.de>
99272         [BZ #1950]
99273         * lib/regex_internal.c (re_string_reconstruct): Adjust for
99274         build_wcs_upper_buffer change.
99275         (build_wcs_upper_buffer): Change return type.
99277         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
99279         * lib/regex_internal.h: Include <stdint.h> if available.
99281         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
99283         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
99285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
99287         * lib/regcomp.c: Adjust for changed secondary hash function.
99289         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
99291         * lib/regex.h: Pretty printing.
99292         Clean up namespace a bit.
99294         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
99296         * lib/regexec.c (update_cur_sifted_state, check_arrival,
99297         check_arrival_add_next_nodes): Avoid using uninitialized variable.
99299         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99300                     Ulrich Drepper  <drepper@redhat.com>
99302         [BZ #1302]
99303         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
99304         changed.
99305         (bitset_word_t): Renamed from bitset_word.  All uses changed.
99307         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
99309         [BZ #281]
99310         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
99311         * lib/regcomp.c: Remove unnecessary uses of
99312         unsigned RE_TRANSLATE_TYPE.
99313         * lib/regex_internal.h: Likewise.
99314         * lib/regex_internal.c: Likewise.
99315         * lib/regexec.c: Likewise.
99316         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
99318         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
99320         * lib/regexec.c (find_recover_state): Remove unnecessary
99321         initialization.
99322         (transit_state_bkref): Make DFA a const pointer.
99323         (get_subexp): Likewise.
99324         (check_arrival): Likewise.
99325         (update_cur_sifted_state): Likewise.
99326         (re_search_internal): Likewise.
99327         (prune_impossible_nodes): Likewise.
99328         (acquire_init_state_context): Likewise.
99329         (proceed_next_node): Likewise.
99330         (set_regs): Likewise.
99331         (free_fail_stack_return): Likewise.
99332         (check_arrival_expand_ecl): Mark DFA parameter as const.
99333         (check_arrival_expand_ecl_sub): Likewise.
99334         (check_subexp_limits): Likewise.
99335         (sub_epsilon_src_nodes):  Likewise.
99336         (add_epsilon_src_nodes):  Likewise.
99337         (merge_state_array): Likewise.
99338         (update_regs): Likewise.
99339         (build_trtable): Likewise.
99340         (sift_states_backward): Mark MCTX parameter as const.
99341         (build_sifted_states): Likewise.
99342         (update_cur_sifted_state): Likewise.
99343         (sift_states_mkref): Likewise.
99344         (check_arrival_expand_ecl): Mark eclosure as const.
99345         (check_dst_limits_calc_pos_1): Likewise.
99346         * lib/regex_internal.h (re_match_context_t): Make dfa a const
99347         pointer.
99349         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
99351         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
99352         (transit_state_sb): Likewise.
99353         (transit_state_mb): Likewise.
99354         (sift_states_iter_mb): Likewise.
99355         (check_arrival_add_next_nodes): Likewise.
99356         (check_node_accept_bytes): Change first parameter to pointer-to-const.
99357         [_LIBC] (re_search_2_stub): Use mempcpy.
99359         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
99360         mbrtowc for very simple UTF-8 case.
99362         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
99363         a pointer-to-const.
99364         (re_acquire_state_context): Likewise.
99365         * lib/regex_internal.h: Adjust prototypes.
99367         * lib/regex.c: Prevent using C++ compilers.
99369         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
99370         (re_acquire_state_context): Likewise.
99372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99374         * modules/regex (Depends-on): Add ssize_t.
99376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99378         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
99379         translation table.
99381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99383         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
99385 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
99386             Bruno Haible  <bruno@clisp.org>
99388         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
99389         <sys/types.h> and <inttypes.h>.
99391 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99393         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
99394         `__error_t_defined', so argp.h will not typedef the former.
99396 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
99398         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
99399         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
99400         glibc names.  Even if glibc is changed to conform to POSIX, the
99401         traditional names will be available anyway, since regex depends on
99402         the extensions module.  Also, fix a longstanding typo in the
99403         implementation of Spencer ERE test #75 from grep 2.3.  Problems
99404         reported by Emanuele Giaquinta.  Also, change sense of cached
99405         variable, so that the message makes sense.
99407 2006-03-24  Simon Josefsson  <jas@extundo.com>
99409         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
99410         including some doc fixes.
99411         (base64_encode_alloc): Fix +1 bug on allocation failures.
99413 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99415         * lib/base64.c (base64_encode): Do not read past end of array with
99416         unsanitized input on systems with CHAR_BIT > 8.
99418 2006-03-24  Eric Blake  <ebb9@byu.net>
99420         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
99422 2006-03-22  Karl Berry  <karl@gnu.org>
99424         * config/srclist.txt (*setenv.[ch]): get from coreutils.
99425         * config/srclistvars.sh (COREUTILS): new var.
99427 2006-03-17  Jim Meyering  <jim@meyering.net>
99429         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
99430         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
99432 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99434         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
99435         no longer needs it.  Instead, check that regoff_t is as least
99436         as wide as ptrdiff_t.
99438         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
99439         so that our regex.h stays compatible with the installed regex.
99440         This is helpful for installers who configure --without-included-regex.
99441         Problem reported by Emanuele Giaquinta.
99443 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99445         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
99446         Typedef to long int, not to off_, as POSIX will likely change
99447         in that direction.
99449 2006-03-15  Eric Blake  <ebb9@byu.net>
99451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
99453 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99455         * lib/argp-help.c (validate_uparams): Fix typo
99456         * lib/argp-parse.c (argp_default_options): Consistently begin help
99457         messages with a lowercase letter.
99459 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
99461         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
99462         overrun buffers and shouldn't be used (much as gets shouldn't be
99463         used).
99464         * lib/time_r.c (asctime_r, ctime_r): Likewise.
99466 2006-03-08  Simon Josefsson  <jas@extundo.com>
99468         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
99469         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99471 2006-03-08  Simon Josefsson  <jas@extundo.com>
99473         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
99474         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99476 2006-03-08  Simon Josefsson  <jas@extundo.com>
99478         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
99479         signal that configure disabled the device.
99481 2006-03-08  Simon Josefsson  <jas@extundo.com>
99483         * build-aux/maint.mk: Fix refresh-po, to handle no translated
99484         languages.
99486 2006-03-07  Simon Josefsson  <jas@extundo.com>
99488         * modules/getopt (Depends-on): Add unistd.
99490         * modules/unistd: New file.
99492 2006-03-07  Simon Josefsson  <jas@extundo.com>
99494         * modules/gc-random: New file.
99496 2006-03-07  Simon Josefsson  <jas@extundo.com>
99498         * m4/unistd_h.m4: New file.
99500 2006-03-07  Simon Josefsson  <jas@extundo.com>
99502         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
99503         test to be side-effect free by storing the result in the cache
99504         variable gl_cv_lib_readline, and moving the assignment of
99505         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
99506         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99508 2006-03-07  Simon Josefsson  <jas@extundo.com>
99510         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
99511         error on missing devices (the functions will return an error).
99513         * m4/gc.m4: Move random stuff to gc-random.m4
99515 2006-03-07  Simon Josefsson  <jas@extundo.com>
99517         * lib/unistd_.h: New file.
99519 2006-03-07  Simon Josefsson  <jas@extundo.com>
99521         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
99523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99525         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
99526         Problem reported by Juan Manuel Guerrero.
99528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99530         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
99531         the unistd module.
99532         * lib/getlogin_r.c: Likewise.
99533         * lib/getlogin_r.h: Likewise.
99534         * lib/glob.c: Likewise.
99535         * lib/pagealign_alloc.c: Likewise.
99536         * lib/unistd_.h: Remove; no longer needed.
99538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99540         * MODULES.html.sh (Support for systems lacking POSIX:2001):
99541         Add unistd.
99542         * modules/c-stack (Depends-on): Add unistd.
99543         * modules/getlogin_r: Likewise.
99544         * modules/glob: Likewise.
99545         * modules/pagealign_alloc: Likewise.
99546         * modules/unistd (Files): Remove lib/unistd_.h.
99547         (EXTRA_DIST): Remove.
99548         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
99549         need unistd_.h.
99550         (MOSTLYCLEANFILES): Remove unistd.h-t.
99552 2006-03-03  Simon Josefsson  <jas@extundo.com>
99554         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
99556 2006-03-03  Simon Josefsson  <jas@extundo.com>
99558         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
99559         libidn and bison.
99561 2006-03-03  Simon Josefsson  <jas@extundo.com>
99563         * build-aux/maint.mk: Add indent target.
99565 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
99567         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
99568         our replacement poll.h in any case, to avoid a differing
99569         declaration from a system header.  Seen on AIX.
99571 2006-03-01  Simon Josefsson  <jas@extundo.com>
99573         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
99574         <kasal@ucw.cz>.
99576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99578         * modules/gettime (Depends-on): Add extensions module.
99579         * modules/nanosleep (Depends-on): Likewise.
99580         * modules/settime (Depends-on): Likewise.
99582 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
99585         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
99586         pedantically.
99587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99588         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
99590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
99591         not "==".  Reported by Ralf Wildenhues.
99593 2006-03-01  Karl Berry  <karl@gnu.org>
99595         * doc/Copyright/request-*: new files, synced from gnuorg.
99597 2006-03-01  Karl Berry  <karl@gnu.org>
99599         * config/srclist.txt (Copyright/*): new entries.
99601 2006-02-28  Simon Josefsson  <jas@extundo.com>
99603         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
99605 2006-02-27  Simon Josefsson  <jas@extundo.com>
99607         * lib/base64.h: Indent #define's.  From Jim Meyering
99608         <jim@meyering.net>.
99610 2006-02-27  Jim Meyering  <jim@meyering.net>
99612         Revert the change of 2006-02-24, so these files can continue
99613         to be sync'd from gettext.
99614         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
99615         of `config.h'.
99617 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
99619         * modules/intprops: New file.
99620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
99621         Add intprops.
99622         * modules/getloadavg (Files): Remove lib/intprops.h.
99623         (Depends-on): Add intprops.
99624         * modules/human: Likewise.
99625         * modules/inttostr: Likewise.
99626         * modules/openat: Likewise.
99627         * modules/sig2str: Likewise.
99628         * modules/userspec: Likewise.
99629         * modules/utimecmp: Likewise.
99630         * modules/xnanosleep: Likewise.
99631         * modules/xstrtol: Likewise.
99633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
99635         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
99636         * modules/lock-tests (TESTS): Use $(EXEEXT).
99637         * modules/tls-tests: Likewise.
99638         * modules/argp-tests: Likewise.
99639         (check_PROGRAMS): New var, replacing...
99640         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
99642 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99644         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
99645         `config.h'.
99647 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99649         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
99651 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99653         Sync from coreutils.
99654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
99655         gl_CHDIR_SAFER.
99657 2006-02-22  Jim Meyering  <jim@meyering.net>
99659         Sync from coreutils.
99660         * m4/chdir-safer.m4: New file.
99662 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99664         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
99665         AT_FDCWD exceeds INT_MAX.
99666         * lib/openat.h (AT_FDCWD): Likewise.
99668 2006-02-17  Eric Blake  <address@hidden>
99670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
99672 2006-02-16  Simon Josefsson  <jas@extundo.com>
99674         * modules/getaddrinfo (Depends-on): Add sys_socket.
99676 2006-02-15  Simon Josefsson  <jas@extundo.com>
99678         * build-aux/maint.mk: Add dsyntax-check rule.
99680 2006-02-15  Eric Blake  <ebb9@byu.net>
99682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
99683         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
99684         'present but cannot compile' warnings on cygwin.
99685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
99686         use ws2tcpip.h if sys/socket.h works.
99687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
99688         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
99690 2006-02-14  Simon Josefsson  <jas@extundo.com>
99692         * modules/maintainer-makefile (Files): Rename.
99694         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
99695         and (the local) Makefile.cfg to maint-cfg.mk.
99697         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
99698         to the latter.
99700         * modules/maintainer-makefile: New module.
99702         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
99703         severaly stripped to make it possible to build it up from scratch
99704         with reliable tests.
99706         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
99707         fixes to permit overriding the default actions when configure and
99708         makefile are not available.
99710 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
99712         Sync from coreutils.
99713         * modules/lstat (Depends-on): Don't depend on xalloc.
99714         (License): Change from GPL to LGPL, since this is now simply a
99715         replacement for a libc function.
99717 2006-02-14  Jim Meyering  <jim@meyering.net>
99719         Sync from coreutils.
99721         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
99722         failure on deficient systems, and simplify gnulib lgpl dependencies.
99723         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
99724         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
99726         * lib/xalloc-die.c: Remove unused definition of N_.
99728 2006-02-14  Jim Meyering  <jim@meyering.net>
99730         Sync from coreutils.
99731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
99732         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
99733         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
99734         double-quote uses of that variable, to accommodate the rare case in
99735         which getmntent is available in none of the libraries checked.  This
99736         happens at least on FreeBSD 5.0.
99738 2006-02-13  Simon Josefsson  <jas@extundo.com>
99740         * gnulib-tool (Usage): Fix --import, from
99741         karl@freefriends.org (Karl Berry).
99743 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99745         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
99747 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
99749         * lib/argp-namefrob.h: Restore changes accidentally lost during the
99750         "autoupdate" on 2005-12-12.
99752 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99754         * modules/closeout (Depends-on): Remove atexit.
99756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99758         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
99759         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
99761 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
99763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
99764         __EXTENSIONS__ if this causes compilation to fail.  Problem
99765         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
99766         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
99768 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
99770         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
99771         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
99772         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
99773         All uses changed.
99775 2006-01-26  Simon Josefsson  <jas@extundo.com>
99777         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
99778         prototype is visible on mingw32.
99780         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
99781         for mingw32.
99783         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
99784         mingw32).
99786 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99788         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
99789         attempt to open for write; this always fails, at least on POSIX
99790         hosts.  This reinstates the 2006-01-09 change, which was
99791         inadvertently removed.
99793 2006-01-26  Bruno Haible  <bruno@clisp.org>
99795         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
99796         Reported by Paul Eggert.
99798 2006-01-26  Bruno Haible  <bruno@clisp.org>
99799             Paul Eggert  <eggert@cs.ucla.edu>
99801         * lib/stdbool_.h (_Bool)
99802         [(! (defined __cplusplus || defined __BEOS__)
99803           && !defined __GNUC__
99804           && !(defined __HP_cc || defined __xlc__
99805                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
99806                || defined __sgi))]:
99807         #define to signed char in these cases too; this simplifies
99808         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
99809         etc., separately) and makes it more conservative.
99811 2006-01-25  Simon Josefsson  <jas@extundo.com>
99813         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
99814         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
99815         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
99817 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99819         * lib/argp-namefrob.h: Bugfix. Remove stray #
99821 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
99823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
99824         so that we test the test.
99825         Check for yet another HP-UX cc bug involving *bool |= bool.
99827 2006-01-25  Karl Berry  <karl@gnu.org>
99829         * config/srclist.txt (vasnprintf.c): sync lost.
99831 2006-01-25  Jim Meyering  <jim@meyering.net>
99833         Sync from the stable (b5) branch of coreutils:
99835         * lib/fts.c (fts_children): Don't let close() clobber errno from
99836         failed fchdir().
99838         * lib/fts.c (fts_stat): When following a symlink-to-directory,
99839         don't necessarily interpret stat-fails+lstat-succeeds as indicating
99840         a dangling symlink.  That can also happen at least for ELOOP.
99841         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
99842         FYI, this bug predates the inclusion of fts.c in coreutils.
99844         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
99845         in their own block, so pre-c99 compilers don't object.
99847         Avoid the double-free (first in fts_read, second in fts_close) that
99848         would occur when an `active' directory is made inaccessible (e.g.,
99849         via chmod a-x) during a traversal.
99850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99851         before returning.  Reproduce this failure by
99852         mkdir -p a/b; cd a; chmod a-x . b
99853         Reported by Stavros Passas.
99855 2006-01-25  Jim Meyering  <jim@meyering.net>
99857         * lib/fileblocks.c: Remove more useless parentheses.
99858         * lib/readutmp.h: Likewise.
99860 2006-01-25  Bruno Haible  <bruno@clisp.org>
99862         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99863         warnings.
99864         Reported by Paul Eggert.
99866 2006-01-25  Bruno Haible  <bruno@clisp.org>
99868         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99869         rid of a trap command. For Solaris sh.
99870         Reported by Mark D. Baushke <mdb@gnu.org>.
99872 2006-01-24  Simon Josefsson  <jas@extundo.com>
99874         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99875         Bruno.
99877 2006-01-24  Karl Berry  <karl@gnu.org>
99879         * config/srclist.txt (argp-namefrob.h): sync lost.
99881 2006-01-24  Jim Meyering  <jim@meyering.net>
99883         * modules/openat (Files): Add lib/intprops.h.
99884         From Mark D. Baushke.
99886 2006-01-24  Jim Meyering  <jim@meyering.net>
99888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99889         Reported by Mark D. Baushke.
99891 2006-01-24  Jim Meyering  <jim@meyering.net>
99893         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99895 2006-01-24  Bruno Haible  <bruno@clisp.org>
99897         * modules/strnlen (Maintainer): Change from glibc to all.
99899 2006-01-24  Bruno Haible  <bruno@clisp.org>
99901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99902         Patch by Paul Eggert.
99904 2006-01-24  Bruno Haible  <bruno@clisp.org>
99906         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99907         already has it.
99908         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99909         2005-11-26.
99911         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99912         'signed char' to avoid problems with the built-in _Bool type.
99913         Reported by Paul Eggert on 2005-11-26.
99915 2006-01-24  Bruno Haible  <bruno@clisp.org>
99917         * gnulib-tool (func_import): Avoid constructing complicated sed
99918         expressions inside backquote.
99919         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99921 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99923         These changes imported from libc.
99924         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99925         test and two separate function calls.
99926         * lib/strndup.c (__strndup): Add libc_hidden_def.
99928 2006-01-23  Simon Josefsson  <jas@extundo.com>
99930         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99931         Remove the test_*_SOURCES variable: automake infers it by default.
99932         * modules/tls-tests: Likewise.
99934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99936         Work around porting bugs reported by Dieter in
99937         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99938         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99939         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99940         Include "getopt.h" first, to check interface.
99941         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99942         !HAVE_DECL_GETENV.
99943         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99944         (__strndup): Revert to K&R-style function dfns, the glibc style.
99945         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99946         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99947         Include strnlen.h first, to get prototype properly.
99948         (strnlen): Renamed from __strnlen.
99949         Remove weak alias.
99951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99953         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99957         * config/srclist.txt: Adjust to reflect glibc reorganization.
99958         This affects only comments.
99960 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99962          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99963          Reported by Bruce Korb <bkorb@gnu.org>.
99965 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99967         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99968         to pacify gcc -Wswitch-default.
99970 2006-01-22  Bruno Haible  <bruno@clisp.org>
99972         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99973         temporary buffer for sprintf, take into account the precision also
99974         for 'd', 'i', 'u', 'o', 'x', 'X'.
99976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99978         * modules/argp-tests: New module
99979         * tests/test-argp.c: New file
99980         * tests/test-argp-2.sh: New file
99982 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99984         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99985         (__argp_base_name): Removed
99986         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99987         typo.
99988         (__argp_base_name): Provide macro definition or extern declaration
99989         depending on the configuration
99991 2006-01-20  Simon Josefsson  <jas@extundo.com>
99993         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99995 2006-01-20  Simon Josefsson  <jas@extundo.com>
99997         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99999 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
100002         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
100003         Suggested by Bruno Haible.
100005 2006-01-20  Karl Berry  <karl@gnu.org>
100007         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
100008         until changes propagate, I guess.
100010 2006-01-19  Simon Josefsson  <jas@extundo.com>
100012         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
100014 2006-01-19  Simon Josefsson  <jas@extundo.com>
100016         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
100018 2006-01-19  Simon Josefsson  <jas@extundo.com>
100020         * gnulib-tool: Set check_PROGRAMS.
100022         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
100023         modules/des-tests, modules/gc-arcfour-tests,
100024         modules/gc-arctwo-tests, modules/gc-des-tests,
100025         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
100026         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
100027         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
100028         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
100029         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
100030         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
100031         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
100032         test_*_SOURCES.
100034 2006-01-18  Simon Josefsson  <jas@extundo.com>
100036         * modules/socklen (Depends-on): Depend on sys_socket.
100038 2006-01-18  Simon Josefsson  <jas@extundo.com>
100040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
100041         modules/des-tests, modules/gc-arcfour-tests,
100042         modules/gc-arctwo-tests, modules/gc-des-tests,
100043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
100044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
100045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
100046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
100047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
100048         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
100049         $(EXEEXT) to automake TESTS variable, for mingw32.
100051 2006-01-17  Simon Josefsson  <jas@extundo.com>
100053         * modules/socklen (Include): Need sys/socket.h.
100055 2006-01-17  Bruno Haible  <bruno@clisp.org>
100057         * modules/ssize_t (Include): Add <sys/types.h>.
100059 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
100061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
100062         it's not portable and it doesn't work with cross-compiles.
100063         Problem reported by Bruno Haible.  Fix missing-$ typo in
100064         'test "gl_cv_ignore_unused_libraries" ...' that prevented
100065         -zignore from being used with Sun's C compiler.
100067 2006-01-12  Simon Josefsson  <jas@extundo.com>
100069         * lib/base64.c: Fix warning, reported by Bruno Haible
100070         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
100072 2006-01-12  Bruno Haible  <bruno@clisp.org>
100074         * modules/ldd: New file.
100075         * build-aux/ldd.sh.in: New file.
100076         * MODULES.html.sh (Support for building libraries and executables): Add
100077         ldd.
100079 2006-01-12  Bruno Haible  <bruno@clisp.org>
100081         * m4/ldd.m4: New file.
100083 2006-01-12  Bruno Haible  <bruno@clisp.org>
100085         * gnulib-tool (func_import, func_create_testdir): Don't go into an
100086         endless loop while replacing $auxdir with build-aux.
100088 2006-01-11  Simon Josefsson  <jas@extundo.com>
100090         * lib/stdint_.h (SIZE_MAX): Add missing (.
100092 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
100094         Sync from coreutils.
100095         * lib/md5.c: Fix commentary typos.
100096         (alignof, UNALIGNED_P): No need for a GCC-specific version.
100097         * lib/md5.h (__attribute__): Remove; unused.
100098         * lib/sha1.c: Fix commentary to match md5 better.
100099         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
100100         so that we don't need to worry about alignment.  All uses changed.
100101         This merges the 2005-10-28 md5 change into sha1.
100103 2006-01-11  Jim Meyering  <jim@meyering.net>
100105         Sync from coreutils.
100106         * lib/md5.c (OP): Fix spacing.
100108 2006-01-11  Bruno Haible  <bruno@clisp.org>
100110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
100111         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
100112         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
100114 2006-01-11  Bruno Haible  <bruno@clisp.org>
100116         Ensure automatic ordering between gl_LOCK and gl_ARGP.
100117         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
100118         the "early" section as well.
100120 2006-01-11  Bruno Haible  <bruno@clisp.org>
100122         Avoid "ar: no archive members specified" error on MacOS X.
100123         * gnulib-tool (func_modules_add_dummy): New function.
100124         (func_import, func_create_testdir): Invoke it.
100126 2006-01-11  Bruno Haible  <bruno@clisp.org>
100128         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
100129         with $auxdir in AC_CONFIG_FILES statements.
100131 2006-01-11  Bruno Haible  <bruno@clisp.org>
100133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100134         Initialize also noinst_HEADERS to empty.
100136 2006-01-11  Bruno Haible  <bruno@clisp.org>
100138         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
100139         variables.
100140         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
100141         autoreconf.
100143 2006-01-11  Bruno Haible  <bruno@clisp.org>
100145         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
100146         overridable by the user.
100147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100149 2006-01-10  Simon Josefsson  <jas@extundo.com>
100151         * modules/sys_socket: New file.
100153 2006-01-10  Simon Josefsson  <jas@extundo.com>
100155         * m4/sys_socket_h.m4: New file.
100157 2006-01-10  Simon Josefsson  <jas@extundo.com>
100159         * lib/socket_.h: New file.
100161 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100163         * modules/readutmp (Maintainer): Add myself.
100165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100167         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
100168         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
100169         People who are still concerned with buggy memcmp implementations
100170         can invoke gl_FUNC_MEMCMP themselves.
100172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100174         * lib/regex_internal.h (BITSET_WORD_BITS):
100175         Work around a bug in 64-bit PGC (before version 6.1-2), where the
100176         preprocessor mishandles large unsigned values as if they were signed.
100177         Problem reported by Claudio Fontana in
100178         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
100180 2006-01-10  Jim Meyering  <jim@meyering.net>
100182         Avoid the double-free (first in fts_read, second in fts_close) that
100183         would occur when an `active' directory is made inaccessible (e.g.,
100184         via chmod a-x) during a traversal.
100185         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
100186         before returning.  Reproduce this failure by
100187         mkdir -p a/b; cd a; chmod a-x . b
100188         Reported by Stavros Passas.
100190         Sync from coreutils.
100191         * lib/sha1.c: Tweak grammar in a comment.
100193 2006-01-10  Jim Meyering  <jim@meyering.net>
100195         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
100196         Patch by Joerg Sonnenberger.
100198 2006-01-10  Bruno Haible  <bruno@clisp.org>
100200         * modules/readutmp: Depend on module free.
100201         * modules/strtok_r: Depend on module restrict.
100203 2006-01-10  Bruno Haible  <bruno@clisp.org>
100205         * modules/gettext (configure.ac): Add an invocation of
100206         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
100208 2006-01-10  Bruno Haible  <bruno@clisp.org>
100210         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
100211         Reported by Werner Lemberg <wl@gnu.org>.
100213 2006-01-10  Bruno Haible  <bruno@clisp.org>
100215         * lib/localcharset.c: Update from GNU gettext.
100217 2006-01-10  Bruno Haible  <bruno@clisp.org>
100219         * lib/argp.h (__const): Remove macro. Use const instead.
100220         * lib/argp-fmtstream.h (__const): Likewise.
100221         * lib/glob_.h (__const): Remove macro.
100222         * lib/glob-libc.h: Use const instead of __const.
100224 2006-01-10  Bruno Haible  <bruno@clisp.org>
100226         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
100227         variable.
100228         Needed to avoid an automake error regarding the 'gettext' module.
100230 2006-01-09  Simon Josefsson  <jas@extundo.com>
100232         * modules/inet_ntop (Depends-on): Add restrict.
100234 2006-01-09  Simon Josefsson  <jas@extundo.com>
100236         * modules/gc-rijndael-tests (License): Put under LGPL.
100238         * modules/gc-des-tests (License): Likewise.
100240         * modules/gc-arcfour-tests (License): Likewise.
100242         * modules/gc-arctwo-tests (License): Likewise.
100244         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
100246         * modules/gc-hmac-sha1-tests (Files): Likewise.
100248         * modules/gc-hmac-md5-tests (License): Likewise.
100250         * modules/gc-sha1-tests (License): Likewise.
100252         * modules/gc-md5-tests (License): Likewise.
100254         * modules/gc-md4-tests (License): Likewise.
100256         * modules/gc-md2-tests (License): Likewise.
100258         * modules/gc-tests (License): Likewise.
100260         * modules/des-tests (License): Likewise.
100262         * modules/md4-tests (License): Likewise.
100264         * modules/md2-tests (License): Likewise.
100266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100268         Sync from coreutils:
100270         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
100271         * modules/lib-ignore: New file.
100272         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
100273         chdir-safer.m4, lchmod.m4.
100274         * modules/openat: Add mkdirat.c, openat-priv.h.
100276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100278         Sync from coreutils.
100279         * m4/lib-ignore.m4: New file.
100280         * m4/lchmod.m4: New file.
100282 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100284         Sync from coreutils.
100285         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
100286         for write access: POSIX says that must fail.
100287         * lib/fts.c (diropen): Likewise.
100288         * lib/save-cwd.c (save_cwd): Likewise.
100289         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
100290         well, for minor improvements on hosts that lack O_DIRECTORY.
100291         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
100292         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
100293         Fall back on chown if open failed with EACCES.
100295         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
100296         Report an error at compile-time if only a 1-second nominal clock
100297         resolution is found.
100299         * lib/lchmod.h: New file.
100300         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
100301         (make_dir_parents): Use lchown rather than chown, and
100302         lchmod rather than chmod.
100304         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
100305         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
100306         "proc" reported by n0dalus.
100308         * lib/mountlist.c: Include <limits.h>.
100309         (dev_from_mount_options)
100310         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
100311         New function.  It no longer assumes "dev=" has the System V meaning
100312         on Linux (since it doesn't).  It also parses "dev=" more carefully.
100313         (read_file_system_list)
100314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
100315         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
100316         dev= in that case.
100318         * lib/posixtm.h (PDS_PRE_2000): New macro.
100319         * lib/posixtm.c (year): Arg is now syntax_bits rather than
100320         allow_century.  All usages changed.  Reject dates outside the range
100321         1969-1999 if PDS_PRE_2000 is used.
100323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100325         Sync from coreutils.
100326         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
100327         (Time of day items): Mention the possibility of leap seconds.
100328         Problem reported by Dr. David Alan Gilbert.
100330 2006-01-09  Jim Meyering  <jim@meyering.net>
100332         Sync from coreutils.
100334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
100336         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
100338         * lib/modechange.c (mode_compile): Reject an invalid mode string
100339         that starts with an octal digit.  From Andreas Gruenbacher.
100341         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
100342         and dup to open_safer and dup_safer, respectively.
100343         (openat_permissive): Fix typo in comment.
100345         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
100346         "gettext.h"; either no longer needed or are guaranteed by openat.h.
100347         (_): Remove; no longer needed.
100348         (openat): Renamed from rpl_openat; no need for rpl_openat
100349         since openat.h renames openat for us.
100350         Replace most of the body with a call to openat_permissive,
100351         to avoid duplicate code.
100352         Port to (probably hypothetical) environments were mode_t is
100353         wider than int.
100354         (openat_permissive): Require mode arg, so that we can check
100355         types better.  Put it just after flags.  Change cwd failure
100356         indicator from pointer-to-bool to pointer-to-errno-value.
100357         All callers changed.
100358         Invoke openat_save_fail and/or openat_restore_fail if
100359         cwd_errno is null, so that openat can call us.
100360         (openat_permissive, fdopendir, fstatat, unlinkat):
100361         Simplify errno handling to avoid some duplicate code,
100362         as it's OK to set errno on success.
100363         * lib/openat.h: Revamp code so that function macros depend on
100364         __OPENAT_PREFIX only, not also on AT_FDCWD.
100365         (openat_ro): Remove.  Caller changed to use openat_permissive.
100366         (openat_permissive): Now a macro, if not a function.
100367         (openat_restore_fail, openat_save_fail): Now always functions,
100368         since mkdirat needs them even if __OPENAT_PREFIX is defined.
100370         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
100371         and openat.c.
100372         * lib/mkdirat.c: Include openat-priv.h.
100373         Remove definitions of macros defined therein.
100374         * lib/openat.c: Likewise.
100376         * lib/mkdirat.c (mkdirat): New file and function.
100377         * lib/openat.h (mkdirat): Declare.
100379         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
100381         * lib/openat.h (openat_permissive): Declare.
100382         (openat_ro): Define.
100384         * lib/openat.c (EXPECTED_ERRNO): New macro.
100385         (openat_permissive): New function -- used in remove.c rewrite.
100386         (all functions): Set errno just before returning, only if there
100387         was an actual failure.
100388         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
100390         Emulate openat-family functions using Linux's procfs, if possible.
100391         Idea and some code based on Ulrich Drepper's glibc changes.
100393         * lib/openat.c: (BUILD_PROC_NAME): New macro.
100394         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
100395         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
100396         before falling back on save_cwd and restore_cwd.
100397         (fdopendir, fstatat, unlinkat): Likewise.
100399         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
100400         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
100402         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
100403         as second argument to va_arg.  Otherwise, some versions of gcc
100404         warn that `if this code is reached, the program will abort'.
100406 2006-01-09  Jim Meyering  <jim@meyering.net>
100408         Sync from coreutils.
100409         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
100410         Require openat-priv.h.
100412 2006-01-09  Bruno Haible  <bruno@clisp.org>
100414         * modules/strnlen (Include): Use strnlen.h.
100416 2006-01-09  Bruno Haible  <bruno@clisp.org>
100418         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
100420 2006-01-09  Bruno Haible  <bruno@clisp.org>
100422         * lib/sysexit_.h (EX_OK): New macro.
100423         Suggested by Martin Lambers <marlam@marlam.de>.
100425 2006-01-09  Bruno Haible  <bruno@clisp.org>
100427         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
100428         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
100430 2006-01-09  Bruno Haible  <bruno@clisp.org>
100432         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
100433         numbers.
100435 2006-01-09  Bruno Haible  <bruno@clisp.org>
100437         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
100438         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
100439         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
100440         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
100442 2006-01-09  Bruno Haible  <bruno@clisp.org>
100444         * build-aux/javacomp.sh.in: New file, moved from lib/.
100445         * modules/javacomp-script (Files): Update.
100446         (configure.ac): Add AC_CONFIG_FILES invocation.
100447         (EXTRA_DIST): Remove variable.
100449         * build-aux/javaexec.sh.in: New file, moved from lib/.
100450         * modules/javaexec (Files): Update.
100451         (configure.ac): Add AC_CONFIG_FILES invocation.
100452         (EXTRA_DIST): Remove javaexec.sh.in.
100454         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
100455         * modules/csharpcomp-script (Files): Update.
100456         (configure.ac): Add AC_CONFIG_FILES invocation.
100457         (EXTRA_DIST): Remove variable.
100459         * build-aux/csharpexec.sh.in: New file, moved from lib/.
100460         * modules/csharpexec (Files): Update.
100461         (configure.ac): Add AC_CONFIG_FILES invocation.
100462         (EXTRA_DIST): Remove csharpexec.sh.in.
100464 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100466         Sync from coreutils.
100468         Add POSIX ACL support
100469         * lib/acl.h (copy_acl, set_acl): Add declarations.
100470         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
100471         systems other than Linux.
100472         (chmod_or_fchmod): New function: use fchmod when possible,
100473         and chmod otherwise.
100474         (file_has_acl): Add a POSIX ACL implementation, with a
100475         Linux-specific subcase.
100476         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
100477         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
100478         acls are unsupported.
100479         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
100480         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
100481         are unsupported.
100483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100485         Sync from coreutils.
100486         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
100488 2006-01-07  Bruno Haible  <bruno@clisp.org>
100490         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
100491         gl_EARLY.
100493 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100495         * lib/strftime.c (tzname): Don't declare if it is already #defined.
100496         Problem reported for Mingw by Mark Junker.
100498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100500         * README: Gnulib normally doesn't generate a tarball.
100502 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
100504         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
100505         long int, not int, for nanosecond counts, so that people who are
100506         used to POSIX struct timespec won't be surprised.  Reported by Jim
100507         Meyering.
100509 2005-12-28  Bruno Haible  <bruno@clisp.org>
100511         * build-aux/config.rpath: Update from GNU gettext.
100513 2005-12-16  Jim Meyering  <jim@meyering.net>
100515         * modules/fprintftime: New module.
100516         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
100518 2005-12-16  Jim Meyering  <jim@meyering.net>
100520         * m4/fprintftime.m4: New file.
100522 2005-12-16  Jim Meyering  <jim@meyering.net>
100524         * lib/fprintftime.c, lib/fprintftime.h: New files.
100526 2005-12-15  Simon Josefsson  <jas@extundo.com>
100528         * modules/socklen (configure.ac): Fix M4 macro name, to align with
100529         new m4/socklen.m4.
100531 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100533         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
100534         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
100536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100538         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
100539         * lib/argp-help.c (fill_in_uparams): Check if the constructed
100540         struct uparams is valid. Fall back to the default values if it is
100541         not.
100543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100545         * modules/argp (Files): Add argp-pin.c
100546         (Depends-on): dirname
100547         (lib_SOURCES): Add argp-pin.c
100549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100551         * m4/argp.m4:  Check if program_invocation_name and
100552         program_invocation_short_name are declared and define appropriate
100553         macros if they are not.
100555 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100557         * lib/argp-help.c (__argp_base_name): New function
100558         (__argp_short_program_name): Rewrite using __argp_base_name
100559         * lib/argp-namefrob.h: Define program_invocation_name and
100560         program_invocation_short_name if requested
100561         (__argp_base_name): Add prototype
100562         * lib/argp-parse.c (argp_def): Use gettext wrappers
100563         (argp_default_parser): Use __argp_base_name
100564         * lib/argp-pin.c: New file. Defines program_invocation_name and
100565         program_invocation_short_name on systems that lack them.
100567 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100569         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
100570         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100571         porting problem reported by Georg Schwarz in
100572         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100576         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
100577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100578         porting problem reported by Georg Schwarz in
100579         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100581 2005-12-05  Bruno Haible  <bruno@clisp.org>
100583         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
100584         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
100585         Reported by Mark Junker <mjscod@gmx.de>.
100587 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
100589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
100590         Use implementation from Albert Chin, with some
100591         comments/corrections by Stepan Kasal and myself.
100593 2005-12-02  Bruno Haible  <bruno@clisp.org>
100595         * gnulib-tool (func_import): Accept GPLed build tool modules when
100596         --lgpl is given.
100597         * modules/csharpcomp-script: New file.
100598         * modules/csharpcomp: Depend on it.
100599         * modules/javacomp-script: New file.
100600         * modules/javacomp: Depend on it.
100601         Suggested by Simon Josefsson.
100603 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
100605         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
100606         statement, to work around an HP-UX 10.20 compiler bug reported by
100607         Peter O'Gorman.
100609 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100611         * modules/savedir (Depends-on): Add openat.
100613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100615         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
100616         (uintmax_t) [defined uintmax_t]: Do not declare.
100617         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
100618         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
100619         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
100620         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
100621         sake of portability to weird hosts that C allows (though we don't
100622         know of any practical examples).
100624         * lib/savedir.h (fdsavedir): New decl.
100625         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
100626         contains most of the former guts of savedir.
100627         (savedir): Use savedirstream.
100628         Include "openat.h".
100630 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100632         * modules/obstack (Files): Add m4/ulonglong.m4.
100633         Problem reported by Davide Angelocola.
100635 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
100637         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
100638         coreutils no longer futzes with rounding modes.
100640 2005-11-14  Jim Meyering  <jim@meyering.net>
100642         * lib/mkstemp-safer.c: Include <config.h>, required for possible
100643         replacement of mkstemp.
100645 2005-11-10  Simon Josefsson  <jas@extundo.com>
100647         * lib/readline.c: Remove EOL.
100649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100651         * modules/gethrxtime (Depends-on): Add gettime.
100653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
100656         or gettimeofday; no longer needed.
100658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100660         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
100661         time business.
100662         (gethrxtime) [! (HAVE_NANOUPTIME
100663         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
100664         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
100665         our own approximation.
100667 2005-11-08  Eric Blake  <ebb9@byu.net>
100669         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100671 2005-11-08  Eric Blake  <ebb9@byu.net>
100673         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100675 2005-11-04  Bruno Haible  <bruno@clisp.org>
100677         * gnulib-tool: Implement --update mode.
100679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100681         Fix porting problem reported by Theodoros V. Kalamatianos.
100682         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
100683         Don't assume that futimes failing means we must fail.
100685 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
100688         variables to suggest the intended function of the PATH_MAX check.
100690 2005-10-30  Kean Johnston  <jkj@sco.com>
100692         Trivial changes to support SCO systems.
100693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
100694         as PATH_MAX.
100695         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
100696         where __ptr is null when no I/O is pending.
100698 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100700         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
100701         leave errno alone.  Problem reported by Dmitry V. Levin.
100703 2005-10-28  Simon Josefsson  <jas@extundo.com>
100705         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
100706         Test more.
100708         * tests/test-gc-md2.c, tests/test-md2.c: New files.
100710         * modules/md2, modules/md2-tests: New files.
100712 2005-10-28  Simon Josefsson  <jas@extundo.com>
100714         * m4/inet_ntop.m4: More tests.
100716         * m4/gc-md2.m4, md2.m4: New file.
100718 2005-10-28  Simon Josefsson  <jas@extundo.com>
100720         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
100721         "restrict" keywords, as per POSIX.  Protect the function
100722         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
100723         Don't use K&R prototypes.  Check the sprintf return values.
100724         Re-define EAFNOSUPPORT if not present.  Indent.
100726         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
100727         suggested by Bruno Haible <bruno@clisp.org>.
100729         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
100731         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
100733         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
100734         libgcrypt).
100736         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
100738         * lib/md2.h, lib/md2.c: New files.
100740 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
100742         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
100743         errno alone.  Problem reported by Frederic Jolliton.
100745 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100747         * modules/verify (License): Change from GPL to LGPL.  This is a
100748         tiny module and there are apparently near-equivalents that are
100749         under the BSD license.
100751 2005-10-24  Simon Josefsson  <jas@extundo.com>
100753         * modules/sha1: Relicense to LGPL.
100755 2005-10-24  Simon Josefsson  <jas@extundo.com>
100757         * lib/md4.h: Shrink buffer size, now that we changed the type.
100759 2005-10-23  Simon Josefsson  <jas@extundo.com>
100761         * gnulib-tool (func_import): Fix --tests-base.
100763 2005-10-22  Simon Josefsson  <jas@extundo.com>
100765         * modules/arcfour (Depends-on): Need stdint.
100767 2005-10-22  Simon Josefsson  <jas@extundo.com>
100769         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
100770         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
100772 2005-10-22  Simon Josefsson  <jas@extundo.com>
100774         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
100775         suggested by Bruno Haible <bruno@clisp.org>.
100777 2005-10-22  Simon Josefsson  <jas@extundo.com>
100779         * lib/crc.h: Include stddef.h, for size_t.
100781 2005-10-22  Simon Josefsson  <jas@extundo.com>
100783         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
100784         arcfour_context struct (simplify test vector testing in GNU
100785         Shishi).
100787 2005-10-21  Simon Josefsson  <jas@extundo.com>
100789         * modules/des, modules/des-tests: New files.
100791         * modules/gc-des, modules/gc-des-tests: New files.
100793         * tests/test-des.c, tests/test-gc-des.c: New file.
100795 2005-10-21  Simon Josefsson  <jas@extundo.com>
100797         * modules/arctwo, modules/arctwo-tests: New files.
100799         * tests/test-arctwo.c: New file.
100801         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
100803         * tests/test-gc-arctwo.c: New file.
100805 2005-10-21  Simon Josefsson  <jas@extundo.com>
100807         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
100808         Bruno Haible <bruno@clisp.org>.
100810         * m4/gc-des.m4: New file.
100812 2005-10-21  Simon Josefsson  <jas@extundo.com>
100814         * m4/arctwo.m4: New file.
100816         * m4/gc-arctwo.m4: New file.
100818 2005-10-21  Simon Josefsson  <jas@extundo.com>
100820         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
100821         block.
100823 2005-10-21  Simon Josefsson  <jas@extundo.com>
100825         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
100826         <bruno@clisp.org>.
100828         * lib/hmac-sha1.c (hmac_sha1): Likewise.
100830         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
100831         Bruno Haible <bruno@clisp.org>.
100833         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
100834         <bruno@clisp.org>.
100836 2005-10-21  Simon Josefsson  <jas@extundo.com>
100838         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
100840 2005-10-21  Simon Josefsson  <jas@extundo.com>
100842         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
100844 2005-10-21  Simon Josefsson  <jas@extundo.com>
100846         * lib/des.h, lib/des.c: New files.
100848         * lib/gc-gnulib.c: Support DES.c
100850 2005-10-21  Simon Josefsson  <jas@extundo.com>
100852         * lib/arctwo.h, lib/arctwo.c: New files.
100854         * lib/gc-gnulib.c: Support ARCTWO.
100856 2005-10-21  Simon Josefsson  <jas@extundo.com>
100858         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100859         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100861 2005-10-21  Simon Josefsson  <jas@extundo.com>
100863         * gnulib-tool (func_import, func_create_testdir): Define automake
100864         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100865         Makefile.am snippet),
100866         suggested by Bruno Haible <bruno@clisp.org>.
100868         * modules/gc (Makefile.am): Use it.
100870 2005-10-21  Bruno Haible  <bruno@clisp.org>
100872         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100873         patch.
100875 2005-10-19  Simon Josefsson  <jas@extundo.com>
100877         * tests/test-gc-rijndael.c: New file.
100879         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100881 2005-10-19  Simon Josefsson  <jas@extundo.com>
100883         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100884         interface too.
100886 2005-10-19  Simon Josefsson  <jas@extundo.com>
100888         * tests/test-gc-arcfour.c: New file.
100890         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100892 2005-10-19  Simon Josefsson  <jas@extundo.com>
100894         * modules/gc-md4, modules/gc-md4-tests: New file.
100896         * tests/test-gc-md4.c: New file.
100898 2005-10-19  Simon Josefsson  <jas@extundo.com>
100900         * m4/gc-md4.m4: New file.
100902 2005-10-19  Simon Josefsson  <jas@extundo.com>
100904         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100905         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100906         <kasal@ucw.cz>.
100908 2005-10-19  Simon Josefsson  <jas@extundo.com>
100910         * m4/gc-arcfour.m4: New file.
100912         * m4/gc-rijndael.m4: New file.
100914 2005-10-19  Simon Josefsson  <jas@extundo.com>
100916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100918 2005-10-19  Simon Josefsson  <jas@extundo.com>
100920         * lib/gc-gnulib.c: Support ARCFOUR.
100922 2005-10-19  Simon Josefsson  <jas@extundo.com>
100924         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100925         support.
100927         * lib/gc.h: Add ECB enum type.
100929         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100931 2005-10-18  Simon Josefsson  <jas@extundo.com>
100933         * tests/test-md5.c: New file.
100935         * modules/md5-tests: New file.
100937 2005-10-18  Simon Josefsson  <jas@extundo.com>
100939         * tests/test-md4.c: New file.
100941         * modules/md4, modules/md4-tests: New files.
100943 2005-10-18  Simon Josefsson  <jas@extundo.com>
100945         * m4/md4.m4: New file.
100947 2005-10-18  Simon Josefsson  <jas@extundo.com>
100949         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100951 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100953         * gnulib-tool (func_create_testdir): Omit the second check whether
100954         BUILT_SOURCES in nonempty.
100956 2005-10-17  Simon Josefsson  <jas@extundo.com>
100958         * tests/test-rijndael.c: New file.
100960 2005-10-17  Simon Josefsson  <jas@extundo.com>
100962         * modules/sha1: Depend on stdint instead of md5.
100964         * modules/md5: Depend on stdint, remove uint32_t.
100966 2005-10-17  Simon Josefsson  <jas@extundo.com>
100968         * modules/gc-sha1-tests: New file.
100970         * tests/test-gc-sha1.c: New file.
100972 2005-10-17  Simon Josefsson  <jas@extundo.com>
100974         * m4/md5.m4: Remove call to uint32_t.m4.
100976 2005-10-17  Simon Josefsson  <jas@extundo.com>
100978         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100980         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100981         md5.h.
100983         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100985         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100987 2005-10-17  Simon Josefsson  <jas@extundo.com>
100989         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100991 2005-10-17  Simon Josefsson  <jas@extundo.com>
100993         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100995 2005-10-17  Simon Josefsson  <jas@extundo.com>
100997         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100999         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
101001 2005-10-17  Bruno Haible  <bruno@clisp.org>
101003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
101004         that it can also be used in a test.
101006 2005-10-16  Bruno Haible  <bruno@clisp.org>
101008         * gnulib-tool (func_emit_tests_Makefile_am): Also define
101009         TESTS_ENVIRONMENT, so that individual tests can augment it.
101011         * gnulib-tool (func_create_testdir): Use an intermediate target for
101012         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
101013         macros, like $(ALLOCA_H), which cannot be passed through the command
101014         line.
101016 2005-10-15  Simon Josefsson  <jas@extundo.com>
101018         * modules/rijndael-tests: New file.
101020         * modules/rijndael: New file.
101022 2005-10-15  Simon Josefsson  <jas@extundo.com>
101024         * m4/rijndael.m4: New file.
101026 2005-10-15  Simon Josefsson  <jas@extundo.com>
101028         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
101030         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
101032 2005-10-14  Simon Josefsson  <jas@extundo.com>
101034         * tests/test-arcfour.c: New file.
101036         * modules/arcfour, modules/arcfour-tests: New files.
101038 2005-10-14  Simon Josefsson  <jas@extundo.com>
101040         * m4/arcfour.m4: New file.
101042 2005-10-14  Simon Josefsson  <jas@extundo.com>
101044         * lib/arcfour.h, lib/arcfour.c: New files.
101046 2005-10-14  Roland McGrath  <roland@redhat.com>
101048         Import from libc.  [BZ #1331]
101049         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
101050         macro argument.
101051         Reported by Matej Vela <vela@debian.org>.
101053 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101055         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
101056         include <wchar.h>; no longer needed.
101058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101060         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
101062 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
101063         and  Ulrich Drepper  <drepper@redhat.com>
101065         Import from libc.
101066         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
101067         instead of inline stream orientation test and two separate
101068         function calls.  Pay no attention to USE_IN_LIBIO.
101070 2005-10-13  Simon Josefsson  <jas@extundo.com>
101072         * modules/gc-hmac-md5-tests: New file.
101074         * tests/test-gc-hmac-sha1.c: New file.
101076         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
101078         * modules/gc-hmac-md5-tests: New file.
101080         * tests/test-gc-md5.c: New file.
101082         * modules/gc-md5-tests: New file.
101084 2005-10-13  Simon Josefsson  <jas@extundo.com>
101086         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
101087         Move memory allocation outside of loop.
101089 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
101091         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
101092         intermediate directory is in a read-only file system.  Problem
101093         reported by Eric Blake.
101095 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
101097         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
101099 2005-10-12  Simon Josefsson  <jas@extundo.com>
101101         * tests/test-hmac-sha1.c: New file.
101103         * modules/hmac-sha1-tests: New file.
101105         * modules/hmac-sha1: New file.
101107 2005-10-12  Simon Josefsson  <jas@extundo.com>
101109         * modules/gc-sha1: New file.
101111 2005-10-12  Simon Josefsson  <jas@extundo.com>
101113         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
101115         * tests/test-gc-pbkdf2-sha1.c: New file.
101117 2005-10-12  Simon Josefsson  <jas@extundo.com>
101119         * modules/gc-md5, modules/gc-hmac-md5: New files.
101121         * modules/gc (Files): Remove md5, memxor and hmac files.
101123 2005-10-12  Simon Josefsson  <jas@extundo.com>
101125         * m4/gc-pbkdf2-sha1.m4: New file.
101127         * m4/gc-hmac-sha1.m4: New file.
101129         * m4/gc-sha1: New file.
101131         * m4/hmac-sha1.m4: New file.
101133 2005-10-12  Simon Josefsson  <jas@extundo.com>
101135         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
101137         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
101139 2005-10-12  Simon Josefsson  <jas@extundo.com>
101141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
101142         suggested by Bruno Haible <bruno@clisp.org>.
101144 2005-10-12  Simon Josefsson  <jas@extundo.com>
101146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
101148 2005-10-12  Simon Josefsson  <jas@extundo.com>
101150         * lib/gc-pbkdf2-sha1.c: New file.
101152         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
101154 2005-10-12  Simon Josefsson  <jas@extundo.com>
101156         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
101158         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
101160 2005-10-12  Simon Josefsson  <jas@extundo.com>
101162         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
101163         GC_USE_HMAC_MD5, respectively.
101165         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
101166         (gc_md5): Fix typo.
101168         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
101170         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
101172         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
101174 2005-10-12  Bruno Haible  <bruno@clisp.org>
101176         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
101177         Reported by Stepan Kasal <kasal@ucw.cz>.
101179 2005-10-11  Simon Josefsson  <jas@extundo.com>
101181         * tests/test-crc.c: New file.
101183         * modules/crc, modules/crc-tests: New files.
101185 2005-10-11  Simon Josefsson  <jas@extundo.com>
101187         * m4/crc.m4: New file.
101189 2005-10-11  Simon Josefsson  <jas@extundo.com>
101191         * lib/gc.h: Add gc_hash and gc_hash_buffer.
101193         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
101195         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
101197 2005-10-11  Simon Josefsson  <jas@extundo.com>
101199         * lib/crc.h, lib/crc.c: New files.
101201         * lib/gc.h (gc_hash_buffer): Add doc.
101203 2005-10-11  Bruno Haible  <bruno@clisp.org>
101205         * modules/c-strcasestr: New file.
101206         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
101208 2005-10-11  Bruno Haible  <bruno@clisp.org>
101210         * modules/c-strcase: New file.
101211         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
101213 2005-10-11  Bruno Haible  <bruno@clisp.org>
101215         * lib/strcasecmp.c: Include limits.h.
101216         (strcasecmp): Avoid integer overflow on exotic platforms.
101217         * lib/strncasecmp.c: Include limits.h.
101218         (strncasecmp): Avoid integer overflow on exotic platforms.
101219         Reported by Paul Eggert.
101221 2005-10-11  Bruno Haible  <bruno@clisp.org>
101223         * lib/c-strcasestr.h: New file, from GNU gettext.
101224         * lib/c-strcasestr.c: New file, from GNU gettext.
101226 2005-10-11  Bruno Haible  <bruno@clisp.org>
101228         * lib/c-strcase.h: New file, from GNU gettext.
101229         * lib/c-strcasecmp.c: New file, from GNU gettext.
101230         * lib/c-strncasecmp.c: New file, from GNU gettext.
101232 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101234         * modules/mempcpy (License): GPL -> LGPL.
101235         * modules/strchrnul (License): Likewise.
101236         * modules/sysexits (License): Likewise.
101238 2005-10-08  Simon Josefsson  <jas@extundo.com>
101240         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
101242 2005-10-07  Simon Josefsson  <jas@extundo.com>
101244         * m4/memxor.m4: Remove gl_C_RESTRICT call.
101246 2005-10-06  Simon Josefsson  <jas@extundo.com>
101248         * tests/test-hmac-md5.c: New file.
101250         * modules/hmac-md5-tests: New file.
101252         * modules/hmac-md5: New file.
101254 2005-10-06  Simon Josefsson  <jas@extundo.com>
101256         * m4/hmac-md5.m4: New file.
101258         * m4/memxor.m4: Require gl_C_RESTRICT.
101260 2005-10-06  Simon Josefsson  <jas@extundo.com>
101262         * lib/memxor.c (memxor): Avoid casts and warnings.
101264 2005-10-06  Simon Josefsson  <jas@extundo.com>
101266         * lib/hmac-md5.c: New file.
101268         * lib/hmac.h: New file.
101270 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
101273         promotes to int, not unsigned int, to catch the AIX 5.3
101274         compiler bug.
101276 2005-10-05  Simon Josefsson  <jas@extundo.com>
101278         * modules/memxor: New file.
101280         * modules/iconv (Files): Move config.rpath to havelib, it is used
101281         there.
101283         * modules/havelib (Files): Add config.rpath.
101285 2005-10-05  Simon Josefsson  <jas@extundo.com>
101287         * m4/memxor.m4: New file.
101289 2005-10-05  Simon Josefsson  <jas@extundo.com>
101291         * lib/memxor.c (memxor): Fix compiler error.
101293         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
101294         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
101296         * lib/memxor.h, lib/memxor.c: New files.
101298         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
101299         we assume all systems have it, suggested by Jim Meyering
101300         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
101301         any systems lack sys/socket.h; mingw32 is known to lack it, but we
101302         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
101303         same reasons.
101305 2005-10-05  Simon Josefsson  <jas@extundo.com>
101307         * config/srclist.txt: Add glibc bug 1423 for md5.h.
101309 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
101311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
101312         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
101313         needed, since the source code now assumes these .h files.
101315 2005-10-05  Derek Price  <derek@ximbiot.com>
101317         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
101319 2005-10-05  Bruno Haible  <bruno@clisp.org>
101321         * modules/stdint (License): Change to LGPL.
101323 2005-10-04  Simon Josefsson  <jas@extundo.com>
101325         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
101326         D. Baushke" <mdb@gnu.org>.
101328 2005-10-04  Bruno Haible  <bruno@clisp.org>
101330         * lib/verify.h (verify_true): Provide alternative definition for C++.
101332 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
101334         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
101335         (SSIZE_MAX): New macro, if not already defined.
101336         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
101337         than 2 GiB.
101339 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101341         Sync from coreutils.
101342         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
101343         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
101344         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
101345         ULLONG_MAX doesn't work with 2.7.2.1.
101347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101349         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
101350         From Ben Pfaff.
101352         * modules/exclude (Depends-on): Depend on verify.
101353         * modules/strtoimax (Depends-on): Likewise.
101354         * modules/utimecmp (Depends-on): Likewise.
101356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101358         * lib/exclude.c: Include verify.h.
101359         (verify): Remove.  All callers changed to use verify.h's version.
101360         * lib/strtoimax.c: Likewise.
101361         * lib/utimecmp.c: Likewis.e
101363         Sync from coreutils.
101364         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
101365         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
101366         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
101367         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
101368         bother returning ENOSYS if settimeofday or stime fails; just let
101369         them return whatever errno they want to return.
101370         * lib/utimens.c: Include unistd.h, for dup2.
101371         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
101372         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
101374 2005-10-02  Jim Meyering  <jim@meyering.net>
101376         Sync from coreutils.
101377         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
101378         from glibc-2.2.5 that fails for read-only files.
101380 2005-10-02  Jim Meyering  <jim@meyering.net>
101382         Sync from coreutils.
101383         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
101384         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
101385         `#if HAVE_CONFIG_H'.
101386         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
101387         Remove AT_FDCWD test.
101388         Do not consume the fd unless successful.
101389         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
101390         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
101391         block, so that we don't even try to compile it if settimeofday is
101392         available.  This works around a compilation failure on OSF1 V5.1,
101393         due to stime requiring a `long int*' while tv_sec is `int'.
101395 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
101397         Sync from coreutils.
101398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
101399         against `yes', rather than just testing for nonempty.
101401 2005-10-01  Simon Josefsson  <jas@extundo.com>
101403         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
101404         and Darwin.
101406         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
101407         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
101408         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
101409         freeaddrinfo and gai_strerror are declared by the POSIX headers.
101410         Check if struct addrinfo is declared.
101412 2005-10-01  Simon Josefsson  <jas@extundo.com>
101414         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
101415         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
101416         AI_* and EAI_* definitions.  Protect function declarations.
101418 2005-10-01  Jim Meyering  <jim@meyering.net>
101420         Sync from coreutils.
101422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
101423         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
101424         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
101425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101426         in the inet and nsl libraries.  Required on Solaris 5.7.
101428 2005-10-01  Jim Meyering  <jim@meyering.net>
101430         Sync from coreutils.
101431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101432         in the inet and nsl libraries.  Required on Solaris 5.7.
101434 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
101436         * lib/getdelim.c (getdelim): Remove unused variables.
101438 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
101440         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
101441         so that the code works even with ancient cpp.  Portability problem
101442         with GCC 2.7.2.1 reported by Thomas M.Ott.
101444 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
101446         * modules/regex (Depends-on): Add strcase.
101448         * modules/gethostname (Licence): Change from GPL to LGPL, since
101449         gethostname.c is a trivial implementation of a standard library
101450         function.
101451         * modules/poll (License): Change from GPL to LGPL, since it's
101452         derived from LGPL code.
101454 2005-09-27  Jim Meyering  <jim@meyering.net>
101456         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
101457         HAVE_CONFIG_H.
101459         * lib/intprops.h (signed_type_or_expr__): Define.
101460         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
101461         for unsigned types.
101463 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
101465         * lib/verify.h (verify_expr): Remove, replacing with:
101466         (verify_true): New macro that returns true instead of void.
101467         (verify_type__): Remove.
101468         (verify): Use verify_true rather than verify_type__.
101470 2005-09-26  Bruno Haible  <bruno@clisp.org>
101472         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
101473         is necessary.
101474         (lib_SOURCES): Remove mbchar.c.
101475         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
101476         (Files): Add m4/mbrtowc.m4.
101477         * modules/mbiter: Likewise.
101478         * modules/mbuiter: Likewise.
101480 2005-09-26  Bruno Haible  <bruno@clisp.org>
101482         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
101483         compile mbchar.c if they are not both present.
101484         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
101485         * m4/mbiter.m4 (gl_MBITER): Likewise.
101486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
101487         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
101488         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
101490 2005-09-25  Jim Meyering  <jim@meyering.net>
101492         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
101493         also uses socklen_t.
101495 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
101497         * lib/utimens.c (ENOSYS): Define if not already defined.
101498         (futimens): Support having a null PATH if the file descriptor
101499         is nonnegative.
101501         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
101502         Remove.
101503         (__attribute): Define to empty unless GCC 3.1 or later.
101504         This works around a core dump on OpenBSD 3.4, which has GCC
101505         2.95.3, which dumps core when given __attribute__(()).  It also
101506         simplifies other tests, since we really don't want to bother with
101507         worrying about which ancient version of GCC supported what.
101508         Original problem reported by Yoann Vandoorselaere, with part of
101509         the fix suggested by Derek Price.
101511 2005-09-24  Jim Meyering  <jim@meyering.net>
101513         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
101514         so we can once again use a positive bitfield width of 1 -- now we
101515         don't have to explain why we were using a bitfield width of 2.
101517 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101519         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
101520         and similarly for the other external symbols.  Problem reported
101521         by James Gallager.
101523         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
101524         bug reported by Jim Meyering.
101526         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
101527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
101528         not needed, since socklen is a prerequisite module.
101530 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101532         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
101533         Problem reported by Eric Blake.
101534         (getaddrinfo): Initialize se so that it's not garbage.
101535         Redo internal storage allocation so that it doesn't make unportable
101536         assumptions about alignment.
101537         Fix a memory leak.
101539         * lib/utimens.c (futimens): Use futimesat if available.
101540         Prefer it to futimes since it doesn't have the futimes bug.
101542         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
101543         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
101544         Instead, declare a function that returns a pointer to an array,
101545         and use verify_type__ to declare the size of the array.
101546         Problem and germ of a solution reported by Bruno Haible.
101547         (verify_type__): Use 2, not 1, for bitfield size, to avoid
101548         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
101550 2005-09-23  Jim Meyering  <jim@meyering.net>
101552         Sync from coreutils.
101553         Correct build failure (socklen_t not defined) on at least
101554         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
101555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
101557 2005-09-23  Jim Meyering  <jim@meyering.net>
101559         * modules/getaddrinfo (Depends-on): Add socklen.
101561 2005-09-23  Bruno Haible  <bruno@clisp.org>
101563         * tests/test-verify.c: New file.
101565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101567         Sync from coreutils.
101569         * modules/argmatch (Depends-on): Add verify.
101570         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
101571         unistd-safer.
101572         * modules/save-cwd (Depends-on): Likewise.
101574         * modules/openat (Files): Add lib/openat-die.c.
101575         (Depends-on): Remove error, exitfail.
101576         Add dirname.
101578         * modules/verify: New file.
101579         * MODULES.html.sh (Diagnostics <assert.h>): New section,
101580         with "verify" module.
101582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101584         Sync from coreutils.
101586         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
101587         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
101588         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
101589         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
101590         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
101591         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
101592         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
101593         Don't bother checking for string.h, stdlib.h, unistd.h.
101594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
101595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
101596         module's job.
101597         * m4/jm-macros.m4 (gl_MACROS): Likewise.
101598         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
101600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
101601         (gl_GETDATE): Use it.
101603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
101605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101607         Sync from coreutils.
101609         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
101610         stat-time.h.
101611         * lib/argmatch.h: Include verify.h
101612         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
101613         (ARGMATCH_ASSERT): Remove; unused.
101614         * lib/canonicalize.c: Assume STDC_HEADERS.
101615         * lib/exclude.c: Include "strcase.h".
101616         * lib/regex_internal.h [!defined _LIBC]: Likewise.
101617         * lib/getusershell.c: Include stdio--.h rather than stdio.h
101618         and stdio-safer.h.
101619         (getusershell): Call fopen, not fopen_safer.
101620         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
101621         Do not include unistd-safer.h.
101622         (save_cwd): Don't call fd_safer; no longer needed
101623         now that we include fcntl--.h.
101625         * lib/getdate.y (relative_time): New type.
101626         (RELATIVE_TIME_0): New constant.
101627         (parser_control): Use relative_time instead of doing it ourselves.
101628         (%union): Add new relative_time rel member.
101629         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
101630         Now typeless.
101631         (relunit, relunit_snumber): Now of type rel.
101632         (zone, rel, relunit, get_date): Adjust to above changes.
101634         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
101635         Do not include unistd-safer.h.
101636         (getloadavg): Don't call fd_safer; no longer needed
101637         now that we include fcntl--.h.
101639         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
101640         (make_dir_parents): Treat ENOSYS like EEXIST.
101642         Improve quality of diagnostics on restore_cwd failure.
101643         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
101644         (make_dir_parents): Last arg is now int * (for errno), not bool *.
101645         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
101646         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
101647         each time through the loop.  Do not diagnose restore_cwd failure;
101648         that is the caller's job (and perhaps the caller does not care).
101650         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
101651         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
101652         If the file already exists but is not a directory, don't bother
101653         to try to make its parents.
101654         Close potential file descriptor leak if we can't chdir("/") (!).
101655         Don't always return true if chdir($PWD) fails; return true only
101656         if the requested action was done successfully (except for the
101657         chdir($PWD)).
101658         Don't log final directory unless we actually made it.
101659         Refactor to avoid duplicate code to fix up permissions.
101660         Don't attempt to fix up parent permissions if chdir($PWD) fails.
101662         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
101663         to make it a bit faster and (I hope) clearer.
101664         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
101665         Fix bug in formats like %2N.
101667         * lib/verify.h: New file.
101669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101671         Sync from coreutils.
101672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
101674 2005-09-22  Jim Meyering  <jim@meyering.net>
101676         Sync from coreutils.
101678         * m4/lstat.m4 (gl_FUNC_LSTAT):
101679         Use AC_LIBSOURCES to require lstat.c and lstat.h.
101680         Remove obsolete comment.
101681         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
101682         * m4/xstrtod.m4: Likewise.
101684         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
101686 2005-09-22  Jim Meyering  <jim@meyering.net>
101688         Sync from coreutils.
101690         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
101692         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
101693         the .tm_year member, since otherwise gcc-4.0 would now warn about
101694         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
101696         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
101697         order to avoid an unsuppressible warning from gcc on 64-bit systems.
101699         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
101700         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
101701         when run in a time zone for which daylight savings time is in effect
101702         for the starting date.
101704         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
101705         stop us from restricting permissions of just-created absolute-named
101706         directories.
101707         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
101708         to restore initial working directory.
101709         * lib/mkdir-p.c (make_dir_parents): New parameter:
101710         different_working_dir, to tell caller if/when we change the working
101711         directory and are unable to return to the initial one.
101712         * lib/mkdir-p.h (make_dir_parents): Update prototype.
101713         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
101714         `return false'.  This fixes a bug introduced on 2004-07-30.
101716         * lib/openat.c (fdopendir): Be sure to close the supplied
101717         file descriptor before returning.  This makes our replacement
101718         implementation a little closer to Solaris's, where fdopendir
101719         ties the file descriptor to the returned DIR* pointer.
101720         * lib/openat.c (unlinkat): New function.
101721         * lib/openat.h (unlinkat): Add prototype.
101722         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
101723         (openat_restore_fail): Rename from openat_restore_die.
101724         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
101726         Provide an alternative to exiting immediately upon save_cwd or
101727         restore_cwd failure.  Now, an application can arrange e.g.,
101728         to perform a longjump in that case.
101729         * lib/openat.c: Include dirname.h.
101730         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
101731         (rpl_openat, fdopendir, fstatat): Call openat_save_die
101732         and openat_restore_die rather than calling error directly.
101733         Don't include "error.h" or "exitfail.h"; they're no longer needed.
101735         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
101736         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
101737         define.
101739         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
101740         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
101741                             int utc, int nanoseconds);
101742         Background:
101743         date should not have to allocate a megabyte of virtual memory to
101744         handle a format argument like +%1048575T.  When implemented with
101745         strftime, it must allocate such a buffer, use strftime to fill it
101746         in, print it, then free it.
101747         With fprintftime, it simply prints everything and exits.
101748         With no need for memory allocation, that's one fewer way to fail.
101749         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
101750         optional field width, not before, so we accept %9:z, not %:9z.
101751         (my_strftime): Be sure to use L_('x') for literals.
101753         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
101754         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
101755         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
101756         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
101757         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
101758         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
101759         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
101760         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
101761         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
101762         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
101763         * lib/xgethostname.c, lib/xreadlink.c:
101764         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
101766         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
101767         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
101768         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
101769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101770         and don't include <sys/file.h>).
101772 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
101774         Sync from coreutils.
101776         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
101777         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
101778         [!LDAV_DONE]: Avoid unused variable warning.
101780 2005-09-21  Bruno Haible  <bruno@clisp.org>
101782         * lib/unicodeio.h (unicode_to_mb): New declaration.
101784 2005-09-20  Derek Price  <derek@ximbiot.com>
101786         * lib/getaddrinfo.c: Don't include <netdb.h> included from
101787         getaddrinfo.h.
101789 2005-09-20  Bruno Haible  <bruno@clisp.org>
101791         * gnulib-tool: Remove trailing slashes from the values specified for
101792         --source-base, --m4-base, --tests-base, --aux-dir.
101793         Suggested by Simon Josefsson <jas@extundo.com>.
101795 2005-09-20  Bruno Haible  <bruno@clisp.org>
101797         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
101798         func_modules_to_filelist, func_import, func_create_testdir): Make all
101799         sorting results locale-independent, so that gnulib-cache.m4 doesn't
101800         change when gnulib-tool is invoked in a different locale.
101802 2005-09-19  Simon Josefsson  <jas@extundo.com>
101804         * m4/socklen.m4: Fix typo.
101806 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101808         Use a consistent style for including <config.h>.
101809         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
101810         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
101811         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
101812         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
101813         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
101814         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
101815         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
101816         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
101817         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
101818         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
101819         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
101820         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
101821         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
101822         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
101823         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
101824         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
101825         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
101826         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
101827         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
101828         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
101829         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
101830         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
101831         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
101832         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
101833         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
101834         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
101835         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
101836         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
101837         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
101838         lib/xstrtoumax.c, lib/yesno.c:
101839         Standardize inclusion of config.h.
101840         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
101841         lib/inttostr.h:  Removed inclusion of config.h from header files.
101842         * lib/inttostr.c:  Adjusted in-tree users.
101843         * lib/timespec.h: Remove superfluous warning to include config.h.
101844         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
101845         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
101846         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
101847         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
101848         config.h with HAVE_CONFIG_H.
101850 2005-09-19  Jim Meyering  <jim@meyering.net>
101852         * modules/pathmax (License): Change to LGPL.
101854 2005-09-19  Derek Price  <derek@ximbiot.com>
101856         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101858 2005-09-19  Bruno Haible  <bruno@clisp.org>
101860         * gnulib-tool (import): Provide default for --tests-base.
101862 2005-09-19  Bruno Haible  <bruno@clisp.org>
101864         * doc/quote.texi: New file, extracted from gnulib.texi.
101865         * doc/ctime.texi: New file, extracted from gnulib.texi.
101866         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101867         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101868         * doc/gnulib.texi: Include them.
101870 2005-09-18  Bruno Haible  <bruno@clisp.org>
101872         Portability fix.
101873         * gnulib-tool (func_readlink): New function.
101874         (func_ln_if_changed): Use it.
101876 2005-09-18  Bruno Haible  <bruno@clisp.org>
101878         * gnulib-tool: Support --with-tests also with --import.
101879         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101880         (func_import): Use variables $testsbase and $inctests. Emit a
101881         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101882         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101883         SUBDIRS += $testsdir.
101884         (func_create_testdir): Update.
101886 2005-09-18  Bruno Haible  <bruno@clisp.org>
101888         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101889         instead of $dry_run.
101890         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101891         (func_ln_if_changed): Don't handle dry-run here.
101892         (func_import): In dry-run mode, detect more precisely which actions
101893         would be performed, and don't use "...ing" verbs.
101895 2005-09-18  Bruno Haible  <bruno@clisp.org>
101897         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101898         (func_import): Use join on two temporary files instead of three nested
101899         loops, in order to determine which files are new or old.
101901 2005-09-18  Bruno Haible  <bruno@clisp.org>
101903         * gnulib-tool (func_import): Comment out code that spits out the
101904         new files with --dry-run.
101906 2005-09-18  Bruno Haible  <bruno@clisp.org>
101908         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101912         * lib/stat-time.h: New file.
101913         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101914         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101915         in a different way.
101916         (timespec_cmp): New function.
101917         * lib/utimecmp.c: Include stat-time.h.
101918         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101919         members exist, not on the obsolescent ST_MTIM_NSEC.
101920         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101922 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101924         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101928         * MODULES.html.sh (File system functions): Add stat-time.
101929         * modules/stat-time: New file.
101930         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101931         is now done in a different way, by the stat-time module.
101932         * modules/utimecmp (Depends-on): Add stat-time.
101934 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101936         * m4/st_mtim.m4: Remove.  Superseded by...
101937         * m4/stat-time.m4: New file.
101938         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101939         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101941 2005-09-15  Derek Price  <derek@ximbiot.com>
101943         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101945 2005-09-15  Derek Price  <derek@ximbiot.com>
101947         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101948         * lib/regex_internal.c: Ditto, using this...
101949         (__GNUC_PREREQ): ...new macro.
101950         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101951         using...
101952         (__GNUC_PREREQ): ...this new macro.
101954         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101956 2005-09-15  Derek Price  <derek@ximbiot.com>
101957             Paul Eggert  <eggert@cs.ucla.edu>
101959         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101960         changes, consolidating in...
101961         * lib/regex_internal.h: ...this file.
101963 2005-09-13  Jim Meyering  <jim@meyering.net>
101965         * lib/canon-host.c: Filter through gnu indent and reword comments
101966         slightly.
101967         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101969 2005-09-13  Derek Price  <derek@ximbiot.com>
101971         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101972         failure.
101973         Reported by Jim Meyering  <jim@meyering.net>.
101975 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101977         * lib/base64.c: Typo.
101978         (base64_encode): Put b64str in initialized data section.
101980 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101982         Merge glibc and coreutils changes into gnulib, plus a few
101983         extra fixes.
101984         * lib/md5.c: Use #error rather than a string.
101985         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101986         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101987         (__attribute__): Define to empty for non recent-GCC.
101988         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101989         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101990         Renamed from their non-__ counterparts, with new macros replacing
101991         them if not _LIBC.  Add __THROW attribute.
101992         (rol): Remove.
101993         (struct md5_ctx): Align buffer if using GCC.
101994         * lib/sha1.h (struct sha1_ctx): Likewise.
101995         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101996         The old name was backwards.
101997         (NOTSWAP): Remove; not used.
101998         (rol): New macro, moved here from md5.h.
101999         (sha1_process_block): Remove a FIXME that doesn't make sense.
102001 2005-09-12  Derek Price  <derek@ximbiot.com>
102003         Return usable errors from canon-host.
102004         * lib/canon-host.h: New file.
102005         * lib/canon-host.c (canon_host): Wrap...
102006         (canon_host_r): ...this new function, which now relies exclusively on
102007         getaddrinfo.
102008         (ch_strerror): New function.
102009         (last_cherror): New global.
102010         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
102011         interface.
102012         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
102013         void *.
102014         (freeaddrinfo): Free ai->ai_canonname when set.
102016 2005-09-12  Derek Price  <derek@ximbiot.com>
102018         Make canon-host require getaddrinfo.
102019         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
102020         AC_LIBSOURCE canon-host.h.  Call...
102021         (gl_PREREQ_CANON_HOST): ...this new function, which requires
102022         gl_GETADDRINFO.
102023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
102025 2005-09-12  Derek Price  <derek@ximbiot.com>
102027         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
102028         LGPL.
102029         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
102031 2005-09-12  Derek Price  <derek@ximbiot.com>
102033         * lib/gai_strerror.c: Include config.h when available.  Include
102034         getaddrinfo.h before other headers to test interface.
102035         Reported by Larry Jones <lawrence.jones@ugs.com>.
102037 2005-09-12  Derek Price  <derek@ximbiot.com>
102038             Paul Eggert  <eggert@cs.ucla.edu>
102040         * modules/glob (Files): Add glob-libc.h.
102042 2005-09-12  Derek Price  <derek@ximbiot.com>
102043             Paul Eggert  <eggert@cs.ucla.edu>
102045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
102046         glob_.h, glob-libc.h.
102047         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
102049 2005-09-12  Derek Price  <derek@ximbiot.com>
102050             Paul Eggert  <eggert@cs.ucla.edu>
102052         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
102053         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
102054         protecting things that should be done only in gnulib contexts.
102055         * lib/glob_.h: New file, containing only the glob things needed for
102056         gnulib.
102057         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
102058         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
102059         (glob, globfree, glob_pattern_p): Now defined simply in terms of
102060         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
102061         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
102062         and to respect the namespace rules better.
102064 2005-09-08  Simon Josefsson  <jas@extundo.com>
102066         * modules/socklen: New file.
102068 2005-09-08  Simon Josefsson  <jas@extundo.com>
102070         * m4/socklen.m4: New file.
102072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102074         * modules/utimens (Files): Add m4/utimbuf.m4, since
102075         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
102076         Reported by Sergey Poznyakoff.
102078 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102080         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
102081         definitions, since that's the preferred style in glibc.
102082         Fix a minor spacing issue, and update copyright notice to match
102083         glibc's.
102085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102087         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
102089 2005-09-06  Simon Josefsson  <jas@extundo.com>
102091         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
102092         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
102094 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102096         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
102097         warning.
102099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102101         * config/srclist.txt: Add glibc bug 1302.
102103 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
102105         Change bitset word type from unsigned int to unsigned long int,
102106         as this has better performance on typical 64-bit hosts.
102107         Port bitset code to hosts with unusual word sizes.
102108         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
102109         (build_collating_symbol):
102110         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
102111         argument is a bitset.  This is merely a style issue, but it makes
102112         it clearer that an entire array is expected.
102113         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
102114         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
102115         Port to the case where bitset_word is not the same as unsigned int.
102116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
102117         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
102118         Likewise.
102119         * lib/regexec.c (check_dst_limits_calc_pos_1,
102120         check_subexp_matching_top):
102121         (build_trtable, group_nodes_into_DFAstates):
102122         Likewise.
102123         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
102124         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
102125         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
102126         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
102127         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
102128         * lib/regcomp.c (optimize_subexps, lower_subexp):
102129         Work even if bitset_word has holes in its bitwise representation.
102130         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
102131         * lib/regexec.c (check_dst_limits_calc_pos_1,
102132         check_subexp_matching_top):
102133         Likewise.
102134         * lib/regex_internal.c (re_string_reconstruct):
102135         Don't assume UCHAR_MAX == 255.
102136         * lib/regex_internal.h (bitset_set_all): Likewise.
102137         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
102138         All uses changed.
102139         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
102140         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
102141         All uses changed.
102142         (BITSET_WORD_MAX): New macro.
102143         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
102144         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
102145         (bitset_empty, bitset_copy):
102146         Prefer sizeof (bitset) to multiplying it out ourselves.
102147         (bitset_not_merge): Remove; unused.
102148         (bitset_contain): Return bool, not unsigned int with one bit on.
102149         All callers changed.
102150         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
102151         alignment than re_node_set; do this by defining a new internal
102152         type struct dests_alloc and using it to allocate memory.
102154 2005-09-05  Bruno Haible  <bruno@clisp.org>
102156         * gnulib-tool (func_import): Fix comparison in handling of symbolic
102157         links.
102159 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
102161         * modules/size_max (Makefile.am): Add size_max.h
102163 2005-09-04  Derek Price  <derek@ximbiot.com>
102165         * gnulib-tool (func_import): Fix reversed $symbolic logic.
102167 2005-09-03  Simon Josefsson  <jas@extundo.com>
102169         * gnulib-tool: Fix typo.
102171 2005-09-03  Simon Josefsson  <jas@extundo.com>
102173         * config/srclist.txt: Add glibc bug 1293.
102175 2005-09-03  Derek Price  <derek@ximbiot.com>
102177         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
102178         From Larry Jones <lawrence.jones@ugs.com>.
102180 2005-09-02  Simon Josefsson  <jas@extundo.com>
102182         * modules/socklen: New file.
102184 2005-09-02  Simon Josefsson  <jas@extundo.com>
102186         * modules/havelib: New module.
102188         * modules/gettext, modules/iconv, modules/lock, modules/readline:
102189         Use havelib.
102191 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102193         Check for arithmetic overflow when calculating sizes, to prevent
102194         some buffer-overflow issues.  These patches are conservative, in the
102195         sense that when I couldn't determine whether an overflow was possible,
102196         I inserted a run-time check.
102197         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
102198         macros.
102199         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
102200         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
102201         (re_xnrealloc, re_x2nrealloc): New inline functions.
102202         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
102203         parse_bracket_exp):
102204         (build_equiv_class, build_charclass): Check for arithmetic overflow
102205         in size expression calculations.
102206         * lib/regex_internal.c (re_string_realloc_buffers):
102207         (build_wcs_upper_buffer, re_node_set_add_intersect):
102208         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
102209         (re_dfa_add_node, register_state): Likewise.
102210         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
102211         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
102212         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
102213         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
102215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102217         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102218         m4/ulonglong.m4.  Problem reported by Martin Lambers.
102220 2005-09-02  Bruno Haible  <bruno@clisp.org>
102222         Support for lib vs. lib64 distinction on biarch platforms.
102223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
102224         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
102225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
102227 2005-09-02  Bruno Haible  <bruno@clisp.org>
102229         * gnulib-tool (import): In the other first-use case, provide defaults
102230         as well.
102232 2005-09-02  Bruno Haible  <bruno@clisp.org>
102234         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
102235         patches not yet found in the latest gettext release.
102237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102239         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
102240         to avoid a collision with bits/local_lim.h in glibc.
102241         All uses changed.  Problem reported by Dmitry V. Levin in
102242         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
102244         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
102245         bugs in int versus size_t comparisons.
102246         (re_string_context_at): Fix bug where the code assumed that
102247         Idx is signed.
102249         Use bool where appropriate.
102250         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
102251         All callers changed.
102252         (calc_eclosure_iter): Likewise, for ROOT arg.
102253         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
102254         (build_charclass_op): Likewise, for NON_MATCH arg.
102255         * lib/regex_internal.c (re_string_allocate, re_string_construct):
102256         (re_string_construct_common): Likewise, for ICASE arg.
102257         * lib/regexec.c (re_search_2_stub, re_search_stub):
102258         Likewise, for RET_LEN arg.
102259         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
102260         (set_regs): Likewise, for FL_BACKTRACK arg.
102261         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
102262         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
102263         (calc_eclosure_iter, parse_bracket_exp):
102264         Use bool for internal variables that are booleans.
102265         * lib/regexec.c (re_search_internal, check_matching,
102266         proceed_next_node):
102267         (set_regs, build_sifted_states, sift_states_bkref):
102268         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
102269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102270         (find_collation_sequence_value):
102271         Likewise.
102272         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
102273         (re_node_set_compare):
102274         Return bool, not int. All callers changed.
102275         * lib/regexec.c (check_halt_node_context, check_dst_limits):
102276         (build_trtable, check_node_accept): Likewise.
102277         * lib/regex_internal.h: Include stdbool.h.
102279         Fix bugs uncovered when converting to bool.
102280         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
102281         failure instead of charging ahead blindly.
102282         * lib/regex_internal.c (register_state): Likewise.
102283         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
102284         for freeing internal storage.
102285         (group_nodes_into_DFA_states): Use unsigned int, not int, for
102286         bitset pieces used as boolean, to avoid undefined behavior
102287         on hosts that do int overflow checking.
102289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102291         * config/srclist.txt: Add glibc bugs 1285-1287.
102293 2005-09-01  Jim Meyering  <jim@meyering.net>
102295         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
102296         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
102297         Require gl_STAT_MACROS, too.
102299 2005-09-01  Bruno Haible  <bruno@clisp.org>
102301         * gnulib-tool (import): In the first-use case, provide defaults.
102303 2005-09-01  Bruno Haible  <bruno@clisp.org>
102305         * gnulib-tool (func_import): Remove the .tmp files.
102307 2005-09-01  Bruno Haible  <bruno@clisp.org>
102309         * gnulib-tool (func_import): Fix handling of symbolic links.
102311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102313         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
102314         old glibc regex code mishandles strings longer than 2**31 bytes.
102315         This patch fixes this when the regex code is used in gnulib
102316         (i.e., outside glibc).
102318         This patch should not affect the use of the regex code inside
102319         glibc.  No doubt this problem also needs to be handled for glibc
102320         as well, but the result will be an incompatible change to the
102321         glibc ABI, and the old ABI will have to be supported too.  That
102322         can be the subject for another patch.
102324         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
102325         governing whether the rest of this patch is active.  By default,
102326         the macro is disabled and the patch has no effect.
102327         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
102328         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
102329         (struct re_pattern_buffer, re_search, re_search_2, re_match):
102330         (re_match_2, re_set_registers): Use the new types.
102331         * lib/regex_internal.h (Idx, re_hashval_t): New types.
102332         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
102333         New macros.
102334         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
102335         (re_string_context_at, bin_tree_t, re_dfastate_t):
102336         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
102337         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
102338         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
102339         (re_string_char_size_at, re_string_wchar_at):
102340         (re_string_elem_size_at):
102341         Use the new types and macros to port to 64-bit hosts.
102342         Use unsigned types for internal values, so that the code
102343         mostly works even for arrays larger than SSIZE_MAX.
102344         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
102345         (search_duplicated_node, calc_eclosure_iter, fetch_number):
102346         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
102347         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
102348         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
102349         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
102350         (calc_inveclosure, parse_dup_op, build_range_exp):
102351         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
102352         (fetch_number, create_token_tree, mark_opt_subexp):
102353         Likewise.
102354         * lib/regex_internal.c (re_string_construct_common,
102355         create_ci_newstate):
102356         (create_cd_newstate, re_string_allocate, re_string_construct):
102357         (re_string_realloc_buffers, build_wcs_upper_buffer):
102358         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102359         (re_string_reconstruct, re_string_peek_byte_case):
102360         (re_string_fetch_byte_case, re_string_context_at):
102361         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102362         (re_node_set_init_copy, re_node_set_add_intersect):
102363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102365         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102366         (re_acquire_state, re_acquire_state_context, register_state):
102367         Likewise.
102368         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
102369         search_cur_bkref_entry):
102370         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
102371         (re_search_internal, re_search_2_stub, re_search_stub)
102372         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
102373         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
102374         (update_cur_sifted_state, check_dst_limits):
102375         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102376         (check_subexp_limits, sift_states_bkref, merge_state_array):
102377         (check_subexp_matching_top, get_subexp, get_subexp_sub):
102378         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
102379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102380         (expand_bkref_cache, check_node_accept_bytes):
102381         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
102382         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
102383         (acquire_init_state_context, check_halt_node_context):
102384         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
102385         (sift_states_backward, clean_state_log_if_needed):
102386         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
102387         (find_recover_state, transit_state_sb, transit_state_mb):
102388         (transit_state_bkref, build_trtable, match_ctx_clean):
102389         Likewise.
102390         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
102391         to work around an assumption that REG_MISSING is negative.
102393         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
102394         (seek_collating_symbol_entry) [defined _LIBC]:
102395         (lookup_collation_sequence_value) [defined _LIBC]:
102396         (build_range_exp, build_collating_symbol) [defined _LIBC]:
102397         Use prototypes rather than old-style function definitions.
102398         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
102399         (transit_state_sb) [0]:
102400         (find_collation_sequence_value) [defined _LIBC]: Likewise.
102402         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
102403         rm_eo.
102405         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
102406         (optimize_subexps, lower_subexp):
102407         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
102408         since the signed shift might overflow.  Use 1u<<31 instead.
102409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
102410         Likewise.
102411         * lib/regexec.c (check_dst_limits_calc_pos_1,
102412         check_subexp_matching_top): Likewise.
102414         * lib/regcomp.c (optimize_subexps, lower_subexp):
102415         Use CHAR_BIT rather than 8, for clarity.
102416         * lib/regexec.c (check_dst_limits_calc_pos_1):
102417         (check_subexp_matching_top): Likewise.
102418         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
102419         have to worry about portability issues when shifting it left.
102420         Remove no-longer-needed test for table_size > 0.
102421         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
102422         in a word, as the resulting behavior is undefined.
102423         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
102424         in one case, a <= should have been an <, and in another case the
102425         whole test was missing.
102426         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
102427         the standard name CHAR_BIT.
102428         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
102429         this is not true on one's complement and signed-magnitude hosts.
102431         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
102432         next_last_offset.
102433         (struct re_dfa_t): Remove unused member states_alloc.
102434         * lib/regcomp.c (init_dfa): Don't initialize unused members.
102436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102438         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
102439         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
102440         and large-file glibc and in 32-bit large-file Solaris.
102442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102444         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
102445         lengths fit in regoff_t; this isn't true if regoff_t is the same
102446         width as size_t.
102447         * lib/regex.c (re_search_internal): 5th arg is LAST_START
102448         (= START + RANGE) instead of RANGE.  This avoids overflow
102449         problems when regoff_t is the same width as size_t.
102450         All callers changed.
102451         (re_search_2_stub): Check for overflow when adding the
102452         sizes of the two strings.
102453         (re_search_stub): Check for overflow when adding START
102454         to RANGE; if it occurs, substitute the extreme value.
102456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102458         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
102460 2005-08-31  Jim Meyering  <jim@meyering.net>
102462         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
102463         a pointer-to-const.
102464         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
102465         (register_state): Likewise.
102466         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
102467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102468         (group_nodes_into_DFAstates): Likewise.
102470 2005-08-31  Jim Meyering  <jim@meyering.net>
102472         * check-module: Add a FIXME comment.
102474 2005-08-31  Eric Blake  <ebb9@byu.net>
102476         * modules/unistd-safer (Files): Add unistd--.h.
102477         * modules/stdio-safer (Files): Add stdio--.h.
102479 2005-08-31  Derek Price  <derek@ximbiot.com>
102481         * lib/getdelim.c (getdelim): Return EOF on EOF.
102482         Reported by Larry Jones <lawrence.jones@ugs.com>.
102484 2005-08-31  Bruno Haible  <bruno@clisp.org>
102486         Avoid unnecessary diffs in the generated lib/Makefile.am.
102487         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
102488         the generated files.
102489         (func_import): Don't set cmd.
102491 2005-08-31  Bruno Haible  <bruno@clisp.org>
102493         * lib/strstr.c: Include <stddef.h>, for NULL.
102494         * lib/strcasestr.c: Likewise.
102495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102497 2005-08-31  Bruno Haible  <bruno@clisp.org>
102499         * gnulib-tool: New option --macro-prefix.
102500         (func_import): Use macro_prefix.
102501         (import): Handle option --macro-prefix.
102503 2005-08-31  Bruno Haible  <bruno@clisp.org>
102505         * gnulib-tool (import): Rename most ac_* variables to cached_*.
102506         Also use new variables cached_lgpl, cached_libtool.
102508 2005-08-31  Bruno Haible  <bruno@clisp.org>
102510         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
102511         always instantiating them.
102513 2005-08-31  Bruno Haible  <bruno@clisp.org>
102515         * gnulib-tool (func_import): Read the previous cached settings
102516         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
102517         earlier added by gnulib but are now dropped. Warn when a gnulib file
102518         overwrites a non-gnulib file.
102520 2005-08-31  Bruno Haible  <bruno@clisp.org>
102522         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
102523         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
102524         projects that don't keep autogenerated files in CVS. Put into
102525         actioncmd only the specified modules, not the transitive closure.
102527 2005-08-31  Bruno Haible  <bruno@clisp.org>
102529         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
102530         Create directories that shall be filled.
102531         (import): Don't look for gl_* macros in configure.ac. Recurse across
102532         all directories containing a gnulib-cache.m4 files, if meaningful.
102534 2005-08-31  Bruno Haible  <bruno@clisp.org>
102536         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
102537         (import): Set seen_libtool when we see gl_LIBTOOL.
102539 2005-08-31  Bruno Haible  <bruno@clisp.org>
102541         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
102542         declaration macro definitions from generated gnulib.m4.
102544 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
102546         * lib/iconvme.h: Add prototype for iconv_alloc.
102548 2005-08-29  Simon Josefsson  <jas@extundo.com>
102550         * lib/iconvme.c: Fix errno.
102552 2005-08-29  Bruno Haible  <bruno@clisp.org>
102554         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
102555         that it works when the directory contains spaces.
102557 2005-08-29  Bruno Haible  <bruno@clisp.org>
102559         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
102561 2005-08-29  Bruno Haible  <bruno@clisp.org>
102563         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
102564         Emit more advice.
102566 2005-08-29  Bruno Haible  <bruno@clisp.org>
102567         and Stepan Kasal  <kasal@ucw.cz>
102569         * check-module: If more parameters are given, check each of them
102570         separately; add more exceptions, as noted by Jim Meyering.
102571         (check_module): New procedure.
102572         (%exempt_header): Now contains all exceptions.
102574 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
102576         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
102578 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102580         * lib/iconvme.c: Split iconv_string into iconv_alloc.
102582 2005-08-28  Bruno Haible  <bruno@clisp.org>
102584         * m4/gnulib-tool.m4: New file.
102586 2005-08-27  Jim Meyering  <jim@meyering.net>
102588         * modules/unistd-safer (Files): Add pipe-safer.c.
102589         * modules/fcntl-safer (Files): Add creat-safer.c.
102591 2005-08-27  Jim Meyering  <jim@meyering.net>
102593         * m4/stdlib-safer.m4: New file.  From coreutils.
102594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
102595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
102596         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
102597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
102598         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
102600 2005-08-27  Jim Meyering  <jim@meyering.net>
102602         * lib/fopen-safer.c: Merge minor changes from coreutils.
102603         * lib/dup-safer.c: Likewise.
102604         * lib/fd-safer.c: Likewise.
102606         Merge from coreutils.
102607         * lib/stdio--.h: New file.
102608         * lib/stdlib--.h: New file.
102609         * lib/mkstemp-safer.c: New file.
102611         GNU tar needs these.
102612         * lib/pipe-safer.c: New file.
102613         * lib/creat-safer.c: New file.
102614         * lib/fcntl--.h (creat): Define to creat_safer.
102615         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
102616         * lib/unistd--.h (pipe): Define to pipe_safer.
102617         * lib/unistd-safer.h: Declare pipe_safer.
102619 2005-08-26  Simon Josefsson  <jas@extundo.com>
102621         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
102622         Haible <bruno@clisp.org>.
102624 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
102626         * lib/regex_internal.h: Remove all references to
102627         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
102628         or better.
102629         (bitset_not, bitset_merge, bitset_not_merge):
102630         (bitset_mask, re_string_allocate, re_string_construct):
102631         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
102632         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
102633         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
102634         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
102635         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102636         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102637         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
102638         (re_acquire_state_context):
102639         Remove unnecessary forward decls.
102640         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
102641         Put __attribute at function definition,
102642         now that the function decl has been removed.
102643         * lib/regex_internal.c (re_string_peek_byte_case):
102644         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
102645         Likewise.
102647 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
102649         * m4/regex.m4: Add AC_PREREQ(2.50).
102650         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
102652 2005-08-25  Simon Josefsson  <jas@extundo.com>
102654         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
102655         __fsetlocking.
102657 2005-08-25  Simon Josefsson  <jas@extundo.com>
102659         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
102660         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
102661         GLIBC specific code.
102663 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102665         Make regex safe for g++.  This fixes one real bug (an "err"
102666         that should have been "*err").  g++ problem reported by
102667         Sam Steingold.
102668         * lib/regex_internal.h (re_calloc): New macro, consistent with
102669         re_malloc etc.  All callers of calloc changed to use re_calloc.
102670         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
102671         not int.  All callers changed.
102672         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
102673         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
102674         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
102675         (find_recover_state): Change "err" to "*err"; this fixes what
102676         appears to be a real bug.
102677         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
102678         versus int.
102680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102682         * modules/regex (Depends-on): Add malloc, since the code
102683         assumes that !malloc(0) means failure.
102685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102687         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
102689         alloca modernization/simplification for regex.
102690         * lib/regex.c: Remove portability cruft for alloca.  This no longer
102691         needs to be at the start of the file, and can be moved into
102692         regex_internal.h and simplified.
102693         * lib/regex_internal.h: Include <alloca.h>.
102694         (__libc_use_alloca) [!defined _LIBC]: New macro.
102695         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
102696         now works outside glibc.
102698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102700         * config/srclist.txt: Add glibc bugs 1241, 1245.
102702 2005-08-25  Jim Meyering  <jim@meyering.net>
102704         * lib/open-safer.c: Include <config.h>.
102705         Otherwise, we'd lose LARGEFILE support in any file using
102706         e.g. "fcntl--.h"
102708 2005-08-25  Bruno Haible  <bruno@clisp.org>
102710         * m4/minmax.m4: Require autoconf 2.52.
102711         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
102712         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
102713         alternatives of translit over the alphabet.
102714         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
102716 2005-08-24  Simon Josefsson  <jas@extundo.com>
102718         * tests/test-getpass.c: New file.
102720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102722         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
102723         for GNU regex features.
102725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102727         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
102728         * lib/regex.h (regerror): Likewise.
102730         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
102731         requires this.  (The code never needed it.)
102733         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
102734         All uses of recently-renamed identifiers changed to use the new,
102735         POSIX-compliant names.  The code will build and run just fine
102736         without these changes, but it's better to eat our own dog food
102737         and use the standard-conforming names.
102739         * lib/regex.h: Fix a multitude of POSIX name space violations.
102740         These changes have an effect only for programs that define
102741         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
102742         do not change anything for programs compiled in the normal way.
102743         Also, there is no effect on the ABI.
102745         (_REGEX_SOURCE): New macro.
102746         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
102747         defined and _GNU_SOURCE is not; this fixes a name space violation.
102749         Rename the following macros to obey POSIX requirements.
102750         The old names are still visible as macros if _REGEX_SOURCE is defined.
102751         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
102752         RE_BACKSLASH_ESCAPE_IN_LISTS.
102753         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
102754         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
102755         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
102756         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
102757         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
102758         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
102759         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
102760         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
102761         (REG_INTERVALS): renamed from RE_INTERVALS.
102762         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
102763         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
102764         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
102765         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
102766         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
102767         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
102768         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
102769         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
102770         RE_UNMATCHED_RIGHT_PAREN_ORD.
102771         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
102772         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
102773         (REG_DEBUG): renamed from RE_DEBUG.
102774         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
102775         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
102776         unusual, since we can't clash with the POSIX REG_ICASE.
102777         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
102778         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
102779         (REG_NO_SUB): renamed from RE_NO_SUB.
102780         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
102781         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
102782         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
102783         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
102784         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
102785         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
102786         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
102787         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
102788         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
102789         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
102790         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
102791         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
102792         RE_SYNTAX_POSIX_MINIMAL_BASIC.
102793         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
102794         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
102795         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
102796         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
102797         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
102798         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
102799         (REG_FIXED): Renamed from REGS_FIXED.
102800         (REG_NREGS): Renamed from RE_NREGS.
102802         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
102803         of other REG_* macros, since POSIX says the user is allowed to
102804         #undef these macros selectively.
102806         (reg_errcode_t): Update comment stating what other tables need
102807         to be consistent.
102809         Rename the following enum values to obey POSIX requirements.
102810         The old names are still visible as macros.
102811         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
102812         is not defined, since GNU is supposed to be a superset of POSIX as
102813         much as possible, and since we want reg_errcode_t to be a signed
102814         type for implementation consistency.
102815         (_REG_NOERROR): Renamed from REG_NOERROR.
102816         (_REG_NOMATCH): Renamed from REG_NOMATCH.
102817         (_REG_BADPAT): Renamed from REG_BADPAT.
102818         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
102819         (_REG_ECTYPE): Renamed from REG_ECTYPE.
102820         (_REG_EESCAPE): Renamed from REG_EESCAPE.
102821         (_REG_ESUBREG): Renamed from REG_ESUBREG.
102822         (_REG_EBRACK): Renamed from REG_EBRACK.
102823         (_REG_EPAREN): Renamed from REG_EPAREN.
102824         (_REG_EBRACE): Renamed from REG_EBRACE.
102825         (_REG_BADBR): Renamed from REG_BADBR.
102826         (_REG_ERANGE): Renamed from REG_ERANGE.
102827         (_REG_ESPACE): Renamed from REG_ESPACE.
102828         (_REG_BADRPT): Renamed from REG_BADRPT.
102829         (_REG_EEND): Renamed from REG_EEND.
102830         (_REG_ESIZE): Renamed from REG_ESIZE.
102831         (_REG_ERPAREN): Renamed from REG_ERPAREN.
102832         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
102833         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
102834         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
102835         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
102837         (_REG_RE_NAME, _REG_RM_NAME): New macros.
102838         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
102839         changed.  But support the old name if the new one is not defined
102840         and if _REGEX_SOURCE.
102842         Change the following member names in struct re_pattern_buffer.
102843         The old names are still supported if !_REGEX_SOURCE.
102844         The new names are always supported, regardless of _REGEX_SOURCE.
102845         (re_buffer): Renamed from buffer.
102846         (re_allocated): Renamed from allocated.
102847         (re_used): Renamed from used.
102848         (re_syntax): Renamed from syntax.
102849         (re_fastmap): Renamed from fastmap.
102850         (re_translate): Renamed from translate.
102851         (re_can_be_null): Renamed from can_be_null.
102852         (re_regs_allocated): Renamed from regs_allocated.
102853         (re_fastmap_accurate): Renamed from fastmap_accurate.
102854         (re_no_sub): Renamed from no_sub.
102855         (re_not_bol): Renamed from not_bol.
102856         (re_not_eol): Renamed from not_eol.
102857         (re_newline_anchor): Renamed from newline_anchor.
102859         Change the following member names in struct re_registers.
102860         The old names are still supported if !_REGEX_SOURCE.
102861         The new names are always supported, regardless of _REGEX_SOURCE.
102862         (rm_num_regs): Renamed from num_regs.
102863         (rm_start): Renamed from start.
102864         (rm_end): Renamed from end.
102866         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102867         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102868         Prepend __ to parameter names.
102870         Undo yesterday's changes.
102872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102874         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102875         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102876         lib/regex.c.
102878 2005-08-24  Jim Meyering  <jim@meyering.net>
102880         Sync from coreutils.
102881         * m4/fcntl-safer.m4: New file.
102883         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102884         and object files for this module.
102886 2005-08-24  Jim Meyering  <jim@meyering.net>
102888         Sync from coreutils.
102889         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102891 2005-08-24  Jim Meyering  <jim@meyering.net>
102893         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102894         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102896 2005-08-24  Jim Meyering  <jim@meyering.net>
102898         * modules/fcntl-safer: New module.
102899         * modules/fts (Depends-on): Add fcntl-safer.
102900         * MODULES.html.sh (File descriptor based Input/Output):
102901         Add fcntl-safer.
102903 2005-08-24  Bruno Haible  <bruno@clisp.org>
102905         Support for unit test modules.
102906         * modules/README: Mention tests modules.
102907         * modules/TEMPLATE-TESTS: New file.
102908         * gnulib-tool: New options --extract-tests-module, --with-tests and
102909         --tests-base (unused for the moment).
102910         (testsbase, inctests): New variables.
102911         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102912         (func_verify_module): Exclude TEMPLATE-TESTS.
102913         (func_verify_nontests_module, func_verify_tests_module): New functions.
102914         (func_get_dependencies): Add implicit dependency for tests modules.
102915         (func_get_tests_module): New function.
102916         (func_modules_transitive_closure): When --with-tests was specified,
102917         include the unit tests as well, unless explicitly avoided.
102918         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102919         (func_emit_tests_Makefile_am): New function.
102920         (func_create_testdir): When --with-tests was specified, emit a
102921         tests/ directory.
102922         * MODULES.html.sh (Future developments): Update.
102924 2005-08-24  Bruno Haible  <bruno@clisp.org>
102926         * modules/tls-tests: New file.
102927         * tests/test-tls.c: New file, from GNU gettext.
102929 2005-08-24  Bruno Haible  <bruno@clisp.org>
102931         * modules/lock-tests: New file.
102932         * tests/test-lock.c: New file, from GNU gettext.
102934 2005-08-24  Bruno Haible  <bruno@clisp.org>
102936         * lib/lock.h: Add multiple inclusion guard.
102937         * lib/tls.h: Add multiple inclusion guard.
102939 2005-08-24  Bruno Haible  <bruno@clisp.org>
102941         * gnulib-tool: Add support for the --aux-dir option to
102942         --create-testdir, --create-megatestdir, --test, --megatest.
102943         (func_create_testdir, func_create_megatestdir): Optionally emit a
102944         AC_CONFIG_AUX_DIR directive.
102945         (create-testdir, create-megatestdir, test, megatest): Provide a
102946         default value for $auxdir.
102948 2005-08-24  Bruno Haible  <bruno@clisp.org>
102950         * gnulib-tool (import): Use compound statement instead of subshell
102951         where possible.
102953 2005-08-24  Bruno Haible  <bruno@clisp.org>
102955         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102957 2005-08-24  Bruno Haible  <bruno@clisp.org>
102959         * gnulib-tool (func_version): Update.
102961 2005-08-24  Bruno Haible  <bruno@clisp.org>
102963         * gnulib-tool (func_import, func_create_testdir,
102964         func_create_megatestdir): Quote all autoconf macro arguments.
102966 2005-08-24  Bruno Haible  <bruno@clisp.org>
102968         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102969         option --force, because --force causes the aclocal.m4 of each
102970         subdirectory to be newer than the corresponding config.h.in.
102972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102974         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102975         All contents moved to gl_REGEX.
102976         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102977         assume that it does.
102979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102981         * lib/regex.h (REG_NOSYS)
102982         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102983         Define, since POSIX requires it as of 2001.
102984         (_REG_ENOSYS)
102985         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102986         New private symbol, used to keep the enum signed in all cases.
102987         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102988         Youngman in
102989         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102991         * lib/regex_internal.c (re_string_skip_chars, register_state):
102992         (calc_state_hash):
102993         Remove forward decls; no longer needed now that we use prototypes.
102994         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102995         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102996         (clean_state_log_if_needed): Likewise.
102998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103000         * config/srclist.txt: Add glibc bugs 1231-1233.
103002 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103004         Fix problems reported by Sam Steingold in
103005         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
103006         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
103007         assumed that reg_errcode_t is a signed type, which is not
103008         necessarily true if _XOPEN_SOURCE is not defined.
103009         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
103010         since some compilers warn about it otherwise.
103012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103014         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
103015         (init_word_char, create_initial_state, duplicate_node_closure):
103016         (fetch_token, peek_token_bracket, build_range_exp):
103017         (build_collating_symbol): Remove forward decls; no longer needed
103018         now that we use prototypes.
103020         * lib/regcomp.c:
103021         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
103022         (re_compile_fastmap_iter, regcomp, regerror, regfree):
103023         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
103024         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
103025         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
103026         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
103027         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
103028         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
103029         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
103030         (build_range_exp, build_collating_symbol, parse_bracket_exp):
103031         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
103032         (build_charclass, build_charclass_op, fetch_number, create_tree):
103033         (create_token_tree, mark_opt_subexp, duplicate_tree):
103034         Use prototypes rather than old-style definitions.
103036         * lib/regex_internal.c:
103037         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
103038         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
103039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
103040         (re_string_reconstruct, re_string_peek_byte_case):
103041         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
103042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
103043         (re_node_set_init_copy, re_node_set_add_intersect):
103044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
103047         (re_acquire_state, re_acquire_state_context, register_state):
103048         (create_ci_newstate, create_cd_newstate, free_state):
103049         Likewise.
103050         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
103051         re_search_2):
103052         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
103053         (re_search_internal, prune_impossible_nodes):
103054         (acquire_init_state_context, check_matching, static):
103055         (check_halt_node_context, check_halt_state_context, proceed_next_node):
103056         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
103057         (update_regs, sift_states_backward, build_sifted_states):
103058         (clean_state_log_if_needed, merge_state_array):
103059         (update_cur_sifted_state, add_epsilon_src_nodes):
103060         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
103061         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
103062         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
103063         (find_recover_state, check_subexp_matching_top, transit_state_mb):
103064         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
103065         (check_arrival, check_arrival_add_next_nodes):
103066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
103067         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
103068         (check_node_accept_bytes, check_node_accept, extend_buffers):
103069         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
103070         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
103071         (sift_ctx_init):
103072         Likewise.
103074         * lib/regex_internal.h:
103075         (re_string_allocate, re_string_construct, re_string_reconstruct):
103076         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
103077         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
103078         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
103079         (re_string_context_at, re_string_peek_byte_case):
103080         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
103081         is defined, since we now use prototypes always.
103083         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
103084         C89 or better.  All uses removed.
103086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103088         * config/srclist.txt: Add glibc bugs 1220-1227.
103090 2005-08-20  Jim Meyering  <jim@meyering.net>
103092         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
103093         of unused local, dfa.
103095 2005-08-20  Bruno Haible  <bruno@clisp.org>
103097         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
103099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103101         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
103102         (re_node_set_insert_last, re_dfa_add_node):
103103         Rename local variables to avoid GCC shadowing warnings.
103105 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103107         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
103108         [defined lint]: Suppress bogus uninitialized-variable warnings.
103110         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
103111         and let the caller return REG_ESPACE if out of space.  This
103112         removes an uninitialied-variable warning with GCC 4.0.1, and also
103113         avoids taking the address of a local variable.  All callers
103114         changed.
103116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
103119         $LIBCSRC/posix/regexec.c.
103120         Add glibc bug 1217 for regcomp.c.
103122 2005-08-19  Jim Meyering  <jim@meyering.net>
103124         * lib/regexec.c (proceed_next_node): Redo local variables to
103125         avoid GCC shadowing warnings.
103127 2005-08-18  Bruno Haible  <bruno@clisp.org>
103129         * lib/strstr.c (strstr): Fix return value in multibyte case.
103130         * lib/strcasestr.c (strcasestr): Likewise.
103132 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103134         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
103136 2005-08-17  Jim Meyering  <jim@meyering.net>
103138         Make the %s format (seconds since the epoch) work for a negative
103139         number and when used with a zero-padded field width, e.g. %015s.
103141         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
103142         label so that it precedes the code to set `digits'.  Otherwise,
103143         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
103144         print `00-22'.  Now, it prints `-0022', as it should.
103146 2005-08-17  Bruno Haible  <bruno@clisp.org>
103148         * modules/strstr (Files): Add m4/mbrtowc.m4.
103149         (Depends-on): Add mbuiter.
103151 2005-08-17  Bruno Haible  <bruno@clisp.org>
103153         * modules/strcasestr: New file.
103154         * MODULES.html.sh (String handling, based on ANSI C 89): Add
103155         strcasestr.
103157 2005-08-17  Bruno Haible  <bruno@clisp.org>
103159         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
103161 2005-08-17  Bruno Haible  <bruno@clisp.org>
103163         * modules/mbuiter: New file.
103164         * MODULES.html.sh (Extended multibyte and wide character utilities):
103165         Add mbuiter.
103167 2005-08-17  Bruno Haible  <bruno@clisp.org>
103169         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
103170         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
103172 2005-08-17  Bruno Haible  <bruno@clisp.org>
103174         * m4/strcasestr.m4: New file.
103176 2005-08-17  Bruno Haible  <bruno@clisp.org>
103178         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
103179         * lib/strstr.c: Completely rewritten, with multibyte locale support.
103181 2005-08-17  Bruno Haible  <bruno@clisp.org>
103183         * lib/strcasestr.h: New file.
103184         * lib/strcasestr.c: New file.
103186 2005-08-17  Bruno Haible  <bruno@clisp.org>
103188         * lib/strcasecmp.c: Use mbuiter.h.
103190 2005-08-17  Bruno Haible  <bruno@clisp.org>
103192         * lib/mbuiter.h: New file.
103194 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
103196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
103197         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
103198         and gl_GETOPT are both invoked via different paths (as happens
103199         with GNU tar CVS because it uses both argp and getopt), the former
103200         wins.
103202 2005-08-16  Bruno Haible  <bruno@clisp.org>
103204         * modules/tls: New file.
103205         * MODULES.html.sh (Multithreading): Add tls.
103207 2005-08-16  Bruno Haible  <bruno@clisp.org>
103209         * modules/strnlen1: New file.
103210         * MODULES.html.sh (String handling): Add strnlen1.
103212 2005-08-16  Bruno Haible  <bruno@clisp.org>
103214         * modules/strcase (Files): Add m4/mbrtowc.m4.
103215         (Depends-on): Add strnlen1, mbchar.
103217 2005-08-16  Bruno Haible  <bruno@clisp.org>
103219         * modules/mbiter: New file.
103220         * MODULES.html.sh (Extended multibyte and wide character utilities):
103221         Add mbiter.
103223 2005-08-16  Bruno Haible  <bruno@clisp.org>
103225         * modules/mbfile: New file.
103226         * MODULES.html.sh (Extended multibyte and wide character utilities):
103227         Add mbfile.
103229 2005-08-16  Bruno Haible  <bruno@clisp.org>
103231         * modules/mbchar: New file.
103232         * MODULES.html.sh (Extended multibyte and wide character utilities):
103233         New section.
103235 2005-08-16  Bruno Haible  <bruno@clisp.org>
103237         * m4/tls.m4: New file, from GNU gettext.
103239 2005-08-16  Bruno Haible  <bruno@clisp.org>
103241         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
103242         always.
103243         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
103245 2005-08-16  Bruno Haible  <bruno@clisp.org>
103247         * m4/mbiter.m4: New file.
103249 2005-08-16  Bruno Haible  <bruno@clisp.org>
103251         * m4/mbfile.m4: New file.
103253 2005-08-16  Bruno Haible  <bruno@clisp.org>
103255         * m4/mbchar.m4: New file.
103257 2005-08-16  Bruno Haible  <bruno@clisp.org>
103259         * lib/tls.h: New file, from GNU gettext.
103260         * lib/tls.c: New file, from GNU gettext.
103262 2005-08-16  Bruno Haible  <bruno@clisp.org>
103264         * lib/strnlen1.h: New file.
103265         * lib/strnlen1.c: New file.
103267 2005-08-16  Bruno Haible  <bruno@clisp.org>
103269         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
103270         (mbi_init): Update.
103271         (mbi_avail, mbi_advance): Let the iteration end before the terminating
103272         NUL byte, not after it.
103274 2005-08-16  Bruno Haible  <bruno@clisp.org>
103276         * lib/strcase.h (strcasecmp): Add note in comments.
103277         * lib/strncasecmp.c: Use code from strcasecmp.c.
103278         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
103279         (strcasecmp): Work correctly in multibyte locales.
103281 2005-08-16  Bruno Haible  <bruno@clisp.org>
103283         * lib/mbiter.h: New file.
103285 2005-08-16  Bruno Haible  <bruno@clisp.org>
103287         * lib/mbfile.h: New file.
103289 2005-08-16  Bruno Haible  <bruno@clisp.org>
103291         * lib/mbchar.h: New file.
103292         * lib/mbchar.c: New file.
103294 2005-08-16  Bruno Haible  <bruno@clisp.org>
103296         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
103297         the valid ones. Makes the comparison operations transitive:
103298         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
103299         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
103301 2005-08-15  Simon Josefsson  <jas@extundo.com>
103303         * modules/ssize_t (License): Change to 'unlimited'.
103305         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
103307 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103309         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
103310         Add comments for each pending glibc patch.
103312 2005-08-15  Bruno Haible  <bruno@clisp.org>
103314         * lib/regex.h (__restrict_arr): Don't define to __restrict if
103315         __cplusplus is defined.
103317 2005-08-14  Jim Meyering  <jim@meyering.net>
103319         Sync from coreutils.
103321         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
103322         Use the hash-table-based cycle-detection code not just when
103323         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
103324         Reported by James Youngman in
103325         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
103326         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
103327         FTS_TIGHT_CYCLE_CHECK.
103328         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
103329         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
103330         once again.
103331         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
103332         * lib/fts.c (fd_safer): Remove decl.
103333         Include fcntl--.h rather than unistd-safer.h
103334         (fts_safe_changedir): Don't call fd_safer; no longer needed
103335         now that we include fcntl--.h.
103337 2005-08-12  Simon Josefsson  <jas@extundo.com>
103339         * modules/getndelim2: Use ssize_t module.
103340         * modules/getnline: Likewise.
103341         * modules/safe-read: Likewise.
103342         * modules/xreadlink: Likewise.
103344         * modules/ssize_t: New file.
103346 2005-08-12  Simon Josefsson  <jas@extundo.com>
103348         * m4/readline.m4: Look for termcap, curses or ncurses if required.
103350 2005-08-12  Simon Josefsson  <jas@extundo.com>
103352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103353         ssize_t.
103355 2005-08-12  Simon Josefsson  <jas@extundo.com>
103357         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
103358         readline, getdelim and check_version.
103359         (Support for systems lacking ISO C 99: Sizes of integer types):
103360         Add size_max.
103362 2005-08-12  Bruno Haible  <bruno@clisp.org>
103364         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
103366 2005-08-11  Simon Josefsson  <jas@extundo.com>
103368         * modules/readline: New file.
103370         * modules/strnlen (Files): Add strnlen.h.
103372 2005-08-11  Simon Josefsson  <jas@extundo.com>
103374         * m4/readline.m4: New file.
103376 2005-08-11  Simon Josefsson  <jas@extundo.com>
103378         * lib/readline.h, readline.c: New file.
103380 2005-08-11  Simon Josefsson  <jas@extundo.com>
103382         * doc/gnulib.texi (Initial import, Finishing touches): Mention
103383         gl_AVOID.
103385 2005-08-11  Bruno Haible  <bruno@clisp.org>
103387         * lib/strnlen.h (strnlen): Change parameter name to match comment.
103389 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
103391         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
103393 2005-08-10  Simon Josefsson  <jas@extundo.com>
103395         * tests/test-iconvme.c: New file.
103397 2005-08-10  Simon Josefsson  <jas@extundo.com>
103399         * m4/strnlen.m4: New file.
103401         * m4/strndup.m4: Don't check for strnlen declaration, done in
103402         strnlen.m4.
103404 2005-08-10  Simon Josefsson  <jas@extundo.com>
103406         * lib/strndup.c: Use strnlen.h.
103408         * lib/strnlen.h: New file.
103410 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103412         * README: Typos.
103414 2005-08-02  Simon Josefsson  <jas@extundo.com>
103416         * modules/readline: New file.
103418 2005-08-02  Simon Josefsson  <jas@extundo.com>
103420         * modules/getdelim: New file.
103422         * modules/getline: Rewrite, don't use getndelim2.
103424 2005-08-02  Simon Josefsson  <jas@extundo.com>
103426         * m4/getline.m4: Separate out getdelim stuff into separate module.
103428         * m4/getdelim.m4: New file.
103430 2005-08-02  Simon Josefsson  <jas@extundo.com>
103432         * lib/getline.h, getline.c: Rewrite.
103434         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
103436 2005-07-31  Bruno Haible  <bruno@clisp.org>
103438         * lib/lock.h (gl_lock_initializer): New macro.
103439         (gl_lock_define_initialized): Use it.
103440         (gl_rwlock_initializer): New macro.
103441         (gl_rwlock_define_initialized): Use it.
103442         (gl_recursive_lock_initializer): New macro.
103443         (gl_recursive_lock_define_initialized): Use it.
103445 2005-07-30  Karl Berry  <karl@gnu.org>
103447         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
103448         Report from Ben Pfaff, regarding getopt.
103450 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
103452         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
103453         normal way.
103454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
103455         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
103456         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
103457         (gl_GETOPT): Use the new macros.  Most of the implementation
103458         is moved to the new macros.  This is for programs like Emacs
103459         that don't want all the functionality of gl_GETOPT.
103461 2005-07-26  Bruno Haible  <bruno@clisp.org>
103463         * m4/lock.m4: Update from GNU gettext.
103465 2005-07-26  Bruno Haible  <bruno@clisp.org>
103467         * lib/lock.h: Update from GNU gettext.
103468         * lib/lock.c: Update from GNU gettext.
103470 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
103472         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
103473         obsolescent AC_TRY_RUN.  Include the default includes files, for
103474         'exit'.
103476 2005-07-24  Bruno Haible  <bruno@clisp.org>
103478         * modules/visibility: New file.
103479         * MODULES.html.sh (Misc): Add visibility.
103481 2005-07-24  Bruno Haible  <bruno@clisp.org>
103483         * m4/visibility.m4: New file.
103485 2005-07-24  Bruno Haible  <bruno@clisp.org>
103487         * doc/visibility.texi: New file.
103489 2005-07-22  Bruno Haible  <bruno@clisp.org>
103491         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
103492         $(ALLOCA_H), redundant through BUILT_SOURCES.
103493         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
103494         redundant through BUILT_SOURCES.
103495         * modules/byteswap (Makefile.am): Remove explicit dependency on
103496         $(BYTESWAP_H), redundant through BUILT_SOURCES.
103497         * modules/fnmatch (Makefile.am): Remove explicit dependency on
103498         $(FNMATCH_H), redundant through BUILT_SOURCES.
103499         * modules/getopt (Makefile.am): Remove explicit dependency on
103500         $(GETOPT_H), redundant through BUILT_SOURCES.
103501         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
103502         redundant through BUILT_SOURCES.
103503         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
103504         redundant through BUILT_SOURCES.
103505         * modules/stdbool (Makefile.am): Remove explicit dependency on
103506         $(STDBOOL_H), redundant through BUILT_SOURCES.
103507         * modules/stdint (Makefile.am): Remove explicit dependency on
103508         $(STDINT_H), redundant through BUILT_SOURCES.
103509         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
103510         Remove explicit dependency on $(SYSEXITS_H).
103511         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
103513 2005-07-18  Simon Josefsson  <jas@extundo.com>
103515         * lib/check-version.c (check_version): Accept identical versions too.
103517 2005-07-18  Bruno Haible  <bruno@clisp.org>
103519         * modules/lock: New file.
103520         * MODULES.html.sh (Multithreading): New section.
103522 2005-07-18  Bruno Haible  <bruno@clisp.org>
103524         * m4/lock.m4: New file, from GNU gettext.
103526 2005-07-18  Bruno Haible  <bruno@clisp.org>
103528         * lib/lock.h: New file, from GNU gettext.
103529         * lib/lock.c: New file, from GNU gettext.
103531 2005-07-18  Bruno Haible  <bruno@clisp.org>
103533         * lib/lock.h (gl_once_t): New type.
103534         (gl_once_define, gl_once): New macros.
103535         * lib/lock.c (fresh_once): New variable.
103536         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
103537         functions.
103539 2005-07-16  Simon Josefsson  <jas@extundo.com>
103541         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
103542         workaround, suggested by Bruno.
103544 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103546         * modules/xalloc (Depends-on): Add xalloc-die.
103547         * modules/xvasprintf (Depends-on): Add xalloc-die.
103549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103551         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
103552         with a minor change.
103554 2005-07-15  Bruno Haible  <bruno@clisp.org>
103556         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
103557         When using lib/poll.c, define poll as rpl_poll.
103559 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
103561         * modules/argp (Depends-on): Remove unlocked-io.
103563 2005-07-14  Derek Price  <derek@ximbiot.com>
103565         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
103566         for glob symlink bug.
103568 2005-07-14  Bruno Haible  <bruno@clisp.org>
103570         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
103571         Instead, test for *_unlocked function declarations directly.
103573 2005-07-11  Simon Josefsson  <jas@extundo.com>
103575         * modules/size_max: New file.
103577         * modules/xsize: Depend on size_max module for size_max.m4.
103579 2005-07-11  Simon Josefsson  <jas@extundo.com>
103581         * lib/size_max.h: New file.
103583 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
103585         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
103586         copyright symbol and the year.
103587         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
103588         (version_etc_va): Use parameterized copyright notice.
103589         Reword to conform to the current GNU coding standards.
103591 2005-07-11  Karl Berry  <karl@gnu.org>
103593         * doc/gnulib.texi (Quoting): new node.
103594         (Initial import): more info, from Patrice.
103596 2005-07-11  Bruno Haible  <bruno@clisp.org>
103598         * gnulib-tool (func_usage): Document option --avoid.
103599         (Command line options): Handle --avoid.
103600         (func_acceptable): New function.
103601         (func_modules_transitive_closure): Use it.
103603 2005-07-11  Bruno Haible  <bruno@clisp.org>
103605         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
103606         Reported by Jim Meyering.
103608 2005-07-10  Bruno Haible  <bruno@clisp.org>
103610         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
103611         Needed when size_t is smaller than 'unsigned int'.
103612         Reported by Paul Eggert.
103614 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103616         * modules/argp (Depends-on): Add unlocked-io
103618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103620         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
103621         block of defines.
103623 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
103625         * config/srclist.txt: Comment out regcomp.c, since we have a porting
103626         fix now.
103628 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
103629         and Paul Eggert  <eggert@cs.ucla.edu>
103631         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
103632         in wint_t, not wchar_t.  Remove now-unnecessary cast.
103634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103636         * modules/regex (Files): Add lib/regex_internal.c,
103637         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
103638         (Depends-on): Add extensions.
103639         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
103641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103643         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
103644         pathconf.
103645         * m4/same.m4 (gl_SAME): Likewise.
103646         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
103648         * m4/regex.m4: Adjust to new libc regex implementation.
103649         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
103650         all the .c and .h parts of (the new) regex.
103651         Quote the m4 stuff better.
103652         Check for RE_ICASE bug of old gnulib.
103653         Check for REG_STARTEND of recent libc.
103654         Rename local variables from jm_* to gl_*.
103655         Quote operand of "test -f".
103656         Say "recent enough" version of libc, not "version 2".
103657         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
103658         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
103659         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
103660         Remove check for btowc, isascii.
103661         Require AM_LANGINFO_CODESET.
103663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103665         * lib/regex.c, regex.h: Sync from libc.
103666         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
103667         * lib/regexec.c:
103668         New files, synced from libc, except that regex_internal.h
103669         currently has a small porting fix.
103671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103673         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
103674         regex_internal.c, regexec.c.
103675         Add regex_internal.h too, but as a comment, since the libc version
103676         is currently broken in gnulib mode.
103678 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
103680         Support programs like Emacs that use gnulib but not gettext.
103681         * MODULES.html.sh (Internationalization functions): Add gettext-h.
103682         * modules/gettext-h: New file.
103683         * modules/gettext (Files): Remove lib/gettext.h.
103684         (Depends-on): Add gettext-h.
103685         (Makefile.am): Remove lib_SOURCES.
103686         * modules/argmatch, modules/c-stack, modules/closeout:
103687         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
103688         * modules/execute, modules/file-type, modules/getaddrinfo:
103689         * modules/getopt, modules/human, modules/javacomp:
103690         * modules/javaexec, modules/mkdir-p, modules/obstack:
103691         * modules/openat, modules/pagealign_alloc, modules/pipe:
103692         * modules/quotearg, modules/regex, modules/rpmatch:
103693         * modules/unicodeio, modules/userspec, modules/version-etc:
103694         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
103695         * modules/xsetenv:
103696         Depend on gettext-h, not gettext.
103698 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
103700         * gnulib-tool (func_import): Add support for 'public domain' license.
103701         * modules/alloca, modules/atexit, modules/memmove:
103702         Now public domain, not GPL.
103703         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
103704         * modules/realloc, modules/strerror, modules/strtod:
103705         Now LGPL, not GPL.
103707 2005-07-05  Bruno Haible  <bruno@clisp.org>
103709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
103710         autoconf CVS. Needed for mingw.
103712 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103714         Remove the dependency of the strftime module on the tzset module.
103715         * modules/strftime (Depends-on): Remove dependency on tzset.
103717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103719         Remove the dependency of the strftime module on the tzset module.
103720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
103721         gl_FUNC_TZSET_CLOBBER.
103723 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103725         Remove the dependency of the strftime module on the tzset module.
103726         * lib/strftime.c (my_strftime)
103727         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
103728         Copy the input structure, to work around some of the bug with
103729         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
103730         Solaris releases, you should also use the tzset module, but we won't
103731         require it as a dependency any more since we don't want LGPLed code
103732         to depend on GPLed code.
103734 2005-07-02  Jim Meyering  <jim@meyering.net>
103736         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
103737         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
103738         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
103739         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
103741 2005-07-02  Jim Meyering  <jim@meyering.net>
103743         * lib/backupfile.c (backup_args): Change a `0' to NULL.
103745 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
103747         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
103748         declares only 'struct timespec;' (!).
103750 2005-07-01  Jim Meyering  <jim@meyering.net>
103752         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
103753         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
103754         * lib/save-cwd.c, tempname.c:
103755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103756         and don't include <sys/file.h>).
103758 2005-06-29  Jim Meyering  <jim@meyering.net>
103760         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
103761         type name.  Use the variable name instead.
103762         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
103763         Likewise.
103765 2005-06-28  Simon Josefsson  <jas@extundo.com>
103767         * modules/check-version (Files): Add check-version.m4.
103769 2005-06-28  Simon Josefsson  <jas@extundo.com>
103771         * m4/check-version.m4: New file, suggested by Jim Meyering
103772         <jim@meyering.net>.
103774 2005-06-28  Simon Josefsson  <jas@extundo.com>
103776         * lib/check-version.h, lib/check-version.c: New files.
103778 2005-06-28  Simon Josefsson  <jas@extundo.com>
103780         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
103781         collision with global variable.  Better indentation.  Don't
103782         increment buffer pointer beyond buffer end.  Based on comments
103783         from Paul Eggert <eggert@cs.ucla.edu>.
103785         * lib/base64.h: Indent.
103787 2005-06-28  Simon Josefsson  <jas@extundo.com>
103789         * doc/gnulib.texi (Library version handling): New section.
103791 2005-06-28  Jim Meyering  <jim@meyering.net>
103793         * check-module (find_included_lib_files): Hard-code another
103794         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
103795         but modules/fts-lgpl (correctly) does not list those files.
103797         * modules/canonicalize (Files): Add lib/pathmax.h.
103799 2005-06-25  Simon Josefsson  <jas@extundo.com>
103801         * modules/check-version: New file.
103803 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
103805         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
103806         initializer of struct addrinfo, as an indication that we don't
103807         care how many members the structure has.
103809 2005-06-24  Derek Price  <derek@ximbiot.com>
103810         and Bruno Haible  <bruno@clisp.org>
103812         Remove stat module & update lstat.
103813         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
103814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103815         * m4/stat.m4: Remove this file.
103817 2005-06-24  Derek Price  <derek@ximbiot.com>
103818         and Bruno Haible  <bruno@clisp.org>
103820         Remove stat module & update lstat.
103821         * lib/stat.c: Remove this file...
103822         (slash_aware_lstat): ...moving this content and its support...
103823         * lib/lstat.c (rpl_lstat): ...into here.
103824         * lib/lstat.h: New file.
103826 2005-06-24  Derek Price  <derek@ximbiot.com>
103827         and Bruno Haible  <bruno@clisp.org>
103829         Remove stat module & update lstat.
103830         * config/srclist.txt (libc sources): Remove stat.
103832 2005-06-24  Derek Price  <derek@ximbiot.com>
103833         and Bruno Haible  <bruno@clisp.org>
103835         Remove stat module & update lstat.
103836         * MODULES.html.sh (stat): Remove.
103837         * MODULES.html: Regenerated.
103838         * modules/lstat (Description): Correct function name.
103839         (Files): Add "lstat.h".
103840         (Depends-on): Remove stat, add xalloc, stat-macros.
103841         * modules/stat: Remove this file.
103842         (Include): Add "lstat.h", remove <sys/stat.h>.
103844 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103846         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
103847         (ranged_convert): Don't save conversion in a temporary struct.
103848         This causes a warning with GCC 4.0.0, and anyway in the typical
103849         case it's not worth the extra 100 bytes or so of code.
103850         (ranged_convert, __mktime_internal): When calling a function via a
103851         pointer P, use P () rather than (*P) (), as we now assume C89 or
103852         better.
103854 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103856         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103857         "who -r" failed to give output.  Problem reported by Tim Waugh.
103859         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103860         (xcalloc): Use it to avoid needless tests.
103861         Problem reported by Jim Meyering.
103863 2005-06-20  Derek Price  <derek@ximbiot.com>
103865         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103866         unnecessary for Autoconfs > 2.59c.
103868 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103870         * lib/argp.h (__option_is_short): Check upper limit of
103871         __key. Isprint() requires its argument to have the value
103872         of an unsigned char or EOF.
103874 2005-06-16  Jim Meyering  <jim@meyering.net>
103876         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103877         when either N or S is zero.
103879 2005-06-16  Derek Price  <derek@ximbiot.com>
103881         * m4/bison.m4: Declare YACC & YFLAGS precious.
103883 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103885         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103886         multibyte string or pattern, fall back on unibyte matching.
103887         Problem reported by James Youngman.
103889 2005-06-08  Bruno Haible  <bruno@clisp.org>
103891         * modules/csharpcomp: New file.
103892         * MODULES.html.sh (C#): Add csharpcomp.
103894 2005-06-08  Bruno Haible  <bruno@clisp.org>
103896         * m4/csharpcomp.m4: New file, from GNU gettext.
103898 2005-06-08  Bruno Haible  <bruno@clisp.org>
103900         * lib/csharpcomp.h: New file, from GNU gettext.
103901         * lib/csharpcomp.c: New file, from GNU gettext.
103902         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103904 2005-06-08  Bruno Haible  <bruno@clisp.org>
103906         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103907         warning on mingw.
103909 2005-06-07  Derek Price  <derek@ximbiot.com>
103911         Sync from CVS.
103912         * lib/glob_.h: Indent nested #ifdef.
103914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103916         Sync from coreutils.
103917         Use "file name" when talking about file names, instead of "filename"
103918         or "path", as per the GNU coding standards.
103919         * lib/mkdir-p.c: Renamed from makepath.c.
103920         (make_dir_parents): Renamed from make_path.  All callers changed.
103921         * lib/mkdir-p.h: Likewise.  All includers changed.
103922         * lib/filenamecat.c: Renamed from path-concat.c.
103923         (file_name_concat): Renamed from path_concat.  All callers changed.
103924         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103925         * lib/filenamecat.h: Likewise.  All includers changed.
103926         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103927         in comments or local variable names.
103928         * lib/basename.c: Likewise.
103929         * lib/canonicalize.c, canonicalize.h: Likewise.
103930         * lib/dirname.c, dirname.h: Likewise.
103931         * lib/euidaccess.c: Likewise.
103932         * lib/exclude.c: Likewise
103933         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103934         * lib/fsusage.c, fsuage.h: Likewise.
103935         * lib/fts.c, fts_.h: Likewise.
103936         * lib/getcwd.c: Likewise.
103937         * lib/getloadavg.c: Likewise.
103938         * lib/mkstemp.c: Likewise.
103939         * lib/mountlist.c, mountlist.h: Likewise.
103940         * lib/openat.c, openat.h: Likewise.
103941         * lib/readlink-stub.c: Likewise.
103942         * lib/readutmp.c, readutmp.h: Likewise.
103943         * lib/rename.c: Likewise.
103944         * lib/rmdir.c: Likewise.
103945         * lib/same.c: Likewise.
103946         * lib/savedir.c: Likewise.
103947         * lib/stripslash.c: Likewise.
103948         * lib/tempname.c: Likewise.
103949         * lib/xreadlink.c: Likewise.
103950         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103951         All uses changed.
103952         * lib/exclude.h: Likewise.
103954         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103956         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103958         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103959         files have been getting away with it for years (MORE/BSD 4.3
103960         is extinct now).
103961         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103964         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103965         Define to 256, not 255, as per modern POSIX.
103967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103969         Sync from coreutils.
103970         Use "file name" when talking about file names, instead of "filename"
103971         or "path", as per the GNU coding standards.
103972         * MODULES.html.sh: mkdir-p renamed from makepath.
103973         filenamecat renamed from path-concat.
103974         * modules/filenamecat: Renamed from modules/path-concat.
103975         (Files): filenamecat.h and filenamecat.c renamed from
103976         path-concat.h and path-concat.c.
103977         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103978         (Include): filenamecat.h, not path-concat.h.
103979         * modules/mkdir-p: Renamed from modules/makepath.
103980         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103981         makepath.c.
103982         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103983         (Include): mkdir-p.h, not makepath.h.
103985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103987         Sync from coreutils.
103988         * m4/mkdir-p.m4: Renamed from makepath.m4.
103989         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103990         Rename files from makepath.c to mkdir-p.c, and from
103991         makepath.h to mkdir-p.h.
103992         * m4/filenamecat.m4: Renamed from path-concat.m4.
103993         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103994         Rename files from path-concat.c to filenamecat.c,
103995         and from path-concat.h to filenamecat.h.
103996         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103997         "file name" in local variables or comments.
103998         * m4/rename.m4: Likewise.
104000 2005-06-01  Bruno Haible  <bruno@clisp.org>
104002         * modules/csharpexec: New file.
104003         * MODULES.html.sh (C#): New section.
104005 2005-06-01  Bruno Haible  <bruno@clisp.org>
104007         * m4/csharp.m4: New file, from GNU gettext.
104008         * m4/csharpexec.m4: New file, from GNU gettext.
104010 2005-06-01  Bruno Haible  <bruno@clisp.org>
104012         * lib/csharpexec.h: New file, from GNU gettext.
104013         * lib/csharpexec.c: New file, from GNU gettext.
104014         * lib/csharpexec.sh.in: New file, from GNU gettext.
104016 2005-05-31  Derek Price  <derek@ximbiot.com>
104017             Paul Eggert  <eggert@cs.ucla.edu>
104019         Sync from cvs.
104020         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
104022 2005-05-31  Derek Price  <derek@ximbiot.com>
104023             Paul Eggert  <eggert@cs.ucla.edu>
104025         Sync from cvs.
104026         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
104028 2005-05-29  Derek Price  <derek@ximbiot.com>
104030         * config/srclist.txt (glob_.h, glob.c): Add these files.
104032 2005-05-29  Derek Price  <derek@ximbiot.com>
104034         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
104035         * modules/glob: New file.
104036         * modules/getlogin_r: Add link to POSIX spec in description.
104038 2005-05-29  Derek Price  <derek@ximbiot.com>
104039             Paul Eggert  <eggert@cs.ucla.edu>
104041         * m4/glob.m4: New file.
104043 2005-05-29  Derek Price  <derek@ximbiot.com>
104044             Paul Eggert  <eggert@cs.ucla.edu>
104046         * lib/glob_.h, lib/glob.c: New files.
104048 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104050         * modules/fts (Files): Remove m4/inttypes-pri.m4.
104051         * modules/fts-lgpl (Depends-on): Remove gettext.
104053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
104056         and don't require gt_INTTYPES_PRI.
104058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104060         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
104062         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
104063         the configuration hassle isn't worth it.
104064         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
104065         (LONGEST_MODIFIER, PRIuMAX): Remove.
104067 2005-05-27  Bruno Haible  <bruno@clisp.org>
104069         * lib/getlogin_r.h: Remove second include of <stddef.h>.
104071 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
104073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
104074         _POSIX_PTHREAD_SEMANTICS for Solaris.
104076 2005-05-25  Derek Price  <derek@ximbiot.com>
104078         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
104080 2005-05-25  Derek Price  <derek@ximbiot.com>
104081             Paul Eggert  <eggert@cs.ucla.edu>
104083         * modules/getlogin_r, m4/getlogin_r.m4: New files.
104084         * lib/getlogin_r.c, getlogin_r.h: New files.
104086 2005-05-25  Bruno Haible  <bruno@clisp.org>
104087             Derek Price  <derek@ximbiot.com>
104089         * lib/getlogin_r.h: Simplify API documentation.
104091 2005-05-23  Derek Price  <derek@ximbiot.com>
104093         * modules/minmax (Files): Add m4/minmax.m4.
104094         (configure.ac): Add gl_MINMAX.
104096 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
104098         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
104099         so that unistd-safer.h (GPL'ed code) need not be included.
104101 2005-05-22  Bruno Haible  <bruno@clisp.org>
104103         * m4/minmax.m4: New file.
104104         Based on a patch by Derek Price <derek@ximbiot.com>.
104106 2005-05-22  Bruno Haible  <bruno@clisp.org>
104108         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
104109         (INT64_MIN): Fix definition.
104110         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
104112         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
104113         NEED_SIGNED_INT_TYPES.
104115         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
104116         HAVE_SYSTEM_INTTYPES.
104118 2005-05-22  Bruno Haible  <bruno@clisp.org>
104120         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
104121         Also include <sys/param.h> if it defines MIN, MAX.
104122         Based on a patch by Derek Price <derek@ximbiot.com>.
104124 2005-05-21  Jim Meyering  <jim@meyering.net>
104126         * modules/fts (Files): Add m4/inttypes-pri.m4.
104127         (Depends-on): Add lstat and remove gettext.  Alphabetize.
104129 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104131         New fts module.
104132         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
104133         (setup_dir, free_dir): New functions.
104134         (enter_dir, leave_dir): Define trivial
104135         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
104136         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
104137         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
104138         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
104139         Move to fts-cycle.c.
104140         (fts_open): Use setup_dir.
104141         (fts_close): Use free_dir.
104142         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
104143         This adds a label and some gotos, but the alternatives were messier.
104144         Check for memory allocation failure when entering a dir.
104145         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
104146         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
104147         (FTS): New member fts_cycle, that is a union that contains the
104148         old active_dir_ht and cycle_state.  All uses changed to mention
104149         fts_cycle.ht and fts_cycle.state.
104150         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
104151         fts.c, with the following changes:
104152         (setup_dir, free_dir): New functions.
104153         (enter_dir): Now returns bool.  Return true if successful, false
104154         if memory exhausted.  All callers changed.
104155         Do not bother partly cleaning up on
104156         memory allocation failure; that is free_dir's job.
104157         However, free ad if hash_insert fails, to avoid memory leak.
104158         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
104159         fts->fts_options to see which union member to use.
104161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
104164         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
104166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104168         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
104170 2005-05-20  Jim Meyering  <jim@meyering.net>
104172         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
104173         Now a macro, to pacify GCC.
104175 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104177         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
104178         of -1.
104180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104182         * lib/chown.c (rpl_chown): Return -1 on failure.
104184 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
104187         Don't check for stddef.h.
104188         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
104189         don't use its results.
104190         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
104191         since we include them unconditionally.  Don't require
104192         AM_STDBOOL_H, since stdbool is a prerequisite.
104193         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
104194         since we assume C89 or better.
104195         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
104196         as we don't use their results.
104197         Don't check for fchdir, memmove, memset, strrchr, as we use
104198         them unconditionally.
104199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
104200         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
104202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104204         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
104205         Include <stddef.h> unconditionally, since we assume C89 now.
104206         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
104207         * lib/fts.c: Include fts_.h first, to check interface.
104208         Do not include intprops.h; no longer needed.
104209         Include cycle-check.h and hash.h, since fts_.h no longer does.
104210         Remove unnecessary casts of closedir to void.
104211         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
104212         decide whether to decrement nlinks.
104213         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
104214         (FTS): Use struct hash_table * instead of Hash_table, so that
104215         we no longer need to include hash.h here.
104217 2005-05-18  Jim Meyering  <jim@meyering.net>
104219         * modules/dirfd (License): Change to LGPL.  Most of the code
104220         is already in the public domain.
104222 2005-05-18  Jim Meyering  <jim@meyering.net>
104224         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
104225         Reported by Yoann Vandoorselaere.
104227 2005-05-17  Jim Meyering  <jim@meyering.net>
104229         * m4/fts.m4: New file, from coreutils.
104231 2005-05-17  Jim Meyering  <jim@meyering.net>
104233         * lib/fts.c, lib/fts_.h: New files, from coreutils.
104235 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104237         Sync from coreutils.
104238         * m4/unlinkdir.m4: New file.
104240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104242         Sync from coreutils.
104243         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
104244         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
104245         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
104246         White space changes only.
104247         * lib/makepath.c (make_path): Port to hosts where leading "//" is
104248         special.
104249         * lib/yesno.c: Include getline.h, not ctype.h.
104250         (yesno): Don't remove leading white space; POSIX doesn't allow it.
104251         Use getline to remove arbitrary restriction on response length.
104253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104255         * config/srclist-update: Spell out "Street" in FSF postal
104256         mail address; this is the style the FSF seems to prefer.
104258         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
104259         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
104260         this updates FSF postal mail address.
104262         Sync from coreutils.
104263         * modules/unlinkdir: New file.
104264         * modules/yesno (Depends-on): Add getline.
104265         * MODULES.html.sh (File system functions): Add unlinkdir.
104267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104269         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
104270         lib/strsep.h:
104271         Change the initial comment to refer to GPL, not LGPL.
104272         gnulib-tool will change it to LGPL as needed.
104274         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
104275         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
104276         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
104277         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
104278         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
104279         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
104280         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
104281         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
104282         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
104283         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
104284         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
104285         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
104286         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
104287         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
104288         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
104289         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
104290         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
104291         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
104292         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
104293         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
104294         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
104295         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
104296         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
104297         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
104298         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
104299         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
104300         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
104301         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
104302         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
104303         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
104304         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
104305         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
104306         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
104307         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
104308         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
104309         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
104310         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
104311         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
104312         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
104313         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
104314         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
104315         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
104316         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
104317         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
104318         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
104319         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
104320         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
104321         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
104322         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
104323         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
104324         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104325         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
104326         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
104327         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
104328         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
104329         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
104330         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
104331         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
104332         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
104333         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
104334         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
104335         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
104336         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
104337         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
104338         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
104339         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
104340         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
104341         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
104342         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
104343         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
104344         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
104345         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
104346         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
104347         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
104348         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
104349         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
104350         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
104351         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
104352         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
104353         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
104354         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
104355         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
104356         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
104357         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
104358         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
104359         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
104360         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
104361         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
104362         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
104363         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
104364         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
104365         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
104366         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
104367         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
104368         lib/yesno.c, lib/yesno.h:
104369         Update FSF postal mail address.
104371 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104373         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
104374         tests/test-memmem.c, tests/test-stpncpy.c:
104375         Update FSF postal mail address.
104377 2005-05-13  Bruno Haible  <bruno@clisp.org>
104379         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
104380         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
104381         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
104382         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
104383         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
104384         Add support for 64-bit integers in the MSVC compiler.
104386 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104388         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
104390 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
104392         * gnulib-tool (func_import): Sort and uniquify recommended includes.
104394 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
104396         * doc/getdate.texi (General date syntax): Don't say that date
104397         date --iso-8601=ns generates acceptable dates; it doesn't yet.
104398         Problem reported by Nic Ferrier.
104400 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104402         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
104403         specified in ai_socktype. Fix invalid ai_protocol
104404         check. ai_protocol is usually set to 0 or depending on
104405         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
104406         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
104407         ai_socktype / ai_protocol in the returned addrinfo structure.
104409 2005-05-10  Simon Josefsson  <jas@extundo.com>
104411         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
104412         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104414 2005-05-10  Karl Berry  <karl@gnu.org>
104416         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
104417         (from http://www.gnu.org/licenses).
104418         * doc/COPYING.LIB: also rename to COPYING.LESSER.
104419         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
104420         fdl.texi suffices.
104422 2005-05-10  Karl Berry  <karl@gnu.org>
104424         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
104425         (COPYING.DOC): remove.
104427         * config/srclist-update: new FSF address.
104429 2005-05-10  Derek Price  <derek@ximbiot.com>
104431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
104432         possible.
104434 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104435             Bruno Haible  <bruno@clisp.org>
104437         * modules/inet_ntop: New file.
104438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104439         inet_ntop.
104441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104442             Bruno Haible  <bruno@clisp.org>
104444         * m4/inet_ntop.m4: New file.
104446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104447             Bruno Haible  <bruno@clisp.org>
104449         * lib/inet_ntop.h: New file.
104450         * lib/inet_ntop.c: New file, from glibc with modifications.
104452 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
104454         * modules/time_r (License): Change to LGPL.
104455         * modules/extensions (License): Change to LGPL.  Actually,
104456         the license is more permissive than that, but currently gnulib-tool
104457         doesn't know how to handle more-permissive licenses.
104459         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
104460         Problem reported by Dave Love.
104462 2005-05-08  Jim Meyering  <jim@meyering.net>
104464         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
104465         blank.
104467 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
104469         * modules/argmatch (Depends-on): Add stdbool.
104470         * modules/backupfile (Depends-on): Likewise.
104471         * modules/chdir-long (Depends-on): Likewise.
104472         * modules/closeout (Depends-on): Likewise.
104473         * modules/cycle-check (Depends-on): Likewise.
104474         * modules/dirname (Depends-on): Likewise.
104475         * modules/fnmatch (Depends-on): Likewise.
104476         * modules/fsusage (Depends-on): Likewise.
104477         * modules/fwriteerror (Depends-on): Likewise.
104478         * modules/getcwd (Depends-on): Likewise.
104479         * modules/getloadavg (Depends-on): Likewise.
104480         * modules/hard-locale (Depends-on): Likewise.
104481         * modules/makepath (Depends-on): Likewise.
104482         * modules/mountlist (Depends-on): Likewise.
104483         * modules/nanosleep (Depends-on): Likewise.
104484         * modules/posixtm (Depends-on): Likewise.
104485         * modules/quotearg (Depends-on): Likewise.
104486         * modules/readtokens (Depends-on): Likewise.
104487         * modules/readtokens0 (Depends-on): Likewise.
104488         * modules/readutmp (Depends-on): Likewise.
104489         * modules/save-cwd (Depends-on): Likewise.
104490         * modules/strftime (Depends-on): Likewise.
104491         * modules/userspec (Depends-on): Likewise.
104492         * modules/utimecmp (Depends-on): Likewise.
104493         * modules/xgetcwd (Depends-on): Likewise.
104494         * modules/xnanosleep (Depends-on): Likewise.
104495         * modules/xstrtod (Depends-on): Likewise.
104496         * modules/yesno (Depends-on): Likewise.
104498 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
104500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
104501         needless checks.
104503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104505         Merge from coreutils.  Among other things,
104506         add bulletproofing for cases where stdin, stdout, or stderr are closed.
104507         * lib/fd-safer.c: New file.
104508         * lib/fcntl-safer.h, open-safer.c: Remove.
104509         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
104510         * lib/dup-safer.c: Include unistd-safer.h first.
104511         Don't include errno.h.
104512         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
104513         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
104514         * lib/file-type.c: Rely on file-type.h change.
104515         * lib/getloadavg.c: Include unistd-safer.h.
104516         (getloadavg): Use safer open.
104517         * lib/getusershell.c: Include "stdio-safer.h".
104518         (getusershell): Use safer fopen.
104519         * lib/long-options.c (long_options): Use NULL rather than 0.
104520         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
104521         'free'.
104522         * lib/modechange.c: Likewise.
104523         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
104524         (MODE_DONE): New constant.
104525         (struct mode_change): Remove 'next' member.
104526         (make_node_op_equals): New function; like the old one of the
104527         same name, except it allocates an array.
104528         (mode_compile, mode_create_from_ref): Use it.
104529         (mode_compile): Allocate result as an array, not a linked list.
104530         Parse octal string ourself, so that we catch mistakes like "+0".
104531         (mode_adjust): Arg is an array, not a linked list.
104532         * lib/modechange.c: Include stat-macros.h, xalloc.h.
104533         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
104534         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
104535         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
104536         Remove.  This is now stat-macros.h's job.
104537         (talloc): Remove.  All callers replaced by xalloc, so that
104538         our invokers don't have to worry about reporting memory failures.
104539         (make_node_op_equals): Remove.
104540         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104541         New constants.
104542         (struct mode_change): Moved here from modechange.h.
104543         (mode_append_entry): Remove.
104544         (mode_compile): Remove MASKED_OPS arg, since it encouraged
104545         apps to have incorrect behavior.  Use simpler algorithm for head
104546         and tail.  Don't futz with umask; that's now the job of mode_adjust.
104547         Detect more invalid usages rather than having somewhat-random behavior.
104548         Don't insert an "a=" action, as that leads to incorrect behavior.
104549         (mode_compile, mode_create_from_ref): Return NULL on error instead
104550         of an enum, since now there's only one way to have an error.  All
104551         callers changed.
104552         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
104553         at the correct time.  Simplify calculation of "+u" and its ilk.
104554         Don't mishandle "+X".
104555         (mode_free): Remove "register" and localize decls.
104556         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104557         (struct mode_change): Move to modechange.c; callers don't
104558         need to see this stuff.
104559         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
104560         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
104561         (mode_change, mode_adjust): Reflect the new signatures noted above.
104562         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
104563         that might redefine system include files.
104564         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
104565         (my_usleep): Use NULL rather than (void *) 0.
104566         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
104567         Use siginterrupt to specify that system calls should be interrupted.
104568         (rpl_nanosleep): Move initialization of suspended closer to call of
104569         my_usleep.
104570         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
104571         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
104572         (desirable_utmp_entry): New function.
104573         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
104574         using x2nrealloc, to simplify logic.
104575         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
104576         size calculation.  Do not assume utmp file is a regular file.
104577         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
104578         (READ_UTMP_CHECK_PIDS): New constant.
104579         * lib/save-cwd.c: Include unistd-safer.h.
104580         (save_cwd): Use fd_safer.
104581         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
104582         [!_LIBC] Include "stat-macros.h" instead.
104583         * lib/unistd-safer.h (fd_safer): New decl.
104585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104587         * modules/getloadavg (Depends-on): Add unistd-safer.
104588         * modules/getusershell (Depends-on): Add stdio-safer.
104589         * modules/lstat (Depends-on): Remove xalloc.
104590         * modules/mkstemp (Depends-on): Add stat-macros.
104591         * modules/modechange (Depends-on): Remove xstrtol.
104592         Add stat-macros, xalloc.
104593         * modules/save-cwd (Depends-on): Add unistd-safer.
104594         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
104595         * modules/unistd-safer (Files): Add lib/fd-safer.c
104596         (Makefile.am): Remove lib_SOURCES.
104598         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
104599         Remove fcntl-safer; unistd-safer supersedes it.
104601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
104604         AC_HEADER_STAT.
104605         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
104606         (gl_PREREQ_CHOWN): Remove.
104607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
104608         it.  Don't require AC_HEADER_STAT.
104609         (gl_PREREQ_LSTAT): Remove.
104610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
104611         Don't require AC_HEADER_STAT.
104612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
104613         (gl_PREREQ_RMDIR): Remove.
104614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
104615         mention stat-macros.h or AC_HEADER_STAT, since we'll make
104616         the stat-macros module a prerequisite.
104617         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
104618         * m4/filemode.m4 (gl_FILEMODE): Likewise.
104619         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
104620         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
104621         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
104622         variable names.
104623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
104624         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
104625         variable prefixes.
104626         * m4/fcntl-safer.m4: Remove.
104627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
104628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
104629         Invoke gl_PREREQ_FD_SAFER.
104630         (gl_PREREQ_FD_SAFER): New macro.
104631         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
104632         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
104633         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
104634         Remove duplicate call to AC_LIBOBJ(readutmp).
104635         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
104637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
104638         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
104640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104642         * MODULES.html.sh (Misc): Add byteswap.
104644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104646         * modules/getcwd (Depends-on): Add extensions.
104647         * modules/openat (Depends-on): Likewise.
104649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104651         * modules/byteswap: New file.
104653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104655         * m4/byteswap.m4: New file.
104657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104659         * lib/byteswap_.h: New file.
104661 2005-04-25  Karl Berry  <karl@gnu.org>
104663         * m4/gettext.m4: Update from GNU gettext 0.14.4.
104665 2005-04-25  Albert Chin  <china@thewrittenword.com>
104667         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
104668         Toolkit C bug.
104670 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
104672         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
104673         (func_ln_if_changed): Remove forcibly for no error message
104674         in case file does not exist.
104676 2005-04-19  Simon Josefsson  <jas@extundo.com>
104678         * gnulib-tool (Options): Make --symlink mean --symbolic.
104680 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
104682         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
104684 2005-04-16  Simon Josefsson  <jas@extundo.com>
104686         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
104688 2005-04-15  Simon Josefsson  <jas@extundo.com>
104690         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
104692 2005-04-15  Simon Josefsson  <jas@extundo.com>
104694         * gnulib-tool: Rename --symlink to --symbolic.
104696 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
104698         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
104699         symbolic links to files instead of copying/moving.  Add --aux-dir,
104700         specifying directory relative --dir where auxiliary build tools
104701         are placed.
104703 2005-04-14  Bruno Haible  <bruno@clisp.org>
104705         * modules/allocsa (License): Change to LGPL.
104706         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
104708 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104710         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
104711         that "UTC +1 second" continues to work.  Problem reported
104712         by Dmitry V. Levin.
104713         (relunit_snumber): New rule.
104714         (relunit): Use it.
104716 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
104718         * lib/getdate.y (universal_time_zone_table): New constant.
104719         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
104720         universal_time_zone_table.
104721         (lookup_zone): Prefer universal_time_zone_table to
104722         local_time_zone_table, so that "GMT" time stamps are allowed in
104723         London during the summer.  Problem reported by Ian Abbott.
104725 2005-04-12  Jim Meyering  <jim@meyering.net>
104727         * lib/human.c (humblock): Set *options even when returning due to
104728         xstrtoumax conversion failure.  Thanks to a used-uninitialized
104729         warning from gcc-4.
104731 2005-04-09  Jim Meyering  <jim@meyering.net>
104733         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
104734         -Wuninitialized: initialize tm0.tm_year.
104736 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104738         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
104739         count, since there's no maximum.  All uses changed.
104740         Add member dsts_seen.
104741         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
104742         not being INT_MAX.
104743         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
104744         Use pc_rels_seen to decide whether a date is absolute.
104746         * lib/getdate.y (number): Don't overwrite year.
104747         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
104748         check.
104750 2005-04-02  Simon Josefsson  <jas@extundo.com>
104752         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
104753         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
104755 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
104757         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
104758         where no absolute path name can be longer than PATH_MAX.
104760 2005-03-27  Jim Meyering  <jim@meyering.net>
104762         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
104764 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
104766         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
104767         "one's complement" -> "ones' complement" in comment, as per Knuth.
104768         "value of type" -> "type or expression" in comment.
104769         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
104771 2005-03-26  Jim Meyering  <jim@meyering.net>
104773         Comment nits.
104774         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
104775         Correct typos: s/or/of/.
104777 2005-03-26  Jim Meyering  <jim@meyering.net>
104779         * modules/check-include-files: Move to ../ and rename to...
104780         * check-module: ...this.
104782 2005-03-25  Jim Meyering  <jim@meyering.net>
104784         * modules/xvasprintf (Files): Add xalloc.h.
104786 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104788         * modules/gettext (Files): config/config.rpath ->
104789         build-aux/config.rpath
104790         * modules/iconv (Files): Likewise.
104791         Problem reported by Oskar Liljeblad.
104793 2005-03-23  Jim Meyering  <jim@meyering.net>
104795         * modules/check-include-files: New script to check for
104796         missing dependencies, multiple includes, etc.
104798         * modules/c-strtold (Depends-on): Add xalloc.
104799         * modules/c-strtod (Depends-on): Add xalloc.
104800         * modules/hash (Depends-on): Add xalloc.
104801         (Files): Remove lib/xalloc.h.
104803         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
104804         * modules/userspec (Files): Add lib/inttostr.h.
104806 2005-03-23  Jim Meyering  <jim@meyering.net>
104808         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
104810 2005-03-22  Jim Meyering  <jim@meyering.net>
104812         * modules/stat-macros: New module.
104813         * modules/canonicalize, modules/euidaccess, modules/file-type,
104814         * modules/filemode, modules/lchown, modules/makepath,
104815         * modules/rmdir, modules/stat: Depend on new stat-macros module
104816         rather than listing lib/stat-macros.h manually.
104817         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
104819 2005-03-22  Jim Meyering  <jim@meyering.net>
104821         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
104823 2005-03-22  Bruno Haible  <bruno@clisp.org>
104825         * config/srclist.txt: Replace target directory 'config' with
104826         'build-aux'.
104827         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
104828         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
104829         ../build-aux/.
104831 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
104833         * modules/chdir-long (Depends-on): Add mempcpy.
104835         * modules/acl, modules/backupfile, modules/c-strtod,
104836         modules/c-strtold, modules/canon-host, modules/canonicalize,
104837         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
104838         modules/exclude, modules/exitfail, modules/file-type,
104839         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
104840         modules/getdate, modules/getline, modules/getpagesize,
104841         modules/getpass, modules/getugroups, modules/group-member,
104842         modules/hard-locale, modules/hash, modules/human, modules/idcache,
104843         modules/inttostr, modules/long-options, modules/makepath,
104844         modules/md5, modules/memcasecmp, modules/memcoll,
104845         modules/modechange, modules/mountlist, modules/path-concat,
104846         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
104847         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
104848         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
104849         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104850         modules/strftime, modules/strndup, modules/strverscmp,
104851         modules/timespec, modules/unlocked-io, modules/userspec,
104852         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104853         modules/yesno:
104854         Remove lib_SOURCES line from Makefile.am section, as this is now
104855         done automatically by the corresponding Autoconf macro.
104857 2005-03-21  Jim Meyering  <jim@meyering.net>
104859         Changes imported from coreutils.
104861         * lib/cycle-check.c: Don't include xalloc.h.
104863         * lib/path-concat.c: Don't include assert.h.
104864         (path_concat): Remove assertion that would have triggered
104865         for ABASE starting with more than one slash.
104866         Reported by Andreas Schwab.
104868         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104869         properly when ABASE is an absolute file name.
104870         Correct the description of this function.
104871         Include <assert.h>.
104872         Add an assertion and a test driver.
104873         This fixes a bug introduced on 2004-07-02.
104874         Andreas Schwab reported the resulting failure of cp --parents:
104875         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104877 2005-03-21  Jim Meyering  <jim@meyering.net>
104879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104882 2005-03-21  Jim Meyering  <jim@meyering.net>
104883         and  Paul Eggert  <eggert@cs.ucla.edu>
104885         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104886         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104887         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104888         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104889         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104890         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104891         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104892         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104893         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104894         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104895         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104896         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104897         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104898         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104899         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104900         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104901         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104902         for these modules.
104904 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104906         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104907         (which shouldn't happen), generate nothing instead of returning 0
104908         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104910 2005-03-16  Bruno Haible  <bruno@clisp.org>
104912         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104913         HAVE_LONGLONG_64BIT.
104915 2005-03-16  Bruno Haible  <bruno@clisp.org>
104917         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104918         HAVE_LONGLONG_64BIT.
104920 2005-03-16  Bruno Haible  <bruno@clisp.org>
104922         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104923         HAVE_LONGLONG_64BIT.
104925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104927         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104928         reliably distinguish strftime failure from empty output on POSIX
104929         hosts.
104931 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104933         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104934         (iconv_string): Don't guess a size-zero buffer, as that might cause
104935         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104936         result would be 'too large', where 'too large' is (heuristically)
104937         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104938         overflow concerns.  This will prevent some unwanted malloc failures
104939         when the inputs are very large.
104941 2005-03-15  Karl Berry  <karl@gnu.org>
104943         * config/srclist.txt (config.rpath): from gettext.
104944         * config/config.rpath: update.
104946 2005-03-15  Bruno Haible  <bruno@clisp.org>
104948         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104949         to 'negate'.
104951         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104952         variable.
104954         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104955         results.
104957 2005-03-14  Simon Josefsson  <jas@extundo.com>
104959         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104960         <fx@gnu.org>.
104962 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104965         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104966         intprops.h.
104967         * lib/strtol.c: Likewise.
104969 2005-03-14  Jim Meyering  <jim@meyering.net>
104971         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104972         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104973         to be nonzero so that we (and caller) can detect the difference
104974         between a valid zero-length expansion and an error return, even
104975         when the underlying strftime fails before writing anything into
104976         that location.
104978 2005-03-14  Bruno Haible  <bruno@clisp.org>
104980         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104981         Update from GNU gettext 0.14.3.
104983 2005-03-10  Jim Meyering  <jim@meyering.net>
104985         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104987 2005-03-10  Jim Meyering  <jim@meyering.net>
104989         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104990         so that this module works on systems without fchdir.
104992 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104994         Factor int-properties macros into a single file, except for
104995         glibc-related files.
104996         * lib/intprops.h: New file.
104997         * lib/getloadavg.c: Include it instead of limits.h.
104998         (INT_STRLEN_BOUND): Remove.
104999         * lib/human.c: Include intprops.h.
105000         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
105001         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
105002         302/1000.
105003         * lib/inttostr.h: Include intprops.h instead of limits.h.
105004         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
105005         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
105006         for consistency with intprops.h.
105007         (time_t_is_integer, twos_complement_arithmetic): Use them.
105008         * lib/sig2str.h: Include <signal.h>, intprops.h.
105009         (INT_STRLEN_BOUND): Remove.
105010         * lib/strftime.c (TYPE_SIGNED): Remove.
105011         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
105012         * lib/strtol.c: Adjust comments to match intprops.h.
105013         * lib/userspec.c: Include intprops.h.
105014         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
105015         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
105016         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
105017         instead of rolling our own expressions.
105018         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
105020         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
105021         instead of int.
105022         (my_strftime): Do not mishandle years close to INT_MAX, by doing
105023         the right thing even if adding 1900 would overflow.  Similarly
105024         for tm_mon + 1 and tm_yday + 1.
105025         Make %Y always equivalent to %C%y, and similarly for %G and %g.
105026         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
105027         (DO_SIGNED_NUMBER): New macro.
105028         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
105030 2005-03-07  Bruno Haible  <bruno@clisp.org>
105032         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
105034 2005-03-07  Bruno Haible  <bruno@clisp.org>
105036         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
105038 2005-03-04  Derek R. Price  <derek@ximbiot.com>
105040         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
105041         (func_import): Only replace files via --import when they have actually
105042         changed.
105044 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105046         * m4/mmap-anon.m4: New file.
105047         * m4/pagealign_alloc.m4: New file.
105049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105050             Bruno Haible  <bruno@clisp.org>
105052         * modules/pagealign_alloc: New file.
105053         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
105055 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105056             Bruno Haible  <bruno@clisp.org>
105058         * lib/pagealign_alloc.h: New file.
105059         * lib/pagealign_alloc.c: New file.
105061 2005-03-03  Bruno Haible  <bruno@clisp.org>
105063         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
105064         Use an all-permissive copyright notice, recommended by RMS.
105066 2005-03-02  Bruno Haible  <bruno@clisp.org>
105068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
105069         of AIX, the replacement has to be done only after <string.h> is
105070         included, therefore not in config.h. stpncpy.h does the replacement,
105071         and stpncpy.c uses it.
105073 2005-03-02  Bruno Haible  <bruno@clisp.org>
105075         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
105076         stpncpy.c uses it.
105078 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105080         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
105081         The workaround isn't strictly needed for POSIX conformance, and
105082         it's too much of a pain to configure and maintain.  We'll ask
105083         people to fix their kernels instead.
105084         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
105085         (NANOSLEEP_BUG_WORKAROUND): Remove.
105086         (xnanosleep): Remove the workaround.
105088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105090         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
105091         Reported by Derek Price.
105092         (Include): Add "timespec.h".
105094         * modules/xnanosleep (Depends-on): Remove gethrxtime.
105096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
105099         to detect nanosleep bug.
105101 2005-03-01  Bruno Haible  <bruno@clisp.org>
105103         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
105105 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
105107         * modules/gethrxtime: New file.
105108         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
105109         (Depends-on): Add gethrxtime.
105110         (configure.ac): Add gl_XNANOSLEEP.
105111         (Makefile.am): Remove lib_SOURCES line.
105113 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
105115         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
105116         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
105118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
105120         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
105121         * lib/timespec.h (gettime): Return void, since it always
105122         succeeds now.  All uses changed.
105123         * lib/gettime.c (gettime): Likewise.
105124         [HAVE_NANOTIME]: Prefer nanotime.
105125         Assume gettimeofday succeeds, as POSIX requires.
105126         Assime time () succeeds, since other code already does.
105127         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
105128         (timespec_subtract): Remove.
105129         (NANOSLEEP_BUG_WORKAROUND): New constant.
105130         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
105131         things considerably.  Use it only on GNU/Linux hosts, since the
105132         workaround shouldn't be needed elsewhere.
105134 2005-02-24  Bruno Haible  <bruno@clisp.org>
105136         * modules/gettext (Files): Add m4/glibc2.m4.
105138 2005-02-24  Bruno Haible  <bruno@clisp.org>
105140         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
105141         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
105142         * m4/progtest.m4:
105143         Update from GNU gettext 0.14.2.
105144         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
105146 2005-02-24  Bruno Haible  <bruno@clisp.org>
105148         * lib/localcharset.c: Update from GNU gettext 0.14.2.
105149         * lib/config.charset: Update from GNU gettext 0.14.2.
105151 2005-02-24  Bruno Haible  <bruno@clisp.org>
105153         * lib/gettext.h: Update from GNU gettext 0.14.2.
105155 2005-02-23  Simon Josefsson  <jas@extundo.com>
105157         * m4/iconvme.m4: New file.
105159 2005-02-23  Jim Meyering  <jim@meyering.net>
105161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
105162         change.
105163         Thanks to Bruno Haible for catching it.
105165 2005-02-22  Simon Josefsson  <jas@extundo.com>
105167         * modules/iconvme: New file.
105169         * MODULES.html.sh: Add iconvme.
105171 2005-02-22  Simon Josefsson  <jas@extundo.com>
105173         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
105175 2005-02-22  Simon Josefsson  <jas@extundo.com>
105177         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
105179 2005-02-22  Jim Meyering  <jim@meyering.net>
105181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
105182         s/ifndef/ifdef/.
105184 2005-02-20  Neil Conway  <neilc@samurai.com>
105186         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
105187         returned by OSX/Darwin if the specified buffer is not large
105188         enough for the hostname.
105190 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105192         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
105193         pass it to _help, otherwise the latter coredumps trying to
105194         dereference state.root_argp.
105196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105198         * modules/chdir-long (Depends-on): Add memrchr.
105199         * modules/memrchr (Files): Add lib/memrchr.h.
105200         (Include): "memrchr.h".
105202 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
105206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105208         * lib/memrchr.h: New file.
105209         * lib/chdir-long.c: Include it.
105210         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
105211         Don't bother including stddef.h.
105213 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105215         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
105216         inclusion.
105217         Include <sys/types.h>, for dev_t.
105218         (ME_DUMMY, ME_REMOTE): Move from here....
105219         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
105220         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
105221         Dmitry V. Levin.
105222         Include mountlist.h first, to test the interface.
105224 2005-01-29  Bruno Haible  <bruno@clisp.org>
105226         * lib/progname.c (program_name): Initialize.
105227         Needed when linking statically on MacOS X.
105229 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105231         Sync from coreutils.
105232         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
105233         (Depends-on): Add c-strtod.
105234         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
105236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105238         Sync from coreutils.
105239         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
105241         Remove files that are specific to coreutils.
105242         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
105244 2005-01-28  Bruno Haible  <bruno@clisp.org>
105246         * modules/javacomp: New file.
105247         * MODULES.html.sh (Java): Add javacomp.
105249 2005-01-28  Bruno Haible  <bruno@clisp.org>
105251         * m4/javacomp.m4: New file, from GNU gettext.
105253 2005-01-28  Bruno Haible  <bruno@clisp.org>
105255         * lib/javacomp.sh.in: New file, from GNU gettext.
105256         * lib/javacomp.h: New file, from GNU gettext.
105257         * lib/javacomp.c: New file, from GNU gettext.
105259 2005-01-26  Simon Josefsson  <jas@extundo.com>
105261         * lib/gai_strerror.c: Use GPL in header.
105263 2005-01-26  Bruno Haible  <bruno@clisp.org>
105265         * modules/javaexec: New file.
105266         * MODULES.html.sh (Java): Add javaexec.
105268 2005-01-26  Bruno Haible  <bruno@clisp.org>
105270         * m4/javaexec.m4: New file, from GNU gettext.
105272 2005-01-26  Bruno Haible  <bruno@clisp.org>
105274         * lib/javaexec.sh.in: New file, from GNU gettext.
105275         * lib/javaexec.h: New file, from GNU gettext.
105276         * lib/javaexec.c: New file, from GNU gettext.
105278 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105280         * modules/lchown (Depends-on): Remove lchown.h
105282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105284         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
105285         must be defined if the header file was not found, in order
105286         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
105288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105290         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
105291         initializers for struct pentry_state.
105292         (__argp_error): Check return value of __asprintf
105293         (__argp_failure): Translate error message
105295         * lib/argp-parse.c: Removed braces around the expansion of N_()
105297 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105299         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
105300         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
105301         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
105302         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
105303         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
105304         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
105305         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
105306         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
105307         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
105308         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
105309         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
105310         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
105311         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
105312         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
105313         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
105314         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
105315         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
105316         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
105317         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
105318         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
105319         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
105320         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
105321         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
105322         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
105323         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
105324         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
105325         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
105326         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
105327         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
105328         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
105329         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
105330         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
105331         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
105332         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
105333         xstrtol.m4, xstrtoumax.m4, yesno.m4:
105334         Use an all-permissive copyright notice, recommended by RMS.
105336 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
105338         * modules/chdir-long (Depends-on): Remove mempcpy.
105340 2005-01-21  Jim Meyering  <jim@meyering.net>
105342         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
105343         same value as for Solaris 9.
105345         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
105346         component length.  This included changing the parameter to be
105347         of type `char *' rather than `char const *'.
105348         * lib/chdir-long.h (chdir_long): Update prototype.
105350         * lib/openat.c (fdopendir, fstatat): New functions.
105351         * lib/openat.h: Include headers required for use of DIR and struct
105352         stat.
105353         [AT_SYMLINK_NOFOLLOW]: Define.
105354         (fdopendir, fstatat): Add prototypes.
105356 2005-01-21  Bruno Haible  <bruno@clisp.org>
105358         * modules/classpath: New file.
105359         * MODULES.html.sh (Java): Add classpath.
105361 2005-01-21  Bruno Haible  <bruno@clisp.org>
105363         * lib/classpath.h: New file, from GNU gettext.
105364         * lib/classpath.c: New file, from GNU gettext.
105366 2005-01-20  Simon Josefsson  <jas@extundo.com>
105368         * modules/version-etc-fsf: New file.
105370 2005-01-20  Simon Josefsson  <jas@extundo.com>
105372         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
105373         * lib/version-etc.c: Remove version_etc_copyright.
105374         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
105375         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
105377 2005-01-20  Simon Josefsson  <jas@extundo.com>
105379         * lib/base64.h (isbase64): Add.
105381         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
105382         using a unsigned prototype, don't inline.
105383         (base64_decode): Use it.
105385 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105387         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
105388         it.
105390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105392         * lib/save-cwd.c (save_cwd): Remove code to support the case
105393         where fchdir is missing or flaky.
105395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105397         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
105399 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105401         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
105402         AC_LIBSOURCES now does this.
105403         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
105404         with new ullong_max module.
105406 2005-01-19  Bruno Haible  <bruno@clisp.org>
105408         * modules/sh-quote: New file.
105409         * MODULES.html.sh (Executing programs): Add sh-quote.
105411 2005-01-19  Bruno Haible  <bruno@clisp.org>
105413         * lib/sh-quote.h: New file, from GNU gettext.
105414         * lib/sh-quote.c: New file, from GNU gettext.
105416 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105418         Merge from coreutils.
105419         * m4/ullong_max.m4: New file.
105420         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
105421         (gl_MACROS): Assume localeconv exists.
105423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105425         Merge changes from coreutils, as described below in several
105426         changelogs dated today.
105428         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
105429         (O_DIRECTORY): Remove; not needed here, since "." must be
105430         a directory.  All uses removed.
105431         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
105432         universal on Suns, and we also need to test for IRIX.
105433         Revamp code to use 'if' rather than '#if'.
105434         Avoid unnecessary comparison of cwd->desc to 0.
105436         * lib/utimens.c (futimens): Robustify the previous patch, by checking
105437         for known valid error numbers rather than observed invalid ones.
105439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105441         * modules/ullong_max: New file.
105443         * modules/chdir-long, modules/openat: New files.
105444         * modules/save-cwd (Depends-on): Depend on chdir-long.
105445         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
105447 2005-01-18  Jim Meyering  <jim@meyering.net>
105449         Merge from coreutils.
105450         * m4/chdir-long.m4, m4/openat.m4: New files.
105451         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
105452         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
105453         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
105454         is sane and DOES follow symlinks.  Besides, testing 20 different
105455         systems found no broken chown implementations.
105456         Prompted by a change in rsync's copy of this macro.
105457         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
105459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
105461         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
105462         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
105463         NULL-means-set-to-current-time semantics.
105464         Remove temporary file immediately, rather than waiting
105465         for configure's at-exit trap code to do it.
105467 2005-01-18  Jim Meyering  <jim@meyering.net>
105469         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105471         * lib/utimens.c (futimens): Account for the fact that futimes
105472         can also fail with errno == ENOSYS or errno == ENOENT.
105473         Patch from Dmitry V. Levin.
105475         Change the name of the robust chdir function from chdir to chdir_long.
105476         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
105477         (restore_cwd): Use chdir_long, not chdir.
105478         * lib/chdir-long.c: Renamed from chdir.c.
105479         * lib/chdir-long.h: Renamed from chdir.h.
105480         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
105481         Hurd.
105483 2005-01-18  Bruno Haible  <bruno@clisp.org>
105485         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
105486         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
105487         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
105488         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
105489         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
105490         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
105491         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
105492         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
105493         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
105494         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
105495         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
105496         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
105497         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
105498         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
105499         Use an all-permissive copyright notice, recommended by RMS.
105501 2005-01-18  Bob Proulx  <bob@proulx.com>
105503         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
105504         simplify offsetof() macro construct to avoid compile failure with
105505         native HP-UX 11.0 ANSI C compiler.
105507 2005-01-17  Bruno Haible  <bruno@clisp.org>
105509         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
105510         redundant because stpncpy.m4 takes care of it.
105512 2005-01-17  Bruno Haible  <bruno@clisp.org>
105514         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
105516 2005-01-17  Bruno Haible  <bruno@clisp.org>
105518         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
105519         used.
105521 2005-01-17  Bruno Haible  <bruno@clisp.org>
105523         * lib/fwriteerror.h (fwriteerror): Change specification to include
105524         fclose.
105525         * lib/fwriteerror.c: Include <stdbool.h>.
105526         (fwriteerror): At the end, close the file stream. Record whether
105527         stdout was already closed.
105529 2005-01-17  Bruno Haible  <bruno@clisp.org>
105531         * lib/execute.c (environ): Declare if needed.
105532         * lib/pipe.c (environ): Likewise.
105533         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
105535 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105537         * modules/argp: Depend on vsnprintf
105539 2005-01-10  Jim Meyering  <jim@meyering.net>
105541         * modules/closeout (Depends-on): Add atexit.
105543 2005-01-06  Bruno Haible  <bruno@clisp.org>
105545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
105547 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105549         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
105550         definitions to be after all include files, to avoid collisions.
105551         Problem reported by Bob Proulx.
105553 2005-01-04  Jim Meyering  <jim@meyering.net>
105555         Changes imported from coreutils.
105556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
105557         as the mkstemp template, use a temporary directory and an
105558         8.3-friendly template to avoid trouble on systems like DJGPP.
105559         Reported by Juan M. Guerrero via Stepan Kasal.
105560         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
105561         close. Remove the temporary directory right away, rather than waiting
105562         for configure's at-exit trap code to do it.
105563         Suggestion from Stepan Kasal.
105565 2005-01-01  Simon Josefsson  <jas@extundo.com>
105567         * gnulib-tool: Print #include directives when --import'ing.
105569 2004-12-28  Simon Josefsson  <jas@extundo.com>
105571         * tests/test-base64.c: Include required header files.  Remove
105572         unused variables.
105574 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105576         * modules/error (Depends-on): Remove gettext.
105578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105580         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
105581         not needed.  This removes a dependency on the gettext module.
105582         [defined _LIBC]: Do not include <libintl.h>; not needed.
105584 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105586         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
105587         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
105589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105591         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
105592         HAVE_DECL_STRTOLD.
105594 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105596         * modules/getdate (Depends-on): Remove alloca-opt.
105598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105600         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
105602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105604         * lib/argp-parse.c: Include <stddef.h>.
105605         (alignof, alignto): New macros.
105606         (parser_init): Don't assume that void * is aligned sufficiently
105607         for struct option.
105609         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
105610         need to extend the stack.
105611         (YYINITDEPTH): New macro, so that the initial stack isn't overly
105612         large.
105614 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105616         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
105618 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105620         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
105621         (2004-10-24) change.  Apparently this was a false alarm.
105623         * modules/getdate: Depend on alloca-opt, not alloca.
105625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105627         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
105628         Remove now-obsolete comment about AIX.
105629         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
105630         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
105631         (YYMAXDEPTH): New macro.
105633 2004-12-18  Simon Josefsson  <jas@extundo.com>
105635         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
105637 2004-12-18  Bruno Haible  <bruno@clisp.org>
105639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
105641 2004-12-18  Bruno Haible  <bruno@clisp.org>
105643         * lib/fatal-signal.c (fatal_signals): Make non-const.
105644         (init_fatal_signals): New function.
105645         (uninstall_handlers, install_handlers): Ignore signals that were set to
105646         SIG_IGN.
105647         (at_fatal_signal): Call init_fatal_signals.
105648         (init_fatal_signal_set): Likewise. Ignore signals that were set to
105649         SIG_IGN.
105650         Reported by Paul Eggert.
105652 2004-12-18  Bruno Haible  <bruno@clisp.org>
105654         * doc/alloca.texi: New file.
105655         * doc/alloca-opt.texi: New file.
105657 2004-12-17  Jim Meyering  <jim@meyering.net>
105659         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
105660         Otherwise, install-sh could exit with improper exit status when
105661         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
105663 2004-12-16  Simon Josefsson  <jas@extundo.com>
105665         * tests/test-base64.c: Add license.
105667 2004-12-15  Stepan Kasal  <address@hidden>
105669         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
105671 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
105673         * modules/getcwd (Files): Add m4/d-ino.m4.
105674         Suggested by Mark D. Baushke.
105676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105678         * lib/getdate.y (textint): New member "negative".
105679         (time_zone_hhmm): New function.
105680         Expect 14 shift-reduce conflicts, not 13.
105681         (o_colon_minutes): New rule.
105682         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
105683         (yylex): Set the "negative" member of signed numbers.
105685 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105687         * doc/getdate.texi (Time of day items, Time zone items):
105688         Describe new formats +00:00, UTC+00:00.
105690 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
105692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
105693         spurious "-l"s.  Problem reported by Stepan Kasal.
105695 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
105697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
105698         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
105700 2004-12-04  Simon Josefsson  <jas@extundo.com>
105702         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
105703         Vandoorselaere <yoann@prelude-ids.org>.
105705 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105707         Changes imported from coreutils.
105708         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
105709         exist.
105710         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
105712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105714         Changes imported from coreutils.
105715         * lib/hard-locale.c: Assume <locale.h> exists.
105716         Include "strdup.h".
105717         (GLIBC_VERSION): New macro.
105718         (hard_locale): Assume setlocale exists.
105719         Rewrite to avoid #ifdef.
105720         Use strdup rather than malloc + strcpy.
105721         * lib/human.c: Assume <locale.h> exists.
105722         (human_readable): Assume localeconv exists.
105724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105726         * modules/hard-locale (Depends-on): Add strdup.
105728 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105730         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
105731         convert T2, not T.  (Imported from libc.)
105733 2004-11-30  Simon Josefsson  <jas@extundo.com>
105735         * modules/restrict (License): Change to LGPL.
105737 2004-11-30  Simon Josefsson  <jas@extundo.com>
105739         * m4/restrict.m4: Add copyright and copying conditions.
105741 2004-11-30  Simon Josefsson  <jas@extundo.com>
105743         * m4/base64.m4: New file.
105745 2004-11-30  Simon Josefsson  <jas@extundo.com>
105747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
105748         base64.
105750         * tests/test-base64.c: New file.
105752         * modules/base64: New file.
105754 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
105757         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
105759         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
105761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105763         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
105764         (__getcwd.c): Don't restore errno; glibc doesn't.
105765         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
105766         first, falling back to our code only if its results look suspicious.
105767         Ensure that the resulting buffer is only as large as necessary.
105769         * lib/readutmp.c: Include readutmp.h first.
105770         Include <errno.h>, since readutmp.h no longer does that.
105771         * lib/readutmp.h: Don't include <errno.h>,
105772         <sys/param.h>, <time.h>; not needed to establish interface.
105773         (errno): Remove decl.
105774         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
105775         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
105776         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
105778 2004-11-28  Simon Josefsson  <jas@extundo.com>
105780         * lib/base64.h, base64.c: New file.
105782 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
105784         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
105786 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105788         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
105789         (Depends-on): Remove pathmax, same.  Add mempcpy.
105790         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
105791         (Makefile.am): Append getcwd.h to lib_SOURCES.
105792         (Include): Add getcwd.h.
105793         (Maintainer): Change from Jim Meyering to "all, glibc",
105794         since getdate now uses intended-for-glibc code.
105795         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
105796         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
105798 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105800         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
105801         HP's ANSI C compiler.
105802         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
105803         Declaring int functions causes warnings on some modern systems and
105804         shouldn't be needed to compile on ancient ones.
105805         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
105806         defined.
105808         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
105809         with the following changes.
105810         (__set_errno): Parenthesize properly.
105811         Include <stdbool.h>.
105812         (MIN, MAX, MATCHING_INO): New macros.
105813         (__getcwd): Define with prototype, not K&R form.
105814         Use heuristics to allocate default buffer on stack if possible.
105815         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
105816         behavior, and to avoid the PATH_MAX limit when computing
105817         ../../../../...
105818         Use MATCHING_INO to compare inode number to file.
105819         Check for arithmetic overflow in size calculations.
105820         Fix bug in reallocation of dot array that caused getcwd to fail
105821         on directories nested deeper than 75.
105822         Be more careful about saving errno on error.
105823         Do not use realloc; use only free+malloc, as this is a bit
105824         more flexible and avoids a needless copy operation.
105825         Do not inspect st_dev and st_ino for symbolic links; POSIX
105826         doesn't specify the latter.
105827         Check for closedir errors.
105828         Avoid needless casts.
105829         Use "#ifdef weak_alias" around weak_alias, to be like other
105830         glibc code.
105831         The following changes to getcwd.c have effect only when used in
105832         gnulib; they have no effect inside glibc proper.
105833         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
105834         as alloca isn't used.
105835         (alloca, __alloca): Likewise.
105836         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
105837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105838         unconditionally, as gnulib assumes C89 or better.
105839         Do not include <sys/param.h>.
105840         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
105841         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
105842         better.
105843         (NULL) [!defined NULL]: Remove; we assume C89 or better.
105844         Include <dirent.h> in a way that is compatible with modern Autoconf.
105845         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
105846         New macros, if not already defined.
105847         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
105848         Use "_LIBC", not "defined _LIBC", for consistency.
105849         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105850         a mempcpy module.
105851         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105852         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105853         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105854         credit only to Jim Meyering and adjust the copyright dates.
105855         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105856         <stdlib.h>, <unistd.h>, "pathmax.h".
105857         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105858         (INITIAL_BUFFER_SIZE): Remove.
105859         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105861 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105864         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105865         Use the _ONCE methods, for efficiency.
105866         Check for fcntl.h.  In test program, include <errno.h>
105867         and <fcntl.h> if available.  Remove old K&R cruft from
105868         test program.  Check for common errors in GNU/Linux,
105869         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105870         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105872         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105873         name accordingly.
105874         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105875         accommodate new getcwd.c.
105876         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105878         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105879         that's all we need now.
105881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105883         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105884         argp-parse.c depends on getopt internals, that means we should
105885         always use our getopt, to be on the safe side.
105886         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105887         order not to spoil the result of an eventual previous invocation
105888         of gl_GETOPT_SUBSTITUTE.
105890 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105892         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105893         redefinition warnings. To avoid them, include the defines
105894         in `#if !defined __need_getopt ... #endif'. The only place
105895         where __getopt_argv_const is used is in definitions
105896         of getopt_long and getopt_long_only below, which are as well
105897         protected by `#ifndef __need_getopt'.
105898         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105899         __need_getopt after including <stdio.h> and <unistd.h> These
105900         headers might have defined it.
105902 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105904         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105908         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105909         (futimens): New function, which uses futimes if available.
105910         (futimens, utimens): Support timespec==NULL, with same semantics
105911         as utime and utimens.
105912         * lib/utimens.h (futimens): New decl.
105914 2004-11-23  Jim Meyering  <jim@meyering.net>
105916         * lib/getopt_.h: Remove trailing blanks.
105918 2004-11-23  Jim Meyering  <jim@meyering.net>
105920         * lib/__fpending.c: Add comment.
105922 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105924         * modules/canonicalize (Depends-on): Add xreadlink.
105925         Problem reported by James Youngman.
105927 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105929         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105930         New macros.
105931         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105932         optopt): Use them instead of invoking ## directly; otherwise, the
105933         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105935 2004-11-19  Bruno Haible  <bruno@clisp.org>
105937         * lib/strtok_r.c: Move comments from here...
105938         * lib/strtok_r.h: ... to here.
105940 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105943         implementations that mishandle size_t overflow.
105945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105947         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105948         might fail.  Problem reported by Yoann Vandoorselaere.
105949         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105950         implementations that mishandle size_t overflow.
105952 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105954         * modules/canon-host (Depends-on): Add strdup.
105956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105958         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105962         * lib/canon-host.c: Include "strdup.h".
105963         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105964         Use strdup instead of malloc/strcpy to duplicate strings.
105966         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105967         (human_space_before_unit): New constant.
105968         * lib/human.c (human_readable): Support it.
105970         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105971         (xgetcwd): Set errno correctly when failing.
105972         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105973         the failure is actually due to a PATH_MAX problem.
105975         Further getopt changes to make it more likely that glibc will
105976         buy the changes back.
105977         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105978         (getopt): Use it, so to preserve glibc semantic
105979         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105980         when compiling for libc.
105981         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105982         (getopt_long, getopt_long_only): Use it.
105984         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105985         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105986         (getopt): Argv is now char * const *, as per standard.
105987         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105988         not char *__getopt_argv_const *.
105989         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105990         _getopt_long_only_r): Likewise.
105991         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105993         _getopt_long_r, _getopt_long_only_r): Likewise.
105994         * lib/getopt_.h (__getopt_argv_const): Remove.
105995         (getopt): Argv is now char * const *, as per standard.
105997         * lib/getdate.y (tORDINAL): New token.
105998         (day, relunit): Allow it for relative times.
105999         (relative_time_table): Use tORDINAL for ordinals.
106001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106003         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
106004         Document that "second" isn't allowed as an ordinal number.
106006 2004-11-16  Jim Meyering  <jim@meyering.net>
106008         * modules/closeout (Depends-on): Add fpending.
106010 2004-11-15  Jim Meyering  <jim@meyering.net>
106012         * lib/closeout.c: Include "__fpending.h" once again.
106013         Include <stdbool.h>.
106014         (close_stdout): Don't fail just because stdout was closed initially,
106015         since some programs don't write to stdout in the normal course of
106016         operation (other than --version and --help), and we don't want this
106017         function to make e.g. `touch file >&-' fail.
106018         But do fail if it was closed and someone has tried to write to it.
106019         E.g., `printf foo >&-' must fail.
106021 2004-11-13  Jim Meyering  <jim@meyering.net>
106023         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
106025 2004-11-12  Simon Josefsson  <jas@extundo.com>
106027         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
106028         small doc fix is still pending.
106030 2004-11-11  Simon Josefsson  <jas@extundo.com>
106032         * modules/strtok_r: New file.
106034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106035         strtok_r.
106037 2004-11-11  Simon Josefsson  <jas@extundo.com>
106039         * m4/strtok_r.m4: New file.
106041         * m4/getopt.m4: Replace opterr.
106043 2004-11-11  Simon Josefsson  <jas@extundo.com>
106045         * lib/strtok_r.h, strtok_r.c: New file.
106047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
106049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
106050         of replacing opterr, getopt, etc.  This should handle the
106051         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
106053 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
106055         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
106056         we can stop lying to compilers about the constness of argv when we
106057         are compiled outside glibc.
106058         (getopt, getopt_long, getopt_long_only): Use it.
106059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
106060         _getopt_internal, getopt): Likewise.
106061         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
106062         _getopt_long_only_r): Likewise.
106063         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
106064         _getopt_long_r, _getopt_long_only_r): Likewise.
106066         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
106067         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
106068         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
106069         the other external symbols.
106070         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
106071         declaration, since the above renaming now works around collisions.
106073 2004-11-11  Jim Meyering  <jim@meyering.net>
106075         * lib/linebreak.c: Remove trailing blanks.
106076         * lib/alloca_.h: Likewise.
106077         * lib/acosl.c: Likewise.
106078         * lib/euidaccess.c: Likewise.
106079         * lib/allocsa.h: Likewise.
106081 2004-11-10  Simon Josefsson  <jas@extundo.com>
106083         * m4/getaddrinfo.m4: New file.
106085 2004-11-10  Simon Josefsson  <jas@extundo.com>
106087         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
106089 2004-11-10  Simon Josefsson  <jas@extundo.com>
106091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106092         getaddrinfo.
106094         * modules/getaddrinfo: New file.
106096 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
106098         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
106100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
106102         * lib/mktime.c (SHR): New macro, which is a portable
106103         substitute for >> that should work even on Crays.
106104         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
106105         Problem reported by Mark D. Baushke in
106106         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
106107         * lib/getdate.y (SHR): Likewise.
106108         (tm_diff): Use it.
106109         * lib/strftime.c (SHR): Likewise.
106110         (tm_diff): Use it.
106111         * lib/quotearg.c (struct quoting_options): Use unsigned int for
106112         quote_these_too, so that right shifts are well defined.  All uses
106113         changed.
106115 2004-11-10  Jim Meyering  <jim@meyering.net>
106117         Ensure that no close failure goes unreported.
106118         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
106119         return early when it seems there's nothing to flush.
106120         Don't include __fpending.h.
106122 2004-11-10  Jim Meyering  <jim@meyering.net>
106124         * modules/closeout (Depends-on): Remove fpending.
106126 2004-11-10  Jim Meyering  <jim@meyering.net>
106128         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
106130 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106132         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
106133         gl_FUNC_STRFTIME.
106134         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
106135         and AC_REQUIRE when possible, to avoid duplicate checks.
106136         Check for <wchar.h>.
106138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106140         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
106142 2004-11-09  Bruno Haible  <bruno@clisp.org>
106144         * m4/sockpfaf.m4: New file.
106146 2004-11-05  Bruno Haible  <bruno@clisp.org>
106148         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
106149         Reported by Mark D. Baushke <mdb@cvshome.org>.
106151 2004-11-04  Bruno Haible  <bruno@clisp.org>
106153         2004-09-11  Bruno Haible  <bruno@clisp.org>
106154                 * allocsa.valgrind: New file.
106155         2004-02-06  Bruno Haible  <bruno@clisp.org>
106156                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
106157                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
106158                 Reported by Christopher Seip <chris.seip@hp.com>.
106160 2004-11-04  Bruno Haible  <bruno@clisp.org>
106162         * modules/allocsa (Files): Add lib/allocsa.valgrind.
106163         (Makefile.am): Distribute it.
106165 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
106167         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
106168         with errno == ERANGE if the buffer is too small.
106169         Problem reported by Mark D. Baushke.
106171 2004-11-03  Albert Chin  <china@thewrittenword.com>
106172             Paul Eggert  <eggert@cs.ucla.edu>
106174         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
106175         equivalent, substitute $ac_type for equivalent type rather than
106176         blindly using uint32_t *always* which won't work if uint32_t is not
106177         available.  Define _UINT32_T to work around typedef of uint32_t if
106178         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
106179         2.5.1.
106181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106183         * m4/jm-macros.m4: Sync from coreutils.
106184         (gl_MACROS): Check for mbrlen, for pathchk.
106185         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
106187 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106189         * lib/xreadlink.c (MAXSIZE): New macro.
106190         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
106191         size does not exceed MAXSIZE.  Avoid cast.
106192         As suggested by Mark D. Baushke in
106193         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
106194         if readlink fails with buffer size just under MAXSIZE, try again
106195         with MAXSIZE.
106197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106199         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
106201 2004-11-02  Derek R. Price  <derek@ximbiot.com>
106202         and  Paul Eggert  <eggert@cs.ucla.edu>
106204         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
106205         (get_date): Overparenthesize to avoid GCC warning.
106207 2004-11-02  Bruno Haible  <bruno@clisp.org>
106209         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
106210         returns void.
106212 2004-11-02  Bruno Haible  <bruno@clisp.org>
106214         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
106215         function returns void.
106217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
106220         fflush_unlocked, flockfile, funlockfile, funlockfile,
106221         fputs_unlocked, putc_unlocked.
106223 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106226         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
106227         already declared.
106229 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106231         * modules/getdate (Files): Add doc/getdate.texi.
106232         (Depends-on): Add setenv, xalloc.
106234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106236         * lib/getdate.y: Add support for TZ="foo" within a date string.
106237         Fix some bugs near time_t boundaries.  Reject dates with
106238         out-of-range components, e.g., "Sept 31".
106239         Include <stdlib.h>, "setenv.h", "xalloc.h".
106240         (ISDIGIT_LOCALE): Remove; unused.
106241         Note that the TZ and time functions used here are not reentrant.
106242         (mktime_ok, get_tz): New functions.
106243         (TZBUFSIZE): New constant.
106244         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
106245         This requires that we sometimes generate our own TZ="XXX..." setting.
106247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106249         * doc/getdate.texi: New file, from coreutils with modifications for
106250         the new TZ parsing.
106252 2004-10-27  Derek R. Price  <derek@ximbiot.com>
106254         * lib/mktime.c (not_equal_tm): Remove redundant check.
106256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106258         * modules/regex (lib_SOURCES): Add regex.c.
106259         Reported by James Youngman in
106260         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
106262 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106264         * lib/getdate.y: Use Bison 1.875 features, and some minor
106265         code cleanups.  This change does not affect semantics.
106266         Don't include <stdlib.h>; no longer needed.
106267         Don't include unlocked-io.h; only the "#if TEST" code uses
106268         stdio, and performance isn't crucial there.
106269         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
106270         Bison 1.875 features as described below.
106271         All uses of "PC." replaced by "pc->".
106272         (YYSTYPE): Add a forward declaration.
106273         (yylex, yyerror): Use full prototypes in forward decls.
106274         Use "%pure-parser" rather than obsolescent "%pure_parser".
106275         Use %parse-param and %lex-param instead of obsolescent
106276         YYPARSE_PARAM and YYLEX_PARAM.
106277         (meridian_table, month_and_day_table, time_units_table,
106278         relative_time_table, time_zone_table, military_table,
106279         lookup_zone, lookup_word, get_date):
106280         Use NULL instead of 0 where appropriate.
106281         (to_hour): Avoid abort (), to avoid a dependency on
106282         stdlib.h.
106283         (yyerror, yylex): Now accepts parser_control * arg.
106284         (main) [TEST]: Use '\0' rather than 0 for char.
106286 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106288         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
106290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106292         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
106293         It's now the caller's responsibility to handle the case where
106294         !HAVE_GETPAGESIZE && !defined getpagesize.
106296         * lib/mktime.c (leapyear): Arg is long int, not int.
106298 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
106300         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
106302 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
106304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
106305         missing.  Problem reported by James Youngman.
106307 2004-10-16  Simon Josefsson  <jas@extundo.com>
106309         * gnulib-tool: Fix comments.  Fix parse problem.
106310         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
106312 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
106314         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
106315         implementation of getopt_long.  Problem reported by Alexander Taler in:
106316         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
106318 2004-10-15  Bruno Haible  <bruno@clisp.org>
106320         * gnulib-tool: Untabify. Initialize supplied_libname.
106321         (func_usage): More homogenous output.
106322         (func_modules_transitive_closure, func_modules_to_filelist,
106323         func_emit_lib_Makefile_am): New functions.
106324         (func_import): New function, extracted from big case statement. Use
106325         func_get_license, func_modules_transitive_closure,
106326         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
106327         opt_lgpl. Don't use test -a, as it's not portable.
106328         (func_create_testdir): Use func_modules_transitive_closure,
106329         func_modules_to_filelist, func_emit_lib_Makefile_am.
106331 2004-10-15  Bruno Haible  <bruno@clisp.org>
106333         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
106335 2004-10-15  Bruno Haible  <bruno@clisp.org>
106337         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
106338         the portions belonging to each module.
106339         Suggested by Derek Robert Price <derek@ximbiot.com>.
106341 2004-10-12  Simon Josefsson  <jas@extundo.com>
106343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106344         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
106345         to real functions.
106347 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106349         * modules/vsnprintf: New file.
106351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106353         * m4/vsnprintf.m4: New file.
106355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106357         * lib/vsnprintf.h: New file.
106358         * lib/vsnprintf.c: New file.
106360 2004-10-11  Bruno Haible  <bruno@clisp.org>
106362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
106363         vsnprintf.
106365 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
106367         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
106369 2004-10-07  Bruno Haible  <bruno@clisp.org>
106371         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
106372         fits into the provided buffer.
106374 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
106376         * lib/diacrit.c, diacrit.h: Add GPL notice.
106378         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
106379         notice.
106380         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
106381         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
106382         This avoids a potential constant-folding bug.
106384 2004-10-05  Bruno Haible  <bruno@clisp.org>
106386         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
106387         for the declaration of strsep.
106389 2004-10-05  Bruno Haible  <bruno@clisp.org>
106391         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
106393 2004-10-04  Simon Josefsson  <jas@extundo.com>
106395         * modules/memmem: New file.
106396         * tests/test-memmem.c: New file.
106397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
106399 2004-10-04  Simon Josefsson  <jas@extundo.com>
106401         * m4/memmem.m4: New file.
106403 2004-10-04  Simon Josefsson  <jas@extundo.com>
106405         * lib/memmem.h: New file.
106406         * lib/memmem.c: New file, taken from glibc.
106408 2004-10-04  Simon Josefsson  <jas@extundo.com>
106410         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
106411         '#ifdef USE_UNLOCKED_IO'.
106413 2004-10-04  Simon Josefsson  <jas@extundo.com>
106415         * config/srclist.txt: Add memmem from glibc.
106417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106419         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
106421         * modules/argmatch, modules/argp, modules/closeout, modules/error,
106422         modules/exclude, modules/getdate, modules/getline,
106423         modules/getndelim2, modules/getpass, modules/getpass-gnu,
106424         modules/getusershell, modules/linebuffer, modules/md5,
106425         modules/mountlist, modules/posixtm, modules/readtokens,
106426         modules/readutmp, modules/regex, modules/sha1,
106427         modules/version-etc, modules/yesno:
106428         Remove dependency on unlocked-io.
106430 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106432         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
106434         * m4/unlocked-io.m4: Add copyright notice.
106435         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
106437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106439         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
106440         * lib/xmalloc.c (xmemdup): Likewise.
106441         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
106442         XFREE): Remove these long-obsolescent macros.
106443         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
106444         * lib/xstrdup.c: Remove.
106446         * lib/regex.c (re_comp): Cast gettext return value to char *,
106447         Problem reported by Martin Neitzel via Mark D. Baushke.
106449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106451         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
106452         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
106453         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
106454         regex.c, sha1.c, version-etc.c, yesno.c:
106455         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
106456         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
106457         the includer's responsibility.
106459         Sync from coreutils.
106461         * lib/modechange.c (mode_compile): Don't decrement a pointer that
106462         points to the start of a string, as the C Standard says the
106463         resulting behavior is undefined.
106465         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
106466         simple -> simple_backups, numbered_existing ->
106467         numbered_existing_backups, numbered -> numbered_backups
106468         to avoid shadowing problems.  All uses changed.
106469         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
106470         * lib/backupfile.c (check_extension, numbered_backup):
106471         Rename locals to avoid shadowing 'basename'.
106472         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
106473         once.
106475         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
106476         * lib/.cvsignore: Add getopt.h.
106478 2004-10-04  Bruno Haible  <bruno@clisp.org>
106480         * modules/README: New file.
106481         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
106482         not a module.
106484 2004-10-02  Jim Meyering  <jim@meyering.net>
106486         * lib/dirfd.h, getpagesize.h: Add copyright notice.
106488 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106490         * modules/strsep: New file.
106492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106494         * m4/strsep.m4: New file.
106496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106498         * lib/strsep.h: New file.
106499         * lib/strsep.c: New file.
106501 2004-10-01  Simon Josefsson  <jas@extundo.com>
106503         * lib/snprintf.c (snprintf): Handle size==0.
106505 2004-10-01  Simon Josefsson  <jas@extundo.com>
106506             Bruno Haible  <bruno@clisp.org>
106508         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
106509         (snprintf): Declare 'args'.
106511 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
106513         * lib/snprintf.c: Remove comments as to why each header is needed.
106515 2004-10-01  Bruno Haible  <bruno@clisp.org>
106517         * MODULES.html.sh: Add strsep.
106519 2004-09-30  Simon Josefsson  <jas@extundo.com>
106521         * modules/snprintf: New file.
106523 2004-09-30  Simon Josefsson  <jas@extundo.com>
106525         * m4/snprintf.m4: New file.
106527 2004-09-30  Simon Josefsson  <jas@extundo.com>
106529         * lib/snprintf.h, lib/snprintf.c: New files.
106531 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106533         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
106534         (hol_entry_help): Never translate an empty string.
106535         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
106536         * lib/argp.h (OPTION_NO_TRANS): New option.
106538 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106540         * modules/argp (Maintainer): Replace Simon Josefsson
106541         by Sergey Poznyakoff.
106543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106545         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
106546         changes merged back into glibc.
106548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106550         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
106552 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
106554         * lib/xvasprintf.c: Include xalloc.h.
106555         (xvasprintf): Use xalloc_die, not xmalloc_die.
106557 2004-09-29  Bruno Haible  <bruno@clisp.org>
106559         * modules/alloca-opt: New file, derived from modules/alloca.
106560         * modules/allocsa: Depend on alloca-opt instead of alloca.
106561         * modules/setenv: Likewise.
106562         * modules/vasnprintf: Likewise.
106563         * MODULES.html.sh: Add alloca-opt.
106565 2004-09-28  Simon Josefsson  <jas@extundo.com>
106567         * gnulib-tool: New parameter --lgpl, to asseert that modules are
106568         LGPL, and to replace license template from GPL to LGPL.
106570 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106572         * modules/dummy: Change license to LGPL.
106574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106576         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
106578 2004-09-24  Simon Josefsson  <jas@extundo.com>
106580         * modules/minmax (License): Change from GPL to LGPL.
106582 2004-09-23  Simon Josefsson  <jas@extundo.com>
106584         * gnulib-tool (--import): Typo.
106586 2004-09-23  Simon Josefsson  <jas@extundo.com>
106588         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
106590 2004-09-22  Bruno Haible  <bruno@clisp.org>
106592         * modules/*: Add 'License' field.
106593         * gnulib-tool: Accept --extract-license option.
106594         (func_get_license): New function.
106596 2004-09-21  Bruno Haible  <bruno@clisp.org>
106598         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
106599         Reported by Simon Josefsson.
106601 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106603         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
106604         gl_AC_TYPE_LONG_LONG.
106606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106608         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
106610 2004-09-18  Simon Josefsson  <jas@extundo.com>
106611         and  Paul Eggert  <eggert@cs.ucla.edu>
106613         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
106614         calls with autoreconf.  Define GL_LIB.
106616 2004-09-14  Karl Berry  <karl@gnu.org>
106618         * config/srclist.txt: unsync setenv.c, sigh.
106620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106622         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
106623         Problem reported by Bruno Haible in:
106624         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
106626 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106628         * config/srclist.txt: Comment out argp-pvh.c.
106630 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
106632         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
106633         in case some system header has #define'd it.  Problem reported by
106634         Soeren D. Schulze in
106635         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
106637 2004-09-09  Karl Berry  <karl@gnu.org>
106639         * regex.[ch]: delete from the root.  These were supposed to be
106640                 synced with emacs cvs, but this has not happened for about
106641                 a year, and anyway nothing else uses emacs regex.[ch].
106642                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
106643                 lib/regex[.ch] is untouched.
106645 2004-09-09  Bruno Haible  <bruno@clisp.org>
106647         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
106649 2004-09-09  Bruno Haible  <bruno@clisp.org>
106651         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
106652         modifications.
106653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
106655 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106657         * modules/xvasprintf: New file.
106658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
106660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106662         * lib/xvasprintf.h: New file.
106663         * lib/xvasprintf.c: New file.
106664         * lib/xasprintf.c: New file.
106666 2004-09-08  Bruno Haible  <bruno@clisp.org>
106668         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
106670 2004-09-08  Bruno Haible  <bruno@clisp.org>
106672         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
106673         length is > INT_MAX.
106674         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
106675         more.
106677 2004-09-08  Bruno Haible  <bruno@clisp.org>
106679         * lib/stdint_.h: New file, taken from GNU clisp.
106681 2004-09-08  Bruno Haible  <bruno@clisp.org>
106682             Oskar Liljeblad  <oskar@osk.mine.nu>
106684         * modules/stdint: New file.
106685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
106687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106689         Import from coreutils.
106690         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
106691         strings on unbounded length.  alloca's performance benefits aren't
106692         that important here.
106693         (V_STRDUP): Remove.
106694         (parse_with_separator): New function, with most of the internals
106695         of the old parse_user_spec.  Allow user to omit both user and group,
106696         for compatibility with FreeBSD.
106697         Clone only the user name, not the entire spec.
106698         Do not set *uid, *gid unless entirely successful.
106699         Avoid memory leak in some failing cases.
106700         Fix regression for USER.GROUP reported by Dmitry V. Levin in
106701         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
106702         (parse_user_spec): Rewrite to use parse_with_separator.
106704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106706         * modules/userspec: Don't depend on alloca.
106708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106710         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
106712 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106714         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
106715         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
106716         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
106718 2004-08-16  Simon Josefsson  <jas@extundo.com>
106720         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
106721         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
106722         Add --dry-run for --import.
106723         Let user provided command line parameters override configure.ac
106724         settings.
106726 2004-08-12  Simon Josefsson  <jas@extundo.com>
106728         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
106729         as discussed with Paul Eggert in threads rooted at
106730         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
106731         and
106732         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
106733         Before, the test was empty, and relied on ELIDE_CODE in source
106734         code.)
106735         (gl_PREREQ_GETOPT): New macro.
106736         (gl_GETOPT): Use them.
106738 2004-08-12  Simon Josefsson  <jas@extundo.com>
106740         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
106741         * lib/getopt_.h: Renamed from getopt.h.
106743 2004-08-12  Simon Josefsson  <jas@extundo.com>
106745         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
106746         Change default library name from libfoo to libgnu.
106747         Now, if you have a configure.ac that says:
106748                 gl_SOURCE_BASE(gl)
106749                 gl_M4_BASE(gl/m4)
106750                 gl_MODULES(error getopt etcetera)
106751                 gl_INIT
106752         you can import all you need by running:
106753                 ../gnulib/gnulib-tool --import
106755         * modules/getopt (Files): Rename getopt.h to getopt_.h.
106756         (Makefile.am): Rewrite, use logic from argz.
106757         (Include): Use <getopt.h> instead of "getopt.h".
106759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106761         * modules/argp (Files): Add m4/unlocked-io.m4.
106762         (Depends-on): Add extensions.
106764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106766         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
106767         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
106768         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
106769         Check for program_invocation_name, program_invocation_short_name,
106770         flockfile, funlockfile, features.h, _getopt_long_only_r.
106772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106774         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
106775         its complicated substitute.
106776         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
106777         and program_invocation_name.
106778         (__argp_basename) [!_LIBC]: Remove; the only use was
106779         replaced by its body.
106780         (__argp_short_program_name): Change condition from
106781         !defined __argp_short_program_name to
106782         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
106783         to match argp-namefrob.h.
106784         (__argp_failure): Don't assume strerror_r returns char *.
106785         * lib/argp-parse.c (N_): Define unconditionally.
106786         (argp_default_options): Fill out initializers with 0 to avoid
106787         gcc warnings.
106789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106791         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
106792         getopt1.c.
106794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106796         Merge from coreutils.
106798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
106800         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
106801         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
106803 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106805         Merge from coreutils.
106807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
106808         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
106809         for Reliant Unix 5.43.
106811         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
106812         (union fooround): Use uintmax_t, not long int.
106813         The rest is a merge from libc:
106814         [defined _LIBC]: Include <shlib-compat.h>.
106815         (_obstack) [defined _LIBC]: Remove after 2.3.4.
106817         * lib/settime.c (settime): Recode to avoid warning with
106818         Sun Forte C 6U2.
106820         * lib/strverscmp.c: Convert to UTF-8.
106822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106824         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
106825         m4/uintmax_t.m4.
106827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106829         * modules/xalloc-die: New file.
106830         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
106832         * modules/md5 (Files): Add m4/uint32_t.m4.
106833         * modules/sha1: Renamed from modules/sha.
106834         (Files):
106835         Rename lib/sha.h to lib/sha1.h.
106836         Rename lib/sha.c to lib/sha1.c.
106837         Rename m4/sha.m4 to m4/sha1.m4.
106838         (lib_SOURCES): Likewise.
106839         (configure.ac): Rename gl_SHA to gl_SHA1.
106840         (Include): sha.h -> sha1.h.
106842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106844         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
106845         * m4/sha1.m4: Renamed from sha.m4.
106846         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
106848 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106850         * lib/obstack.h (obstack_empty_p):
106851         Don't assume that chunk->contents is suitably aligned.
106852         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106853         Likewise. Problem reported by Benno in
106854         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106856         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106857         readable.  This could be improved further but it'd take some work.
106859 2004-08-08  Simon Josefsson  <jas@extundo.com>
106861         * modules/xgethostname (Depends-on): Remove exit and error (not
106862         used).
106864         * modules/getpass-gnu: Add getpass.h.
106865         (Depends-on): Add stdbool.
106866         * modules/getpass: Add getpass.h.
106868 2004-08-08  Simon Josefsson  <jas@extundo.com>
106870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106871         Check getpass declaration.
106873 2004-08-08  Simon Josefsson  <jas@extundo.com>
106875         * lib/xgethostname.c: Don't include error.h (not used).
106877         * lib/getpass.h: Add.
106878         * lib/getpass.c: Include getpass.h first.
106880 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106882         * lib/xalloc-die.c: New file.
106883         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106884         All uses removed.
106885         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106886         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106887         xalloc-die.c.
106888         (_, N_, xalloc_die): Move to xalloc-die.c.
106889         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106890         so that we needn't mess with xalloc_msg_memory_exhausted.
106892         * lib/sha1.h: Renamed from sha.h.
106893         (SHA1_H): Renamed from _SHA_H.
106894         (sha1_ctx): Renamed from sha_ctx.
106895         (sha1_init_ctx): Renamed from sha_init_ctx.
106896         (sha1_process_block): Renamed from sha_process_block.
106897         (sha1_process_bytes): Renamed from sha_process_bytes.
106898         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106899         (sha1_read_ctx): Renamed from sha_read_ctx.
106900         (sha1_stream): Renamed from sha_stream.
106901         (sha1_buffer): Renamed from sha_buffer.
106902         * lib/sha1.c: Likewise; renamed from sha.c.
106903         Do not include <sys/types.h>.
106904         Include <stddef.h> rather than <stdlib.h>.
106906 2004-08-08  Bruno Haible  <bruno@clisp.org>
106908         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106909         FILESYSTEM_PREFIX_LEN.
106910         * lib/progreloc.c: Likewise.
106911         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106913 2004-08-06  Simon Josefsson  <jas@extundo.com>
106915         * modules/progname (Depends-on): Don't depend on stdbool.
106917 2004-08-06  Simon Josefsson  <jas@extundo.com>
106919         * modules/getsubopt: New file.
106920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106921         getsubopt.
106923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106925         More merge from coreutils.
106927         * m4/utimens.m4, m4/utimecmp.m4: New files.
106928         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106929         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106930         prereq.m4, sha.m4: Import changes from coreutils.
106932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106934         More merge from coreutils.
106935         * modules/raise, modules/readtokens0, modules/utimens:
106936         * modules/utimecmp, module/xnanosleep: New files.
106937         * modules/strftime: Add lib/strftime.h.
106938         Change include from <time.h> to "strftime.h".
106939         * modules/yesno: Add lib/yesno.h.
106940         * modules/backupfile: Remove lib/addext.c.
106941         * modules/euidaccess: Add stat-macros.h.
106942         * modules/canonicalize, modules/euidaccess,
106943         modules/filemode, modules/lchown, modules/makepath,
106944         modules/rmdir, modules/stat: Likewise.
106946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106948         Merge from tar.
106949         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106950         SIZE_MAX is a valid preprocessor constant.
106951         (__argp_basename): Change from "#ifndef _LIBC"
106952         to "#ifndef __argp_short_program_name", so that
106953         we don't compile these functions for tar.
106955         More merges from coreutils.
106956         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106957         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106958         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106959         * lib/addext.c: Remove; no longer needed.
106960         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106961         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106962         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106963         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106964         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106965         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106966         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106967         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106968         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106969         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106970         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106971         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106972         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106973         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106974         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106975         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106976         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106977         Import changes from coreutils.
106979 2004-08-05  Simon Josefsson  <jas@extundo.com>
106981         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106983 2004-08-05  Simon Josefsson  <jas@extundo.com>
106985         * m4/getsubopt.m4: New file.
106987 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106989         Merge from coreutils.
106991         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106992         * m4/getcwd-path-max.m4: New files.
106994         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106995         FILESYSTEM_PREFIX_LEN ->
106996         FILE_SYSTEM_PREFIX_LEN.
106997         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106998         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106999         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
107000         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
107002         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
107003         prerequisite modules now handle the DOS stuff.
107004         Don't check for unistd.h.
107006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
107008         Merge from coreutils.
107010         * lib/.gdb-history: Remove; this doesn't belong here.
107012         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
107013         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
107014         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
107015         * lib/getcwd.c: New files.
107017         * lib/dirname.h: Include <stdbool.h>.
107018         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
107019         for consistency with POSIX terminology.  All uses changed.
107020         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
107021         (strip_trailing_slashes): Use bool for booleans.
107022         * lib/stripslash.c (strip_trailing_slashes): Likewise.
107024         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
107025         sometimes returns a positive errno value even when it succeeds.
107026         (print_errno_message) [!LIBC]: Fall back on strerror if
107027         __strerror_r fails.
107029         * lib/path-concat.c (mempcpy): Don't define if a system header defines
107030         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
107031         (longest_relative_suffix): New function.
107032         (path_concat): Use it.  Assume first argument is not NULL.
107033         Port to DOS.  Omit redundant separators.
107034         Report an error instead of returning NULL.
107035         Use mempcpy instead of memcpy.
107036         (xpath_concat): Remove: not declared or used.
107038         * lib/same.h: Include <stdbool.h>
107039         (same_name): Return bool, not int.
107040         * lib/same.c (same_name): Likewise.
107041         (errno): Don't declare; we assume C89 or better now.
107043         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
107044         if not already defined.
107046         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
107047         * lib/dup-safer.c (errno): Likewise.
107049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
107051         Merge from coreutils.
107052         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
107053         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
107054         * modules/path-concat: Don't depend on strdup.
107056 2004-08-03  Simon Josefsson  <jas@extundo.com>
107058         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
107059         * lib/progname.h: Don't include stdbool.h.
107061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107063         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
107064         * MODULES.html.sh (func_all_modules): Remove fatal.
107066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107068         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
107070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107072         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
107073         working.
107075 2004-08-02  Simon Josefsson  <jas@extundo.com>
107077         * lib/getsubopt.h: New file, with comments from Bruno Haible.
107078         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
107079         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
107081 2004-08-01  Simon Josefsson  <jas@extundo.com>
107083         * lib/xgetdomainname.c: Include stdlib.h, for free().
107085 2004-07-19  Bruno Haible  <bruno@clisp.org>
107087         * MODULES.html.sh (func_all_modules): Add dummy.
107089 2004-07-16  Simon Josefsson  <jas@extundo.com>
107091         * modules/dummy: New file.
107093 2004-07-16  Simon Josefsson  <jas@extundo.com>
107095         * lib/dummy.c: New file.
107097 2004-07-16  Bruno Haible  <bruno@clisp.org>
107099         * lib/backupfile.h: Add extern "C" for C++.
107100         * lib/closeout.h: Likewise.
107101         * lib/copy-file.h: Likewise.
107102         * lib/findprog.h: Likewise.
107103         * lib/full-write.h: Likewise.
107104         * lib/pathname.h: Likewise.
107105         * lib/progname.h: Likewise.
107106         * lib/stpcpy.h: Likewise.
107107         * lib/stpncpy.h: Likewise.
107108         * lib/strcase.h: Likewise.
107109         * lib/strstr.h: Likewise.
107110         * lib/xalloc.h: Likewise.
107112         * lib/mbswidth.h: Add extern "C" for C++.
107113         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
107115 2004-07-13  Robert Millan  <robertmh@gnu.org>
107117         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
107119 2004-07-09  Simon Josefsson  <jas@extundo.com>
107121         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
107122         failed without this.)
107124 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107126         * modules/chown (Files): Add lib/fchown-stub.c, since
107127         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
107129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107131         * lib/fchown-stub.c: New file.
107133 2004-06-24  Jim Meyering  <jim@meyering.net>
107135         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
107137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107139         * modules/argz: Omit "#include".
107141         * MODULES.html.sh (func_all_modules): Add calloc, to match
107142         2004-06-01 addition of calloc module.
107144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107146         * m4/argz.m4: New file, which is autoupdated from libtool.
107148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107150         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
107151         libtool.
107153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107155         * config/srclist-update: Don't insist on "USA." before the
107156         close-comment, as libtool omits the period and puts the */ on a
107157         separate line.
107158         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
107159         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
107161 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
107163         * modules/argz: New file.
107164         * MODULES.html.sh (func_all_modules): Add argz.
107166 2004-06-12  Jim Meyering  <jim@meyering.net>
107167         and  Paul Eggert  <eggert@cs.ucla.edu>
107169         * modules/hash (Files): Add lib/xalloc.h.
107170         * modules/pipe (Depends-on): Add wait-process.
107171         * modules/stat (Depends-on): Add xalloc.
107172         * modules/userspec (Files): Add lib/userspec.h.
107173         * modules/xstrto
107175         Upgrade from gettext-0.13.
107176         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
107177         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
107178         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
107180 2004-06-10  Jim Meyering  <jim@meyering.net>
107182         * lib/calloc.c: New file.
107184 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
107186         * lib/getdate.y (yylex): Allow space between sign and number.
107187         Problem reported by Dan Jacobson.
107189 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107191         Merge from coreutils CVS.
107193         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
107194         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
107195         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
107196         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
107197         xstrtol.m4: Fix copyright date and/or serial number.
107199         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
107200         See if we need an fchown replacement.
107201         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
107202         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
107203         and use the replacement function if we detect either defect.
107205         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
107206         gl_UTIMECMP.
107208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107209         and  Jim Meyering  <jim@meyering.net>
107211         Merge from coreutils CVS.
107213         * lib/stat-macros.h: New file, with contents from file-type.h
107214         and coreutils' system.h.
107215         * lib/file-type.c: Include "stat-macros.h".
107216         * lib/file-type.h (file_type): Move all macro definitions to new file,
107217         stat-macros.h.
107219         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
107220         Wrap old code with this conditional.
107221         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
107222         function that does not dereference symlinks.
107223         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
107225         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
107226         dependency problems.
107227         (xreadlink): Accept new arg SIZE, for efficiency.
107228         All decls and uses changed.
107229         * lib/xreadlink.h: Include <stddef.h>, for size_t.
107231         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
107232         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
107234         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
107235         sysexits.h.
107237 2004-06-01  Jim Meyering  <jim@meyering.net>
107239         * m4/calloc.m4: New file.
107241 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
107243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
107244         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
107245         Also, fix a typo in a diagnostic.
107247 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
107250         or AC_FUNC_REALLOC.
107252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107254         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
107255         macros to be defined.
107256         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
107257         the allocator returns NULL because the requested size is zero.
107259 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
107261         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
107262         var.  Add comment explaining why libc still defines it.  This
107263         merges the following patch from glibc:
107264         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
107266 2004-05-20  Andreas Schwab  <schwab@suse.de>
107268         * m4/free.m4: Replace free if it not known to work, not the other
107269         way round.
107271 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
107273         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
107274         present in glibc since revision 1.1 of this file.
107275         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
107276         obstack_alignment_mask, obstack_alloc, obstack_base,
107277         obstack_blank, obstack_blank_fast, obstack_chunk_size,
107278         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
107279         obstack_grow0, obstack_init, obstack_int_grow,
107280         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
107281         obstack_next_free, obstack_object_size, obstack_ptr_grow,
107282         obstack_ptr_grow_fast, obstack_room): Remove declarations of
107283         nonexistent functions.
107285 2004-05-18  Karl Berry  <karl@gnu.org>
107287         * config/srclist.txt: break link for vasnprintf.c.
107289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107291         Port obstack to the AS/400, where pointers are 16 bytes wide and
107292         you cannot cast an integer to a valid pointer.  This patch is
107293         currently waiting to be integrated into glibc; see
107294         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
107296         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
107297         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
107298         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
107299         (struct obstack): temp member is now a union of a pointer and
107300         an integer, instead of an integer.  All integer uses changed.
107301         This does not affect the physical layout of struct obstack,
107302         except on hosts (like the AS/400) where the size or alignment of
107303         void * is greater than that of ptrdiff_t.
107304         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
107305         __STDC__)]: Store temporary in pointer member of union, not
107306         integer member.
107307         * lib/obstack.c: Include <stddef.h>, for offsetof.
107308         (struct fooalign): Remove; it doesn't need a name.
107309         (union fooround): Change double to long double, and add void *.
107310         (DEFAULT_ALIGNMENT): Use offsetof to compute.
107311         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
107312         not a macro.  Hence the values are always int; so remove all
107313         casts-to-int in uses.
107315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107317         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
107318         we can get this patch merged into glibc.
107320 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107321             Paul Eggert  <eggert@cs.ucla.edu>
107323         * m4/argp: Depend on alloca.
107325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107326             Paul Eggert  <eggert@cs.ucla.edu>
107328         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
107329         freecoding.
107331 2004-05-17  Bruno Haible  <bruno@clisp.org>
107333         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
107334         precision that consists of a '.' followed by an empty digit string.
107335         Patch by Tor Lillqvist <tml@iki.fi>.
107337 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
107340         for backward compatibility with older code.  We need our own
107341         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
107342         it under some other name, and our alloca.h will define it.
107344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107345             Derek Price  <derek@ximbiot.com>
107347         * lib/alloca.c: Include <alloca.h>, to get our interface.
107348         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
107349         include <alloca.h> first.  Use C89 prototype for alloca; this
107350         requires including <stddef.h> for size_t.  Use extern "C" if C++.
107351         Use #elif for simplicity, since we can assume C89 now.
107352         Don't try to source the system alloca.h since it will not be found
107353         and to prevent recursively including its replacement.
107354         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
107355         * lib/regex.c: Likewise.
107357 2004-05-16  Derek Price  <derek@ximbiot.com>
107358             Paul Eggert  <eggert@cs.ucla.edu>
107360         getline cleanup.  This changes the getndelim2 API: both order of
107361         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
107362         no delimiter).
107364         * lib/getline.c: Don't include stddef.h or stdio.h, since our
107365         interface does that.
107366         (getline): Always use getdelim, so that we don't have two
107367         copies of this code.
107368         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
107369         if available.
107370         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
107371         (GETNDELIM2_MAXIMUM): New macro.
107372         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
107373         instead of the old practice of delim2==0.  All callers changed.
107374         Return -1 on overflow, instead of returning junk.
107375         Do not set *linesize unless allocation succeeds.
107376         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
107377         that we include sys/types.h.
107378         * lib/getnline.h: Likewise.
107379         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
107380         (getndelim2): Reorder arguments.
107381         * lib/getnline.c (getnline, getndelim):
107382         Don't discard the NMAX argument.
107383         (getnline): Invoke getndelim, to avoid code duplication.
107384         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
107385         of (size_t) -1 by callers of the getnline family.
107387 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107389         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
107390         Check for gettimeofday.
107391         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
107392         Check for settimeofday, stime.
107394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107396         * lib/nanosleep.c (suspended): Change its type from int to
107397         sig_atomic_t volatile.
107398         (first_call): Make it private to rpl_nanosleep, and have it
107399         be zero initially as that's a bit faster.
107400         (my_usleep): Round up fractional times instead of truncating them,
107401         as this is the usual meaning for 'sleep'.
107403         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
107404         doesn't work.
107405         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
107406         (ENOSYS): Define if not defined.
107407         (settime): Fall back on stime if it exists and settimeofday fails.
107408         But don't bother with fallbacks if a method fails with errno == EPERM.
107410 2004-05-11  Jim Meyering  <jim@meyering.net>
107412         Prior to this change, the save_cwd caller required read access to the
107413         current directory on most systems (ones with the fchdir function).
107415         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
107416         fails, try write-only, and finally, resort to using xgetcwd.
107418 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
107420         * lib/obstack.c, obstack.h: Import changes from libc.
107422 2004-04-28  Bruno Haible  <bruno@clisp.org>
107424         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
107425         also implicitly appends .exe to executables.
107426         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
107427         accepts Windows pathnames.
107428         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107430         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107432         Reported by Derek Robert Price <derek@ximbiot.com>.
107434 2004-04-21  Karl Berry  <karl@gnu.org>
107436         * config/srclist.txt (localcharset.c): break sync.
107438 2004-04-20  Paul Eggert  <eggert@twinsun.com>
107440         * m4/host-os.m4: Add a copyright notice.
107442 2004-04-20  Jim Meyering  <jim@meyering.net>
107444         Change UTILS_ to gl_ in AC_DEFINE'd names.
107445         Change utils_- and jm_-prefixed variables, too.
107446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
107447         UTILS_FUNC_MKDIR_TRAILING_SLASH.
107448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
107450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
107451         Don't emit trailing blanks.
107452         Also rename jm_-prefixed variables to have gl_ prefix.
107454         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
107455         Also rename jm_-prefixed variables to have gl_ prefix.
107457         * m4/jm-macros.m4: Reflect the renamings.
107458         * m4/prereq.m4: Likewise.
107460 2004-04-20  Jim Meyering  <jim@meyering.net>
107462         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
107463         memory.
107465 2004-04-20  Jim Meyering  <jim@meyering.net>
107466             Bruno Haible  <bruno@clisp.org>
107468         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
107469         memory when realloc fails.
107471 2004-04-19  Jim Meyering  <jim@meyering.net>
107473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
107474         now that readutmp.c may call `free (0)'.
107476 2004-04-19  Bruno Haible  <bruno@clisp.org>
107478         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
107479         * m4/inttypes_h.m4: Likewise.
107480         * m4/stdint_h.m4: Likewise.
107481         * m4/intmax_t.m4: Likewise.
107482         * m4/uintmax_t.m4: Likewise.
107484 2004-04-18  Jim Meyering  <jim@meyering.net>
107486         * m4/prereq.m4: Don't forbid jm_ prefix.
107488         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
107489         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
107490         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
107491         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
107492         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
107493         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
107494         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
107495         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
107496         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
107497         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
107498         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
107499         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
107500         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
107501         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
107502         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
107503         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
107504         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
107505         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
107506         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
107508 2004-04-18  Jim Meyering  <jim@meyering.net>
107510         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
107511         failure, don't leak memory and do call END_UTMP_ENT.
107513 2004-04-16  Jim Meyering  <jim@meyering.net>
107515         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
107516         coreutils' stat program.
107517         (gl_PREREQ): Don't require jm_PREREQ_STAT.
107519 2004-04-11  Paul Eggert  <eggert@twinsun.com>
107521         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
107522         C89.
107523         (CHAR_BIT): Remove, since we assume C89.
107524         Include <stdint.h> if available, as per current Autoconf CVS advice.
107526 2004-03-31  Jim Meyering  <jim@meyering.net>
107528         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
107529         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
107530         * m4/xalloc.m4: Likewise.
107532 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107534         Merge from coreutils.
107536         * m4/inttostr.m4: New file.
107537         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
107538         Require AM_STDBOOL_H and gl_TIMESPEC instead.
107539         Require gl_CLOCK_TIME.
107540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
107542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107544         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
107545         not bool, to be more consistent with Unix conventions.
107546         Suggested by Bruno Haible.
107548         Merge from coreutils.
107550         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
107551         * lib/umaxtostr.c: New files.
107553         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
107554         the usual <time.h> dance.
107555         (get_date): Change signature to support fractional time stamps.
107556         All callers changed.
107557         * lib/getdate.y: Include "getdate.h" first, as we can now
107558         assume C89 and don't need to worry about 'const'.
107559         Similarly, include "unlocked-io.h" near start, not in middle.
107560         Include <limits.h>.
107561         (textint.value): Use long int rather than int.
107562         (textint.digits): Use size_t rather than int.
107563         (BILLION, LOG10_BILLION): New constants.
107564         (parser_control): New member rel_ns.  Members day_ordinal,
107565         time_zone, month, day, hour, minutes, rel_year, rel_month,
107566         rel_day, rel_hour, rel_minutes, rel_seconds
107567         are now long int, not int.  Member seconds is now struct timespec,
107568         not int.  New member timespec_seen.  Members dates_seen, days_seen,
107569         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
107570         not int.
107571         (%union.intval): Now long int, not int.
107572         New member timespec.
107573         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
107574         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
107575         (spec): Now is a timespec or an item list.
107576         (timespec, items): New nonterminals.
107577         (time, rel, relunit, number, get_date):
107578         Add support for fractional seconds.
107579         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
107580         (gmtime, localtime, mktime): Remove decls; not needed with C89.
107581         (to_hour): First arg is now long int, not int.
107582         (to_year): Returns long int, not int.
107583         Don't treat year -70 like 70.
107584         (tm_diff): Returns long int, not int.
107585         (lookup_word): Use bool instead of int when appropriate.
107586         (yylex): Use size_t for count, not int.
107587         Detect overflow when parsing large integer constants.
107588         Add support for fractions.
107589         (get_date): Make pointers 'const' if possible.
107590         Use more-portable code to detect integer overflow.
107591         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
107592         Don't use ctime; it's not reliable if the year has >4 digits.
107594         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
107595         This is for compatibility with BSD.
107597         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
107598         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
107599         From coreutils' system.h.
107601         * lib/userspec.c: Don't include "posixver.h".
107602         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
107603         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
107604         compatible extension.  Simplify code by removing a boolean int
107605         that was always nonzero if a string was nonnull.
107607 2004-03-30  Jim Meyering  <jim@meyering.net>
107609         Merge from coreutils.
107611         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
107612         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
107613         on some systems one must include <grp.h> before it.
107614         Reported by Christian Krackowizer.
107616 2004-03-30  Jim Meyering  <jim@meyering.net>
107618         Merge from coreutils.
107620         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
107622         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
107623         an empty input stream.
107625         * lib/readtokens.c: Include <stdbool.h>.
107626         (readtoken): Use `size_t' rather than int/long.
107627         All callers adjusted.
107628         Use `bool' rather than `int' where appropriate.
107629         Use memset rather than an explicit loop.
107630         Use x2nrealloc rather than xrealloc.
107631         Allow the use of `\0' as a delimiter.
107632         (readtokens): Likewise.
107633         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
107635 2004-03-30  Jim Meyering  <jim@meyering.net>
107637         * m4/realloc.m4: Remove file, since now it does no more than
107638         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
107639         the `configure.ac' section of module/realloc.
107640         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
107642 2004-03-30  Bruno Haible  <bruno@clisp.org>
107644         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
107645         nonnull.
107647 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107649         Merge changes to getloadavg.c from coreutils and Emacs.
107651         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
107652         Define to an expression, not to the empty string.
107653         Include cloexec.h and xalloc.h.
107654         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
107655         Use set_cloexec_flag rather than rolling our own.
107656         * lib/cloexec.c, lib/cloexec.h: New files.
107658 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107660         * m4/cloexec.m4: New file.
107662 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107664         * lib/getopt.h: Sync with libc CVS.
107666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107667             Bruno Haible  <bruno@clisp.org>
107669         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
107670         mbswidth.
107672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107673             Bruno Haible  <bruno@clisp.org>
107675         * lib/mbswidth.h: Include <wchar.h> only if
107676         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
107677         <wchar.h>.
107678         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
107680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107682         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
107683         Sync with libc CVS.
107684         * lib/getopt_int.h: New file, also synced from libc.
107686 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107688         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
107689         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
107690         Bring back getopt.c, getopt.h, getopt1.c.
107692 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
107695         All uses changed.  Check for sa_sigaction member; this fixes
107696         a bug first reported by Jason Andrade in
107697         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107701         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
107702         '#if' expressions.  Unlike the code it replaces, it does not
107703         depend on (defined _SC_PAGESIZE).  However, it does depend on
107704         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
107705         first reported by Jason Andrade in
107706         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107708 2004-02-25  Simon Josefsson  <jas@extundo.com>
107710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
107712 2004-02-25  Simon Josefsson  <jas@extundo.com>
107714         * lib/strdup.h: New file.
107715         * lib/strdup.c: Include it.
107716         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
107717         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
107719 2004-02-23  Karl Berry  <karl@gnu.org>
107721         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
107722         (from fencepost.gnu.org:/gd/gnuorg).
107724 2004-02-23  Karl Berry  <karl@gnu.org>
107726         * config/srclistvars.sh (GNUORG) [karl]: redefine.
107727         * config/srclist.txt: add maintain/standards documents.
107729 2004-02-18  Bruno Haible  <bruno@clisp.org>
107731         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
107732         Reported by Derek Robert Price <derek@ximbiot.com>.
107734 2004-02-16  Karl Berry  <karl@gnu.org>
107736         * config/mkinstalldirs, install-sh: update from automake.
107738 2004-02-06  Karl Berry  <karl@gnu.org>
107740         * m4/po.m4: update from gettext 0.14.1.
107742 2004-02-06  Karl Berry  <karl@gnu.org>
107744         * lib/config.charset: update from gettext 0.14.1.
107746 2004-02-05  Paul Eggert  <eggert@twinsun.com>
107748         Add comments and code, prompted by suggestions from Bruno Haible
107749         for sh-quote.
107750         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
107751         describing the enum quoting_style values.
107752         * lib/quotearg.c (quotearg_alloc): New function.
107753         (quotearg_buffer_restyled): Treat lone { and } as special.
107754         Treat = as special.  Work around bug with older shells
107755         that "see" a '\' that is really the 2nd byte of a multibyte char.
107756         Quote empty string with shell_quoting_style.
107758 2004-02-03  Bruno Haible  <bruno@clisp.org>
107760         * m4/pipe.m4: New file, from GNU gettext.
107762 2004-02-03  Bruno Haible  <bruno@clisp.org>
107764         * lib/pipe.h: New file, from GNU gettext.
107765         * lib/pipe.c: New file, from GNU gettext.
107767 2004-01-27  Bruno Haible  <bruno@clisp.org>
107769         * m4/execute.m4: New file, from GNU gettext.
107771 2004-01-27  Bruno Haible  <bruno@clisp.org>
107773         * lib/execute.h: New file, from GNU gettext.
107774         * lib/execute.c: New file, from GNU gettext.
107775         * lib/w32spawn.h: New file, from GNU gettext.
107777 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107779         Merge from diffutils.
107781         * lib/file-type.c (file_type): Add typed memory objects.
107782         * lib/file-type.h (S_TYPEISTMO): New macro.
107784         * lib/c-stack.h (c_stack_action): Remove argv argument.
107785         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
107786         (die): Don't calculate message unless segv_action returns.
107787         (get_stack_location, min_address_from_argv, max_address_from_argv,
107788         volatile stack_base, volatile_stack_size): Remove.
107789         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
107790         that every segmentation violation is a stack overflow.  (Ouch!)
107791         See Debian bug 136249 (still outstanding) for more info about why
107792         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
107794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107796         Exit-status fix from coreutils.
107798         Use exit_failure consistently in place of EXIT_FAILURE,
107799         so that program exit statuses are consistent on failure.
107801         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
107802         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
107803         * lib/argmatch.h: Comment fix to match the above.
107804         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
107805         Now a macro referring to exit_failure, instead of a separate
107806         variable.  Include "exitfail.h" to get it.
107807         * lib/xstrtol.h: Include "exitfail.h".
107808         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
107810         * lib/long-options.c (parse_long_options): Use prototype
107811         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
107812         for clarity.
107814 2004-01-21  Jim Meyering  <jim@meyering.net>
107816         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
107817         so as not to conflict with a different-sized __mktime_internal
107818         function in GNU libc.
107819         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
107820         Problem building statically-linked `ls' reported by Michael Brunnbauer.
107822 2004-01-20  Karl Berry  <karl@gnu.org>
107824         * config/config.guess: update from config.
107826         * config/srclistvars.sh: GNUWWWLICENSES for karl.
107828 2004-01-20  Bruno Haible  <bruno@clisp.org>
107830         Safer stack allocation.
107831         * lib/setenv.c: Include allocsa.h.
107832         (alloca): Remove fallback definition.
107833         (freea): Remove macro.
107834         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
107835         instead of freea.
107837 2004-01-20  Bruno Haible  <bruno@clisp.org>
107839         * m4/eealloc.m4: New file, from GNU gettext.
107841 2004-01-20  Bruno Haible  <bruno@clisp.org>
107843         * m4/allocsa.m4: New file, from GNU gettext.
107845 2004-01-20  Bruno Haible  <bruno@clisp.org>
107847         * lib/xallocsa.h: New file, from GNU gettext.
107848         * lib/xallocsa.c: New file, from GNU gettext.
107850 2004-01-20  Bruno Haible  <bruno@clisp.org>
107852         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107854 2004-01-20  Bruno Haible  <bruno@clisp.org>
107856         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107857         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107858         specially.
107860 2004-01-20  Bruno Haible  <bruno@clisp.org>
107862         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107863         patch.
107865 2004-01-20  Bruno Haible  <bruno@clisp.org>
107867         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107869 2004-01-20  Bruno Haible  <bruno@clisp.org>
107871         * lib/eealloc.h: New file.
107873 2004-01-20  Bruno Haible  <bruno@clisp.org>
107875         * lib/binary-io.h: Avoid warnings on Cygwin.
107877 2004-01-20  Bruno Haible  <bruno@clisp.org>
107879         * lib/allocsa.h: New file, from GNU gettext.
107880         * lib/allocsa.c: New file, from GNU gettext.
107882 2004-01-18  Karl Berry  <karl@gnu.org>
107884         * doc/gpl.texi, doc/lgpl.texi: new files.
107886 2004-01-18  Karl Berry  <karl@gnu.org>
107888         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107889         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107893         Merge from coreutils.
107895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107896         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107897         (gl_DEFAULT_POSIX2_VERSION): Move
107898         the documentation from 'configure' into 'config.hin',
107899         so that 'configure --help' isn't burdened by it and
107900         we don't have to worry about its formatting there.
107901         Reword the documentation so that it's more succinct
107902         and can be run together into a single paragraph.
107903         * m4/same.m4 (gl_SAME): Check for pathconf.
107905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107907         Merge from coreutils.
107909         * lib/posixver.c: Include posixver.h.
107911         * lib/same.c: Include <stdbool.h>, <limits.h>.
107912         (_POSIX_NAME_MAX): Define if not defined.
107913         (MIN): New macro.
107914         (same_name): If file names are silently truncated, report
107915         that the file names are the same if they are the same after
107916         the silent truncation.
107918         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107919         conversion function.
107920         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107921         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107922         longer needed.
107924 2004-01-15  Jim Meyering  <jim@meyering.net>
107926         Merge from coreutils.
107928         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107929         if no library is required.
107930         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107931         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107932         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107933         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107934         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107935         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107936         value, $ac_cv_search_crypt, if it's "none required".
107937         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107938         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107939         not gl_FUNC_GETLOADAVG.
107940         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107941         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107943 2004-01-15  Jim Meyering  <jim@meyering.net>
107945         Merge from coreutils.
107947         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107948         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107949         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107951         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107952         optional configure-time default.
107954         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107956         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107958 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107960         Merge from coreutils.
107962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107963         value, $ac_cv_search_nanosleep, if it's "none required".
107965 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107967         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107968         with like-named macro in fnmatch.c.
107969         (EXT): Use an internal constant instead.
107971         Merge fnmatch patches from glibc.
107972         * lib/fnmatch.c (mbsinit): Remove define.
107973         Add libc_hidden_ver (__fnmatch, fnmatch).
107974         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107975         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107977 2004-01-14  Karl Berry  <karl@gnu.org>
107979         * config/install-sh: update from automake.
107981 2004-01-13  Karl Berry  <karl@gnu.org>
107983         * config/install-sh: update from automake.
107985 2004-01-09  Karl Berry  <karl@gnu.org>
107987         * config/install-sh: update from automake.
107989 2004-01-05  Karl Berry  <karl@gnu.org>
107991         * config/config.{sub,guess}: update from config.
107993 2003-12-31  Karl Berry  <karl@gnu.org>
107995         * config/depcomp: update from automake.
107997 2003-12-14  Karl Berry  <karl@gnu.org>
107999         * lib/config.charset: update from gettext-runtime.
108001 2003-12-03  Paul Eggert  <eggert@twinsun.com>
108003         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
108004         Bug reported by Alfred M. Szmidt.
108006 2003-12-03  Bruno Haible  <bruno@clisp.org>
108008         * m4/gettext.m4: Upgrade from gettext-0.13.
108009         * m4/po.m4: Upgrade from gettext-0.13.
108010         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
108011         * m4/intmax.m4: New file, from gettext-0.13.
108012         * m4/printf-posix.m4: New file, from gettext-0.13.
108014 2003-11-29  Karl Berry  <karl@gnu.org>
108016         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
108018 2003-11-25  Paul Eggert  <eggert@twinsun.com>
108019             Bruno Haible  <bruno@clisp.org>
108021         * lib/printf-parse.h: Don't include sys/types.h.
108022         (ARG_NONE): New macro.
108023         (char_directive): Change type of *arg_index fields to size_t.
108024         * lib/printf-parse.c: Don't include sys/types.h.
108025         (SSIZE_MAX): Remove macro.
108026         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
108027         Remove unnecessary overflow check.
108028         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
108029         fields.
108031 2003-11-25  Bruno Haible  <bruno@clisp.org>
108033         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
108035 2003-11-25  Bruno Haible  <bruno@clisp.org>
108037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
108038         gt_TYPE_SSIZE_T.
108040 2003-11-24  Paul Eggert  <eggert@twinsun.com>
108042         * modules/alloca: Remove dependency on xalloc.
108044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
108046         * lib/alloca.c: Remove dependency on xalloc module.
108047         (xalloc_die): Remove.
108048         (memory_full) [!defined emacs]: New macro.
108049         [!defined emacs]: Don't include xalloc.h.
108050         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
108051         address arithmetic overflows.  Change datatypes a bit to avoid
108052         unnecessary casts.
108054 2003-11-22  Jim Meyering  <jim@meyering.net>
108056         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
108057         s/size/size_t/.
108059 2003-11-21  Karl Berry  <karl@gnu.org>
108061         * config/config.{sub,guess}: update from config.
108063 2003-11-18  Karl Berry  <karl@gnu.org>
108065         * config/config.{sub,guess}: update from config.
108067         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
108069 2003-11-17  Paul Eggert  <eggert@twinsun.com>
108071         * README: Mention that S+T cannot overflow if S is the size of
108072         an existing object and T is sufficiently small.
108074 2003-11-17  Jim Meyering  <jim@meyering.net>
108076         On systems without utime and without a utimes function capable of
108077         dealing with a NULL struct utimbuf* argument, this utime replacement
108078         could -- in unusual circumstances -- leak a file descriptor.
108079         * lib/utime.c: Include <unistd.h> and <errno.h>.
108080         (utime_null): Be sure to close `fd' and to preserve errno.
108081         Reported by Geoff Collyer via Arnold Robbins.
108083 2003-11-17  Bruno Haible  <bruno@clisp.org>
108085         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
108086         (Depends-on): Add xsize.
108088 2003-11-17  Bruno Haible  <bruno@clisp.org>
108090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
108092 2003-11-17  Bruno Haible  <bruno@clisp.org>
108094         * lib/vasnprintf.c (alloca): Remove fallback definition.
108095         (freea): Remove definition.
108096         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
108097         Reported by Paul Eggert.
108099 2003-11-16  Paul Eggert  <eggert@twinsun.com>
108100             Bruno Haible  <bruno@clisp.org>
108102         Protect against address arithmetic overflow.
108103         * lib/printf-args.h: Include stddef.h.
108104         (arguments): Change type of field 'count' to size_t.
108105         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
108106         'unsigned int' where appropriate.
108107         * lib/printf-parse.h: Include sys/types.h.
108108         (char_directive): Change type of *arg_index fields to ssize_t.
108109         (char_directives): Change type of fields 'count', max_*_length to
108110         size_t.
108111         * lib/printf-parse.c: Include sys/types.h and xsize.h.
108112         (SSIZE_MAX): Define fallback value.
108113         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
108114         instead of 'int' where appropriate. Check a_allocated, d_allocated
108115         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
108116         * lib/vasnprintf.c: Include xsize.h.
108117         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
108118         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
108119         overflow. Avoid wraparound when converting a width or precision from
108120         decimal to binary.
108122 2003-11-16  Bruno Haible  <bruno@clisp.org>
108124         Update from GNU gettext.
108125         * lib/printf-parse.c: Generalize to it can be compiled for wide
108126         strings.
108127         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
108128         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
108129         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
108130         SNPRINTF): New macros.
108131         Don't include <alloca.h> if the file is used inside libintl.
108132         (local_wcslen): New function, for Solaris 2.5.1.
108133         (VASNPRINTF): Use it instead of wcslen.
108135 2003-11-16  Bruno Haible  <bruno@clisp.org>
108137         * lib/xsize.h (xmax): New function.
108138         (xsum, xsum3, xsum4): Declare as "pure" functions.
108140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108142         * modules/xalloc (Files): Undo latest change, since xalloc.h
108143         no longer needs SIZE_MAX or PTRDIFF_MAX.
108145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
108148         gl_PTRDIFF_MAX.
108150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108152         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
108153         "return", to pacify some unknown compiler.  Problem reported
108154         by Joerg Schilling.
108156 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108158         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
108159         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
108160         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
108161         heuristic is just as accurate as far as we know, and it removes a
108162         dependency on size_max.m4 and ptrdiff_max.m4.
108164 2003-11-11  Bruno Haible  <bruno@clisp.org>
108166         * modules/xsize (Files): Add m4/size_max.m4.
108167         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
108169 2003-11-11  Bruno Haible  <bruno@clisp.org>
108171         * m4/size_max.m4: New file.
108172         * m4/ptrdiff_max.m4: New file.
108173         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
108174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
108175         (gl_XALLOC): Invoke it.
108177 2003-11-11  Bruno Haible  <bruno@clisp.org>
108179         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
108180         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
108181         defined.
108183 2003-11-10  Paul Eggert  <eggert@twinsun.com>
108185         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
108186         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
108187         rejected some allocations of exactly SIZE_MAX - 2 bytes.
108188         From Bruno Haible.
108189         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
108190         not (size_t) -1, since it's defined here.
108192 2003-11-09  Karl Berry  <karl@gnu.org>
108194         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
108196 2003-11-06  Paul Eggert  <eggert@twinsun.com>
108198         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
108199         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
108200         Reject sizes of exactly SIZE_MAX bytes.
108201         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
108202         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
108204 2003-11-05  Bruno Haible  <bruno@clisp.org>
108206         * lib/xsize.h: Include limits.h, to avoid a possible collision with
108207         SIZE_MAX defined in <limits.h> on Solaris.
108209 2003-11-04  Jim Meyering  <jim@meyering.net>
108211         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
108212         variable names, rather than @VAR@.
108213         * modules/poll: Likewise.
108215 2003-11-04  Bruno Haible  <bruno@clisp.org>
108217         * modules/xsize: New file.
108218         * modules/linebreak: Depend on xsize.
108219         * MODULES.html.sh (func_all_modules): Add xsize.
108221 2003-11-04  Bruno Haible  <bruno@clisp.org>
108223         * m4/xsize.m4: New file.
108225 2003-11-04  Bruno Haible  <bruno@clisp.org>
108227         * lib/xsize.h: New file.
108228         * lib/linebreak.c: Include xsize.h.
108229         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
108230         argument for overflow.
108231         Suggested by Paul Eggert.
108233 2003-11-03  Karl Berry  <karl@gnu.org>
108235         * config/config.{guess,sub}: update from config.
108237 2003-11-03  Jim Meyering  <jim@meyering.net>
108239         * modules/userspec (lib_SOURCES): Add userspec.h.
108240         (Include): Add "userspec.h".
108241         Improve description.
108243 2003-11-03  Jim Meyering  <jim@meyering.net>
108245         * lib/userspec.c: Include "userspec.h".
108246         * lib/userspec.h: New file.
108248 2003-11-03  Bruno Haible  <bruno@clisp.org>
108250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
108252 2003-11-03  Bruno Haible  <bruno@clisp.org>
108254         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
108255         available, to avoid (extremely rare) race condition.
108256         Suggested by Paul Eggert.
108258 2003-11-02  Karl Berry  <karl@gnu.org>
108260         * config/srclist.txt (vasprintf.c): sync broken, sigh.
108262 2003-10-31  Paul Eggert  <eggert@twinsun.com>
108264         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
108265         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
108266         (read_filesystem_list): Set and use me_type_malloced.
108267         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
108268         whatever the type happens to be), for brevity and consistency.
108269         Check for size calculation overflow on Alphas running OSF/1.
108271 2003-10-31  Jim Meyering  <jim@meyering.net>
108273         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
108275         * lib/linebuffer.c: Include <string.h> for declaration of memset.
108277 2003-10-30  Paul Eggert  <eggert@twinsun.com>
108278             Bruno Haible  <bruno@clisp.org>
108280         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
108281         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
108283 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108285         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
108286         netbsd*-gnu*.  Suggested by Robert Millan.
108288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108290         * modules/group-member: Depend on stdbool.
108292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108294         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
108296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108298         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
108299         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
108300         after the 'gnu' in these cases.  This fixes some bugs in the
108301         previous change, and is based on suggestions by Robert Millan.
108303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108305         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
108306         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
108307         no longer needed.
108308         * lib/quotearg.c (quotearg_n_options): Use it.
108309         * lib/group-member.c: Include <stdbool.h>.
108310         (free_group_info): Arg is now const *; don't free arg.
108311         (get_group_info): Now returns bool and accepts struct group_info *,
108312         rather than returning a malloc'ed struct group_info *.
108313         All uses changed.  Check for overflow in internal size calculation.
108315         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
108316         rather than xmalloc/xrealloc.
108317         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
108318         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
108319         conformance bug: the old code used a pointer after freeing the
108320         storage that it addressed.
108321         * lib/hash.c (hash_initialize): Simplify the code by using
108322         xalloc_oversized rather than doing it by hand.
108323         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
108324         the buffer preserved.  Use free and xmalloc instead.
108325         * lib/quotearg.c (quotearg_n_options): Likewise.
108326         Use a simpler test for size overflow.  Don't use xalloc_oversized
108327         because unsigned int might be wider than size_t (!); this suggests
108328         that we should switch from unsigned int to size_t for slot numbers.
108330 2003-10-28  Paul Eggert  <eggert@twinsun.com>
108332         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
108333         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
108334         NetBSD kernels.  Requested by Richard Stallman.
108336 2003-10-27  Paul Eggert  <eggert@twinsun.com>
108338         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
108339         to allocate the returned structure.  Do not allocate a subarray,
108340         as x2nrealloc will do that.
108341         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
108342         instead of xnrealloc.
108343         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
108345 2003-10-27  Bruno Haible  <bruno@clisp.org>
108347         * lib/stdbool_.h: Better support for BeOS.
108349 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108351         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
108352         now uses inline.
108354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108356         * lib/xalloc.h (xalloc_oversized): New static inline function, for
108357         callers that want to do their own size-overflow checking.  Include
108358         <stdbool.h>, since xalloc_oversized returns bool.
108359         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
108360         to use xalloc_oversized.
108362         Add two functions x2realloc, x2nrealloc, for programs that grow
108363         arrays dynamically by doubling their sizes.
108364         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
108365         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
108366         New functions.
108368         Port to C99 semantics for 'inline' of external functions.
108369         Bug reported by Bruno Haible.
108370         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
108371         with the old contents of xnmalloc.
108372         (xnmalloc, xmalloc): Use it.
108373         (xnrealloc_inline): New static inline function,
108374         with the old contents of xnrealloc.
108375         (xnrealloc, xrealloc): Use it.
108377         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
108378         that.
108380 2003-10-26  Karl Berry  <karl@gnu.org>
108382         * config/srclist.txt (COPYING.DOC): no longer available from
108383         /gd/gnuorg; don't know where the ultimate source is.
108385 2003-10-25  Paul Eggert  <eggert@twinsun.com>
108387         Fix several address-calculation bugs in the hash modules,
108388         plus some minor code cleanup.
108390         * lib/hash.h: Include <stdbool.h>, for bool.
108391         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
108392         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
108393         hash_get_n_entries, hash_get_max_bucket_length,
108394         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
108395         hash_rehash): Use size_t rather than unsigned.
108396         * lib/hash.c (struct hash_table, hash_get_n_buckets,
108397         hash_get_n_buckets_used, hash_get_n_entries,
108398         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
108399         hash_get_entries, hash_do_for_each, hash_string, is_prime,
108400         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
108401         Likewise.
108402         (SIZE_MAX): Define if not defined.
108403         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
108404         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
108405         hash_print):
108406         Use const * when possible.
108407         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
108408         (check_tuning): Fix bug: if tuning parameters were very close to
108409         0 or 1, rounding errors could have caused subscript violations.
108410         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
108411         (hash_initialize): Add 'fail:' label
108412         to free table and return NULL, and use it to simplify code.
108413         Use calloc rather than clearing the storage ourself.
108414         (hash_initialize, hash_rehash): Check for arithmetic overflow in
108415         buffer size calculations.
108416         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
108417         Include <stddef.h>, for size_t.
108418         * lib/hash-pjw.c (hash_pjw): Likewise.
108419         Switch to method described by Bruno Haible.
108420         Include <limits.h>, for CHAR_BIT.
108421         (SIZE_BITS): New macro.
108423 2003-10-23  Paul Eggert  <eggert@twinsun.com>
108425         * m4/getline.m4 (AM_FUNC_GETLINE):
108426         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
108427         hosts.  Problem reported by Derek Robert Price in
108428         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
108429         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
108430         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
108432 2003-10-21  Paul Eggert  <eggert@twinsun.com>
108434         * lib/getndelim2.c (getndelim2): When size calculation overflows,
108435         ceiling the allocation at NMAX bytes rather than silently
108436         discarding input bytes before NMAX is reached.  This makes
108437         a difference only if NMAX exceeds SIZE_MAX / 2.
108439         * lib/obstack.c: Merge from glibc.
108440         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
108441         Add libc_hidden_def (_obstack_newchunk).
108442         (_obstack_free) [! defined _LIBC]: Remove.
108443         [defined _LIBC]: Make a strong alias from obstack_free, rather than
108444         a clone of the function body.
108445         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
108446         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
108448         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
108449         glibc.
108450         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
108451         arg to memcpy.
108453         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
108454         (obstack_ptr_grow_fast, obstack_int_grow_fast):
108455         Don't use lvalue casts, as GCC plans to remove support for them
108456         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
108457         was also present in the non-GCC version, indicating that this
108458         code had always been buggy and had never been widely used.
108459         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
108460         Use the fast variant of each macro, rather than copying the
108461         definiens of the fast variant; that way, we'll be more likely to
108462         catch future bugs in the fast variants.
108464 2003-10-20  Bruno Haible  <bruno@clisp.org>
108466         * modules/wait-process: New file.
108467         * MODULES.html.sh (func_all_modules): Add wait-process.
108469 2003-10-20  Bruno Haible  <bruno@clisp.org>
108471         * m4/wait-process.m4: New file.
108473 2003-10-20  Bruno Haible  <bruno@clisp.org>
108475         * lib/wait-process.h: New file, from GNU gettext.
108476         * lib/wait-process.c: New file, from GNU gettext.
108478 2003-10-19  Jim Meyering  <jim@meyering.net>
108480         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
108481         HPUX 10.20.
108483 2003-10-18  Karl Berry  <karl@gnu.org>
108485         * config/config.guess: update from config.
108487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108489         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
108490         (getgroups): First arg is int, not size_t.
108491         Don't let 'free' mangle errno.
108493 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108495         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
108497 2003-10-16  Karl Berry  <karl@gnu.org>
108499         * config/config.{guess,sub}: update from config.
108501 2003-10-16  Jim Meyering  <jim@meyering.net>
108503         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
108504         memcpy.
108506 2003-10-15  Paul Eggert  <eggert@twinsun.com>
108508         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
108509         (SIZE_MAX): Remove.
108510         (new_exclude, add_exclude_file): Initial size no longer needs to
108511         be a power of 2.
108512         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
108513         our own address arithmetic overflow checking.
108515         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
108516         (fnmatch): Do not alloca more than 2000 wide characters;
108517         instead, use malloc for large buffers.
108518         Check for address arithmetic overflow, and return -1
108519         with errno set to ENOMEM in that case.
108520         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
108521         (NEW_PATTERN): Do not alloca more than 8000 bytes;
108522         instead, return -1.  Check for address arithmetic overflow.
108524 2003-10-14  Paul Eggert  <eggert@twinsun.com>
108526         Handle invalid suffixes and overflow independently, so that
108527         callers can treat them independently as needed.  Fix some bugs in
108528         suffix handling, e.g., "100k@" was not diagnosed as an invalid
108529         suffix for a human-readable blocksize.  The major caller-visible
108530         change is the addition of a new
108531         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
108532         that both overflow and suffix chars were found.
108534         * lib/human.c (humblock): Don't check separately for invalid suffix
108535         char; that is xstrtoumax's job (now that its bug is fixed).
108536         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
108537         INTMAX_MAX]: New macros.
108538         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
108539         TYPE_MAXIMUM): New macros.
108540         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
108541         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
108542         if overflow occurs, as it's what __strtol does and it's more useful
108543         in practice.
108544         (__xstrtol): If __strtol reports some error other than ERANGE,
108545         reflect it to the caller as LONGINT_INVALID.  If it reports
108546         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
108547         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
108548         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
108549         value.
108550         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
108551         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
108552         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
108553         [defined UINTMAX_MAX]: New macros.
108555 2003-10-14  Bruno Haible  <bruno@clisp.org>
108557         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
108559 2003-10-14  Bruno Haible  <bruno@clisp.org>
108561         * m4/sig_atomic_t: New file, from GNU gettext.
108562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
108564 2003-10-14  Bruno Haible  <bruno@clisp.org>
108566         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
108567         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
108568         Also use volatile where needed.
108570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108572         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
108573         Change maintainer from Bruno Haible to 'all'.
108575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
108579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108581         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
108582         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
108583         and define in terms of the other primitives.
108584         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
108585         (SIZE_MAX): Define if not already defined.
108586         (array_size_overflow): New function.
108587         (xalloc_die): Abort instead of exiting if 'error' returns.
108588         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
108589         (xmalloc, xrealloc): Use them.
108590         (xcalloc): Check for address arithmetic overflow.
108591         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
108592         a bit faster than strcpy.
108594 2003-10-10  Simon Josefsson  <jas@extundo.com>
108596         * modules/argp (Depends-on): Add restrict and strcase.
108598 2003-10-10  Simon Josefsson  <jas@extundo.com>
108600         * m4/argp.m4: Add AC_C_INLINE.
108602 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108604         Merge getpass from libc, plus a few fixes.
108606         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
108607         Include <stdbool.h>.
108608         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
108609         __fsetlocking to empty.
108610         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
108611         do include <bits/libc-lock.h>.
108612         Do not include <fcntl.h>; not needed.
108613         [_LIBC]: Include <wchar.h>.
108614         (NOTCANCEL_MODE): New macro.
108615         (flockfile, funlockfile) [_LIBC]: New macros.
108616         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
108617         [!_LIBC]: New macros.
108618         (call_fclose): New function.
108619         (getpass): Use it.  Save tty stream separately; this simplifies the
108620         code and makes it more reliable if stdin happens to equal stdout.
108621         Invoke __fsetlocking on tty.
108622         Handle thread cancellation if needed.
108623         Namespace cleanup (use __tcgetattr, __getline).
108624         Use bool for Booleans.
108625         [USE_IN_LIBIO]: Handle wide streams.
108626         [!_LIBC]: Unconditionally do the fseek, since we don't know what
108627         stream might go where.
108629         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
108630         doesn't have to include <stdio.h> before us.
108631         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
108632         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
108633         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
108634         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
108635         if not declared, so that we can use getpass.c code from libc without
108636         rewriting it.
108637         (flockfile, ftrylockfile, funlockfile): New macros.
108639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108641         * modules/getpass: Depend on stdbool.
108643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
108647 2003-10-07  Karl Berry  <karl@gnu.org>
108649         * config/config.{guess,sub}: update from config.
108651 2003-10-06  Jim Meyering  <jim@meyering.net>
108652             Bruno Haible  <bruno@clisp.org>
108654         This lets translators provide better translations for the
108655         "Written by ..." part of --version output.
108656         * lib/version-etc.h: Include stdarg.h.
108657         (version_etc_copyright): Declare as readonly.
108658         (version_etc): Make this function variadic with a NULL-terminated list
108659         of author name strings.
108660         (version_etc_va): New declaration.
108661         * lib/version-etc.c: Include stdarg.h, stdlib.h.
108662         (version_etc_copyright): Declare as readonly.
108663         (version_etc_va): New function. Provide a different translatable string
108664         for each possible number of authors < 10. Abbreviate when there are 10
108665         authors or more.
108666         (version_etc): Make this function variadic. Call version_etc_va.
108667         Suggestion from Gary V. Vaughan.
108669         * lib/long-options.h (parse_long_options): Change prototype: the
108670         authors string is moved to the end and becomes variadic.
108671         * lib/long-options.c: Include stdarg.h.
108672         (parse_long_options): Make this function variadic, too.
108673         Call version_etc_va, not version_etc.
108675 2003-10-06  Bruno Haible  <bruno@clisp.org>
108677         * modules/version-etc-2: Remove file.
108678         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
108680 2003-10-06  Bruno Haible  <bruno@clisp.org>
108682         * modules/fatal-signal: New file.
108683         * MODULES.html.sh (func_all_modules): Add fatal-signal.
108685 2003-10-06  Bruno Haible  <bruno@clisp.org>
108687         * m4/fatal-signal.m4: New file.
108688         * m4/signalblocking.m4: New file, from GNU gettext.
108690 2003-10-06  Bruno Haible  <bruno@clisp.org>
108692         * lib/version-etc-2.h: Remove file.
108693         * lib/version-etc-2.c: Remove file.
108695 2003-10-06  Bruno Haible  <bruno@clisp.org>
108697         * lib/fatal-signal.h: New file, from GNU gettext.
108698         * lib/fatal-signal.c: New file, from GNU gettext.
108700 2003-10-05  Paul Eggert  <eggert@twinsun.com>
108702         * README: Rework advice for preventing empty .o files.
108703         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
108704         not <sys/types.h>.
108706 2003-10-04  Karl Berry  <karl@gnu.org>
108708         * lib/argp*: update from libc.
108710 2003-10-04  Karl Berry  <karl@gnu.org>
108712         * config/config.{guess,sub}: update from config.
108714 2003-10-02  Bruno Haible  <bruno@clisp.org>
108716         * modules/lchown (Include): Add lchown.h.
108717         * modules/time_r (Include): Use "..." syntax.
108718         * modules/xgetdomainname (Include): Add xgetdomainname.h.
108720 2003-10-01  Simon Josefsson  <jas@extundo.com>
108722         * MODULES.html.sh (func_all_modules): Move gethostname from section
108723         'based on' to section 'lacking' POSIX:2001.
108725 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
108727         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
108728         to output mode on the same stream.
108730 2003-09-29  Paul Eggert  <eggert@twinsun.com>
108732         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
108733         Fix arg typo in previous patch.
108735 2003-09-28  Jim Meyering  <jim@meyering.net>
108737         * lib/error.c: Correct cpp indentation.
108739 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108741         * modules/free: New file.
108743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108745         * m4/free.m4: New file.
108747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108749         * lib/minmax.h (MIN, MAX)
108750         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
108751         Omit the special code that used __typeof__, since we worry that
108752         it could be more trouble than it's worth.  See:
108753         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
108754         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
108756         * lib/free.c: New file.
108758 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
108760         Trivial fixes to Makefile.am parts of module listings.
108761         * modules/strstr: Append strstr.h to lib_SOURCES.
108762         * modules/strcase: Likewise, for strcase.h.
108764 2003-09-27  Karl Berry  <karl@gnu.org>
108766         * config/mkinstalldirs: update from automake.
108768 2003-09-26  Paul Eggert  <eggert@twinsun.com>
108770         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
108771         (error_tail): Do not loop, reallocating temporary buffer, since
108772         the output cannot contain more wide characters than the input
108773         contains bytes, the size must be big enough already.  This avoids
108774         one potential size overflow calculation.  Check for size overflow
108775         when calculating temporary buffer size.  Free temporary buffer
108776         when done, if it was allocated with malloc; this plugs a memory
108777         leak.  Remove casts from void * to pointers, that are no longer
108778         needed now that we're assuming C89 or better.
108780         Merge error changes from glibc.
108782         * lib/error.c, error.h: Update copyright notice header to match glibc.
108783         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
108784         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
108785         Disable cancellation while printing error.
108786         * lib/error.h: Prepend __ to parameter names.
108788 2003-09-26  Jim Meyering  <jim@meyering.net>
108790         * lib/error.c (error_tail): Move some declarations
108791         into inner scope where the local variables are used.
108793 2003-09-26  Bruno Haible  <bruno@clisp.org>
108795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
108796         stpncpy().
108797         Don't define stpncpy through config.h; it's now done through stpncpy.h.
108799 2003-09-26  Bruno Haible  <bruno@clisp.org>
108801         * lib/stpncpy.h (gnu_stpncpy): New declaration.
108802         (stpncpy): Define as alias for gnu_stpncpy.
108803         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
108805 2003-09-25  Simon Josefsson  <jas@extundo.com>
108807         * lib/xgetdomainname.h: New file.
108808         * lib/xgetdomainname.c: New file.
108810 2003-09-25  Simon Josefsson  <jas@extundo.com>
108811             Bruno Haible  <bruno@clisp.org>
108813         * modules/getdomainname: New file.
108814         * modules/xgetdomainname: New file.
108815         * MODULES.html.sh (func_all_modules): Add getdomainname,
108816         xgetdomainname.
108818 2003-09-25  Simon Josefsson  <jas@extundo.com>
108819             Bruno Haible  <bruno@clisp.org>
108821         * m4/getdomainname.m4: New file.
108823 2003-09-25  Simon Josefsson  <jas@extundo.com>
108824             Bruno Haible  <bruno@clisp.org>
108826         * lib/getdomainname.h: New file.
108827         * lib/getdomainname.c: New file.
108829 2003-09-25  Karl Berry  <karl@gnu.org>
108831         * lib/argp-fmtstream.c, argp-help.c: update from libc.
108833 2003-09-25  Karl Berry  <karl@gnu.org>
108835         * config/install-sh: update from automake.
108837 2003-09-25  Bruno Haible  <bruno@clisp.org>
108839         * modules/version-etc-2: New file, from modules/version-etc with
108840         modifications.
108841         * MODULES.html.sh (func_all_modules): Add version-etc-2.
108843 2003-09-25  Bruno Haible  <bruno@clisp.org>
108845         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
108846         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
108848 2003-09-24  Simon Josefsson  <jas@extundo.com>
108850         * modules/xgethostname: Add xgethostname.h.
108852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108854         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108855         the buffer associated with the argument.  Bug reported by
108856         Simon Josefsson.
108858 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108860         * README: Document assumptions that 'int' is at least 32 bits
108861         wide, that integer arithmetic is 2's complement without overflow,
108862         that there are no holes in integer values, that adding sizes of
108863         two nonoverlapping objects can't overflow, and that all-bits-zero
108864         yields scalar zero.  Fix spelling and capitalization typos.
108866 2003-09-19  Karl Berry  <karl@gnu.org>
108868         * lib/argp.h: update from libc.
108870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108873         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108874         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108876 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108878         * gnulib-tool: Use "test -h", not "test -L", for portability
108879         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108880         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108881         (sed_extract_prog): Issue s commands one-by-one, rather than
108882         using \| in one s command.
108884 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108886         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108887         input error, instead of returning NULL the next time we are called
108888         (and therefore losing track of errno).
108890 2003-09-16  Bruno Haible  <bruno@clisp.org>
108892         * gnulib-tool (func_create_testdir): Warn about duplicated
108893         dependencies.
108895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108897         * modules/argmatch, modules/fatal, modules/obstack,
108898         modules/xalloc, modules/xgethostname: Sort dependencies by
108899         importance, not alphabetically.
108901 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108903         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108904         fails, so that the caller gets the proper errno.
108906         * lib/readutmp.c (read_utmp): Likewise.
108907         Check for fstat error.  Close stream and free storage
108908         when failing.
108910 2003-09-14  Karl Berry  <karl@gnu.org>
108912         * config/srclist.txt (strdup.c): disable for c89 changes.
108914 2003-09-14  Jim Meyering  <jim@meyering.net>
108916         * lib/getloadavg.c: Correct cpp indentation.
108917         * lib/strdup.c: Likewise.
108918         * lib/vasnprintf.c: Likewise.
108920 2003-09-14  Bruno Haible  <bruno@clisp.org>
108922         * modules/fwriteerror: New file.
108923         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108925 2003-09-14  Bruno Haible  <bruno@clisp.org>
108927         * lib/fwriteerror.h: New file.
108928         * lib/fwriteerror.c: New file.
108930 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108932         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108933         modules/xgethostname, modules/xalloc: Depend on exit.
108935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108937         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108940         and AC_MINIX, too, so that their extensions are available.
108942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108943         This macro has been superseded by gl_BACKUPFILE.
108945         More patches to assume C89 or better.
108947         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108949         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108950         unconditionally.
108951         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108953         Include <string.h>, <stdlib.h> unconditionally.
108954         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108955         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108956         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108957         headers or for string.h.
108958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108959         or strtoul.
108961         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108962         headers.
108963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108965         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108966         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108969         memcpy, memset.
108970         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108971         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108973         strtol.
108974         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108975         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108977         strtoul.
108979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108981         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108982         * lib/obstack.c [!defined _LIBC]: Likewise.
108983         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108984         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108985         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108987         More changes to assume C89 or better.
108989         * lib/error.c (error_tail): Assume vprintf.
108991         * lib/argmatch.c (getenv): Remove decl.
108992         * lib/progreloc.c (get_full_program_name): Define via prototype.
108993         * lib/setenv.c (clearenv): Likewise.
108994         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108995         needed.
108996         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108997         (malloc, memcpy): Remove decls.
108998         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108999         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
109000         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
109001         (memcpy): Remove macro.
109002         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
109003         (__P): Remove.  All uses removed.
109004         (PTR): Remove.  All uses changed to void *.
109005         (CHAR_BIT, NULL): Remove.
109006         (spaces, zeros, memset_space, memset_zero)
109007         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
109008         Remove.
109009         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
109010         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
109011         Define with prototype.
109012         Remove now-unnecessary prototype decl.
109013         (extra_args_spec): Assume ANSI C.  All uses changed.
109014         (extra_args_spec_iso): Remove.
109015         (my_strftime, emacs_strftimeu): Define via prototype.
109016         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
109017         unconditionally.
109018         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
109019         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
109020         (strtoul, strtol): Remove decls.
109021         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
109022         LONG_MAX): Remove.
109023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
109024         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
109025         (LOCALE_PARAM_PROTO): New macro.
109026         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
109027         (INTERNAL (strtol), strtol): Define with a prototype.
109028         (PARAMS): Remove.  All uses removed.
109029         * lib/tempname.c: Include <string.h> unconditionally.
109030         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
109031         * lib/xgethostname.c (main): Define with a prototype.
109032         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
109033         Include <stdlib.h> unconditionally.
109034         (calloc, malloc, realloc, free): Remove decls.
109035         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
109036         Include <stdlib.h> unconditionally.  Sort include file names.
109037         (strtod): Remove.
109038         (xstrtod): Define with a prototype.
109039         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
109040         (strtol, strtoul): Remove decls.
109042 2003-09-11  Paul Eggert  <eggert@twinsun.com>
109044         More patches to assume C89 or better.
109045         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
109046         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
109047         string.h, memchr, STDC_HEADERS.
109049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
109051         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
109052         Include <stdlib.h>, <string.h> unconditionally.
109053         Remove now-unnecessary cast to char *.
109054         * lib/strnlen.c: Include <string.h> unconditionally.
109055         * lib/yesno.c (yesno): Define with a prototype.
109057 2003-09-11  Bruno Haible  <bruno@clisp.org>
109059         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
109061 2003-09-10  Jim Meyering  <jim@meyering.net>
109063         * lib/error.c: Correct indentation of cpp directives.
109065 2003-09-10  Bruno Haible  <bruno@clisp.org>
109067         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
109068         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
109069         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
109070         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
109071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
109072         <stdlib.h> and <string.h> checks.
109073         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
109074         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
109076 2003-09-10  Bruno Haible  <bruno@clisp.org>
109078         * lib/strcspn.c: Include <string.h> unconditionally.
109079         * lib/strpbrk.c: Include <string.h> unconditionally.
109080         * lib/strstr.c: Include <string.h> unconditionally.
109081         * lib/unicodeio.c: Include <string.h> unconditionally.
109082         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
109083         * lib/unsetenv.c: Likewise.
109084         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
109085         * lib/yesno.c: Include <stdlib.h> unconditionally.
109086         (rpmatch): Add prototype.
109088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109090         More patches to assume C89 or better.
109091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
109092         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
109093         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
109094         or for string.h.
109095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
109096         stdlib.h.
109097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
109098         C headers.
109099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
109100         string.h.
109101         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
109102         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
109103         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
109104         or for string.h.
109105         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
109106         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
109107         C headers.
109108         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
109109         memcpy.
109110         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
109111         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
109112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
109113         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
109114         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
109115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
109116         string.h, free.
109117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
109118         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
109119         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
109120         C headers, or for string.h.
109121         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
109122         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
109123         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
109124         headers, memory.h, stdlib.h, string.h, strings.h.
109125         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
109126         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
109127         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
109128         strchr.
109129         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
109130         headers, memory.h, string.h.
109131         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
109132         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
109133         free.
109134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
109135         headers.
109136         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
109137         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
109138         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
109139         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
109140         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
109142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109144         More K&R removal.
109146         * lib/acosl.c (main): Use a prototype.
109147         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
109148         tanl.c: Likewise.
109150         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
109152         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
109153         (getopt, etopt_long, getopt_long_only, _getopt_internal)
109154         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
109155         with a prototype.
109156         * lib/getopt.c (const): Remove macro.
109157         Include <string.h> unconditionally.
109158         (my_index): Remove; all uses changed to strchr.
109159         (strlen): Remove decl.
109160         (exchange): Remove forward decl; no longer needed.
109161         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
109162         Define with prototype.
109163         * lib/getopt1.c (const): Remove macro.
109164         (getopt_long, getopt_long_only, main): Define with prototype.
109166         * lib/getugroups.c: Include <string.h> unconditionally.
109168         * lib/getusershell.c: Include <stdlib.h> unconditionally.
109169         (getusershell, setusershell, endusershell, readname, main):
109170         Define with prototypes.
109172         * lib/group-member.c: Include group-member.h first.
109173         Include <stdlib.h> unconditionally.
109175         * lib/hard-locale.c: Include hard-locale.h first.
109176         Include <stdlib.h>, <string.h> unconditionally.
109178         * lib/hash.c (free, malloc): Remove decls.
109179         Include <stdlib.h> unconditionally.
109181         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
109182         (getenv): Do not declare.
109184         * lib/idcache.c: Include <string.h> unconditionally.
109186         * lib/long-options.c: Include long-options.h first, to test interface.
109187         Include <stdlib.h> unconditionally.
109189         * lib/makepath.c: Include makepath.h first, to test interface.
109190         Include <stdlib.h> and <string.h> unconditionally.
109192         * lib/linebuffer.c: Include <stdlib.h>.
109193         (free): Remove decl.
109195         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
109196         stddef.h. rpl_malloc returns void *, not char *.
109197         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
109198         prototype.
109200         * lib/md5.h: Include <limits.h> unconditionally.
109201         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
109202         (__P): Remove; all uses removed.
109203         * lib/md5.c: Include "md5.h" first.
109204         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
109205         md5_buffer, md5_process_bytes, md5_process_block):
109206         Define with prototypes.
109207         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
109208         * lib/sha.c: Include "sha.h" first.
109209         Include <stdlib.h>, <string.h> unconditionally.
109211         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
109212         * lib/memcmp.c (__ptr_t): Likewise.
109213         * lib/memrchr.c (__ptr_t): Likewise.
109214         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
109215         Include <string.h> unconditionally.
109216         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
109217         * lib/memchr.c: Include <stdlib.h> unconditionally.
109218         * lib/memchr.c (LONG_MAX): Remove.
109219         * lib/memrchr.c (LONG_MAX): Likewise.
109220         * lib/memchr.c (__memchr): Define via a prototype.
109221         * lib/memrchr.c (__memrchr): Likewise.
109222         * lib/memcmp.c (__P): Remove, and remove all uses.
109223         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
109224         Remove forward decls; no longer needed.
109225         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
109226         Use types required by C89 in prototype.
109228         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
109229         * lib/savedir.c: Likewise.
109230         * lib/mkdir.c (free): Remove decl.
109231         * lib/rmdir.c (rmdir): Define with a prototype.
109232         * lib/savedir.c: Include savedir.h first, to test interface.
109234         * lib/mktime.c (STDC_HEADERS): Remove.
109235         Include <stdlib.h>, <string.h> unconditionally.
109237         * lib/modechange.c: Include <stdlib.h> unconditionally.
109238         (malloc): Remove decl.
109240         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
109241         (free): Remove decl.
109243         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
109244         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
109245         (This type really should be intptr_t, but that's a C99ism.)
109246         (_obstack_memcpy): Remove: all uses changed to memcpy.
109247         Include <string.h> unconditionally.
109248         (struct obstack): Assume __STDC__ for types of members
109249         chunkfun, freefun, extra_arg.
109250         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
109251         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
109252         obstack_begin, obstack_specify_allocation,
109253         obstack_specify_allocation_with_arg, obstack_chunkfun,
109254         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
109255         Remove unprototyped decls and the macros that use them.
109256         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
109257         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
109258         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
109259         (defined __STDC__ && __STDC__)]:
109260         Remove nonprototyped code.
109261         Include <stdlib.h> unconditionally.
109262         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
109263         _obstack_allocated_p, _obstack_free, obstack_free,
109264         _obstack_memory_used, print_and_abort):
109265         Define using prototypes.
109266         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
109267         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
109268         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
109269         obstack_next_free, obstack_object_size, obstack_room) [0]:
109270         Remove unused, unprototyped code.
109272         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
109274         * lib/physmem.c (physmem_total, physmem_available, main): Define
109275         with prototypes.
109277         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
109278         (main): Define with a prototype.
109280         * lib/posixver.c (getenv): Remove decl.
109282         * lib/putenv.c (malloc): Returns void *, not char *.
109283         Include <string.h> unconditionally.
109284         (strchr, memcpy, NULL): Do not define.
109286         * lib/readtokens.c: Include readtokens.h first, to test interface.
109287         Include <stdlib.h>, <string.h> unconditionally.
109288         (init_tokenbuffer): Define with a prototype.
109290         * lib/regex.c (PARAMS): Remove.  All uses removed.
109291         All uses of _RE_ARGS removed, too.
109292         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
109293         unconditionally.
109294         (bzero): Assume memset exists.
109295         (memcmp, memcpy, NULL): Remove.
109296         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
109297         char, or assignments to local vars of type signed char.
109298         (init_syntax_once, PREFIX(extract_number_and_incr),
109299         PREFIX(print_partial_compiled_pattern),
109300         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
109301         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
109302         PREFIX(regex_grow_registers), PREFIX(regex_compile),
109303         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
109304         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
109305         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
109306         wcs_compile_range, byte_compile_range, truncate_wchar,
109307         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
109308         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
109309         count_mbs_length, wcs_re_match_2_internal,
109310         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
109311         PREFIX(alt_match_null_string_p),
109312         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
109313         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
109314         regfree, PREFIX(extract_number)): Define with prototype.  Remove
109315         now-unnecessary declaration, if any.
109316         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
109317         regcomp, regexec):
109318         Remove now-unnecessary casts among pointer types.
109319         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
109321         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
109322         (free): Remove decl.
109324         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
109326         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
109327         (free): Remove decl.
109329         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
109330         * lib/xgetcwd.c: Likewise.
109332         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
109333         (free): Remove decl.
109335         * lib/strchrnul.c (strchrnul): Define with a prototype.
109336         Fix bug: c_in was not converted to char before searching.
109338         The following changes are not K&R related:
109340         * lib/group-member.h: Include <sys/types.h>, so that this file is
109341         self-contained.
109342         * lib/makepath.h: Likewise.
109344         * lib/getusershell.c (readname, default_index, line_size, readname):
109345         Use size_t, not int, for sizes.
109346         (readname): If the size overflows, report an error instead of
109347         looping forever.
109349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109351         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
109352         libc.
109354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109356         * README: New section: portability guidelines.
109358 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109360         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
109361         C89 spec.
109363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109365         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
109367 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109369         Assume C89 or better; remove K&R cruft.
109370         A few of these changes were first proposed by Derek Robert Price
109371         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
109373         * lib/addext.c: Include <string.h> unconditionally.
109374         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
109375         Don't declare getenv or malloc.
109377         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
109378         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
109379         (NULL): Remove.
109380         (find_stack_direction, alloca): Use prototypes.
109382         * lib/atexit.c (atexit): Define using a prototype.
109384         * lib/basename.c, dirname.c, stripslash.c:
109385         Include <string.h> unconditionally.
109387         * lib/bcopy.c: Include <stddef.h>.
109388         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
109390         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
109392         * lib/error.h (error, error_at_line, error_print_progname)
109393         [! (defined (__STDC__) && __STDC__)]: Remove decls.
109394         * lib/error.c: Include error.h first, to check interface.
109395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109396         (VA_START): Remove; all uses changeed to va_start.
109397         (exit, strerror): Remove decls.
109398         (error_print_progname): Prototype uncondionally.
109399         Don't include <errno.h>; no longer needed.
109400         (private_strerror): Remove.
109401         (error_tail): Always define.
109402         (error, error_at_line): Assume C89 or better; always use prototypes.
109403         * lib/fatal.c: Include "fatal.h" first, to test interface.
109404         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109405         (VA_START): Remove; all uses changed to va_start.
109406         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
109407         this case.
109408         (exit): Remove decl.
109409         (fatal): Prototype unconditionally.  Assume va_start works.
109410         Abort at end, to pacify gcc.
109412         * lib/euidaccess.c (main): Define with a prototype.
109414         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
109416         * lib/exitfail.c: Include <stdlib.h> unconditionally.
109418         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
109419         prototypes.
109420         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
109421         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
109422         (getenv): Remove decl.
109423         (fnmatch): Define using a prototype.
109424         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
109425         (FCT): Define using a prototype.
109427         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
109429         * lib/gethostname.c: Include <stddef.h>.
109430         (gethostname): Define with prototype.  Length is size_t, not int.
109432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109434         Assume C89 or better; remove K&R cruft.
109435         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
109436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
109437         string.h, getenv, malloc.
109438         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
109439         headers.
109440         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
109441         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
109442         do not check for strerror.
109443         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
109444         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
109445         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
109446         do not check for doprnt or vprintf.
109447         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
109448         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
109450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109452         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
109453         getversion.c should have been removed then, but was accidentally
109454         preserved.
109456         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
109457         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
109459 2003-09-08  Karl Berry  <karl@gnu.org>
109461         * config/config.sub, config.guess, srclistvars.sh: update from savannah
109462                 config, forget about prep.
109464         * config/depcomp, missing: update from automake.
109466 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109468         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
109469         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109473         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
109474         copy_tm_result.  Bug reported by Simon Josefsson in
109475         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109477 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109479         * m4/time_r.m4: New file.
109480         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
109481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
109482         is. Check for timegm declaration.
109483         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
109484         Do not check for gmtime_r.
109485         Replace mktime if __mktime_internal does not exist and if mktime
109486         hasn't been replaced already.
109488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109490         * lib/time_r.c, lib/time_r.h: New files.
109492         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
109493         __localtime_r.
109494         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
109495         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
109497         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
109498         __gmtime_r.
109499         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
109500         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
109501         Include <time_r.h>.
109503         * lib/timegm.c: Switch to glibc implementation, with the following
109504         changes:
109505         [defined HAVE_CONFIG_H]: Include <config.h>.
109506         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
109507         (__mktime_internal) [!defined _LIBC]: New decl.
109508         (__gmtime_r) [!defined _LIBC]: New macro and function.
109509         (timegm): Use a prototype, since gnulib assumes C89.
109510         Do not bother declaring tmp to be const, as it's not really usefu.
109511         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
109512         (timegm): Declare only if HAVE_DECL_TIMEGM.
109514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109516         * MODULES.html.sh (func_all_modules): Add time_r.
109517         * modules/time_r: New file.
109518         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
109519         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
109521 2003-09-03  Paul Eggert  <eggert@twinsun.com>
109523         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
109524         Bug reported by Lute Kamstra in
109525         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
109527         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
109528         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
109529         course with correspondingly smaller numbers for tomorrow and
109530         yesterday.  From Tadayoshi Funaba.  Originally installed into
109531         sh-utils on 1999-08-07, but the patch got lost (I guess during the
109532         coreutils merge?).
109534 2003-08-31  Simon Josefsson  <jas@extundo.com>
109536         * modules/timegm: New file.
109537         * MODULES.html.sh (func_all_modules): Add timegm.
109539 2003-08-31  Simon Josefsson  <jas@extundo.com>
109541         * m4/timegm.m4: New file.
109543 2003-08-31  Simon Josefsson  <jas@extundo.com>
109545         * lib/timegm.h: New file.
109546         * lib/timegm.c: New file.  Based on
109547         wget-1.8.2/src/http.c:mktime_from_utc.
109549 2003-08-31  Karl Berry  <karl@gnu.org>
109551         * lib/argp.h: update from libc.
109553 2003-08-28  Bruno Haible  <bruno@clisp.org>
109555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
109556         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
109557         followed by '#define fnmatch fnmatch_posix' gives an error.
109559 2003-08-28  Bruno Haible  <bruno@clisp.org>
109561         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
109562         warning on QNX, which defines O_BINARY to 000000.
109564 2003-08-27  Jim Meyering  <jim@meyering.net>
109566         * m4/mkstemp.m4: Require that the system mkstemp be able to create
109567         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
109568         would fail after 32.  Reported by Danny Levinson.  Details here:
109569         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
109571 2003-08-24  Bruno Haible  <bruno@clisp.org>
109573         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
109574         MSVC7 <stdio.h> is included later.
109576 2003-08-22  Simon Josefsson  <jas@extundo.com>
109578         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
109580 2003-08-20  Karl Berry  <karl@gnu.org>
109582         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
109584 2003-08-20  Bruno Haible  <bruno@clisp.org>
109586         * modules/progname: New file.
109587         * MODULES.html.sh (func_all_modules): Add progname.
109589 2003-08-20  Bruno Haible  <bruno@clisp.org>
109591         * lib/progname.h: New file, from GNU gettext.
109592         * lib/progname.c: New file, from GNU gettext.
109593         * lib/progreloc.c: New file, from GNU gettext.
109595 2003-08-19  Jim Meyering  <jim@meyering.net>
109597         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
109598         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
109600 2003-08-19  Bruno Haible  <bruno@clisp.org>
109602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
109603         more.
109605 2003-08-19  Bruno Haible  <bruno@clisp.org>
109607         * lib/xstrdup.c: Assume <string.h> exists.
109609 2003-08-18  Paul Eggert  <eggert@twinsun.com>
109611         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
109612         in makefile rules.
109614 2003-08-18  Jim Meyering  <jim@meyering.net>
109616         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
109617         * m4/lib-ld.m4: Likewise.
109619 2003-08-18  Jim Meyering  <jim@meyering.net>
109621         * lib/setenv.h: Indent nested cpp directive.
109622         * lib/vasnprintf.c: Remove trailing blanks.
109624 2003-08-17  Simon Josefsson  <jas@extundo.com>
109626         * modules/xstrndup: New file.
109627         * MODULES.html.sh (func_all_modules): Add xstrndup.
109629 2003-08-17  Simon Josefsson  <jas@extundo.com>
109631         * modules/argp: Fix autoconf macro name. Add more dependencies.
109633 2003-08-17  Simon Josefsson  <jas@extundo.com>
109635         * m4/xstrndup.m4: New file.
109637 2003-08-17  Simon Josefsson  <jas@extundo.com>
109639         * m4/argp.m4: New file.
109641 2003-08-17  Simon Josefsson  <jas@extundo.com>
109642             Bruno Haible  <bruno@clisp.org>
109644         * lib/xstrndup.h: New file.
109645         * lib/xstrndup.c: New file.
109647 2003-08-17  Bruno Haible  <bruno@clisp.org>
109649         * modules/strndup (Files, Include): Add lib/strndup.h.
109651 2003-08-17  Bruno Haible  <bruno@clisp.org>
109653         * modules/euidaccess (Files): Add lib/euidaccess.h.
109655 2003-08-17  Bruno Haible  <bruno@clisp.org>
109657         * lib/strndup.h: New file.
109659 2003-08-17  Bruno Haible  <bruno@clisp.org>
109661         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
109662         like AC_GNU_SOURCE.
109663         * modules/extensions (configure.ac): Comment out the invocation of
109664         gl_USE_SYSTEM_EXTENSIONS.
109666 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109668         Merges from coreutils, etc.
109669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
109670         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
109671         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
109672         fixing a typo.
109673         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
109674         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
109676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109678         Document merge from coreutils.
109679         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
109680         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
109681         * modules/utime: Add m4/utimes-null.m4.
109683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
109686         space, undoing this 2003-08-12 change:
109687         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109691         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
109692         strtoul.c from libc, undoing this 2003-08-12 change:
109693         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109695 2003-08-16  Jim Meyering  <jim@meyering.net>
109697         Merges from coreutils.
109698         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
109699         prefix.  Adjust cache variables similarly.  Create 500 rather than
109700         just 300 files, to exercise bug on Darwin6.5, too.
109701         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
109702         $missing_dir.
109703         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
109704         AM_SYS_POSIX_TERMIOS.
109705         Reported by mkc@mathdogs.com.
109706         Also change use of $am_cv_sys_posix_termios
109707         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
109708         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
109709         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
109710         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
109711         in /proc/mounts until it finds one with matching device number.  This
109712         is unnecessary when the FILE argument *is* a mount point.  No stat call
109713         is necessary in that case.  So, disable the statvfs-testing code on
109714         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
109715         as RedHat bug# 84846.
109716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109717         to 1MB, so as not to render systems with no stack size limit (e.g.,
109718         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109719         Include <unistd.h>.  On some systems,
109720         it is required for the definition of _SC_PAGESIZE.
109722 2003-08-16  Jim Meyering  <jim@meyering.net>
109724         Merge from coreutils.
109725         * lib/xstrtoimax.c: #else #if -> #elif.
109726         * lib/xstrtoumax.c: Likewise.
109728 2003-08-16  Jim Meyering  <jim@meyering.net>
109730         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
109731         * m4/utimes.m4: Removed.
109732         * m4/utimes-null.m4: Renamed from utimes.m4.
109734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109735         to 1MB, so as not to render systems with no stack size limit (e.g.,
109736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109737         Include <unistd.h>.  On some systems,
109738         it is required for the definition of _SC_PAGESIZE.
109740 2003-08-16  Jim Meyering  <jim@meyering.net>
109741         and Paul Eggert  <eggert@cs.ucla.edu>
109743         Merges from coreutils, etc.
109745         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
109746         using the latest version from cvs.  This avoids problems with #line
109747         directives using a vendor (Sun) compiler.
109748         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
109749         Don't set GETGROUPS_LIB here; now it's
109750         done via getgroups.m4's wrapper function.
109751         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
109752         rather than just in sh-util/configure.in, so that the
109753         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
109754         same.
109755         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
109756         AC_FUNC_GETLOADAVG where to find getloadavg.c.
109757         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
109758         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
109759         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
109760         Remove code that is now done by the newly-required macros.
109761         Append $(EXEEXT) to DF_PROG.
109762         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
109763         Do not invoke or require the following here,
109764         since prereq.m4 or some gnulib .m4 now does this for us:
109765         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
109766         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
109767         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
109768         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
109769         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
109770         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
109771         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
109772         AC_FUNC_OBSTACK.
109773         Do not replace the following functions, as this is now the job
109774         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
109775         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
109776         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
109777         atexit getpass, strdup, getpagesize.
109778         Replace 'raise'.
109779         Do not check for the following functions, as this is now the job
109780         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
109781         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
109782         setregid.
109783         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
109784         Check for sys/sysctl.h.
109785         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
109786         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
109787         of checking for ssize_t ourselves.
109789         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
109790         Require every macro that gnulib/modules/* suggests for us.
109791         (jm_PREREQ_ADDEXT): New macro.
109792         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
109793         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
109795         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
109796         (gl_PHYSMEM): Use it.
109797         Also check for `table' function.
109798         Check for new headers and functions.
109799         Add check for sys/sysmp.h.
109800         With suggestions from Kaveh Ghazi.
109801         Ignore headers that are present but cannot be compiled.  This
109802         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
109803         C 5.4.
109805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109807         Document merge from coreutils.
109808         * modules/userspec: Depend on posixver.
109809         * modules/strftime: Depend on tzset.
109811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109813         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
109814         rather than tab, after '#' in shell-script copyright notices.
109815         Suggested by Bruno Haible.
109817 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109819         * config/srclist-update: Use three spaces, rather than tab, after '#'
109820         in shell-script copyright notices.  Suggested by Bruno Haible.
109821         Remove unnecessary parenthesization in regular expression.
109823 2003-08-15  Jim Meyering  <jim@meyering.net>
109825         Merge from coreutils.
109826         * lib/xgethostname.c: Include <stdlib.h>.
109827         (xghostname): Don't exit for anything other than memory-related
109828         failure; just return NULL.
109829         * lib/userspec.c: Include "posixver.h".
109830         (parse_user_spec): Accept `.' as a separator only
109831         in pre-POSIX-200112 mode.
109832         * lib/strtoimax.c: Use #elif rather than #else #if.
109833         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
109834         Remove function, now that we can rely on a working tzset function.
109835         [!_LIBC]: Ensure that the required autoconf test has been run.
109836         [!defined _NL_CURRENT && HAVE_STRFTIME]:
109837         Use underlying_strftime for %r.
109838         * lib/sha.c: Merge in some clean-up and optimization changes from
109839         glibc.
109840         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
109841         Ensure that it is a multiple of 64.
109842         Rearrange loop exit tests so as to avoid performing an
109843         additional fread after encountering an error or EOF.
109844         * lib/realloc.c: Update copyright date.
109846 2003-08-15  Jim Meyering  <jim@meyering.net>
109847         and Paul Eggert  <eggert@twinsun.com>
109849         Merge from coreutils.
109850         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109851         member but strut utmpx does not.  Needed for AIX 4.3.3.
109852         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109854 2003-08-15  Jim Meyering  <jim@meyering.net>
109855         and Paul Eggert  <eggert@cs.ucla.edu>
109857         Merges from coreutils, etc.
109858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109859         Require gl_FUNC_TZSET_CLOBBER.
109860         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109861         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109862         members.
109864 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109866         Help the merge from coreutils.
109867         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109868         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109869         * m4/tzset.m4: Use it too.
109871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109873         * modules/tzset: New file.
109875 2003-08-14  Jim Meyering  <jim@meyering.net>
109877         Merges from coreutils.
109878         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109879         variable names, rather than @FNMATCH_H@.
109880         * modules/alloca: Likewise for $(ALLOCA_H).
109882         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109883         the three copies of the literal target, `fnmatch.h'.
109884         * modules/alloca (alloca.h): Likewise.
109886 2003-08-14  Jim Meyering  <jim@meyering.net>
109888         Merge from coreutils.
109889         * m4/tzset.m4: New file.
109890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109891         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109892         otherwise, AIX 5.1 systems would end up using the latter.
109893         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109894         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109895         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109896         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109898 2003-08-14  Jim Meyering  <jim@meyering.net>
109900         Merge from coreutils.
109901         * lib/obstack.h: Whitespace changes.
109902         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109903         and xcalloc return values.
109904         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109905         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109906         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109907         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109908         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109909         error from mntctl.
109910         Use mntctl's return value to drive the entry-processing loop, since
109911         we can't rely on the value of the vmt_length member in the last
109912         entry.  On some systems doing so could result in exhausting
109913         virtual memory.  Based in part on a patch from Mike Jetzer.
109915 2003-08-14  Jim Meyering  <jim@meyering.net>
109916         and Paul Eggert  <eggert@twinsun.com>
109918         Merges from coreutils, plus other fixes.
109919         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109920         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109921         for credits and details.  Thanks to Kaveh Ghazi for helping
109922         to keep these files in sync.
109923         (ARRAY_SIZE): Define it.
109924         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109925         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109926         (memcasecmp): Don't assume size_t fits in unsigned int.
109927         Remove casts and duplicate code.
109928         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109929         (memcpy): Remove definition.
109930         Merge in some clean-up and optimization changes from glibc.
109931         [BLOCKSIZE]: Move definition to top of file.
109932         Ensure that it is a multiple of 64.
109933         Rearrange loop exit tests so as to avoid performing an
109934         additional fread after encountering an error or EOF.
109935         * lib/md5.h (md5_uintptr): Define.
109936         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109937         return to the initial working directory.  Preserve errno
109938         for caller.
109939         * lib/idcache.c: Include "xalloc.h".
109940         (xmalloc, xrealloc): Remove decls.
109941         (getuser): Remove casts no longer required in C89.
109942         * lib/human.c: Include stdio.h, for sprintf.
109943         * lib/group-member.c: Include "xalloc.h".
109944         (xmalloc, xrealloc): Remove decls.
109945         (get_group_info): Remove casts no longer required in C89.
109946         * lib/getusershell.c (readname): Remove casts no longer required in
109947         C89.
109948         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109949         * lib/getline.c: Whitespace fix, from coreutils.
109951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109953         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109954         Check for isascii.
109956         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109957         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109958         Undo previous (whitespace-only) change.
109960 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109962         * lib/exclude.c: Include <ctype.h>
109963         (IN_CTYPE_DOMAIN): New macro.
109964         (is_space): New fn.
109965         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109966         and empty lines.
109968         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109969         Undo previous (whitespace-only) change.
109971 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109973         * config/srclist-update: Change update back to the old behavior,
109974         leaving whitespace alone.  Use one 'sed' command rather than a
109975         pipeline.
109976         (fixlicense): Now a variable, not a function.
109977         (remove_trailing_blanks): Remove.
109978         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109979         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109980         Undo previous (whitespace-only) change.
109982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109984         Merge from coreutils.
109985         * modules/euidaccess: Add lib_SOURCES, include for new
109986         file euidaccess.h
109988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109990         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109991         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109992         Normalize leading white space and remove trailing white space.
109994         Merge from coreutils
109995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109997         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109998         0.12.1.  These files are now being upgraded automatically by
109999         ../config/srclist-update.
110001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110003         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
110004         Normalize leading white space and remove trailing white space.
110005         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
110006         notice, as per ../config/srclist-update.
110008         Merge from coreutils.
110009         * lib/euidaccess.h: New file.
110010         * lib/euidaccess.c: Include it.
110011         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
110012         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
110013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
110015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110017         * config/srclist-update: Add copyright notice.
110018         (remove_id_lines, remove_trailing_blanks): New constants.
110019         (fixfile): Use them to normalize spacing a bit in copied files.
110020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
110021         Normalize leading white space and remove trailing white space.
110023         * config/texinfo.tex: Sync with texinfo.
110025         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
110026         strtoul.c from libc, to merge coreutils whitespace changes.
110028         * config/srclist.txt: Get the following m4 files from gettext:
110029         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
110030         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
110031         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
110032         wint_t.m4.
110034 2003-08-12  Karl Berry  <karl@gnu.org>
110036         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
110037         been made.
110039 2003-08-11  Paul Eggert  <eggert@twinsun.com>
110041         * modules/gnu-source, m4/gnu-source.m4:
110042         Remove; we're assuming Autoconf 2.54 or later now.
110043         Suggested by Bruno Haible.
110044         * MODULES.html.sh (func_all_modules): Remove gnu-source.
110046 2003-08-11  Bruno Haible  <bruno@clisp.org>
110048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
110050 2003-08-11  Bruno Haible  <bruno@clisp.org>
110052         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
110053         (vasnprintf): Use it instead of wcslen.
110055 2003-08-11  Bruno Haible  <bruno@clisp.org>
110057         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
110058         value to ensure that _Bool promotes to int. Use #define for _Bool when
110059         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
110061 2003-08-10  Karl Berry  <karl@gnu.org>
110063         * lib/regex.h: update from libc (whitespace fix).
110065 2003-08-09  Paul Eggert  <eggert@twinsun.com>
110067         Merge some files from coreutils.  These changes were
110068         originally made by Jim Meyering.
110069         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
110070         many older Unixes require this.
110071         * lib/alloca.c (alloca): Remove cast to argument of free;
110072         no longer needed in C89.
110073         * lib/alloca_.h, regex.h: Fix white space to match
110074         what GNU indent does.
110076 2003-08-09  Paul Eggert  <eggert@twinsun.com>
110078         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
110079         apparently Emacs's Unicode mode got confused before my 2003-08-05
110080         checkin.
110082 2003-08-08  Paul Eggert  <eggert@twinsun.com>
110084         * m4/extensions.m4: New file.
110085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
110086         Require gl_USE_SYSTEM_EXTENSIONS.
110087         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
110088         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
110090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
110092         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
110093         * modules/extensions, modules/gnu-source: New files.
110094         * modules/timespec, modules/unlocked-io: Depend on extensions.
110096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
110098         * modules/restrict: New file.
110099         * MODULES.html.sh (func_all_modules): Add restrict.
110100         * modules/regex: Depend on restrict.
110102 2003-08-07  Paul Eggert  <eggert@twinsun.com>
110104         * m4/restrict.m4: New file.
110105         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
110107 2003-08-07  Bruno Haible  <bruno@clisp.org>
110109         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
110110         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
110112 2003-08-07  Bruno Haible  <bruno@clisp.org>
110114         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
110115         makes the module 'getndelim2' compatible with the module 'getline'.
110117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110119         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
110120         byte with "\201" to avoid glitches when editing that source file
110121         with multi-gnome-terminal.
110123 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110125         * lib/bumpalloc.h: Remove.
110127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110129         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
110130         * modules/bumpalloc: Remove.
110132 2003-08-04  Paul Eggert  <eggert@twinsun.com>
110134         * lib/getloadavg.c: Change copyright notice and spacing to conform to
110135         GNU coding style.
110137         Merge from coreutils.
110138         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
110139         1. From glibc.
110140         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
110141         from Karl Berry, implemented by Jim Meyering.
110142         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
110143         from Dmitry V. Levin.
110144         Remove anachronistic cast of xrealloc.
110145         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
110146         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
110147         type. Otherwise, it wouldn't compile with at least /bin/cc on
110148         ymp-cray-unicos9.0.2.X.
110149         Combine two mostly-identical uses of alloca into one.
110150         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
110152 2003-08-04  Dave Love  <d.love@dl.ac.uk>
110154         [From Emacs.]
110156         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
110157         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
110158         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
110159         obsolete NLIST_NAME_UNION.
110160         [__GNU__]: Undef BSD and FSCALE.
110161         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
110163 2003-08-03  Paul Eggert  <eggert@twinsun.com>
110165         * lib/stdbool_.h (_Bool): Make it signed char, instead of
110166         an enum type, so that it's guaranteed to promote to int.  See:
110167         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
110169 2003-08-03  Karl Berry  <karl@gnu.org>
110171         * config/depcomp: update from automake.
110173 2003-07-31  Paul Eggert  <eggert@twinsun.com>
110175         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
110176         (strerror): Don't assume that a printable int fits in 14 bytes.
110178 2003-07-31  Bruno Haible  <bruno@clisp.org>
110180         * modules/getpass-gnu: New file.
110181         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
110183 2003-07-31  Bruno Haible  <bruno@clisp.org>
110185         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
110187 2003-07-24  Karl Berry  <karl@gnu.org>
110189         * config/missing: update from automake.
110191 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
110192             Bruno Haible  <bruno@clisp.org>
110194         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
110195         * lib/getline.c (getline, getdelim): Likewise.
110196         Remove _GNU_SOURCE define; now it's defined in config.h through
110197         m4/getline.m4.
110199 2003-07-23  Karl Berry  <karl@gnu.org>
110201         * config/config.sub: update from prep.
110203 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110205         * modules/xalloc (Depends-on): Add exitfail.
110206         * modules/xmemcoll: Likewise.
110208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110210         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
110211         over-parenthesization in macros.
110213         Sync with coreutils.
110215         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
110216         required by C99.
110218         Use `exit_failure' for xalloc and xmemcoll instead of their own
110219         private exit-failure variables.
110220         * lib/xalloc.h (xalloc_exit_failure): Remove.
110221         * lib/xmalloc.c: Likewise.  Include exitfail.h.
110222         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
110223         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
110224         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
110225         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
110227 2003-07-20  Jim Meyering  <jim@meyering.net>
110229         * modules/closeout (Depends-on): Add exitfail.
110230         Suggestion from Bruno Haible.
110232 2003-07-19  Karl Berry  <karl@gnu.org>
110234         * config/config.sub: update from prep.
110236 2003-07-18  Paul Eggert  <eggert@twinsun.com>
110238         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
110239         Remove.
110240         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
110241         to test that it can stand by itself.  Include "exitfail.h".
110242         Clients should set exit_failure instead.
110243         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
110245 2003-07-18  Bruno Haible  <bruno@clisp.org>
110247         * modules/getndelim2: New file.
110248         * modules/getline: Share files with module getndelim2.
110249         * modules/getnline: Depend on getndelim2 instead of sharing files with
110250         it. Add getnline.c to lib_SOURCES.
110251         * MODULES.html.sh (func_all_modules): Add getndelim2.
110253 2003-07-18  Bruno Haible  <bruno@clisp.org>
110255         * m4/getndelim2.m4: New file.
110256         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
110257         invoke gl_PREREQ_GETNDELIM2.
110258         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
110259         gl_PREREQ_GETNDELIM2.
110260         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
110261         gl_GETNDELIM2.
110263 2003-07-18  Bruno Haible  <bruno@clisp.org>
110265         * lib/getndelim2.h: New file.
110266         * lib/getndelim2.c: Make into a module of its own. Include config.h,
110267         getndelim2.h.
110268         (getndelim2): Make non-static. Change return type to ssize_t.
110269         * lib/getline.h: Change argument names.
110270         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
110271         * lib/getnline.c: Include getndelim2.h.
110273 2003-07-18  Andreas Schwab  <schwab@suse.de>
110275         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
110277 2003-07-17  Karl Berry  <karl@gnu.org>
110279         * config/config.sub: update from prep.
110281 2003-07-17  Bruno Haible  <bruno@clisp.org>
110283         * modules/getnline: New file.
110284         * modules/getline: Add lib/getndelim2.c to source file list.
110285         * MODULES.html.sh (func_all_modules): Add getnline.
110287 2003-07-17  Bruno Haible  <bruno@clisp.org>
110289         * m4/getnline.m4: New file.
110291 2003-07-17  Bruno Haible  <bruno@clisp.org>
110293         * m4/Makefile.am.in: Remove file.
110294         * m4/Makefile.am: Remove file.
110295         * m4/Makefile.in: Remove file.
110297 2003-07-17  Bruno Haible  <bruno@clisp.org>
110299         * lib/getnline.h: New file.
110300         * lib/getnline.c: New file.
110301         * lib/getndelim2.c: New file, extracted from getline.c.
110302         (getndelim2): Renamed from getdelim2, with added nmax argument.
110303         * lib/getline.c: Include getndelim2.c.
110304         (getdelim2): Moved out to getndelim2.c.
110305         (getline, getdelim): Update.
110307 2003-07-17  Bruno Haible  <bruno@clisp.org>
110309         * lib/Makefile.am: Remove file.
110310         * lib/Makefile.in: Remove file.
110312 2003-07-17  Bruno Haible  <bruno@clisp.org>
110314         * configure.in: Remove file.
110315         * Makefile.in: Remove file.
110317 2003-07-17  Bruno Haible  <bruno@clisp.org>
110319         * MODULES.html.sh: Put the </BODY> right before </HTML>.
110321 2003-07-16  Karl Berry  <karl@gnu.org>
110323         * config/srclist-update: was running fixlicense twice, which caused
110324                 texinfo.tex to be nullified for some reason.  Simplify,
110325                 $gplsrc is no longer needed as far as I can see?
110327 2003-07-16  Jim Meyering  <jim@meyering.net>
110329         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
110331 2003-07-15  Paul Eggert  <eggert@twinsun.com>
110333         * config/srclist.txt: Get the following files from gettext-runtime/intl
110334         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
110335         ref-del.sin.  From Bruno Haible.
110336         * config/srclist-update (fixfile): Change grep pattern again, since the
110337         previous fix didn't work (there was another trailing $).  Use
110338         '[$]' to escape the $s.
110340 2003-07-15  Karl Berry  <karl@gnu.org>
110342         * lib/vasnprintf.c: update from gettext.
110344 2003-07-15  Karl Berry  <karl@gnu.org>
110346         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
110347         gets expanded when surrounded by '$'.
110349 2003-07-15  Jim Meyering  <jim@meyering.net>
110351         * modules/save-cwd: Don't depend on error.  From Derek Price.
110353 2003-07-15  Jim Meyering  <jim@meyering.net>
110355         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
110357 2003-07-14  Simon Josefsson  <jas@extundo.com>
110359         * modules/mempcpy: New file.
110360         * MODULES.html.sh (func_all_modules): Add mempcpy.
110362 2003-07-14  Simon Josefsson  <jas@extundo.com>
110364         * m4/mempcpy.m4: New file.
110366 2003-07-14  Simon Josefsson  <jas@extundo.com>
110368         * lib/mempcpy.h: New file.
110369         * lib/mempcpy.c: New file.
110371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110373         * modules/getdate, modules/posixtm: Depend on mktime.
110375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110377         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
110378         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
110379         unicodeio.c, unicodeio.h, unlocked-io.h:
110380         Switch from LGPL to GPL.
110382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110384         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
110385         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
110386         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
110387         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
110388         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
110389         updated automatically by ../config/srclist-update.  This changes
110390         their license from LPGL to GPL.
110392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110394         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
110395         assumed to refer to the root of the most recent stable gettext version.
110396         * config/srclistvars.sh: Add defaults for eggert.
110397         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
110398         Match "This program" as well as "The program".  This is needed
110399         for gettext.
110401 2003-07-14  Jim Meyering  <jim@meyering.net>
110403         Don't emit diagnostics.  Let callers do that.
110404         * lib/save-cwd.c: Don't include "error.h".
110405         (save_cwd): Don't call error.  Ensure that errno is valid
110406         when returning nonzero.
110408         * lib/save-cwd.h (restore_cwd): Update prototype.
110409         * lib/save-cwd.c (restore_cwd): Remove two parameters.
110410         Simplify.  Don't call error upon failure.  Let callers do that.
110411         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
110412         when auditing is enabled.  But don't bother updating the #if.
110414 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
110416         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
110417         it breaks C++ compilation.
110418         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
110420 2003-07-10  Simon Josefsson  <jas@extundo.com>
110422         * modules/strchrnul (Makefile.am): Add strchrnul.h.
110424 2003-07-10  Jim Meyering  <jim@meyering.net>
110426         * m4/clock_time.m4: Remove trailing blank.
110427         * m4/intmax_t.m4: Likewise.
110429 2003-07-10  Jim Meyering  <jim@meyering.net>
110431         * lib/vasnprintf.c: Remove trailing blanks.
110432         Make cpp indentation consistent.
110434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110436         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
110437         posixver.c, strftime.c, strnlen.c, strverscmp.c:
110438         Switch from LGPL to GPL.
110440 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110442         * config/srclist.txt: Sort sublists.  Add
110443         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
110444         that differ from gnulib for one reason or another; we'd like this list
110445         to be smaller but for now let's document what we have.
110447 2003-07-08  Paul Eggert  <eggert@twinsun.com>
110449         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
110450         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
110451         and sweeter "eval x=$x".
110452         * config/srclist.txt: Get lib/argp* from glibc.
110454 2003-07-07  Paul Eggert  <eggert@twinsun.com>
110456         * lib/mktime.c: Fix some boundary cases and remove need for floating
110457         point.
110459         Issue a compile-time diagnostic if time_t is floating point, or if
110460         two's complement arithmetic is not in effect, or if arithmetic
110461         right shift does not propagate the sign.  These assumptions were
110462         all in the original code but they weren't checked.
110464         (TIME_T_MIDPOINT, verify): New macros.
110465         (__isleap): Remove; it has integer overflow problems.
110466         (leapyear): New function, without those problems.
110467         (ydhms_tm_diff): Remove; splitting into two parts.
110468         (ydhms_diff): New function, containing the arithmetic part of
110469         the old ydhms_tm_diff function.  Issue a compile-time
110470         diagnostic if we are not using C99 integer division.
110471         Avoid casts when possible.
110472         (guess_time_tm): New function, containing the checking part of
110473         the old ydhms_tm_diff function.  Return the new value, rather than
110474         the difference between it and the old.  Accept a new argument T
110475         so that *T specifies the old value.  Check for overflow in the result.
110477         (__mktime_internal): Use a time_t offset, not a long int offset.
110478         This undoes the 2003-06-04 change, which is no longer needed now
110479         that we have better overflow checking.
110480         (localtime_offset): Likewise.
110482         (__mktime_internal): Avoid harmful overflow on hosts where time_t
110483         and long are 64-bit but int is only 32-bit.
110484         (ydhms_diff): Use long int to store year1 and yday1.
110485         Issue a compile-time diagnostic if long int is not wide enough.
110487         (__mktime_internal): Use long int to store adjusted year and yday.
110488         Use plain C rather than preprocessor commands, if that doesn't
110489         affect efficiency.
110490         Check for overflow (and try to repair) after each probe
110491         rather than checking only at the very end.  This avoids some bugs
110492         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
110493         does not equal GMT offset at maximum time).
110494         Use integer to check for overflow rather than floating point; this
110495         is more portable to non-IEEE hosts, and is a tad faster.
110496         When we detect that we are oscillating between two values,
110497         don't check whether tm_isdst has the requested value, since
110498         we already know the answer.  When tm_isdst has the wrong value,
110499         use a different heuristic to find the right one, based on the
110500         extreme values actually observed in practice in tz2003a,
110501         rather than the (overly optimistic) "previous 3 calendar quarters".
110503         (not_equal_tm, print_tm, check_result): Use "const T" rather than
110504         "T const" to accommodate glibc style.
110505         (check_result): Use less-confusing report format.  "long" -> "long int.
110506         (main): Likewise.
110507         Don't loop if the iteration overflows time_t.
110508         Allow a negative step in the iteration.
110510 2003-07-06  Karl Berry  <karl@gnu.org>
110512         * config/depcomp: update from automake.
110513         * config/config.sub: update from prep.
110515 2003-07-03  Karl Berry  <karl@gnu.org>
110517         * config/config.guess: update from prep.
110519 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110521         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
110522         xreadlink.c now includes it unconditionally.
110524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110526         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
110527         having it depend on HAVE_SYS_TYPES_H.
110529 2003-07-01  Bruno Haible  <bruno@clisp.org>
110531         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
110532         <sys/types.h> should be sufficient.
110533         Reported by Paul Eggert.
110535 2003-06-26  Karl Berry  <karl@gnu.org>
110537         * config/depcomp: update from automake.
110539 2003-06-26  Bruno Haible  <bruno@clisp.org>
110541         * modules/human: Depend on module stdbool.
110543 2003-06-25  Bruno Haible  <bruno@clisp.org>
110545         * modules/readlink: New file.
110546         * modules/xreadlink: Depend on it.
110547         * MODULES.html.sh (func_all_modules): Add readlink.
110549 2003-06-25  Bruno Haible  <bruno@clisp.org>
110551         * m4/readlink.m4: New file.
110553 2003-06-25  Bruno Haible  <bruno@clisp.org>
110555         * lib/readlink.c: New file.
110557 2003-06-22  Karl Berry  <karl@gnu.org>
110559         * config/srclist.txt: update mkinstalldirs from automake.
110560         * config/mkinstalldirs: update.
110562 2003-06-22  Bruno Haible  <bruno@clisp.org>
110564         Portability to mingw32.
110565         * m4/ssize_t.m4: New file, from GNU gettext.
110566         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
110567         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
110569 2003-06-22  Bruno Haible  <bruno@clisp.org>
110571         * modules/safe-read: Add m4/ssize_t.m4.
110572         * modules/xreadlink: Add m4/ssize_t.m4.
110574 2003-06-20  Bruno Haible  <bruno@clisp.org>
110576         Assume C89, so PARAMS isn't needed.
110577         * lib/unicodeio.h (PARAMS): Remove.
110578         * lib/unicodeio.c: Don't use PARAMS.
110580 2003-06-18  Karl Berry  <karl@gnu.org>
110582         * config/config.{guess,sub}: update from prep.
110584 2003-06-18  Jim Meyering  <jim@meyering.net>
110586         Merge changes from coreutils.
110587         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
110588         Remove explicit declarations of xmalloc and realloc.
110589         Include xalloc.h.
110590         (read_utmp): Remove anachronistic cast of xmalloc.
110592 2003-06-17  Paul Eggert  <eggert@twinsun.com>
110594         Assume C89, so PARAMS isn't needed.
110595         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
110596         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
110597         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
110598         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
110599         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
110600         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
110601         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
110602         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
110603         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
110604         lib/xstrtod.h, lib/xstrtol.h: Likewise.
110605         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
110606         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
110607         no longer needed. Anyway, config.h should always be included before any
110608         other file.
110610 2003-06-11  Simon Josefsson  <jas@extundo.com>
110612         * modules/sysexits: New file.
110613         * MODULES.html.sh (func_all_modules): Add sysexits.
110615 2003-06-11  Simon Josefsson  <jas@extundo.com>
110617         * lib/sysexit_.h: New file.
110619 2003-06-11  Derek Price  <derek@ximbiot.com>
110621         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
110622         necessary.
110624 2003-06-11  Bruno Haible  <bruno@clisp.org>
110626         * m4/sysexits.m4: New file.
110628 2003-06-10  Simon Josefsson  <jas@extundo.com>
110630         * lib/argp.h: New file, from glibc.
110631         * lib/argp-ba.c: New file, from glibc.
110632         * lib/argp-eexst.c: New file, from glibc.
110633         * lib/argp-fmtstream.c: New file, from glibc.
110634         * lib/argp-fmtstream.h: New file, from glibc.
110635         * lib/argp-fs-xinl.c: New file, from glibc.
110636         * lib/argp-help.c: New file, from glibc.
110637         * lib/argp-namefrob.h: New file, from glibc.
110638         * lib/argp-parse.c: New file, from glibc.
110639         * lib/argp-pv.c: New file, from glibc.
110640         * lib/argp-pvh.c: New file, from glibc.
110641         * lib/argp-xinl.c: New file, from glibc.
110643 2003-06-10  Simon Josefsson  <jas@extundo.com>
110645         * modules/strchrnul: New file.
110647 2003-06-10  Simon Josefsson  <jas@extundo.com>
110649         * modules/argp: New file.
110651 2003-06-10  Simon Josefsson  <jas@extundo.com>
110653         * m4/strchrnul.m4: New file.
110655 2003-06-10  Simon Josefsson  <jas@extundo.com>
110657         * lib/strchrnul.h: New file.
110658         * lib/strchrnul.c: New file.
110660 2003-06-10  Bruno Haible  <bruno@clisp.org>
110662         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
110664 2003-06-07  Karl Berry  <karl@gnu.org>
110666         * config/config.{guess,sub}: update from prep.
110668 2003-06-07  Jim Meyering  <jim@meyering.net>
110670         * modules/strtod: Use $(...) notation, not @...@ for
110671         AC_REPLACE'd variables.
110672         * modules/localcharset: Likewise.
110674 2003-06-07  Jim Meyering  <jim@meyering.net>
110676         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
110677         in place of my name in the copyright comment.
110678         Remove definition and uses of __P.
110680         From coreutils.
110681         * lib/stat.c: Don't declare xmalloc explicitly.
110682         Instead, include "xalloc.h".
110683         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
110684         xrealloc, and xcalloc return values.
110685         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
110686         Improve comment.
110687         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
110689 2003-06-07  Bruno Haible  <bruno@clisp.org>
110691         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
110692         avoid AC_CONFIG_LINKS.
110693         * modules/fnmatch (Makefile.am): Use explicit creation rule for
110694         fnmatch.h, to avoid AC_CONFIG_LINKS.
110695         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
110697 2003-06-07  Bruno Haible  <bruno@clisp.org>
110699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
110700         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
110701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110702         directory.
110703         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
110704         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110705         directory.
110707 2003-06-06  Jim Meyering  <jim@meyering.net>
110709         Merge from coreutils.
110710         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
110711         Consolidate declarations and initializations of *_base* locals.
110713         Merge from coreutils.
110714         This avoids a core dump on systems without GNU putenv,
110715         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
110716         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
110717         (unsetenv): New static function, from GNU libc.
110718         (rpl_putenv): Use it.
110720         * lib/modechange.c: Remove trailing blanks.
110722         Merge from coreutils.
110723         * lib/fsusage.c: Remove declaration of statfs.
110724         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
110726         * lib/posixtm.c: Include <stdbool.h> unconditionally.
110728 2003-06-06  Jim Meyering  <jim@meyering.net>
110730         * lib/stdbool_.h: Renamed from stdbool.h.in.
110732 2003-06-06  Jim Meyering  <jim@meyering.net>
110733             Bruno Haible  <bruno@clisp.org>
110735         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
110736         Adjust Makefile.am snippet not to redirect directly to target.
110737         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
110739 2003-06-05  Paul Eggert  <eggert@twinsun.com>
110741         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
110742         mismatch, look in future quarters as well as past.  This fixes a
110743         bug when processing fall-backwards gaps immediately after a long
110744         period of daylight-saving time.
110746         * lib/mktime.c: Assume freestanding C89 or better.
110747         (HAVE_LIMITS_H): Remove.  Assume it's 1.
110748         (__P): Remove; not used.
110749         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
110750         (mktime, not_equal_tm, print_tm, check_result,
110751         main): Use prototypes.  Use const * where appropriate.
110752         (main): Fix typo in testing code that uncovered by above changes.
110753         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
110755 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110757         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
110758         locale.h, localeconv.  This merges changes from coreutils.
110760         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
110761         It can be removed after the next Autoconf is released.
110762         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
110763         needed.
110765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110767         * lib/mktime.c: Fix Debian bug 177940
110768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
110769         (localtime_offset): Now long int, not time_t, because we want it
110770         to be guaranteed to be signed.  All uses changed.
110771         (__mktime_internal): If overflow would occur when adding offset,
110772         don't add it.
110774         Merge 'human' changes from coreutils.  Rewrite to support
110775         locale-specific notations like thousands separators.
110776         * lib/human.c: Simplify authorship notice.
110777         Include human.h immediately after config.h.
110778         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
110779         <limits.h>: Do not include, since human.h does.
110780         (SIZE_MAX, UINTMAX_MAX): New macros.
110781         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
110782         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
110783         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
110784         (power_letter): Renamed from suffixes.
110785         (generate_suffix_backwards): Remove.
110786         (adjust_value): Now takes int style (because of human.h changes)
110787         and long double value (for greater precision on some platforms).
110788         (group_number): New function.
110789         (human_readable): Use it.  Use integer options, not enum.
110790         Put the options before the sizes in the arg list.
110791         Support all the new options.
110792         The old human_readable function has been removed;
110793         use inttostr.h instead.
110794         (human_readable, default_block_size, humblock):
110795         Use uintmax_t, not int, for block sizes.
110796         (human_readable_inexact, block_size_types): Remove.
110797         (block_size_opts): New constant.
110798         (human_options): Renamed from human_block_size, with new signature
110799         that allows block sizes up to UINTMAX_MAX.  All callers changed.
110800         * lib/human.h: Add copyright and authorship notice.
110801         Include <limits.h> and <stdbool.h> unconditionally.
110802         (PARAMS): Remove.  All uses removed.
110803         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
110804         (enum human_inexact_style): Remove tag; now a nameless enum.
110805         (human_floor, human_ceiling, human_round_to_even): Now have
110806         values 2, 0, 1 rather than -1, 1, 0.
110807         (human_group_digits, human_suppress_point_zero, human_autoscale,
110808         human_base_1024, human_SI, human_B): New constants.
110809         (human_readable_inexact, human_block_size): Remove.
110810         (human_readable): Size args are now uintmax_t, not int.
110811         (human_options): New decl.
110813         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
110814         unnecessary now that we assume C89 or better.  This change
110815         imported from coreutils.
110817         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110818         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
110819         in the 2003-05-30 sync from glibc.
110821         .h files should stand alone, but we shouldn't include <sys/types.h>
110822         if we can get away with just <stddef.h>.
110824         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
110825         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
110826         rather than <sys/types.h>, as we merely need size_t.
110827         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
110828         to get size_t.
110829         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
110830         Include <stdio.h>, to get FILE.
110831         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
110832         memcasecmp.h has included <stddef.h> and all we need is size_t.
110833         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
110834         our interface, instead of including <sys/types.h>
110836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110838         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
110839         now, as glibc mktime is buggy on non-glibc systems.
110841 2003-06-03  Karl Berry  <karl@gnu.org>
110843         * config/config.sub: update from prep.
110845 2003-06-02  Paul Eggert  <eggert@twinsun.com>
110847         [from coreutils]
110848         Fix some minor time-related bugs with POSIX time arguments.
110849         Some valid time stamps were being rejected (notably -1, and
110850         time stamps before 1900 on 64-bit hosts).  And some invalid
110851         time stamps were being accepted, e.g. September 31.
110853         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110854         that we can return (time_t) -1 successfully.
110855         * lib/posixtm.c: Likewise.
110856         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110857         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110858         (t): Remove static var.
110859         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110860         of static var.  All uses changed.
110861         (year): Do not reject years before 1900; they can occur with
110862         64-bit time_t.
110863         (posix_time_parse): Do not check for out-of-range components;
110864         that is now the caller's responsibility, since our checks were
110865         only approximations.
110866         (posixtime): Use mktime to check for out-of-range components,
110867         since it knows them exactly.
110868         If mktime returns (time_t) -1, check whether an error actually occurred
110869         by invoking localtime on -1.
110870         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110871         posixtime failures better.
110872         Improve the test data (in comments only).
110874 2003-06-02  Karl Berry  <karl@gnu.org>
110876         * config/mkinstalldirs (version): new variable.
110877         (--version): new option.
110878         (usage): improve message.
110880 2003-05-30  Karl Berry  <karl@gnu.org>
110882         * lib/mktime.c: update from libc.
110884 2003-05-30  Bruno Haible  <bruno@clisp.org>
110886         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110887         * config/config.rpath: Upgrade to gettext-0.12.1.
110889 2003-05-30  Bruno Haible  <bruno@clisp.org>
110891         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110892         * m4/nls.m4: New file, from gettext-0.12.1.
110893         * m4/po.m4: New file, from gettext-0.12.1.
110894         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110896 2003-05-30  Bruno Haible  <bruno@clisp.org>
110898         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110899         * lib/localcharset.h: Likewise.
110900         * lib/localcharset.c: Likewise.
110902 2003-05-29  Karl Berry  <karl@gnu.org>
110904         * config/config.rpath: update from gettext.
110906 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110908         Assume the headers required for C89 freestanding compilers.
110909         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110910         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110911         * m4/human.m4 (gl_HUMAN): Likewise.
110912         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110914         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110915         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110917         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110921         Assume the headers required for C89 freestanding compilers.
110922         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110923         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110924         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110925         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110926         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110927         define, since <limits.h> is guaranteed to do that.
110928         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110929         * lib/exclude.c: Include <stdbool.h> unconditionally.
110930         * lib/tempname.c: Include <stddef.h> unconditionally.
110931         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110932         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110933         <stddef.h> does that.
110934         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110935         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110936         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110937         needed.
110938         * lib/xstrtol.c: Likewise.
110939         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110940         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110942         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110943         warnings on some platforms.
110945         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110946         arbitrarily.
110948 2003-05-26  Jim Meyering  <jim@meyering.net>
110950         Merge in a change from coreutils:
110951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110952         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110953         that condition, rather than `-1' which is slightly misleading.
110954         Change the name of the cache variable to have the gl_ prefix.
110955         Prompted by a patch from Richard Dawe for DJGPP.
110957 2003-05-24  Karl Berry  <karl@gnu.org>
110959         * config/config.guess: update from prep.
110961 2003-05-22  Karl Berry  <karl@gnu.org>
110963         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110965 2003-05-20  Karl Berry  <karl@gnu.org>
110967         * config/config.guess: update from prep.
110969 2003-05-18  Karl Berry  <karl@gnu.org>
110971         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110972         might actually be set by the user.
110974         * config/depcomp, install-sh, mdate-sh: update from automake.
110976 2003-05-17  Bruno Haible  <bruno@clisp.org>
110978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110979         invalid expansion for AC_EGREP_CPP.
110980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110982         Suggested by Akim Demaille <akim@epita.fr> in
110983         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110985 2003-05-12  Jim Meyering  <jim@meyering.net>
110987         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110988         the space-padded-by-default conversion specifiers, %e, %k, %l.
110990 2003-05-12  Bruno Haible  <bruno@clisp.org>
110992         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110993         the string is longer than 4 KB.
110995 2003-05-11  Karl Berry  <karl@gnu.org>
110997         * config/config.{guess,sub}: update from prep.
110999 2003-05-09  Bruno Haible  <bruno@clisp.org>
111001         * modules/error: Add m4/strerror_r.m4 to file list.
111003 2003-05-03  Bruno Haible  <bruno@clisp.org>
111005         Upgrade to Unicode-4.0.
111006         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
111007         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
111008         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
111009         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
111010         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
111011         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
111012         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
111013         Change width of U+E0100..U+E01EF from 1 to 0.
111015 2003-04-25  Jim Meyering  <jim@meyering.net>
111017         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
111018         of type size_t, not int.
111020 2003-04-25  Bruno Haible  <bruno@clisp.org>
111022         * lib/copy-file.c: Include <stddef.h>, for size_t.
111024 2003-04-21  Paul Eggert  <eggert@twinsun.com>
111026         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
111027         code which expansion is under static control.  Patch imported from
111028         Akim Demaille's patch to Bison; see
111029         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
111031 2003-04-14  Bruno Haible  <bruno@clisp.org>
111033         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
111035 2003-04-11  Jim Meyering  <jim@meyering.net>
111037         Merge changes from Coreutils.
111039         2003-03-22  Jim Meyering  <jim@meyering.net>
111041         * lib/strftime.c (widen): Cast alloca return value to proper type.
111043         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
111045         From GNU libc.
111046         * lib/strftime.c (my_strftime): Handle very large width
111047         specifications for numeric values correctly.  Improve checks for
111048         overflow.
111050         2003-01-19  Jim Meyering  <jim@meyering.net>
111052         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
111053         definitions.
111054         (nl_get_alt_digit) [! defined my_strftime]: Define.
111055         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
111056         _nl_get_alt_digit and _nl_get_walt_digit.
111058         * lib/strftime.c (my_strftime): Merge in locale-related changes from
111059         libc. These changes have no effect outside of _LIBC.
111061 2003-04-10  Bruno Haible  <bruno@clisp.org>
111063         * modules/findprog: New file.
111064         * MODULES.html.sh (func_all_modules): Add it.
111066 2003-04-10  Bruno Haible  <bruno@clisp.org>
111068         * m4/findprog.m4: New file.
111069         * m4/eaccess.m4: New file.
111071 2003-04-10  Bruno Haible  <bruno@clisp.org>
111073         * lib/findprog.h: New file, from GNU gettext.
111074         * lib/findprog.c: New file, from GNU gettext.
111076 2003-04-05  Jim Meyering  <jim@meyering.net>
111078         Merge changes from Coreutils.
111080         * lib/exclude.h (PARAMS): Remove definition and uses.
111081         * lib/exclude.c: Remove uses of `PARAMS'.
111083         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
111084         Add test-cases for DOS filenames. Declare program_name.
111085         (main): Set up program_name.  Patch by Rich Dawe.
111087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111088         error from mntctl.
111089         Use mntctl's return value to drive the entry-processing loop, since
111090         we can't rely on the value of the vmt_length member in the last
111091         entry.  On some systems doing so could result in exhausting
111092         virtual memory.  Based in part on a patch from Mike Jetzer.
111094 2003-04-04  Bruno Haible  <bruno@clisp.org>
111096         * modules/linebreak: New file.
111097         * MODULES.html.sh (func_all_modules): Add it.
111099 2003-04-04  Bruno Haible  <bruno@clisp.org>
111101         * m4/linebreak.m4: New file.
111103 2003-04-04  Bruno Haible  <bruno@clisp.org>
111105         * lib/linebreak.h: New file, from GNU gettext.
111106         * lib/linebreak.c: New file, from GNU gettext with slight
111107         modifications.
111108         * lib/lbrkprop.h: New file, from GNU gettext.
111110 2003-04-03  Bruno Haible  <bruno@clisp.org>
111112         * modules/utf8-ucs4: New file.
111113         * modules/utf16-ucs4: New file.
111114         * modules/ucs4-utf8: New file.
111115         * modules/ucs4-utf16: New file.
111116         * MODULES.html.sh (func_all_modules): Add them.
111118 2003-04-03  Bruno Haible  <bruno@clisp.org>
111120         * m4/utf-ucs4.m4: New file.
111121         * m4/ucs4-utf.m4: New file.
111123 2003-04-03  Bruno Haible  <bruno@clisp.org>
111125         * lib/utf8-ucs4.h: New file, from GNU gettext.
111126         * lib/utf16-ucs4.h: New file, from GNU gettext.
111127         * lib/ucs4-utf8.h: New file, from GNU gettext.
111128         * lib/ucs4-utf16.h: New file, from GNU gettext.
111130 2003-04-02  Bruno Haible  <bruno@clisp.org>
111132         * modules/binary-io: New file.
111133         * MODULES.html.sh (func_all_modules): Add it.
111135 2003-04-02  Bruno Haible  <bruno@clisp.org>
111137         * lib/binary-io.h: New file, from GNU gettext.
111139 2003-04-01  Bruno Haible  <bruno@clisp.org>
111141         * modules/pathname: New file.
111142         * MODULES.html.sh (func_all_modules): Add it.
111144 2003-04-01  Bruno Haible  <bruno@clisp.org>
111146         * lib/pathname.h: New file, from GNU gettext.
111147         * lib/concatpath.c: New file, from GNU gettext.
111149 2003-03-30  Bruno Haible  <bruno@clisp.org>
111151         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
111153 2003-03-30  Bruno Haible  <bruno@clisp.org>
111155         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
111156         function chown() doesn't exist.
111158 2003-03-28  Bruno Haible  <bruno@clisp.org>
111160         * modules/copy-file: New file.
111161         * MODULES.html.sh (func_all_modules): Add it.
111163 2003-03-28  Bruno Haible  <bruno@clisp.org>
111165         * m4/copy-file.m4: New file.
111167 2003-03-28  Bruno Haible  <bruno@clisp.org>
111169         * lib/copy-file.h: New file, from GNU gettext.
111170         * lib/copy-file.c: New file, from GNU gettext.
111172 2003-03-18  Jim Meyering  <jim@meyering.net>
111174         * lib/quote.c (quote_n): Fix typo in comment.
111176 2003-03-18  Bruno Haible  <bruno@clisp.org>
111178         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
111179         checking.
111180         * m4/onceonly_2_57.m4: Likewise.
111182 2003-03-17  Bruno Haible  <bruno@clisp.org>
111184         * m4/onceonly.m4: Require autoconf 2.54 or newer.
111185         (m4_quote): Remove macro.
111186         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
111188 2003-03-14  Jim Meyering  <jim@meyering.net>
111190         Merge changes from Coreutils.
111191         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
111192         to be const, in order to avoid warnings.
111193         (obstack_room): Likewise.
111194         (obstack_empty_p): Likewise.
111196 2003-03-14  Bruno Haible  <bruno@clisp.org>
111198         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
111199         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
111201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111203         Merge changes from Bison.
111204         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
111205         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
111206         when compiling Bison 1.875's `bitset bset = obstack_alloc
111207         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
111208         * lib/hash.c: Include <stdbool.h> unconditionally.
111210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111212         * m4/onceonly.m4 (m4_quote): New macro.
111213         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
111214         Quote AC_FOREACH variable-expansions properly.
111216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111218         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
111220 2003-03-09  Paul Eggert  <eggert@twinsun.com>
111222         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
111223         Reported by Bruce Becker; see:
111224         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
111226 2003-03-03  Paul Eggert  <eggert@twinsun.com>
111227             Bruno Haible  <bruno@clisp.org>
111229         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
111230         Reported by John Hughes, see
111231         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
111233 2003-02-20  Bruno Haible  <bruno@clisp.org>
111235         * MODULES.html.sh (func_all_modules): Add poll.
111237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111239         * modules/poll: New file.
111241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111243         * lib/poll_.h: New file.
111244         * lib/poll.c: New file.
111246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111248         * m4/poll.m4: New file.
111250 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111252         * modules/mathl: New file.
111254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111256         * lib/mathl.h: New file.
111257         * lib/acosl.c: New file.
111258         * lib/asinl.c: New file.
111259         * lib/atanl.c: New file.
111260         * lib/ceill.c: New file.
111261         * lib/cosl.c: New file.
111262         * lib/expl.c: New file.
111263         * lib/floorl.c: New file.
111264         * lib/frexpl.c: New file.
111265         * lib/ldexpl.c: New file.
111266         * lib/logl.c: New file.
111267         * lib/sincosl.c: New file.
111268         * lib/sinl.c: New file.
111269         * lib/sqrtl.c: New file.
111270         * lib/tanl.c: New file.
111271         * lib/trigl.c: New file.
111272         * lib/trigl.h: New file.
111274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111276         * m4/mathl.m4: New file.
111278 2003-02-18  Bruno Haible  <bruno@clisp.org>
111280         * MODULES.html.sh (func_all_modules): Add mathl.
111282 2003-02-17  Bruno Haible  <bruno@clisp.org>
111284         * modules/mkdtemp: New module.
111285         * MODULES.html.sh (func_all_modules): Add it.
111287 2003-02-17  Bruno Haible  <bruno@clisp.org>
111289         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
111291 2003-02-17  Bruno Haible  <bruno@clisp.org>
111293         * lib/mkdtemp.h: New file, from GNU gettext.
111294         * lib/mkdtemp.c: New file, from GNU gettext.
111296 2003-02-02  Jim Meyering  <jim@meyering.net>
111298         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
111299         e.g. glibc-2.2.93.
111301 2003-01-31  Bruno Haible  <bruno@clisp.org>
111303         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
111304         'rpl_rename'.
111305         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
111306         'rpl_strnlen'.
111307         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
111308         'rpl_strtod'.
111309         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
111310         'rpl_utime'.
111312 2003-01-31  Bruno Haible  <bruno@clisp.org>
111314         * lib/rename.c: #undef rename before defining rpl_rename.
111315         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
111317 2003-01-30  Bruno Haible  <bruno@clisp.org>
111319         * modules/vasnprintf, modules/vasprintf: New modules.
111320         * MODULES.html.sh (func_all_modules): Add them.
111322 2003-01-30  Bruno Haible  <bruno@clisp.org>
111324         * m4/signed.m4: New file, from GNU gettext.
111325         * m4/longdouble.m4: New file, from GNU gettext.
111326         * m4/wchar_t.m4: New file, from GNU gettext.
111327         * m4/wint_t.m4: New file, from GNU gettext.
111328         * m4/vasnprintf.m4: New file.
111329         * m4/vasprintf.m4: New file.
111331 2003-01-30  Bruno Haible  <bruno@clisp.org>
111333         * lib/printf-args.h: New file, from GNU gettext.
111334         * lib/printf-args.c: New file, from GNU gettext.
111335         * lib/printf-parse.h: New file, from GNU gettext.
111336         * lib/printf-parse.c: New file, from GNU gettext.
111337         * lib/vasnprintf.h: New file, from GNU gettext.
111338         * lib/vasnprintf.c: New file, from GNU gettext.
111339         * lib/asnprintf.c: New file, from GNU gettext.
111340         * lib/vasprintf.h: New file, from GNU gettext with modifications.
111341         * lib/vasprintf.c: New file, from GNU gettext.
111342         * lib/asprintf.c: New file, from GNU gettext.
111344 2003-01-29  Bruno Haible  <bruno@clisp.org>
111346         * modules/stpncpy: New module.
111347         * MODULES.html.sh (func_all_modules): Add it.
111349 2003-01-29  Bruno Haible  <bruno@clisp.org>
111351         * m4/stpncpy.m4: New file.
111353 2003-01-29  Bruno Haible  <bruno@clisp.org>
111355         * lib/stpncpy.h: New file, from GNU gettext with modifications.
111356         * lib/stpncpy.c: New file, from GNU gettext with modifications.
111358 2003-01-28  Bruno Haible  <bruno@clisp.org>
111360         * modules/c-ctype: New module.
111361         * MODULES.html.sh (func_all_modules): Add it.
111363 2003-01-28  Bruno Haible  <bruno@clisp.org>
111365         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
111366         Paul Eggert.
111367         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
111368         Paul Eggert.
111370 2003-01-27  Bruno Haible  <bruno@clisp.org>
111372         * modules/xsetenv: New module.
111373         * MODULES.html.sh (func_all_modules): Add it.
111375 2003-01-27  Bruno Haible  <bruno@clisp.org>
111377         * lib/xsetenv.h: New file, from GNU gettext.
111378         * lib/xsetenv.c: New file, from GNU gettext.
111380 2003-01-23  Jim Meyering  <jim@meyering.net>
111382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
111383         from working on systems without dirfd (at least Irix and OSF1/Tru64).
111385 2003-01-23  Bruno Haible  <bruno@clisp.org>
111387         * modules/minmax: New module.
111388         * MODULES.html.sh (func_all_modules): Add it.
111390 2003-01-23  Bruno Haible  <bruno@clisp.org>
111392         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
111393         Eggert.
111395 2003-01-22  Bruno Haible  <bruno@clisp.org>
111397         * modules/exit: New module.
111398         * MODULES.html.sh (func_all_modules): Add it.
111400 2003-01-22  Bruno Haible  <bruno@clisp.org>
111402         * lib/exit.h: New file, from GNU gettext.
111404 2003-01-19  Bruno Haible  <bruno@clisp.org>
111406         * gnulib-tool: Recognize option --extract-maintainer.
111407         (func_get_maintainer): New function.
111408         * modules/*: Add Maintainer entry.
111410 2003-01-16  Jim Meyering  <jim@meyering.net>
111412         * m4/regex.m4: The `regex' struct is both input and output.
111413         Initialize it before each use.  Patch by Tim Waugh.
111415 2003-01-16  Bruno Haible  <bruno@clisp.org>
111417         * MODULES.html.sh: Add a table of contents. Add the module name as
111418         leftmost column. Add hyperlinks.
111420 2003-01-15  Bruno Haible  <bruno@clisp.org>
111422         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
111424 2003-01-15  Bruno Haible  <bruno@clisp.org>
111426         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
111427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
111428         suffix.
111430 2003-01-15  Bruno Haible  <bruno@clisp.org>
111432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
111434 2003-01-15  Bruno Haible  <bruno@clisp.org>
111436         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
111437         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
111439 2003-01-14  Jim Meyering  <jim@meyering.net>
111441         * lib/same.c (same_name): Tweak a comment.
111443 2003-01-14  Bruno Haible  <bruno@clisp.org>
111445         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
111446         when a string comparison is sufficient.
111448 2003-01-14  Bruno Haible  <bruno@clisp.org>
111450         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
111451         'unsigned int'.
111453 2003-01-14  Bruno Haible  <bruno@clisp.org>
111455         * lib/hash-pjw.c: Add comment about low quality of this function.
111457 2003-01-13  Bruno Haible  <bruno@clisp.org>
111459         * modules/stpcpy: Distribute lib/stpcpy.h.
111460         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
111462 2003-01-13  Bruno Haible  <bruno@clisp.org>
111464         * modules/*: Add a description.
111465         * modules/strpbrk: Fix Makefile.am snippet.
111466         * modules/strtoimax: Fix dependencies.
111467         * modules/strtoumax: Likewise.
111469 2003-01-13  Bruno Haible  <bruno@clisp.org>
111471         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
111472         * modules/alloca (Makefile.am): All object files depend on alloca.h.
111473         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
111475 2003-01-13  Bruno Haible  <bruno@clisp.org>
111477         * gnulib-tool (func_create_testdir): Store config/* files in the main
111478         directory.
111479         * config.rpath: Move to ...
111480         * config/config.rpath: ... here.
111481         * modules/gettext: Contains config/config.rpath, not config.rpath.
111482         * modules/iconv: Likewise.
111484 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111486         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111487         to avoid collisions with libcurses and libreadline.
111489         * m4/getstr.m4: Remove.
111490         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
111492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111495         to avoid collisions with libcurses and libreadline.
111497         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
111498         * lib/getstr.h, getstr.c: Remove.
111499         * lib/getline.c: Include "getline.h", to check interface.
111500         Move body of old getstr.c here: this defines MIN_CHUNK and
111501         declares getdelim2, which is renamed from getstr.
111502         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
111504         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
111505         All uses changed.
111506         * lib/linebuffer.h: Likewise.
111507         (readline): Remove backward-compatibility macro.
111509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111512         to avoid collisions with libcurses and libreadline.
111513         * getstr: Remove.
111514         * MODULES.html.sh: Remove getstr.
111515         * modules/getline: Depend on unlocked-io, not getstr.
111517 2003-01-12  Jim Meyering  <jim@meyering.net>
111519         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
111521 2003-01-10  Bruno Haible  <bruno@clisp.org>
111523         * modules/alloca: Change Makefile.am requirements. Simplify Include
111524         requirements. Add lib/alloca_.h to file list.
111526 2003-01-10  Bruno Haible  <bruno@clisp.org>
111528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
111530 2003-01-10  Bruno Haible  <bruno@clisp.org>
111532         * lib/alloca_.h: New file.
111533         * lib/getdate.y: Unconditionally include alloca.h.
111534         * lib/makepath.c: Likewise.
111535         * lib/setenv.c: Likewise.
111536         * lib/userspec.c: Likewise.
111538 2003-01-09  Karl Berry  <karl@gnu.org>
111540         * MODULES.html.sh: include `dirname $0` in PATH, to find
111541         gnulib-tool.
111543 2003-01-09  Bruno Haible  <bruno@clisp.org>
111545         * modules/stdbool: Change configure.ac, Makefile.am requirements.
111546         Simplify Include requirements. Add lib/stdbool.h.in to file list.
111548 2003-01-09  Bruno Haible  <bruno@clisp.org>
111550         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
111552 2003-01-09  Bruno Haible  <bruno@clisp.org>
111554         * lib/stdbool.h.in: New file.
111556 2003-01-09  Bruno Haible  <bruno@clisp.org>
111558         * gnulib-tool (func_all_modules): Ignore files ending in ~.
111559         * MODULES.html.sh: Likewise.
111561 2003-01-08  Jim Meyering  <jim@meyering.net>
111563         * lib/full-write.c: Undefine and define-away `const' after inclusion
111564         of errno.h, not before.  Suggestion from Bruno Haible.
111566 2003-01-08  Bruno Haible  <bruno@clisp.org>
111568         * modules/full-read: Depend on full-write.
111570 2003-01-08  Bruno Haible  <bruno@clisp.org>
111572         * lib/safe-read.c: Include specification header first, to ensure its
111573         selfcontainedness.
111574         * lib/full-write.c: Likewise.
111576 2003-01-07  Jim Meyering  <jim@meyering.net>
111578         * lib/full-write.c: Rework so that it may serve to define full_read,
111579         too.
111580         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
111582 2003-01-07  Bruno Haible  <bruno@clisp.org>
111584         * lib/strtoimax.c: Include <stdint.h> as an alternative to
111585         <inttypes.h>.
111586         * lib/xstrtol.h: Likewise.
111587         * lib/xstrtoimax.c: Likewise.
111588         * lib/xstrtoumax.c: Likewise.
111589         * lib/human.h: Likewise.
111591         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
111592         on systems that have <inttypes.h> but not <stdint.h>.
111594 2003-01-07  Bruno Haible  <bruno@clisp.org>
111596         * MODULES.html.sh: Add copyright notice.
111597         (missed_files): Omit CVS directory entries.
111598         (func_module): Make it work with sed-3.02.
111599         * MODULES.txt: Remove file.
111601 2003-01-06  Jim Meyering  <jim@meyering.net>
111603         * lib/version-etc.c: Update year in translatable copyright string.
111605 2003-01-03  Karl Berry  <karl@gnu.org>
111607         * config/config.{guess,sub}: update from prep.
111609 2003-01-02  Karl Berry  <karl@gnu.org>
111611         * doc/COPYING.DOC: belatedly updated to 1.2.
111613 2003-01-01  Karl Berry  <karl@gnu.org>
111615         * gnulib-tool (func_verify_module): report module name $module in
111616         error message, not $1.
111617         * gnulib-tool (create-testdir): don't complain if destdir couldn't
111618         be created, only if it doesn't exist.
111619         * gnulib-tool (last_checkin_date): don't expand the $Date here.
111621 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111623         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
111625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111627         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
111628         memcmp if strcoll doesn't work.
111630 2002-12-31  Bruno Haible  <bruno@clisp.org>
111632         * lib/utime.c (utime_null): No need to call ftruncate if the file was
111633         nonempty.
111635 2002-12-31  Bruno Haible  <bruno@clisp.org>
111637         * lib/memcoll.c (STRCOLL): New macro.
111638         (memcoll): Use it.
111640 2002-12-31  Bruno Haible  <bruno@clisp.org>
111642         * lib/localcharset.h: New file.
111643         * lib/localcharset.c: Include it.
111644         * lib/unicodeio.c: Likewise.
111646 2002-12-31  Bruno Haible  <bruno@clisp.org>
111648         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
111649         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
111651 2002-12-31  Bruno Haible  <bruno@clisp.org>
111653         * lib/getline.h: Include <stddef.h>, for size_t.
111655         * lib/unicodeio.h: Include <stddef.h>, for size_t.
111656         * lib/unicodeio.c: Don't include <stddef.h>.
111658 2002-12-31  Bruno Haible  <bruno@clisp.org>
111660         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
111661         HAVE_TM_ZONE.
111663 2002-12-24  Karl Berry  <karl@gnu.org>
111665         * config/config.guess: update from prep.
111667 2002-12-24  Bruno Haible  <bruno@clisp.org>
111669         General infrasructure.
111670         * m4/README: Rewritten.
111671         * m4/onceonly.m4: New file.
111672         * m4/onceonly_2_57.m4: New file.
111674         Module atexit.
111675         * m4/atexit.m4: New file.
111677         Module strtod.
111678         * m4/strtod.m4: New file.
111680         Module strtol.
111681         * m4/strtol.m4: New file.
111683         Module strtoul.
111684         * m4/strtoul.m4: New file.
111686         Module memchr.
111687         * m4/memchr.m4: New file.
111689         Module memcmp.
111690         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
111691         (jm_FUNC_MEMCMP): Invoke it.
111693         Module memcpy.
111694         * m4/memcpy.m4: New file.
111696         Module memmove.
111697         * m4/memmove.m4: New file.
111699         Module memset.
111700         * m4/memset.m4: New file.
111702         Module strcspn.
111703         * m4/strcspn.m4: New file.
111705         Module strpbrk.
111706         * m4/strpbrk.m4: New file.
111708         Module strstr.
111709         * m4/strstr.m4: New file.
111711         Module strerror.
111712         * m4/strerror.m4: New file.
111714         Module mktime.
111715         * m4/mktime.m4: Renamed from jm-mktime.m4.
111716         (gl_PREREQ_MKTIME): New macro.
111717         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
111719         Module malloc.
111720         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
111721         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
111722         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
111724         Module realloc.
111725         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
111726         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
111727         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
111729         Module strftime.
111730         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
111731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
111732         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
111733         gl_TM_GMTOFF.
111734         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
111736         Module xalloc.
111737         * m4/xalloc.m4: New file.
111739         Module alloca.
111740         * m4/alloca.m4: New file.
111742         Module putenv.
111743         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
111744         (jm_FUNC_PUTENV): Invoke it.
111746         Module setenv.
111747         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
111748         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
111749         when invoked twice.
111750         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
111751         gt_FUNC_SETENV.
111753         Module memrchr.
111754         * m4/memrchr.m4: New file.
111756         Module stpcpy.
111757         * m4/stpcpy.m4: New file.
111759         Module strcase.
111760         * m4/strcase.m4: New file.
111762         Module strdup.
111763         * m4/strdup.m4: New file.
111765         Module strnlen.
111766         * m4/strnlen.m4: New file.
111768         Module strndup.
111769         * m4/strndup.m4: New file.
111771         Module xstrtod.
111772         * m4/xstrtod.m4: New file.
111774         Module xstrtol.
111775         * m4/xstrtol.m4: New file.
111777         Module getdate.
111778         * m4/getdate.m4: New file.
111780         Module unlocked-io.
111781         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
111782         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
111783         * m4/jm-glibc-io.m4n: Remove file.
111785         Module long-options.
111786         * m4/long-options.m4: New file.
111788         Module md5.
111789         * m4/md5.m4: New file.
111791         Module sha.
111792         * m4/sha.m4: New file.
111794         Module getstr.
111795         * m4/getstr.m4: New file.
111797         Module getline.
111798         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
111799         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
111800         <sys/types.h>, for size_t. Use the function name gnu_getline, not
111801         simply getline. Infoke gl_PREREQ_GETLINE.
111803         Module obstack.
111804         * m4/obstack.m4: New file.
111806         Module hash.
111807         * m4/hash.m4: New file.
111809         Module readtokens.
111810         * m4/readtokens.m4: New file.
111812         Module strverscmp.
111813         * m4/strverscmp.m4: New file.
111815         Module stdbool.
111816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
111817         OSF/1.
111819         Module strtoll.
111820         * m4/strtoll.m4: New file.
111822         Module strtoull.
111823         * m4/strtoull.m4: New file.
111825         Module strtoimax.
111826         * m4/strtoimax.m4: New file.
111828         Module strtoumax.
111829         * m4/strtoumax.m4: New file.
111831         Module xstrtoimax.
111832         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
111833         jm_AC_PREREQ_XSTRTOIMAX.
111834         Moved the strtol prerequisites to strtol.m4.
111835         Moved the strtoll prerequisites to strtoll.m4.
111836         Moved the strtoimax prerequisites to strtoimax.m4.
111838         Module xstrtoumax.
111839         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
111840         jm_AC_PREREQ_XSTRTOUMAX.
111841         Moved the strtoul prerequisites to strtoul.m4.
111842         Moved the strtoull prerequisites to strtoull.m4.
111843         Moved the strtoumax prerequisites to strtoumax.m4.
111845         Module chown.
111846         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
111847         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
111849         Module dup2.
111850         * m4/dup2.m4: New file.
111852         Module ftruncate.
111853         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111854         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111856         Module getgroups.
111857         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111858         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111860         Module gettimeofday.
111861         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111863         gl_PREREQ_GETTIMEOFDAY.
111865         Module mkdir.
111866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111867         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111869         Module mkstemp.
111870         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111871         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111872         jm_AC_TYPE_UINTMAX_T.
111873         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111875         Module stat.
111876         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111877         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111879         Module lstat.
111880         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111881         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111883         Module timespec.
111884         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111885         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111886         * m4/st_mtim.m4: Indentation.
111888         Module nanosleep.
111889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111890         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111891         gl_PREREQ_NANOSLEEP.
111893         Module regex.
111894         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111895         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111896         (gl_REGEX): New macro.
111898         Module rename.
111899         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111900         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111902         Module rmdir.
111903         * m4/rmdir.m4: New file.
111905         Module utime.
111906         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111907         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111908         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111910         Module dirname.
111911         * m4/dirname.m4: New file.
111913         Module getopt.
111914         * m4/getopt.m4: New file.
111916         Module unistd-safer.
111917         * m4/unistd-safer.m4: New file.
111919         Module fnmatch.
111920         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111921         declaration.
111922         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111923         (gl_FUNC_FNMATCH_POSIX): New macro.
111924         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111925         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111926         simply fnmatch.
111928         Module exclude.
111929         * m4/exclude.m4: New file.
111931         Module human.
111932         * m4/human.m4: New file.
111934         Module acl.
111935         * m4/acl.m4: Nop.
111937         Module backupfile.
111938         * m4/backupfile.m4: New file.
111939         * m4/d-ino.m4: Indentation.
111941         Module fsusage.
111942         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111943         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111944         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111946         Module dirfd.
111947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111948         requirements.
111950         Module euidaccess.
111951         * m4/euidaccess.m4: New file.
111953         Module file-type.
111954         * m4/file-type.m4: New file.
111956         Module fileblocks.
111957         * m4/fileblocks.m4: New file.
111959         Module filemode.
111960         * m4/filemode.m4: New file.
111962         Module isdir.
111963         * m4/isdir.m4: New file.
111965         Module lchown.
111966         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111967         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111969         Module makepath.
111970         * m4/makepath.m4: New file.
111972         Module modechange.
111973         * m4/modechange.m4: New file.
111975         Module mountlist.
111976         * m4/mountlist.m4: New file.
111977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111978         Indentation.
111980         Module path-concat.
111981         * m4/path-concat.m4: New file.
111983         Module pathmax.
111984         * m4/pathmax.m4: New file.
111986         Module same.
111987         * m4/same.m4: New file.
111989         Module save-cwd.
111990         * m4/save-cwd.m4: New file.
111992         Module savedir.
111993         * m4/savedir.m4: New file.
111995         Module xgetcwd.
111996         * m4/xgetcwd.m4: New file.
111997         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111999         Module xreadlink.
112000         * m4/xreadlink.m4: New file.
112002         Module safe-read.
112003         * m4/safe-read.m4: New file.
112005         Module safe-write.
112006         * m4/safe-write.m4: New file.
112008         Module closeout.
112009         * m4/closeout.m4: New file.
112011         Module stdio-safer.
112012         * m4/stdio-safer.m4: New file.
112014         Module getpass.
112015         * m4/getpass.m4: New file.
112017         Module getugroups.
112018         * m4/getugroups.m4: New file.
112020         Module group-member.
112021         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
112022         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
112024         Module idcache.
112025         * m4/idcache.m4: New file.
112027         Module userspec.
112028         * m4/userspec.m4: New file.
112030         Module gettime.
112031         * m4/clock_time.m4: New file.
112032         * m4/gettime.m4: New file.
112034         Module settime.
112035         * m4/settime.m4: New file.
112037         Module posixtm.
112038         * m4/posixtm.m4: New file.
112040         Module gethostname.
112041         * m4/gethostname.m4: New file.
112043         Module canon-host.
112044         * m4/canon-host.m4: New file.
112046         Module gettext.
112047         * m4/codeset.m4: New file, from gettext-0.11.5.
112048         * m4/gettext.m4: New file, from gettext-0.11.5.
112049         * m4/glibc21.m4: New file, from gettext-0.11.5.
112050         * m4/iconv.m4: New file, from gettext-0.11.5.
112051         * m4/intdiv0.m4: New file, from gettext-0.11.5.
112052         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
112053         * m4/inttypes.m4: New file, from gettext-0.11.5.
112054         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
112055         * m4/isc-posix.m4: New file, from gettext-0.11.5.
112056         * m4/lcmessage.m4: New file, from gettext-0.11.5.
112057         * m4/lib-ld.m4: New file, from gettext-0.11.5.
112058         * m4/lib-link.m4: New file, from gettext-0.11.5.
112059         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
112060         * m4/progtest.m4: New file, from gettext-0.11.5.
112061         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
112062         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
112063         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
112065         Module localcharset.
112066         * m4/localcharset.m4: New file.
112068         Module hard-locale.
112069         * m4/hard-locale.m4: New file.
112071         Module mbswidth.
112072         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
112073         onceonly macros.
112074         * m4/mbrtowc.m4: Add comment.
112076         Module memcasecmp.
112077         * m4/memcasecmp.m4: New file.
112079         Module memcoll.
112080         * m4/memcoll.m4: New file.
112082         Module unicodeio.
112083         * m4/unicodeio.m4: New file.
112085         Module rpmatch.
112086         * m4/rpmatch.m4: New file.
112088         Module yesno.
112089         * m4/yesno.m4: New file.
112091         Module exitfail.
112092         * m4/exitfail.m4: New file.
112094         Module c-stack.
112095         * m4/c-stack.m4 (gl_C_STACK): New macro.
112096         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
112098         Module error.
112099         * m4/error.m4 (gl_ERROR): New macro.
112100         (jm_PREREQ_ERROR): Use onceonly macros.
112102         Module fatal.
112103         * m4/fatal.m4: New file.
112105         Module getloadavg.
112106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
112107         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
112109         Module getpagesize.
112110         * m4/getpagesize.m4: New file.
112112         Module getusershell.
112113         * m4/getusershell.m4: New file.
112115         Module physmem.
112116         * m4/physmem.m4: New file.
112118         Module posixver.
112119         * m4/posixver.m4: New file.
112121         Module quotearg.
112122         * m4/quotearg.m4: New file.
112124         Module quote.
112125         * m4/quote.m4: New file.
112127         Module readutmp.
112128         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
112130         Module sig2str.
112131         * m4/sig2str.m4: New file.
112133         Other.
112134         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
112135         ulonglong.m4.
112136         * m4/intmax_t.m4: New file.
112137         * m4/d-type.m4: Indentation.
112138         * m4/jm-macros.m4: Update.
112139         * m4/prereq.m4 (jm_PREREQ): Update.
112140         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
112141         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
112142         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
112143         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
112144         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
112145         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
112146         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
112147         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
112148         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
112149         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
112150         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
112151         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
112152         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
112153         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
112154         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
112155         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
112156         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
112157         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
112158         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
112160 2002-12-24  Bruno Haible  <bruno@clisp.org>
112162         * MODULES.txt: Update according to m4/ changes.
112164         Module gettext.
112165         * config.rpath: New file, from gettext-0.11.5.
112167         * modules/*: New module descriptions.
112168         * gnulib-tool: New file.
112169         * MODULES.html.sh: New file.
112171 2002-12-21  Karl Berry  <karl@gnu.org>
112173         * doc/fdl.texi: update to version 1.2.
112175 2002-12-19  Karl Berry  <karl@gnu.org>
112177         * config/config.guess: update from prep.
112179 2002-12-18  Bruno Haible  <bruno@clisp.org>
112181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
112182         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
112184 2002-12-17  Bruno Haible  <bruno@clisp.org>
112186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
112187         stdlib.h, string.h.
112189 2002-12-17  Bruno Haible  <bruno@clisp.org>
112191         * lib/canon-host.c (strdup): Remove unused declaration.
112193         * lib/fsusage.c: Include full_read.h.
112194         (get_fs_usage): Use full_read instead of safe_read.
112196         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
112198 2002-12-12  Karl Berry  <karl@gnu.org>
112200         * config/config.guess: update from prep.
112202 2002-12-11  Bruno Haible  <bruno@clisp.org>
112204         * m4/setenv.m4: New file, from gettext-0.11.5.
112206 2002-12-11  Bruno Haible  <bruno@clisp.org>
112208         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
112209         not unsetenv().
112210         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
112211         modifications:
112213         2002-12-11  Bruno Haible  <bruno@clisp.org>
112215                 * setenv.c (alloca): Fall back to malloc.
112216                 (freea): New macro.
112217                 (setenv): Use freea() to free memory allocated with alloca().
112219         2002-11-13  Bruno Haible  <bruno@clisp.org>
112221                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
112222                 function declarations.
112223                 * unsetenv.c (unsetenv): Likewise.
112225         2002-03-04  Bruno Haible  <bruno@clisp.org>
112227                 Portability to AIX 4.3.3.
112228                 * unsetenv.c: New file, extracted from setenv.c.
112229                 * setenv.c: Move the unsetenv() function to unsetenv.c.
112231         2001-12-20  Bruno Haible  <bruno@clisp.org>
112233                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
112234                 use malloc instead. For SunOS 4.
112236         2001-12-11  Bruno Haible  <bruno@clisp.org>
112238                 * setenv.c: Declare alloca.
112239                 (compar_fn_t): New typedef.
112240                 (KNOWN_VALUE, STORE_VALUE): Use it.
112242         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
112243         setenv.h.
112245 2002-12-10  Paul Eggert  <eggert@twinsun.com>
112247         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
112248         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
112249         Choose values that are less likely to collide with system fnmatch
112250         options.
112251         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
112252         defined (e.g., a pure POSIX system).
112253         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
112254         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
112256 2002-12-06  Paul Eggert  <eggert@twinsun.com>
112258         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
112259         a pain in practice to deal with generated m4 files.  This change
112260         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
112262         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
112263         and jm-glibc-io.m4, as they are no longer a special case.
112264         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
112265         kludge and the auto-generation stuff.  Check only whether the
112266         functions are declared, not whether they exist, since older hosts
112267         that don't declare the functions can't use the optimization anyway.
112269 2002-12-06  Jim Meyering  <jim@meyering.net>
112271         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
112273         Merge in changes from libc's misc/error.c, in preparation
112274         for the merge of gnulib's changes back into libc.
112276         * lib/error.c (_): Define only if not already defined.
112277         Move definition to follow all #include directives.
112278         Include unlocked-io.h only if !_LIBC.
112279         [_LIBC]: Include <libio/libioP.h>.
112280         [USE_IN_LIBIO]: Include <libio/iolibio.h>
112281         (fflush): Tweak definition to use INTUSE.
112282         (putc): Define.
112284 2002-12-05  Paul Eggert  <eggert@twinsun.com>
112286         * lib/alloca.c [defined emacs]: Include "lisp.h".
112287         (xalloc_die) [defined emacs]: New macro.
112288         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
112289         [! defined emacs]: Include <xalloc.h>.
112290         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
112291         (pointer): Typedef to POINTER_TYPE *.
112292         (malloc): Remove decl; we now always use xmalloc.
112293         (alloca): Use old-style definition, since Emacs needs this.
112294         Check for arithmetic overflow when computing combined size.
112296 2002-12-04  Paul Eggert  <eggert@twinsun.com>
112298         Do not generate unlocked-io.h automatically, since it's easier to
112299         maintain it by hand.
112301         * lib/unlocked-io.h: New file, from GNU diffutils,
112302         but with proper copyright notice and attribution.
112303         * lib/gen-uio: Remove.
112304         * lib/Makefile.am: Add copyright notice.
112305         (libfetish_a_SOURCES): Add unlocked-io.h.
112306         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
112307         (DISTCLEANFILES, io_functions): Remove macros.
112308         (EXTRA_DIST): Remove gen_uio.
112309         (unlocked-io.h): Remove rule.
112311 2002-12-04  Jim Meyering  <jim@meyering.net>
112313         Reflect the fact that stat.c and lstat.c are no longer generated.
112314         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
112315         (DISTCLEANFILES): Likewise.
112316         (EXTRA_DIST): Likewise.
112317         (all_local): Don't depend on stat.c or lstat.c.
112318         (stat.c, lstat.c): Remove rules.
112319         (EXTRA_DIST): Remove xstat.in.
112321         * lib/xstat.in: Remove file.  Contents moved into stat.c.
112322         * lib/stat.c: New file.  Contents mostly from xstat.in.
112323         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
112324         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
112326         * lib/safe-read.c: Rework so that it may serve to define safe_write,
112327         too.
112328         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
112330 2002-12-03  Jim Meyering  <jim@meyering.net>
112332         * lib/safe-read.c, safe-write.c: Change variable names and comments,
112333         but not semantics, to minimize the differences between these two files.
112334         (safe_read): Change comment to mention SAFE_READ_ERROR.
112336         * lib/safe-read.c (IS_EINTR): Define.
112337         (safe_read): Use IS_EINTR in place of in-function cpp directives.
112339 2002-12-02  Jim Meyering  <jim@meyering.net>
112341         * lib/safe-read.c (EINTR): Define.
112342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112343         (INT_MAX): Provide fallback.
112344         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
112346         * lib/safe-read.h (SAFE_READ_ERROR): Define.
112348 2002-12-02  Bruno Haible  <bruno@clisp.org>
112350         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
112351         Define, taken from safe-read.c.
112352         (INT_MAX): Provide fallback.
112353         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
112354         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
112356         * lib/safe-read.c (EINTR): Remove definition.
112357         (safe_read): Don't use EINTR if it is absent.
112359 2002-12-01  Jim Meyering  <jim@meyering.net>
112361         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
112362         zero.
112363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
112365 2002-11-27  Paul Eggert  <eggert@twinsun.com>
112367         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
112368         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
112369         with `if (! (value < limit)) abort ();', for readability.
112371 2002-11-26  Karl Berry  <karl@gnu.org>
112373         * lib/strdup.c: copy from libc again, with jim's ok.
112374         * lib/.cppi-disable: re-add strdup.c
112376 2002-11-25  Karl Berry  <karl@gnu.org>
112378         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
112379         instead of "strtol.c".
112381 2002-11-25  Karl Berry  <karl@gnu.org>
112383         * config/install-sh: update from automake for variable quoting, $0 in
112384         error msgs, etc.
112386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
112387         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
112388         entry.
112390 2002-11-25  Jim Meyering  <jim@meyering.net>
112392         * lib/mktime.c: Sync from libc, now that it has the latest fix.
112394 2002-11-24  Karl Berry  <karl@gnu.org>
112396         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
112397         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
112399 2002-11-24  Jim Meyering  <jim@meyering.net>
112401         Update from coreutils:
112403         * lib/mktime.c: Merge in changes from libc.
112405         Avoid a link-time failure on some Linux systems.
112406         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
112407         (otherwise).
112408         (__mon_yday): Declare with the STATIC attribute.
112409         (__mktime_internal): Likewise.
112410         Based on a report from Greg Schafer.
112412 2002-11-23  Jim Meyering  <jim@meyering.net>
112414         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
112415         Use `unsigned', not `int', as type of index.
112417         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
112419         * lib/fsusage.c: Remove unneeded parentheses around operands of
112420         `defined'.
112422 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112424         * lib/quotearg.h: Allow multiple inclusion by surrounding with
112425         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
112426         so that we can be included first.
112427         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
112428         * lib/quotearg.c: Include quotearg.h immediately after config.h.
112429         No need to include stddef.h or sys/types.h any more.
112430         Surround local include files with "", not "<>".
112431         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
112432         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
112433         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
112434         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
112435         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
112436         (ISPRINT): Remove; no longer needed now that we assume C89.
112438         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
112439         Preserve errno.
112441         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
112442         quotearg_char): Use SIZE_MAX rather than
112443         (size_t) -1 when we are talking about "infinity".
112445         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
112447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112449         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
112450         hint that one should use `if (! x) abort ();' rather than `assert
112451         (x);', and anyway it's one less thing to worry about configuring.
112452         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
112453         hash_rehash, hash_insert): Use abort rather than assert.
112455 2002-11-22  Bruno Haible  <bruno@clisp.org>
112457         * lib/safe-read.h: Assume C89. Add comments.
112458         (safe_read): Change return type to size_t.
112459         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
112460         byte counts > SSIZE_MAX correctly.
112461         * lib/safe-write.h: New file.
112462         * lib/safe-write.c: New file.
112463         * lib/full-read.h: New file.
112464         * lib/full-read.c: New file.
112465         * lib/full-write.h: Assume C89. Add comments.
112466         * lib/full-write.c: Include safe-write.h.
112467         (full_write): Rewritten to use safe_write.
112468         Suggested by Jim Meyering and Paul Eggert.
112470 2002-11-21  Jim Meyering  <jim@meyering.net>
112472         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
112474         Merge in changes from the coreutils.
112476         2002-09-25  Paul Eggert  <eggert@twinsun.com>
112477         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
112478         <stdint.h>.
112479         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
112480         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
112481         int.  Work more efficiently if X is the same width as uintmax_t.
112482         Do not compare X to -1, to avoid bogus compiler warning.
112483         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
112484         Don't assume that f_frsize and f_bsize are the same type.
112486         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
112487         warning on FreeBSD.
112489         * lib/makepath.c (make_path): Restore umask *before* creating the final
112490         component.
112491         (make_path): Minor reformatting.
112493         * lib/xmalloc.c: Adjust to work with new autoconf macros,
112494         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
112495         HAVE_MALLOC/HAVE_REALLOC.
112497         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
112498         dummy ones.  At least on GNU/Linux systems, `auto' means something
112499         else.
112500         From Michael Stone.
112502 2002-11-21  Bruno Haible  <bruno@clisp.org>
112504         Remove case insensitive option matching.
112505         * lib/argmatch.h (argcasematch): Remove declaration.
112506         (ARGCASEMATCH): Remove macro.
112507         (__xargmatch_internal): Remove case_sensitive argument.
112508         (XARGMATCH): Update.
112509         (XARGCASEMATCH): Remove macro.
112510         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
112511         case_sensitive argument.
112512         (argcasematch): Remove function.
112513         (__xargmatch_internal): Remove case_sensitive argument.
112514         (main): Use XARGMATCH instead of XARGCASEMATCH.
112516         * lib/xmalloc.c: Change compile-time error message. Add comment about
112517         required autoconf version.
112519 2002-11-20  Paul Eggert  <eggert@twinsun.com>
112521         Merge argmatch cleanups from Bison.  Assume C89.
112523         * lib/argmatch.c: Include config.h here, not in argmatch.h.
112524         Include stdlib.h, for EXIT_FAILURE.
112525         Always include <string.h>, since we assume C89.
112526         (EXIT_FAILURE): Remove pre-C89 bug workaround.
112527         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
112528         Include <stddef.h> instead, since it's all we need for size_t.
112529         (PARAMS): Remove.  All uses removed.
112530         (ARRAY_CARDINALITY): Do not bother to #undef.
112531         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
112532         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112533         Remove unnecessary parentheses.
112534         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112535         Insert necessary parentheses.
112536         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
112537         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
112539 2002-11-19  Bruno Haible  <bruno@clisp.org>
112541         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
112542         * lib/mbswidth.h: Include <stddef.h>, for size_t.
112544         * lib/mbswidth.h (PARAMS): Remove macro.
112545         (mbswidth, mbsnwidth): Use ANSI C function declarations.
112546         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
112548         * lib/gcd.h (PARAMS): Remove macro.
112549         (gcd): Use ANSI C function declarations.
112550         * lib/gcd.c (gcd): Likewise.
112552 2002-11-15  Bruno Haible  <bruno@clisp.org>
112554         * lib/strcspn.c: Include <stddef.h>.
112555         (strcspn): Use ANSI C function declaration. Change return type to
112556         size_t. Use NULL.
112557         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
112558         (strpbrk): Use NULL.
112559         * lib/strpbrk.h (PARAMS): Remove macro.
112560         (strpbrk): Use ANSI C function declaration.
112561         * lib/strstr.c: Don't include <sys/types.h>.
112562         * lib/strstr.h (PARAMS): Remove macro.
112563         (strstr): Use ANSI C function declarations.
112565 2002-11-14  Karl Berry  <karl@gnu.org>
112567         * config/mkinstalldirs: `do' on separate line, instead of
112568         `for var; do'.
112570 2002-11-06  Bruno Haible  <bruno@clisp.org>
112572         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
112573         * lib/gcd.c (gcd): Likewise.
112575 2002-11-05  Bruno Haible  <bruno@clisp.org>
112577         * lib/gcd.h: New file, from gettext-0.11.5.
112578         * lib/gcd.c: New file, from gettext-0.11.5.
112580 2002-11-05  Bruno Haible  <bruno@clisp.org>
112582         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112583         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112584         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112585         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112587         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
112588         <libintl.h>.
112589         * lib/makepath.c: Include gettext.h instead of <locale.h> and
112590         <libintl.h>.
112592         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
112593         * lib/human.c: Include gettext.h instead of <libintl.h>.
112594         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
112595         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
112596         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
112597         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
112598         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
112599         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
112600         (textdomain): Remove definition.
112601         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
112603         * lib/long-options.c: Remove include of <libintl.h> and definition of
112604         _.
112605         * lib/same.c: Remove include of <libintl.h> and definition of _.
112607 2002-11-04  Owen Taylor  <otaylor@redhat.com>
112609         * lib/config.charset: A few additions for Solaris.
112611 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112613         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
112614         * lib/localcharset.c (locale_charset): Declare as extern "C".
112616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112618         * lib/config.charset: msdos in uk_UA uses CP1125.
112620 2002-11-04  Bruno Haible  <bruno@clisp.org>
112622         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
112623         * lib/strcase.h: New file, from GNU gettext-0.11.5.
112624         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
112625         * lib/strstr.h: New file, from GNU gettext-0.11.5.
112626         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
112628 2002-11-04  Bruno Haible  <bruno@clisp.org>
112630         * lib/localcharset.c (locale_charset): Don't return an empty string.
112632 2002-11-04  Bruno Haible  <bruno@clisp.org>
112634         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
112635         aliases.
112637 2002-11-04  Bruno Haible  <bruno@clisp.org>
112639         * lib/config.charset: Update for newest glibc. Add canonical names
112640         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
112642 2002-11-04  Bruno Haible  <bruno@clisp.org>
112644         * lib/config.charset: Add support for NetBSD.
112646 2002-11-04  Bruno Haible  <bruno@clisp.org>
112648         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
112650 2002-11-01  Bruno Haible  <bruno@clisp.org>
112652         * configure.in: Add AC_CONFIG_AUX_DIR call.
112653         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
112654         test/Makefile.
112655         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
112657 2002-09-28  Karl Berry  <karl@gnu.org>
112659         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
112660         installed automake until the next release, since changes have been
112661         made.
112663 2002-09-25  Karl Berry  <karl@gnu.org>
112665         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
112666         * lib/getopt*: copy from libc/posix.
112667         * lib/gettext.h: copy from gettext.
112668         * lib/.cppi-disable: add strdup.c, gettext.h.
112670 2002-09-25  Karl Berry  <karl@gnu.org>
112672         * config/srclist.txt: enable gettext.h check.
112673         * config/config.{guess,sub}: update from prep.
112674         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
112675                 from automake 1.6.3.
112676         See srclist*.
112678 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
112680         * regex.c (PATFETCH): Remove the translating fetch.
112681         (PATFETCH_RAW): Rename to PATFETCH.
112682         (set_image_of_range): New fun.
112683         (SET_RANGE_TABLE_WORK_AREA): Use it.
112684         (regex_compile): Don't translate the pattern chars so eagerly.
112685         Only do it when inserting an `exactn' bytecode or when handling
112686         a char-range.
112687         (mutually_exclusive_p): Avoid empty statement.
112689 2002-07-06  Jim Meyering  <meyering@lucent.com>
112691         * m4/README: Don't mention Makefile.am.in.
112692         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
112694 2002-07-01  Jim Meyering  <meyering@lucent.com>
112696         * lib/c-stack.c: Include sys/time.h.
112697         From Volker Borchert.
112699 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
112703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112705         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
112706         New macro.  Use it uniformly instead of
112707         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
112708         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
112709         reported by Vin Shelton.
112711 2002-06-22  Paul Eggert  <eggert@twinsun.com>
112713         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
112714         Do not assume SA_SIGINFO behavior.
112715         Bug reported by Jim Meyering on NetBSD 1.5.2.
112717 2002-06-22  Jim Meyering  <meyering@lucent.com>
112719         * m4/c-stack.m4: New file, from diffutils-2.8.2.
112720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
112722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
112723         now that configure.ac uses AC_GNU_SOURCE.
112724         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
112725         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
112727         Update to latest tools.  Suggestions from Paul Eggert.
112728         * m4/stdbool.m4: New file, from diffutils-2.8.2.
112729         * m4/gnu-source.m4: Update from diffutils-2.8.2.
112730         * m4/fnmatch.m4: Likewise.
112731         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
112732         to AC_HEADER_STDBOOL
112734 2002-06-22  Jim Meyering  <meyering@lucent.com>
112736         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
112737         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
112739 2002-06-22  Jim Meyering  <meyering@lucent.com>
112741         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
112743         * lib/exitfail.c, exitfail.h: Likewise.
112744         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
112746         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
112747         of fnmatch.h.
112748         (EXTRA_DIST): Add fnmatch_loop.c.
112749         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
112751         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
112752         * lib/fnmatch.c: Update from diffutils-2.8.2.
112753         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
112754         * lib/fnmatch.h: Remove file.
112756 2002-06-21  Jim Meyering  <meyering@lucent.com>
112758         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
112759         * m4/mbrtowc.m4: Likewise.
112761         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
112762         * m4/mbswidth.m4: Reflect name change:
112763         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
112764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112766         * m4/lib-link.m4: Update from gettext-0.11.2.
112767         * m4/gettext.m4: Likewise.
112769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
112770         From Alfred M. Szmidt.
112772 2002-06-18  Paul Eggert  <eggert@twinsun.com>
112774         * lib/file-type.h: Report an error if neither S_ISREG nor
112775         S_IFREG is defined, instead of using a test specific to glibc
112776         2.2.  This should be safe, since POSIX requires S_ISREG and
112777         Unix Version 7 had S_IFREG.  We don't need to check for
112778         <sys/types.h> since we don't use any symbols that it defines.
112780 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
112782         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
112783         $@-t, so that each temporary file name is unique and valid in the first
112784         8 characters, for operation under DOS.
112786 2002-06-15  Paul Eggert  <eggert@twinsun.com>
112788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
112790 2002-06-15  Jim Meyering  <meyering@lucent.com>
112792         Work even with DJGPP 2.03, which lacks support for symlinks.
112793         From Richard Dawe.
112794         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
112795         is defined.
112796         * lib/lchown.c (S_ISLNK): Likewise.
112798 2002-06-15  Jim Meyering  <meyering@lucent.com>
112800         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
112801         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
112802         have been included before this file.
112804 2002-06-14  Jim Meyering  <meyering@lucent.com>
112806         * lib/file-type.h: Use the version from diffutils-2.8.2.
112807         * lib/file-type.c: Likewise.
112809 2002-06-07  Jim Meyering  <meyering@lucent.com>
112811         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
112812         They're needed at least for NetBSD 1.5.2.
112813         ($statxfs_includes): Include those same headers.
112814         ($statxfs_includes): Include sys/vfs.h if available.
112815         ($statxfs_includes): Likewise for sys/statvfs.h.
112816         Check for the following members in both structs statfs and statvfs:
112817         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
112819 2002-06-01  Jim Meyering  <meyering@lucent.com>
112821         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
112822         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
112824 2002-05-28  Jim Meyering  <meyering@lucent.com>
112826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
112827         Reported by Volker Borchert.
112829 2002-05-27  Jim Meyering  <meyering@lucent.com>
112831         Fix a problem seen only on nonconforming systems whereby ls.c's
112832         use of localtime, and then of gettimeofday would cause trouble:
112833         the localtime call used to initialize rpl_gettimeofday's save
112834         mechanism would clobber ls's current local time information so
112835         that in any long listing the first file would always be listed
112836         with date 1970-01-01.  Analysis by Volker Borchert.
112838         * lib/gettimeofday.c (localtime): Undefine.
112839         (rpl_localtime): New function.
112841 2002-05-27  Jim Meyering  <meyering@lucent.com>
112843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
112844         localtime.
112846         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
112847         use the replacement function; it wouldn't resolve at link time.
112848         Reported by Volker Borchert.
112850 2002-05-22  Jim Meyering  <meyering@lucent.com>
112852         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112853         file-type.h.
112854         * lib/file-type.h: New file.
112855         * lib/file-type.c (file_type): New file/function.  Extracted from
112856         diffutils.
112858 2002-04-30  Jim Meyering  <meyering@lucent.com>
112860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112862 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112864         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112868         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112869         Do not check for alloca.h (no longer used) or stdbool.h (was never
112870         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112874         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112876 2002-04-29  Jim Meyering  <meyering@lucent.com>
112878         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112879         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112880         Use AC_FUNC_STRNLEN here instead.
112882         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112883         With autoconf-2.53a, it's part of AC_PROG_CC.
112885 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112887         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112892         * lib/sig2str.h, lib/sig2str.c: New files.
112893         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112897         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112898         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112899         of 127, since 64 is the largest conceivable number for ancient
112900         nonstandard hosts.
112901         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112903 2002-04-28  Jim Meyering  <meyering@lucent.com>
112905         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112907 2002-04-24  Jim Meyering  <meyering@lucent.com>
112909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112910         (jm_PREREQ): Use it.
112912         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112913         mach/mach.h fcntl.h.
112914         Check for this function: setlocale.
112916 2002-04-24  Jim Meyering  <meyering@lucent.com>
112918         * lib/gettext.h: New file, from Gettext.
112919         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112920         (libfetish_a_SOURCES): Add gettext.h.
112922 2002-04-16  Jim Meyering  <meyering@lucent.com>
112924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112925         ut_pid, ut_id, ut_exit.
112927 2002-04-16  Jim Meyering  <meyering@lucent.com>
112929         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112930         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112931         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112933 2002-04-12  Jim Meyering  <meyering@lucent.com>
112935         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112936         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112937         existence of the getmntinfo function.  Needed for Darwin 5.3.
112939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112940         This is necessary at least on Darwin 5.3.
112942         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112943         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112944         strnlen.o in the library, and that makes some versions of ranlib
112945         object.
112947 2002-04-12  Jim Meyering  <meyering@lucent.com>
112949         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112951 2002-04-09  Jim Meyering  <meyering@lucent.com>
112953         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112954         to be more precise.  Rather than saying we're checking whether the
112955         function `works', say what we're testing.
112956         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112957         Reported by Bruno Haible.
112959 2002-03-10  Jim Meyering  <meyering@lucent.com>
112961         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112962         Suggestion from Santiago Vila.
112964 2002-03-08  Jim Meyering  <meyering@lucent.com>
112966         * lib/rename.c: Mention that this wrapper is needed also on
112967         mips-dec-ultrix4.4 systems.
112969 2002-03-02  Jim Meyering  <meyering@lucent.com>
112971         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112972         not HAVE_CLOCK_SETTIME.
112974 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112976         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112977         Check for clock_settime.
112979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112981         * lib/nanosleep.h: Rename to....
112982         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112984         * lib/gettime.c: New file.
112985         * lib/settime.c: New file.
112986         * lib/stime.c: Remove.
112988         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112989         timespec.h.  Remove nanosleep.h.
112991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112993         * m4/acl.m4: New file.
112994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112995         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112997 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112999         * lib/acl.c, lib/acl.h: New files.
113000         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
113002 2002-02-24  Jim Meyering  <meyering@lucent.com>
113004         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
113005         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
113006         cause trouble.  Reported by Nelson Beebe.
113008 2002-02-23  Paul Eggert  <eggert@twinsun.com>
113010         * lib/path-concat.c (xpath_concat): Reorder code to pacify
113011         compilers that don't know that xalloc_die never returns.
113013 2002-02-20  Jim Meyering  <meyering@lucent.com>
113015         * lib/getdate.c: Regenerate using bison-1.33.
113017 2002-02-17  Jim Meyering  <meyering@lucent.com>
113019         * config/config.guess (main): Don't use `head -1'; it's no longer
113020         portable. Use `sed 1q' instead.
113022 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
113024         * m4/codeset.m4: Upgrade to gettext-0.11.
113025         * m4/gettext.m4: Upgrade to gettext-0.11.
113026         * m4/glibc21.m4: Upgrade to gettext-0.11.
113027         * m4/iconv.m4: Upgrade to gettext-0.11.
113028         * m4/isc-posix.m4: Upgrade to gettext-0.11.
113029         * m4/lcmessage.m4: Upgrade to gettext-0.11.
113030         * m4/lib-ld.m4: New file, from gettext-0.11.
113031         * m4/lib-link.m4: New file, from gettext-0.11.
113032         * m4/lib-prefix.m4: New file, from gettext-0.11.
113033         * m4/progtest.m4: Upgrade to gettext-0.11.
113035 2002-02-15  Paul Eggert  <eggert@twinsun.com>
113037         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
113038         (jm_PREREQ): Use it.
113040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
113042         * lib/posixver.c, lib/posixver.h: New files.
113043         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
113045 2002-02-02  Paul Eggert  <eggert@twinsun.com>
113046             Bruno Haible  <bruno@clisp.org>
113048         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
113049         (fwrite_success_callback): New declaration.
113050         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
113051         print_unicode_char. Call failure callback instead of error.
113052         (fwrite_success_callback): New function.
113053         (exit_failure_callback): New function.
113054         (fallback_failure_callback): New function.
113055         (print_unicode_char): Call unicode_to_mb.
113057 2002-01-26  Jim Meyering  <meyering@lucent.com>
113059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
113060         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
113062 2002-01-26  Jim Meyering  <meyering@lucent.com>
113064         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
113066 2002-01-22  Paul Eggert  <eggert@twinsun.com>
113068         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
113070 2002-01-22  Jim Meyering  <meyering@lucent.com>
113072         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
113073         Otherwise, some versions of automake would omit the rule that makes
113074         Makefile from Makefile.in.
113076 2002-01-21  Paul Eggert  <eggert@twinsun.com>
113078         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
113079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
113080         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
113081         (memcoll): Set errno to zero if there is no error.
113083         * lib/quotearg.c (quotearg_buffer_restyled):
113084         Fix bug with quoting buffers containing NUL when backslashing escapes.
113085         This bug was exposed by the other changes in this patch.
113086         (quotearg_n_options): New arg ARGSIZE.
113087         All callers changed.
113088         (quoting_options_from_style): New function.
113089         (quotearg_n_style): Use it.
113090         (quotearg_n_style_mem): New function.
113092         * lib/quotearg.h (quotearg_n_style_mem): New function.
113094 2002-01-19  Jim Meyering  <meyering@lucent.com>
113096         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
113097         Remove useless quotes: DF_PROG="df".
113098         * m4/strnlen.m4: New file.
113100 2002-01-16  Paul Eggert  <eggert@twinsun.com>
113102         * lib/backupfile.c (ISDIGIT): Comment fix.
113103         * lib/getdate.y (ISDIGIT): Likewise.
113104         * lib/posixtm.c (ISDIGIT, year): Likewise.
113105         * lib/strverscmp.c (ISDIGIT): Likewise.
113106         * lib/userspec.c (ISDIGIT): Likewise.
113108 2002-01-16  Jim Meyering  <meyering@lucent.com>
113110         * lib/getdate.y: Add three semicolons, each just before a closing
113111         brace. Bison (as of version 1.31) no longer papers over that mistake.
113113 2002-01-05  Jim Meyering  <meyering@lucent.com>
113115         * lib/version-etc.c (version_etc_copyright): Update copyright year.
113117 2001-12-19  Paul Eggert  <eggert@twinsun.com>
113119         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
113120         not silently exit merely because the output buffer happens to
113121         have nothing pending.
113123 2001-12-18  Paul Eggert  <eggert@twinsun.com>
113125         See the big note in ../ChangeLog.
113126         * lib/human.c (suffixes): Prefer K to k for 1024.
113127         (generate_suffix_backwards): New function.
113128         (human_readable_inexact): Use it.
113129         * lib/xstrtol.c (__xstrtol): If there is no number but there
113130         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
113131         Accept 'K' as well as 'k'.
113133 2001-12-15  Jim Meyering  <meyering@lucent.com>
113135         * lib/regex.h (__restrict_arr): Update from libc.
113137         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
113138         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
113139         (STREQ): Define.
113141 2001-12-14  Jim Meyering  <meyering@lucent.com>
113143         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
113144         Suggestion from Bruno Haible.
113146 2001-12-10  Jim Meyering  <meyering@lucent.com>
113148         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
113149         xrealloc, Instead, include "xalloc.h".
113150         (initbuffer): Don't cast xmalloc return value to char*.
113151         (readline): Reword comment.
113152         Don't cast xrealloc return value to char*
113153         Return NULL, not 0.
113155 2001-12-09  Jim Meyering  <meyering@lucent.com>
113157         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
113158         about `signed and unsigned type in conditional expression'.
113159         * lib/posixtm.c (posix_time_parse): Likewise.
113161         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
113163         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
113164         to avoid a pedantic warning.
113166         * lib/getstr.c: Don't include assert.h.
113167         (getstr): Remove warning-evoking assertions.
113168         Return -1 if offset parameter is out of bounds.
113169         Change the type of a local from int to size_t.
113171         * lib/strftime.c (my_strftime_localtime_r): Include this function
113172         definition in the `#if ! HAVE_TM_GMTOFF' block.
113174         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
113175         Include xalloc.h instead.
113177 2001-12-02  Jim Meyering  <meyering@lucent.com>
113179         * lib/tempname.c: Don't declare getenv, thus reverting the change of
113180         2001-11-18.  It's no longer necessary, now that stdlib.h is always
113181         included.
113183         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
113184         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
113186 2001-11-30  Akim Demaille  <akim@epita.fr>
113188         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
113189         before being defined.
113191 2001-11-27  Paul Eggert  <eggert@twinsun.com>
113193         * lib/quotearg.h (quotearg_n, quotearg_n_style):
113194         First arg is int, not unsigned.
113195         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
113196         (SIZE_MAX, UINT_MAX): New macros.
113197         (quotearg_n_options): Abort if N is negative.
113198         Avoid overflow check on hosts where size_t is 64 bits and int
113199         is 32 bits, as overflow is impossible there.
113200         Fix off-by-one typo that caused unnecessary reallocation.
113202 2001-11-27  Jim Meyering  <meyering@lucent.com>
113204         * lib/tempname.c: Merge with version from libc.
113205         * lib/regex.c: Likewise.
113207         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
113208         systems for which STDC_HEADERS is 0, it was not included, resulting in
113209         a warning about an integer-to-pointer conversion problem with getenv.
113210         Reported by Volker Borchert.
113212 2001-11-26  Jim Meyering  <meyering@lucent.com>
113214         * lib/gtod.h: Remove file.
113215         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
113216         * lib/gettimeofday.c: Don't include gtod.h.
113217         (GTOD_init): Remove function.
113218         (rpl_gettimeofday): Do its job here instead, rather than aborting.
113219         Suggestion from Volker Borchert.
113221 2001-11-23  Jim Meyering  <meyering@lucent.com>
113223         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
113224         it.
113225         * lib/hash.c (struct hash_table): Define it here instead.
113227 2001-11-22  Jim Meyering  <meyering@lucent.com>
113229         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
113231 2001-11-20  Jim Meyering  <meyering@lucent.com>
113233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
113234         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
113236 2001-11-19  Jim Meyering  <meyering@lucent.com>
113238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
113239         directory.  Use "conftestXXXXXX" as the template.
113240         Suggestion from Paul Eggert.
113242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
113243         immediately, so the test doesn't mistakenly hit the max-open-files
113244         limit.
113246 2001-11-18  Paul Eggert  <eggert@twinsun.com>
113248         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
113249         (TEMPORARIES): New macro.
113250         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
113251         removes an artificial limitation (e.g. HP-UX 10.20, where
113252         TMP_MAX is 17576).
113254 2001-11-18  Jim Meyering  <meyering@lucent.com>
113256         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
113258 2001-11-18  Jim Meyering  <meyering@lucent.com>
113260         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
113261         on SunOS 4.
113263         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
113264         files will be created before anything else.
113266 2001-11-17  Paul Eggert  <eggert@twinsun.com>
113268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
113269         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
113271 2001-11-17  Jim Meyering  <meyering@lucent.com>
113273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
113274         Prompted by a report from Bob Proulx.
113276         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
113277         Instead, require UTILS_FUNC_MKSTEMP.
113279 2001-11-17  Jim Meyering  <meyering@lucent.com>
113281         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
113282         Now, that's done as part of AC_FUNC_STRTOD.
113284 2001-11-17  Jim Meyering  <meyering@lucent.com>
113286         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
113287         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
113288         rather than group writable.  Patch by Juan F. Codagnone.
113290         * lib/readtokens.c: Remove explicit declarations of xmalloc and
113291         xrealloc, Instead, include "xalloc.h".
113293         * lib/mountlist.c: Include unlocked-io.h after all system headers.
113294         Remove explicit declarations of xmalloc, xrealloc,
113295         and xstrdup.  Instead, include "xalloc.h".
113297         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
113298         unlocked-io.h.
113299         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
113300         Likewise.
113301         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
113303         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
113304         Reported by Padraig Brady.
113306         * lib/mkstemp.c: #undef mkstemp.
113307         Include config.h.
113308         (rpl_mkstemp): Rename from mkstemp.
113309         Protoize.
113311 2001-11-16  Jim Meyering  <meyering@lucent.com>
113313         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
113314         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
113315         determine the amount of total physical memory, use pstat_getstatic.
113316         HPUX-11 doesn't define _SC_PHYS_PAGES.
113317         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
113318         If sysconf couldn't be used to determine the amount of available
113319         physical memory, use both pstat_getstatic and pstat_getdynamic.
113320         Based on a patch from Bob Proulx.
113322 2001-11-10  Jim Meyering  <meyering@lucent.com>
113324         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
113325         (jm_PREREQ): Use it.
113327 2001-11-09  Jim Meyering  <meyering@lucent.com>
113329         * m4/jm-macros.m4: Require autoconf-2.52f.
113330         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
113331         Use these AC_-prefixed names, not the AM_-prefixed ones.
113333         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
113335 2001-11-05  Jim Meyering  <meyering@lucent.com>
113337         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
113339 2001-11-04  Jim Meyering  <meyering@lucent.com>
113341         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
113342         $DEFS.
113344 2001-11-03  Jim Meyering  <meyering@lucent.com>
113346         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
113347         of AC_DEFUN.
113349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
113350         know the name of the variable in the macro definition.
113352 2001-11-03  Jim Meyering  <meyering@lucent.com>
113354         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
113355         in argmatch_to_argument call.
113357         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
113358         argument.
113360         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
113361         e.g., a fault due to an attempt to free a NULL pointer.
113363 2001-11-01  Jim Meyering  <meyering@lucent.com>
113365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
113366         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
113368 2001-11-01  Jim Meyering  <meyering@lucent.com>
113370         * lib/dirfd.c, lib/dirfd.h: New files.
113371         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
113373         * lib/hash.c (hash_print) [TESTING]: Clean up.
113375 2001-10-22  Paul Eggert  <eggert@twinsun.com>
113377         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
113378         to avoid a warning if -Wall.
113380 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
113382         * README: New file
113383         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
113384         (per RMS's instructions, this is now the canonical source)
113385         * lgpl/, gpl/: New directories.
113387 2001-10-21  Paul Eggert  <eggert@twinsun.com>
113389         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
113391 2001-10-21  Jim Meyering  <meyering@lucent.com>
113393         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
113394         this code would end up calling gettext even in packages built
113395         with --disable-nls.
113396         * lib/getopt.c (_): Likewise.
113397         * lib/regex.c (_): Likewise.
113399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113401         * m4/error.m4 (jm_PREREQ_ERROR):
113402         Do not invoke AC_CHECK_FUNCS with strerror_r, as
113403         AC_FUNC_STRERROR_R does that.
113404         Check for strerror declaration.
113406         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
113407         are supposed to have them these days.
113408         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
113409         Merge changes from latest Autoconf CVS.
113410         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
113411         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
113412         POSIX decided to standardize on the int flavor of strerror_r.
113414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113416         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
113417         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
113418         Use strerror_r that is only a macro, even if it is not a function.
113419         (strerror): Check for HAVE_DECL_STRERROR before declaring.
113420         (private_strerror): Use prototypes, not old-style function definition.
113421         (print_errno_message): New function.
113422         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
113423         char*-flavored one.
113424         (error_tail, error, error_at_line): Use it.
113426 2001-10-11  Jim Meyering  <meyering@lucent.com>
113428         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
113429         and quote_n (1, ... to avoid clobbering a buffer.
113431 2001-10-05  Jim Meyering  <meyering@lucent.com>
113433         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
113434         hash-pjw.h.
113435         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
113436         * lib/hash-pjw.h: New file.
113438 2001-09-30  Jim Meyering  <meyering@lucent.com>
113440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
113441         `struct fsstat' has the `f_fstypename' member.
113442         Use that to define FS_TYPE, which is now used to make
113443         the getfsstat link test tighter.
113445 2001-09-30  Jim Meyering  <meyering@lucent.com>
113447         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
113448         Include <sys/ucred.h>, for Apple Darwin.
113449         Include sys/mount.h and sys/fs_types.h only if available.
113450         (FS_TYPE): Define.
113451         (read_filesystem_list): Use FS_TYPE.
113453 2001-09-29  Paul Eggert  <eggert@twinsun.com>
113455         * lib/exclude.c (excluded_filename): 0 -> false, since it's
113456         a boolean context.
113458 2001-09-29  Jim Meyering  <meyering@lucent.com>
113460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113461         [one-argument getmntent function]): Include stdio.h before mntent.h.
113462         SunOS 4.1.x needs it for the declaration of `FILE'.
113463         Patch by Volker Borchert.
113465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113466         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
113467         sys/fs_types.h, and make the link-test for getfsstat guard #include
113468         directives with appropriate #if HAVE_*_H tests so that we can
113469         detect getfsstat on Apple Darwin1.3.7 systems.
113470         Reported by Nelson Beebe.
113471         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
113473 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113475         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113476         #defines strtoimax.  Also treat the other strto* functions
113477         like strtoimax.
113479         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113480         Check for strtoul and strtoumax,
113481         as those declarations are made even in the signed case.
113482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
113483         Likewise, for strtol and strtoimax.
113485 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113487         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113488         #defines strtoimax.  Also treat the other strto* functions
113489         like strtoimax.
113491         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
113492         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
113493         (strtoimax, strtoumax): Do not declare if already defined as a macro.
113495 2001-09-26  Jim Meyering  <meyering@lucent.com>
113497         Most macros in unlocked-io.h had the wrong number of arguments.
113498         * lib/gen-uio: New script.
113499         (USE_UNLOCKED_IO): Define to 1 if not already defined.
113500         * lib/unlocked-io.hin: Remove file.
113501         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
113502         rather than trying to embed it here.
113503         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
113504         Reported by Padraig Brady.
113506 2001-09-25  Volker Borchert  <bt@teknon.de>
113508         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
113509         `result'.
113511 2001-09-24  Jim Meyering  <meyering@lucent.com>
113513         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
113515 2001-09-23  Jim Meyering  <meyering@lucent.com>
113517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
113518         instead of the mere test for existence of mntent.h.  The latter
113519         would get a false-positive on AIX 3.4 systems.
113520         In the outer getmntent if-block, don't die if neither of the getmntent
113521         tests succeeds.  Instead, just fall through and continue with the
113522         remaining tests.
113524 2001-09-23  Jim Meyering  <meyering@lucent.com>
113526         * lib/mountlist.c: Remove useless parentheses in #if directives.
113527         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
113528         the deprecated MOUNTED symbol is no longer defined in mntent.h.
113530 2001-09-22  Jim Meyering  <meyering@lucent.com>
113532         * m4/gettext.m4: New file.  From gettext.
113533         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
113534         * m4/progtest.m4: Likewise
113535         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
113536         * m4/glibc21.m4: Likewise.
113538         * m4/libintl.m4: Remove.  No longer used.
113540 2001-09-22  Jim Meyering  <meyering@lucent.com>
113542         * lib/localcharset.c: Update from latest gettext.
113543         * lib/config.charset: Likewise.
113545 2001-09-20  Jim Meyering  <meyering@lucent.com>
113547         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
113548         strtoimax.
113549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
113550         strtoumax.
113552 2001-09-20  Jim Meyering  <meyering@lucent.com>
113554         * lib/xstrtol.c (strtoimax): Guard declaration with
113555         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
113556         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
113557         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
113558         (strtoumax): Likewise, for completeness (it wasn't necessary).
113560 2001-09-17  Paul Eggert  <eggert@twinsun.com>
113562         * lib/strtoimax.c (HAVE_LONG_LONG):
113563         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
113564         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
113565         to work around bug in IBM C compiler.
113567 2001-09-17  Jim Meyering  <meyering@lucent.com>
113569         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
113570         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
113571         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
113572         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
113573         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
113574         whenever the right hand side need not be expanded by the shell.
113576 2001-09-16  Paul Eggert  <eggert@twinsun.com>
113578         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
113579         library.  It's not correct, as some older glibcs are buggy.
113580         fnmatch wasn't fixed until glibc 2.2.
113582         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
113583         special shell magic here.
113585 2001-09-16  Jim Meyering  <meyering@lucent.com>
113587         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
113588         * m4/jm-macros.m4: Require it.
113590 2001-09-16  Jim Meyering  <meyering@lucent.com>
113592         * lib/mkdir.c: New file.
113594 2001-09-15  Jim Meyering  <meyering@lucent.com>
113596         * m4/jm-macros.m4: Check for help2man.
113598 2001-09-11  Jim Meyering  <meyering@lucent.com>
113600         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
113601         The body, by Paul Eggert, was moved here from configure.in.
113602         * m4/jm-macros.m4: Require UTILS_HOST_OS.
113604 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113606         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
113607         (jm_PREREQ): Use it.
113609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113611         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
113612         Use ssize_t, not int, to store result of readlink.
113613         Check for ssize_t overflow as well as size_t overflow,
113614         as POSIX says the result of readlink is implementation-defined
113615         when ssize_t overflows.
113616         Remove unnecessary cast to char*.
113617         Use free+malloc instead of realloc, as the storage doesn't need
113618         to be preserved and it's clearer and can be more efficient that way.
113619         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
113620         * lib/xreadlink.h (xreadlink): Update prototype.
113622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113624         * lib/xgetcwd.c: Revert some of the previous change; intead,
113625         fix the HAVE_GETCWD_NULL code to behave more like the
113626         !HAVE_GETCWD_NULL code used to.
113628         Include "xalloc.h".
113629         (xgetcwd): Do not return NULL when memory is exhausted; instead,
113630         invoke xalloc_die.
113632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113634         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
113635         sys/param.h, as pathmax.h includes them.
113637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
113640         (jm_PREREQ_XGETCWD): New macro.
113642         * m4/getcwd.m4: New file.
113644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113646         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
113647         like the HAVE_GETCWD_NULL code.
113648         Include pathmax.h if not HAVE_GETCWD.
113649         Do not include xalloc.h.
113650         (INITIAL_BUFFER_SIZE): New symbol.
113651         Do not use xmalloc / xrealloc, since the caller is responsible for
113652         handling errors.  Preserve errno around `free' during failure.
113653         Do not overrun buffer when using getwd.
113655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113657         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
113658         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
113659         getcwd (NULL, 0).
113661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113663         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
113664         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
113665         spotted by Jim Meyering.
113667 2001-09-03  Jim Meyering  <meyering@lucent.com>
113669         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
113670         failure.
113672 2001-09-02  Jim Meyering  <meyering@lucent.com>
113674         * lib/error.c: Update from GNU libc.
113676 2001-09-01  Jim Meyering  <meyering@lucent.com>
113678         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
113679         Used by df.
113681 2001-09-01  Jim Meyering  <meyering@lucent.com>
113683         * lib/xreadlink.c: New file.
113684         * lib/xreadlink.h: New file.
113685         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
113686         xreadlink.h.
113688         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
113689         doesn't conflict with sparc Solaris 7's definition in
113690         /usr/include/sys/int_types.h.
113692         * lib/exclude.c: Use `""', not `<>' to #include non-system header
113693         files.
113694         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
113695         and strncasecmp as r-values.  Unixware didn't have declarations.
113697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113699         * lib/xstrtol.h: Add copyright notice.
113700         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
113701         LONGINT_INVALID_SUFFIX_CHAR.
113703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113705         * lib/xstrtol.c (strtoimax): New decl.
113707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113709         * lib/xgetcwd.c: Don't include pathmax.h.
113710         Include stdlib.h and unistd.h if available.
113711         Include xalloc.h.
113712         (xmalloc, xstrdup, free): Remove decls.
113713         (xgetcwd): Don't assume sizes fit in unsigned.
113714         Check for overflow when computing sizes.
113715         Simplify reallocation code.
113717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113719         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
113720         a directory's st_size can have an arbitrary value, so the old
113721         usage could waste an arbitrary amount of memory.  All uses
113722         changed.
113723         * lib/savedir.h: Update prototype.
113725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113727         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
113729         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
113730         old strtoimax.c.
113732         Also, make the following further changes to make this file's
113733         configuration more similar to that of strtol.c:
113734         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
113735         (strtoumax, uintmax_t, strtoull, strtol): Remove.
113736         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
113737         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
113738         changed to signed values.
113740         And make the following changes as well:
113741         Fix copyright notice, as 1999 was missing.
113742         (verify): New macro.
113743         (strtoimax): Check sizes at compile-time, not run-time.
113744         Prefer strtol to strtoll if both work.
113745         (main): Remove; it was not that useful and was a pain to maintain.
113747         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
113749 2001-08-31  Jim Meyering  <meyering@lucent.com>
113751         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
113752         Use an initial, malloc'd, buffer of length 128 rather than
113753         a statically allocated one of length 1024.
113755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113757         Simplify code, partly by assuming autoconf 2.52 semantics.
113759         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
113761         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
113762         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
113763         All uses removed.
113764         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
113765         Move AC_REQUIRE to next-to-top level, to avoid confusion.
113766         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
113767         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
113768         jm_AC_HEADER_INTTYPES_H.
113769         * m4/jm-macros.m4 (jm_MACROS): Likewise.
113771         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
113773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113774         Quote first arg of AC_DEFUN.
113775         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
113776         since they are needed to parse the include file even if we need
113777         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
113778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
113779         but with opposite signedness.
113781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113783         Merge 'exclude' changes from tar 1.13.22.
113784         This fixes one or two unlikely storage allocation overflow bugs,
113785         but doesn't change user-visible behavior otherwise.
113787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
113790         (jm_PREREQ_EXCLUDE): New macro.
113792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113794         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
113795         tm to be declared.
113797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113799         * lib/hash.c: Remove '2001' from copyright notice.
113801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113803         * lib/full-write.h: New file.
113804         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
113805         * lib/full-write.c: Correct credits, as cccp.c no longer
113806         exists and anyway it was so heavily changed from the old cccp
113807         code as to be unrecognizable.  Include full-write.h.
113808         (full_write): Return size_t, with short writes meaning failure.
113809         All callers changed.  This fixes a bug with large buffers
113810         on 64-bit hosts.
113811         * lib/utime.c: Include full-write.h.
113813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113815         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
113816         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
113817         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
113818         Include if available.
113819         (<xalloc.h>): Include
113820         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
113821         (verify): New macro.  Use it to verify that EXCLUDE macros do not
113822         collide with FNM macros.
113823         (struct patopts): New struct.
113824         (struct exclude): Use it, as exclude patterns now come with options.
113825         (new_exclude): Support above changes.
113826         (new_exclude, add_exclude_file):
113827         Initial size must now be a power of two to simplify overflow checking.
113828         (free_exclude, fnmatch_no_wildcards): New function.
113829         (excluded_filename): No longer requires options arg, as the options
113830         are determined by add_exclude.  Now returns bool, not int.
113831         (excluded_filename, add_exclude):
113832         Add support for the fancy new exclusion options.
113833         (add_exclude, add_exclude_file): Now takes int options arg.
113834         Check for arithmetic overflow when computing sizes.
113835         (add_exclude_file): xrealloc might modify errno, so don't
113836         realloc until after errno might be used.
113838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
113839         New macros.
113840         (free_exclude): New decl.
113841         (add_exclude, add_exclude_file): Now takes int options arg.
113842         (excluded_filename): No longer requires options arg, as the options
113843         are determined by add_exclude.  Now returns bool, not int.
113845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113847         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
113849 2001-08-27  Jim Meyering  <meyering@lucent.com>
113851         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113853         * lib/version-etc.c (N_): Remove definition.
113854         Revert most of last change.
113855         Instead, simply don't mark the `Copyright...' string for translation.
113856         Based on advice from Paul Eggert.
113858         * lib/strtoxmax.c: Tweak comment.
113860 2001-08-26  Jim Meyering  <meyering@lucent.com>
113862         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113864         * m4/xstrtoimax.m4: New file.
113865         * m4/xstrtoumax.m4: Add comments explaining why we
113866         AC_REPLACE_FUNCS(strtol).
113868 2001-08-26  Jim Meyering  <meyering@lucent.com>
113870         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113871         of copyright with `%s' so translators don't get an untranslated
113872         message in 2002.
113873         (COPYRIGHT_YEAR): Define.
113874         (version_etc): Use fprintf rather than fputs.
113875         Suggestion from Ulrich Drepper.
113877         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113879         * lib/strtoll.c: New file, from GNU libc.
113880         * lib/xstrtoimax.c: New file.
113882         * lib/xstrtol.h: Add xstrtoimax.
113883         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113884         * lib/strtoimax.c: New file.  Likewise, but first define
113885         STRTOUXMAX_SIGNED.
113887         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113888         ...
113889         * lib/strtoxmax.c: ... then renamed to this.
113891 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113893         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113894         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113895         (jm_AC_TYPE_INTMAX_T): New macro.
113896         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113898         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113900         * m4/longlong.m4: Renamed from ulonglong.m4.
113901         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113902         * m4/uintmax_t.m4: Removed.
113904 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113906         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113907         Port to Solaris 8, where 'sed' requires a space after the 'r'
113908         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113909         Redirect output to $tmp just once.
113911 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113913         * lib/addext.c (<errno.h>): Include.
113914         (errno): Declare if not defined.
113915         (addext): Work correctly when pathconf returns -1 and leaves
113916         errno alone because there is no limit.  Also, work even if
113917         pathconf returns a value greater than SIZE_MAX.
113919 2001-08-12  Jim Meyering  <meyering@lucent.com>
113921         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113922         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113923         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113924         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113925         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113926         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113927         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113928         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113929         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113930         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113931         utime.m4, utimes.m4, xstrtoumax.m4:
113932         Quote the first argument in each use of AC_DEFUN.
113934 2001-08-12  Jim Meyering  <meyering@lucent.com>
113936         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113937         Simply `return getcwd (NULL, 0);'.
113938         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113939         Use 1300 as initial value for length, not PATH_MAX.
113941         * lib/pathmax.h: Clean up cpp syntax.
113943 2001-08-12  Jim Meyering  <meyering@lucent.com>
113945         * lib/gettimeofday.c: New file.
113946         * lib/gtod.h: New file.
113947         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113949 2001-08-05  Jim Meyering  <meyering@lucent.com>
113951         * m4/jm-macros.m4: Require autoconf-2.52.
113953 2001-08-04  Jim Meyering  <meyering@lucent.com>
113955         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113956         stmt, to get in sync with glibc.
113958 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113960         The following changes are from gettext 0.10.39 as maintained by
113961         Bruno Haible.
113963         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113964         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113965         with inverted sense.  All uses changed.
113967         * lib/mbswidth.c: Don't include <limits.h>.
113968         Include <stdlib.h> and <string.h> unconditionally.
113969         (iswcntrl, mbsinit, ISCNTRL): New macros.
113970         (mbsnwidth): Use K&R style function declarations.
113971         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113972         can optimize it when MB_CUR_MAX == 1.
113973         The width of control characters is zero, not 1.
113975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113977         The following changes are from gettext 0.10.39 as maintained by
113978         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113980         * m4/codeset.m4: Upgrade to serial AM1.
113981         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113982         all uses changed.  Quote first arg of AC_DEFUN.
113983         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113985         * m4/iconv.m4: Upgrade to serial AM2.
113986         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113987         Add --with-libconv-prefix.
113988         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113989         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113990         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113991         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113992         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113994         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113995         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113996         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113997         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113998         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113999         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
114000         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
114001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
114002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
114004         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
114005         string.h any more.
114007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
114008         not the default value.
114010         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
114011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
114012         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
114013         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
114014         Also check for iswcntrl, used for wcwidth fallback.
114015         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
114016         to Autoconf 2.13.
114018 2001-08-03  Jim Meyering  <meyering@lucent.com>
114020         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
114021         as it was in the original.  Reported by Paul Eggert.
114023 2001-07-16  Jim Meyering  <meyering@lucent.com>
114025         * m4/gettimeofday.m4: New file.
114026         Prompted by a report from Bernhard Baehr.
114028 2001-07-15  Jim Meyering  <meyering@lucent.com>
114030         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
114031         stuff. Now it's in ../Makefile.cfg.
114033 2001-07-15  Jim Meyering  <meyering@lucent.com>
114035         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
114036         (BUILT_SOURCES): Add unlocked-io.h.
114037         (io_functions): Define.
114038         (unlocked-io.h): New rule.
114039         (DISTCLEANFILES): Add unlocked-io.h.
114040         (all-local): Depend on unlocked-io.h, to ensure it is created.
114042         * lib/unlocked-io.hin: New file
114044         * lib/regex.c: Update from glibc.
114046 2001-07-05  Jim Meyering  <meyering@lucent.com>
114048         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
114049         recommendation.
114050         (libfetish_a_SOURCES): Put all .h files here instead.
114051         Remove a thus-exposed (better checks in automake) duplicate and
114052         two unnecessary .h files.
114054 2001-07-04  Jim Meyering  <meyering@lucent.com>
114056         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
114057         that generates jm-glibc-io.m4 so that it doesn't trigger any make
114058         distcheck failure.
114060 2001-07-02  Jim Meyering  <meyering@lucent.com>
114062         The following changes were prompted by suggestions from Bruno Haible.
114064         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
114065         is now generated.
114066         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
114067         definition of EXTRA_DIST.
114068         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
114069         ensure that the generated file is created/updated whenever the list
114070         of $(unlocked_functions) is changed.
114071         (jm-glibc-io.m4): New rule.
114072         (unlocked-io.h): New rule -- currently unused.
114074 2001-06-24  Jim Meyering  <meyering@lucent.com>
114076         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
114077         unmatched right bracket, rather than kludging it with an extra,
114078         falsely-matching quote in a comment.  Patch by Akim Demaille.
114080 2001-06-11  Jim Meyering  <meyering@lucent.com>
114082         * lib/regex.c: Update from GNU libc.
114084 2001-05-27  Jim Meyering  <meyering@lucent.com>
114086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
114087         Check for ut_type in struct utmp.
114089 2001-05-27  Jim Meyering  <meyering@lucent.com>
114091         * lib/readutmp.h (UT_TYPE): Define.
114093 2001-05-24  Jim Meyering  <meyering@lucent.com>
114095         * lib/argmatch.c: Include "quote.h".
114096         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
114097         quote function.  Reported by Göran Uddeborg.
114099 2001-05-22  Jim Meyering  <meyering@lucent.com>
114101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
114102         now that we use the package-supplied version unconditionally.
114103         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
114105 2001-05-21  Jim Meyering  <meyering@lucent.com>
114107         * m4/regex.m4: Change a couple backticks to single quotes to avoid
114108         shell syntax errors.
114110 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
114112         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
114114 2001-05-20  Paul Eggert  <eggert@twinsun.com>
114116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
114117         Don't bother to check library strftime, since
114118         we'll be using our own my_strftime function anyway.
114119         Define my_strftime instead of strftime.
114121 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
114123         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
114124         which is not yet declared.
114126 2001-05-15  Jim Meyering  <meyering@lucent.com>
114128         * m4/regex.m4: Use proper quoting so brackets appear in the test
114129         program.
114130         Reported by, and with help from, Bruno Haible.
114132 2001-05-13  Jim Meyering  <meyering@lucent.com>
114134         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
114135         undefined.
114137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
114139         dirname code cleanup.  base_name now behaves more compatibly
114140         with POSIX basename when given file names that have trailing
114141         slashes, and similarly for dir_name.  Add new primitives
114142         base_len and dir_len.  Put the directory-name-related decls
114143         into dirname.h.
114145         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
114146         * lib/backupfile.c (base_name): Likewise.
114147         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
114148         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
114149         * lib/makepath.c (strip_trailing_slashes): Likewise.
114150         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
114151         ISSLASH): Likewise.
114152         * lib/rename.c (strip_trailing_slashes): Likewise.
114153         * lib/same.c (base_name): Likewise.
114154         * lib/stripslash.c (ISSLASH): Likewise.
114156         * lib/addext.c: Include <dirname.h> after size_t is defined.
114157         * lib/backupfile.c: Likewise.
114159         * lib/addext.c (addext): Use base_len to trim redundant
114160         trailing slashes instead of doing it ourselves.
114161         But do not trim the last slash if it is not redundant.
114163         * lib/backupfile.c (find_backup_file_name,
114164         max_backup_version): Use base_len instead of rolling it ourselves.
114165         Handle the case of "" and (on DOS) "C:" correctly.
114167         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
114168         needed. Include <string.h>, <dirname.h>.
114169         (base_name): Allow file names ending in slashes, other than names
114170         that are all slashes.  In this case, return the basename followed
114171         by the slashes.  This is more general, and can be used in places
114172         where the original base_name purposely had an assertion failure.
114173         (base_len): New function.
114175         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
114176         Do not include <assert.h>; no longer needed.
114177         Include xalloc.h.
114178         (memrchr): Remove decl.
114179         (dir_name_r): Remove.
114180         (dir_len): Renamed from dirlen.  All callers changed.
114181         Rewrite in terms of base_name, for simplicity and consistency.
114182         (dir_name): Never return NULL.  All callers changed.
114183         Do not include <stdlib.h> in test program; no longer needed.
114184         return 0; is fine for test program.
114186         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
114187         New macros.
114188         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
114190         * lib/path-concat.c (path_concat): Use base_len to compute
114191         base length, not strlen; this means we cannot rely on memcpy
114192         to null-terminate.
114194         * lib/same.c (STREQ): Remove.
114195         (same_name): Handle the case where the basename ends in trailing '/'.
114197         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
114198         a slash was stripped.  Do not strip the last slash after a
114199         file system prefix.
114201 2001-05-11  Paul Eggert  <eggert@twinsun.com>
114203         * lib/Makefile.am (libfetish_a_SOURCES):
114204         Add strftime.c, since we now compile it on all hosts.
114206         * lib/strftime.c (my_strftime):
114207         Define to nstrftime if emacs, but only if my_strftime is not defined.
114208         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
114209         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
114210         Add one more extra argument: a nanoseconds value.
114211         All uses changed.
114212         (ns): New macro.
114213         (my_strftime function): Add %N format.
114214         (emacs_strftimeu): Renamed from emacs_strftime,
114215         with extra ut argument.
114217 2001-05-09  Paul Eggert  <eggert@twinsun.com>
114219         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
114221 2001-04-21  Jim Meyering  <meyering@lucent.com>
114223         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
114224         doesn't interfere.
114226 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
114228         * m4/ftruncate.m4: Check for chsize.
114229         Link with ftruncate.o unconditionally if ftruncate is missing.
114230         This was required when cross-compiling to i586-mingw32msvc.
114232 2001-04-08  Jim Meyering  <meyering@lucent.com>
114234         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
114235         recomputed; that's necessary when the offset spans a DST transition.
114236         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
114238 2001-04-02  Jim Meyering  <meyering@lucent.com>
114240         * lib/regex.h, regex.c: Update from GNU libc.
114242 2001-03-24  Jim Meyering  <meyering@lucent.com>
114244         * m4/jm-macros.m4: Require autoconf-2.49d.
114246 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
114248         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
114250 2001-03-19  Paul Eggert  <eggert@twinsun.com>
114252         * lib/version-etc.c (version_etc_copyright): Update to 2001.
114254 2001-03-17  Jim Meyering  <meyering@lucent.com>
114256         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
114257         now that the version in autoconf is equivalent.
114258         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
114260         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
114261         Suggestion from Akim Demaille.
114263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
114264         (jm_PREREQ_TEMPNAME): New function.
114266 2001-03-16  Paul Eggert  <eggert@twinsun.com>
114268         * lib/tempname.c (uint64_t): Define to uintmax_t if
114269         not defined, and if UINT64_MAX is not defined.
114270         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
114271         Reported by John David Anglin.
114273 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
114275         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
114276         resolve alias if codeset is empty.
114277         * lib/config.charset (BeOS): Use wildcard syntax.
114279 2001-03-13  Jim Meyering  <meyering@lucent.com>
114281         * lib/path-concat.c (path_concat)
114282         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
114283         concatenating e.g., `C:' and `foo'.
114284         From Bruno Haible.
114286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114288         * lib/localcharset.c (locale_charset): Don't use
114289         setlocale(LC_CTYPE,NULL). Don't return NULL.
114290         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
114292 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114294         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
114295         support for DOS/DJGPP.
114297 2001-03-01  Paul Eggert  <eggert@twinsun.com>
114299         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
114300         lacks mkstemp.  Compile our own tempname.c if we compile our own
114301         mkstemp.c, as mkstemp relies on tempname.
114303 2001-03-01  Jim Meyering  <meyering@lucent.com>
114305         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
114306         AH_VERBATIM really does output its argument verbatim.
114308 2001-02-28  Paul Eggert  <eggert@twinsun.com>
114310         * lib/Makefile.am (libfetish_a_SOURCES):
114311         Add dup-safer.c, fopen-safer.c.
114312         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
114314         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
114315         * lib/unistd-safer.h: New files.
114317 2001-02-25  Paul Eggert  <eggert@twinsun.com>
114319         The mkstemp replacement is taken from glibc 2.2.2, with some
114320         portability fixes for use outside glibc, as follows:
114322         * lib/tempname.c (struct_stat64): New macro.
114323         (direxists, __gen_tempname): Use it.
114324         This avoids a portability problem with Solaris 8.
114326         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
114327         (<stddef.h>, <stdint.h>, <string.h>):
114328         Include only if STDC_HEADERS || _LIBC.
114329         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
114330         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
114331         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
114332         (__set_errno): Define this macro if <errno.h> doesn't.
114333         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
114334         Define these macros if <stdio.h> doesn't.
114335         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
114336         Define these macros if <sys/stat.h>
114337         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
114338         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
114339         __xstat64): Define if not _LIBC.
114340         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
114341         (__gen_tempname): Invoke gettimeofday only if
114342         HAVE_GETTIMEOFDAY || _LIBC;
114343         otherwise, fall back on plain "time".
114344         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
114346         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
114348         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
114350 2001-02-18  Paul Eggert  <eggert@twinsun.com>
114352         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
114354 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114356         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
114357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
114358         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
114359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114363         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
114364         Remove workaround macros for hosts that have mbrtowc but not
114365         mbstate_t, as we now insist on proper declarations for both
114366         before using mbrtowc.
114368 2001-02-17  Jim Meyering  <meyering@lucent.com>
114370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
114371         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
114372         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
114373         UnixWare 7.1.1.
114375         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
114376         rather than AC_CACHE_VAL.
114378 2001-02-17  Jim Meyering  <meyering@lucent.com>
114380         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
114381         around included file name.
114383         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
114385         * lib/strftime.c: Update from GNU libc (the only changes were to
114386         comments).
114388 2001-02-17  Jim Meyering  <meyering@lucent.com>
114390         * lib/regex.c: Update from libc.
114392 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
114394         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
114395         clash.
114397 2001-02-16  Paul Eggert  <eggert@twinsun.com>
114399         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
114400         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
114401         Reported by Mark Hounschell via Paul Eggert.
114403 2001-02-07  Jim Meyering  <meyering@lucent.com>
114405         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
114407 2001-02-05  Jim Meyering  <meyering@lucent.com>
114409         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
114410         it includes the patch required for `large file' support with at least
114411         HP-UX's 10.20 /bin/cc.
114413 2001-02-03  Jim Meyering  <meyering@lucent.com>
114415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
114416         AS_IF, now that it works once again (mysteriously).
114417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114419 2001-01-30  Jim Meyering  <meyering@lucent.com>
114421         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
114422         * m4/chown.m4: Rename conftestchown to conftest.chown.
114423         * m4/rename.m4: s/conftestdir/conftest.d1/ and
114424         s/conftestdir2/conftest.d2/.
114425         * m4/utimes.m4: s/conftestdata/conftest.data/
114426         Inspired by Pavel Roskin's change in autoconf.
114428 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
114430         * lib/config.charset: Update for FreeBSD 4.2.
114432 2001-01-27  Jim Meyering  <meyering@lucent.com>
114434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
114435         a use of AS_IF.
114436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114438 2001-01-26  Jim Meyering  <meyering@lucent.com>
114440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
114441         quotearg.c includes it.
114443 2001-01-26  Jim Meyering  <meyering@lucent.com>
114445         * lib/quotearg.c: Include stddef.h.
114446         * lib/quote.c: Include stddef.h.
114447         Reported by Axel Kittenberger.
114449         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
114450         line in double quotes so that it evokes a better diagnostic.
114451         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
114452         Reported by Axel Kittenberger.
114454 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
114456         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
114457         as if it was a `charset'.
114459 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114461         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
114462         has const.
114464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114466         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
114467         to avoid a warning.  Add back 'const' to inptr.
114469 2001-01-20  Jim Meyering  <meyering@lucent.com>
114471         Be sure that headers are checked before used in code compiled
114472         for the type checks.
114473         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
114474         In place of that, invoke jm_CHECK_ALL_TYPES.
114475         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
114476         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
114477         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
114478         The check for ssize_t was mistakenly run before the test for unistd.h.
114480         The configure-time check for stdbool.h was missing.
114481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
114482         (jm_PREREQ_HASH): New function.
114484 2001-01-17  Jim Meyering  <meyering@lucent.com>
114486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
114487         for autoconf-2.49c.
114488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
114490 2001-01-16  Jim Meyering  <meyering@lucent.com>
114492         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
114493         From Bruno Haible.
114495 2001-01-14  Jim Meyering  <meyering@lucent.com>
114497         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
114498         foo and bar.  Create conftestdir/ in the script, not in the C code.
114499         Remove directories in the script, not in the C code.
114500         Remove conftestdir{,2} before trying to create the directory.
114501         Make the entire configure script fail if the mkdir fails.
114503 2001-01-14  Jim Meyering  <meyering@lucent.com>
114505         * lib/rename.c: New file.  From Volker Borchert.
114506         Include stdlib.h, string.h or strings.h, and xalloc.h.
114507         Use strip_trailing_slashes rather than open-coding it.
114509 2001-01-03  Paul Eggert  <eggert@twinsun.com>
114511         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
114513 2001-01-03  Jim Meyering  <meyering@lucent.com>
114515         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
114516         of local `inptr' to avoid warning with some system declarations of
114517         iconv.
114519 2001-01-02  Volker Borchert  <bt@teknon.de>
114521         * m4/rename.m4: New file.
114522         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
114524 2001-01-01  Jim Meyering  <meyering@lucent.com>
114526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
114527         even on systems with utmpx.h.  It's necessary for the declaration of
114528         utmp's ut_user member.  Reported by Andreas Jaeger.
114530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
114531         available. They are required for the declarations of getgrgid and
114532         getpwuid resp.
114533         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
114534         Reported by Andreas Jaeger.
114536 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
114538         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
114539         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
114540         so `make install' also works in VPATH builds.
114542 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
114544         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
114545         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
114546         can be used in subdirectories.
114548 2000-12-29  Paul Eggert  <eggert@twinsun.com>
114550         * lib/modechange.c: Do not assume that mode_t uses the
114551         traditional octal encoding.  E.g. "chmod 1 FOO" should set
114552         the other-execute bit of FOO even if S_IXOTH != 1.
114554         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
114555         WOTH, XOTH, ALLM): New macros.
114556         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
114557          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
114558         Use them.
114559         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
114560         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
114561         (mode_compile):
114562         No need to use uintmax_t; unsigned long is long enough.
114563         Don't bother to get suffix since we don't use it.
114565 2000-12-26  Jim Meyering  <meyering@lucent.com>
114567         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
114568         better with autoheader.
114570 2000-12-24  Jim Meyering  <meyering@lucent.com>
114572         * lib/hash.c (is_prime): Return explicit boolean values.
114573         (hash_get_first): Return NULL to appease Irix5.6's 89.
114574         Reported by Nelson Beebe.
114576 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
114578         * lib/localcharset.c (locale_charset): Add support for Win32.
114580 2000-12-18  Paul Eggert  <eggert@twinsun.com>
114582         * lib/physmem.h, lib/physmem.c: New files.
114584         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
114585         (noinst_HEADERS): Add physmem.h.
114587         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
114588         't' for compatibility with Solaris 8 sort.
114590 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
114592         * lib/config.charset: Add support for BeOS.
114594 2000-12-17  Jim Meyering  <meyering@lucent.com>
114596         * m4/dos.m4 (jm_AC_DOS): New file and macro.
114597         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
114599 2000-12-16  Jim Meyering  <meyering@lucent.com>
114601         This bug had a serious impact on chown: `chown N:M FILE' (for integer
114602         N and M) would have treated it like `chown N:N FILE'.
114604         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
114606 2000-12-16  Jim Meyering  <meyering@lucent.com>
114608         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
114609         SHELLS_FILE to a file name that's useful on djgpp systems.
114610         Include stdlib.h.
114611         (ADDITIONAL_DEFAULT_SHELLS): Define.
114612         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
114613         Based mostly on a patch from Prashant TR.
114615 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
114617         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
114618         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
114619         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
114621 2000-12-08  Andreas Schwab  <schwab@suse.de>
114623         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
114624         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
114626 2000-12-07  Jim Meyering  <meyering@lucent.com>
114628         * lib/stripslash.c (ISSLASH): Define.
114629         (strip_trailing_slashes): Use ISSLASH rather than comparing against
114630         `/'.
114631         From Prashant TR.
114633         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
114634         (dir_name_r): Declare this function as static.
114635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
114636         manifest itself on a name containing a mix of slashes and
114637         backslashes.
114638         Make this function work with names starting with a DOS-style
114639         drive letter and colon prefix.
114640         (dir_name): Append `.' if necessary.
114641         Based mostly on patches from Prashant TR and Eli Zaretskii.
114643         * lib/dirname.h (dir_name_r): Remove prototype.
114645 2000-12-06  Paul Eggert  <eggert@twinsun.com>
114647         * m4/off_t-format.m4: Remove this file.
114648         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
114650 2000-12-06  Jim Meyering  <meyering@lucent.com>
114652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
114653         replacement strtoull, we may well need the replacement strtoul, too.
114654         Check for declarations of strtoul and strtoull.
114655         Check for strtol.  Mainly as a cue to cause automake to include
114656         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
114657         Check for limits.h -- strtol.c needs it.
114659 2000-12-05  Jim Meyering  <meyering@lucent.com>
114661         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
114663 2000-12-04  Jim Meyering  <meyering@lucent.com>
114665         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
114666         Also include memory.h, stdlib.h, unistd.h if appropriate.
114667         Reported by Andreas Jaeger (conflicting declaration of malloc).
114669 2000-12-02  Jim Meyering  <meyering@lucent.com>
114671         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
114672         * m4/jm-macros.m4 (jm_MACROS): require it.
114674 2000-12-02  Jim Meyering  <meyering@lucent.com>
114676         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
114678 2000-12-01  Paul Eggert  <eggert@twinsun.com>
114680         * lib/memrchr.c: Include <config.h> before any system include file.
114682 2000-11-30  Jim Meyering  <meyering@lucent.com>
114684         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
114686 2000-11-30  Jim Meyering  <meyering@lucent.com>
114688         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
114690 2000-11-29  Paul Eggert  <eggert@twinsun.com>
114692         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
114694 2000-11-26  Jim Meyering  <meyering@lucent.com>
114696         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
114698 2000-11-22  Paul Eggert  <eggert@twinsun.com>
114700         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
114701         size of (size_t) -1; it's not portable.
114703 2000-11-17  Jim Meyering  <meyering@lucent.com>
114705         * lib/strstr.c: Update from GNU libc.
114707 2000-11-17  Akim Demaille  <akim@epita.fr>
114709         * lib/obstack.h: Formatting changes.
114710         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
114711         prevent type checking.
114712         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
114713         cast the value to (void *): assigning a `foo *' to a `void *'
114714         variable is valid.
114715         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
114717 2000-11-16  Jim Meyering  <meyering@lucent.com>
114719         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
114721 2000-11-11  Jim Meyering  <meyering@lucent.com>
114723         * lib/error.c: Add a couple #includes, merging from GNU libc version.
114725 2000-11-10  Jim Meyering  <meyering@lucent.com>
114727         * lib/obstack.h: Update from GNU libc.
114728         * lib/obstack.c: Likewise.
114730 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
114732         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
114734 2000-11-06  Paul Eggert  <eggert@twinsun.com>
114736         * lib/getusershell.c (setusershell): Use rewind rather than
114737         fseek/fseeko, to avoid configuration hassles with fseeko.
114738         Don't bother opening SHELLS_FILE if shellstream is NULL;
114739         it's not necessary.
114741 2000-11-05  Jim Meyering  <meyering@lucent.com>
114743         * lib/makepath.h (make_dir): Declare.
114744         * lib/makepath.c (make_dir): Remove `static' attribute.
114745         Tweak a comment.
114747 2000-11-04  Jim Meyering  <meyering@lucent.com>
114749         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
114751 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
114753         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
114754         last one in a bucket, advance to the next bucket.
114756 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
114758         * lib/fnmatch.c: Do not comment out all the code if we are using
114759         the GNU C library, because in some cases we are replacing buggy
114760         code in the GNU C library itself.
114762 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
114764         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
114765         (regex_compile): Catch bogus \(\1\).
114767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114769         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
114770         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
114771         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
114773 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114775         * lib/error.h, getline.h, modechange.h:
114776         Remove "2000" from Copyright line, as the file hasn't been
114777         changed this year other than in the copyright notice.
114779         * lib/xalloc.h: Add "2000" to Copyright line, as this file
114780         was changed this year.
114782 2000-10-29  Jim Meyering  <meyering@lucent.com>
114784         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
114785         renaming.
114786         * m4/ls-mntd-fs.m4: Likewise
114788 2000-10-29  Jim Meyering  <meyering@lucent.com>
114790         * lib/xstat.in: Fix grammar in comment.
114792 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
114794         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
114795         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
114796         doesn't define __restrict_arr.
114798 2000-10-28  Jim Meyering  <meyering@lucent.com>
114800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
114801         (jm_PREREQ_MEMCHR): New function.
114803 2000-10-28  Jim Meyering  <meyering@lucent.com>
114805         * lib/memchr.c: Update from libc.
114806         Adjust for portability:
114807         [HAVE_STDLIB_H]: Include stdlib.h.
114808         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
114809         Undef __memchr, too.
114810         [!weak_alias]: Define __memchr to memchr.
114812         * lib/regex.c: Update from libc.
114813         * lib/regex.h: Likewise.
114814         * lib/getopt1.c: Likewise.
114815         * lib/memcmp.c: Likewise.
114817         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
114818         Avoid using fseek, when possible -- it's broken by design.
114819         Patch by Ulrich Drepper.
114821 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
114823         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
114824         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
114825         Giving in to popular pressure to shut up the compiler with casts.
114827 2000-10-26  Jim Meyering  <meyering@lucent.com>
114829         * lib/strftime.c: Update from libc.
114831 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
114833         * regex.c: More `unsigned char' -> `re_char' changes.
114834         Also change several `int' into `re_wchar_t'.
114835         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
114836         (PUSH_FAILURE_POINTER): Don't cast any more.
114837         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
114838         We want GCC to complain, since this piece of code makes
114839         re_match non-reentrant, which *should* be fixed.
114840         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
114841         (EXTEND_BUFFER): Use RETALLOC.
114842         (SET_LIST_BIT): Don't cast.
114843         (re_wchar_t): New type.
114844         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
114845         that those two functions will always properly return.
114846         (IMMEDIATE_QUIT_CHECK): Cast to void.
114847         (analyse_first): Use recursion rather than an explicit stack.
114848         (re_compile_fastmap): Can't fail anymore.
114849         (re_search_2): Don't check re_compile_fastmap for failure.
114850         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114851         Now also sets the new value (passed in a new argument).
114852         (re_match_2_internal): Use it.
114853         Also, use a new var `reg' of type size_t when looping through regs
114854         rather than reuse the inappropriate `mcnt'.
114856 2000-10-25  Jim Meyering  <meyering@lucent.com>
114858         * lib/obstack.c: Update from libc.
114860 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114862         * regex.c (regex_compile): Change the way of handling a range from
114863         a char less than 256 to a char not less than 256.
114865 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114867         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114868         NT-Emacs only.
114869         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114870         so that re_search functions only quit when callers expect them to.
114872 2000-10-23  Jim Meyering  <meyering@lucent.com>
114874         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114875         wrong.  That set_locale call must not have any side effects.
114876         From Paul Eggert.
114878 2000-10-22  Jim Meyering  <meyering@lucent.com>
114880         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114881         [CYCLIC]: Remove now-unused definition.
114883         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114884         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114885         Suggestion from Ulrich Drepper.
114887 2000-10-21  Jim Meyering  <meyering@lucent.com>
114889         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114890         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114893 2000-10-21  Jim Meyering  <meyering@lucent.com>
114895         * lib/dirname.c (memrchr): Declare if necessary.
114896         (dir_name): Remove the restriction that there be no
114897         trailing slashes.  Now, this code skips past them, effectively
114898         ignoring them.
114899         [TEST_DIRNAME] (main): New unit tests.
114901         * lib/memrchr.c: New file from GNU libc.
114902         Undef __memrchr, too.
114903         [!weak_alias]: Define __memrchr to memrchr.
114904         Guard weak_alias use with `#ifdef weak_alias'.
114906 2000-10-21  Jim Meyering  <meyering@lucent.com>
114908         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114909         (dir_name): Use dir_name_r.
114910         * lib/dirname.h (dir_name_r): Declare it.
114912 2000-10-17  Jim Meyering  <meyering@lucent.com>
114914         * lib/quote.h (PARAMS): Define and use.
114915         Reported by Akim Demaille.
114917         * lib/getopt.c: Update from libc.
114919 2000-10-16  Jim Meyering  <meyering@lucent.com>
114921         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114922         setlocale.
114923         From Jan Fedak.
114925 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114927         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114929 2000-09-25  Jim Meyering  <meyering@lucent.com>
114931         * lib/md5.h (rol): Define (from GnuPG).
114933         * lib/sha.c: Give credit (GnuPG) where due.
114934         (M): Use rol rather than open-coding it.
114935         Add a FIXME comment.
114937 2000-09-21  Jim Meyering  <meyering@lucent.com>
114939         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114940         Reported by Michael Stone.
114942 2000-09-20  Jim Meyering  <meyering@lucent.com>
114944         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114945         (noinst_HEADERS): Add sha.h.
114946         Based on code from Scott G. Miller and from GnuPG.
114948 2000-09-18  Jim Meyering  <meyering@lucent.com>
114950         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114951         LIBS. Otherwise, everyone ends up linking with -lelf for some
114952         configurations.
114953         Reported by Mike Stone.
114955 2000-09-15  Jim Meyering  <meyering@lucent.com>
114957         * lib/regex.c: Update from libc.
114959 2000-09-10  Jim Meyering  <meyering@lucent.com>
114961         * lib/getopt.c (_getopt_internal): Update from glibc.
114963 2000-09-09  Jim Meyering  <meyering@lucent.com>
114965         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114966         think it should be used as a general replacement for isascii.
114967         * lib/fnmatch.c: Likewise.
114968         * lib/mbswidth.c: Likewise
114969         * lib/regex.c: Likewise.
114971         Don't use atoi.
114972         * lib/userspec.c: Include sys/param.h and limits.h.
114973         Include xstrtol.h.
114974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114975         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114976         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114977         UID, GID.  Check range.
114979 2000-09-06  Jim Meyering  <meyering@lucent.com>
114981         * lib/getopt.c (_getopt_internal): Update from glibc.
114983 2000-08-30  Jim Meyering  <meyering@lucent.com>
114985         * lib/strftime.c: Merge in changes from GNU libc.
114987 2000-08-26  Jim Meyering  <meyering@lucent.com>
114989         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114990         * m4/fpending.m4: New file.
114992 2000-08-26  Jim Meyering  <meyering@lucent.com>
114994         * lib/closeout.c: Include "__fpending.h".
114995         (close_stdout_status): Return right away if there's nothing to flush.
114997         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114998         * lib/__fpending.c: New file.
114999         * lib/__fpending.h: New file.
115001 2000-08-20  Jim Meyering  <meyering@lucent.com>
115003         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
115004         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
115005         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
115007 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
115009         Improve fileutils installation on systems where running
115010         programs (like install) can't be unlinked.
115011         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
115012         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
115014 2000-08-07  Paul Eggert  <eggert@twinsun.com>
115016         Standardize on "memory exhausted" instead of "Memory exhausted"
115017         or "virtual memory exhausted".
115018         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
115019         "virtual memory exhausted".
115020         * lib/same.c (same_name): Invoke xalloc_die instead of printing
115021         our own message.
115022         * lib/userspec.c (parse_user_spec): Likewise.
115023         * lib/bumpalloc.h: comment fix
115024         * lib/same.c, userspec.c: Include xalloc.h.
115026         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
115027         not char *const and pointing to a constant array.
115028         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
115029         (xrealloc): Comment fix.
115031         * lib/userspec.c (parse_user_spec):
115032         Don't translate a message until just before returning,
115033         to avoid unnecessary translation.
115035 2000-08-07  Jim Meyering  <meyering@lucent.com>
115037         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
115038         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
115039         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
115040         getgroups.c, gethostname.c, getopt.h, group-member.c,
115041         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
115042         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
115043         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
115044         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
115045         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
115046         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
115047         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
115048         yesno.c: Back out Copyright date changes for each file with no change
115049         this year.  This eases coordination with other programs using the same
115050         source code modules.  From Paul Eggert.
115052 2000-08-06  Paul Eggert  <eggert@twinsun.com>
115054         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
115055         not char, for compatibility with glibc 2.1.3 strftime.c.
115057 2000-08-03  Greg McGary  <greg@mcgary.org>
115059         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
115060         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
115061         (EXTEND_BUFFER): Use them.
115063 2000-08-01  Jim Meyering  <meyering@lucent.com>
115065         * lib/dirname.c (ISSLASH): Define.
115066         (BACKSLASH_IS_PATH_SEPARATOR): Define.
115067         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
115068         both `\' and `/' may be use as path separators.
115069         Based on a patch from Prashant TR.
115071 2000-07-31  Paul Eggert  <eggert@twinsun.com>
115073         * lib/quotearg.c (quotearg_n_options): Don't make the initial
115074         slot vector a constant, since it might get modified.
115076 2000-07-31  Jim Meyering  <meyering@lucent.com>
115078         * lib/xmalloc.c: Use `virtual memory exhausted', not
115079         `Memory exhausted'.
115080         * lib/obstack.c (print_and_abort): Likewise.
115082 2000-07-30  Paul Eggert  <eggert@twinsun.com>
115084         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
115085         buffer, so that the caller can always quote one small
115086         component of a "memory exhausted" message in slot 0.
115087         From a suggestion by Jim Meyering.
115089 2000-07-30  Jim Meyering  <meyering@lucent.com>
115091         * lib/makepath.c (make_path): Quote the other instance, too.
115093         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
115094         (STATIC_BUF_SIZE): Define.
115095         (quotearg_n_options): Use only statically allocated storage when
115096         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
115097         than STATIC_BUF_SIZE.
115099 2000-07-29  Jim Meyering  <meyering@lucent.com>
115101         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
115102         * lib/dirname.c (dir_name): Likewise.
115104         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
115105         `/'.
115107         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
115108         (dir_name): Assert that there are no trailing slashes.
115110 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
115112         * lib/mbswidth.h (mbswidth): Add a flags argument.
115113         (mbswidth): New declaration.
115114         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
115115         * lib/mbswidth.c (mbswidth): Add a flags argument.
115116         (mbsnwidth): New function.
115118 2000-07-24  Jim Meyering  <meyering@lucent.com>
115120         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
115122 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115124         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
115126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115128         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
115129         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
115130         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
115131         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
115132         invoke multibyte primitives.
115134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115136         * lib/quotearg.c:
115137         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
115138         so that mbstate_t is always defined.
115140         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
115141         be 1 in at least one GCC installation, and this configuration
115142         error is likely to be common.  Ignoring MB_LEN_MAX hurts
115143         performance on hosts that have mbrtowc but have only unibyte
115144         locales, but I assume these hosts are rare.
115146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115148         * lib/mbswidth.c (_XOPEN_SOURCE):
115149         Don't define; this causes problems on Solaris 7.
115150         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
115152 2000-07-23  Jim Meyering  <meyering@lucent.com>
115154         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
115155         too: getgrgid, getpwuid, getuid.
115157 2000-07-23  Jim Meyering  <meyering@lucent.com>
115159         * lib/basename.c (base_name): Add an assertion.
115161 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
115163         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
115164         shadow its mbsinit function.
115166 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
115168         * lib/mbswidth.h: New file.
115169         * lib/mbswidth.c: New file.
115170         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
115171         (noinst_HEADERS): Add mbswidth.h.
115173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
115175         * lib/config.charset: Add support for FreeBSD. Improve support for
115176         HP-UX and IRIX 6.
115178 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
115180         * m4/mbswidth.m4: New file.
115181         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
115183 2000-07-15  Jim Meyering  <meyering@lucent.com>
115185         * lib/makepath.c: Include quote.h.
115186         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
115187         corresponding argument in a `quote (...)' call.
115188         Give better diagnostics.
115190         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
115191         (noinst_HEADERS): Add quote.h.
115193         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
115194         from tar's src/misc.c.
115195         * lib/quote.h: New file.  Prototypes for same.
115197 2000-07-14  Paul Eggert  <eggert@twinsun.com>
115199         From a suggestion by Bruno Haible.
115200         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
115201         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
115202         to decide whether to define the BeOS workaround macro;
115203         this adjusts to the change to AC_MBSTATE_T.
115205 2000-07-14  Jim Meyering  <meyering@lucent.com>
115207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
115208         jm_AC_TYPE_UINTMAX_T.
115210 2000-07-13  Paul Eggert  <eggert@twinsun.com>
115212         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
115214         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
115215         quotearg_buffer_restyled): Add support for
115216         clocale_quoting_style.  Undo previous change to
115217         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
115218         and "{RIGHT QUOTATION MARK}" msgids.
115220 2000-07-10  Paul Eggert  <eggert@twinsun.com>
115222         From a suggestion by Bruno Haible.
115223         * m4/mbstate_t.m4 (AC_MBSTATE_T):
115224         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
115225         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
115226         and mbstate_t, to a single-part test that simply defines mbstate_t.
115227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
115228         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
115230 2000-07-10  Jim Meyering  <meyering@lucent.com>
115232         * m4/strerror_r.m4: Mirror the correction made in autoconf.
115234         * m4/gnu-source.m4: Output to confdefs.h directly.
115235         Suggestion from Akim Demaille.
115237 2000-07-09  Paul Eggert  <eggert@twinsun.com>
115239         The old behavior of quoting `like this' doesn't look good with
115240         newer, ISO-style fonts.  See:
115241         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
115243         Instead, quote "like this" by default.  Let the translator
115244         tailor the locale-specific quoting behavior by providing
115245         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
115247         * lib/quotearg.c (N_): New macro.
115248         (gettext_default): New function.
115249         (quotearg_buffer_restyled): Use
115250         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
115251         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
115253 2000-07-09  Jim Meyering  <meyering@lucent.com>
115255         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
115256         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
115258         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
115259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
115261 2000-07-09  Jim Meyering  <meyering@lucent.com>
115263         * lib/Most files: Update copyright dates to include 2000.
115265 2000-07-08  Jim Meyering  <meyering@lucent.com>
115267         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
115268         if not defined.
115269         (xgethostname): Remove now-unnecessary #ifdef.
115270         Move declaration of `err' into loop where it's used.
115272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115273         and Bruno Haible  <haible@clisp.cons.org>
115275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
115276         only if the test for an object-type mbstate_t fails.  This
115277         prevents us from mistakenly reporting that mbstate_t is a
115278         system object type after we "#define mbstate_t int" to work
115279         around its lack.
115281 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115282         and Bruno Haible  <haible@clisp.cons.org>
115284         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
115286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
115289         to strerror_r.
115290         Include <ctype.h> for use of isalpha.
115292 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115294         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
115295         by allocating a larger buffer. Test the gethostname return value for
115296         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
115297         returns an error and ENAMETOOLONG isn't defined.
115299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115301         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
115302         dimension.
115304 2000-07-04  Jim Meyering  <meyering@lucent.com>
115306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
115307         of the deprecated AC_CHECKING.
115309 2000-07-04  Jim Meyering  <meyering@lucent.com>
115311         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
115312         Reported by Bruno Haible.
115314 2000-07-04  Jim Meyering  <meyering@lucent.com>
115316         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
115317         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
115318         lacks mbrtowc.
115320 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115322         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
115323         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
115325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115326         and Bruno Haible  <haible@clisp.cons.org>
115328         * lib/quotearg.c (mbrtowc):
115329         Assign to *pwc, and return 1 only if result is nonzero.
115330         (iswprint): Use ISPRINT when substituting our own mbrtowc.
115332 2000-07-03  Jim Meyering  <meyering@lucent.com>
115334         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
115336 2000-07-03  Jim Meyering  <meyering@lucent.com>
115338         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
115339         This is necessary to get a definition of e.g., UTMP_FILE on
115340         HP-UX 10.20.
115341         From Bob Proulx.
115343 2000-07-02  Jim Meyering  <meyering@lucent.com>
115345         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
115347         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
115348         AC_LIBOBJ(function_name).
115349         * m4/chown.m4: Likewise.
115350         * m4/fnmatch.m4: Likewise.
115351         * m4/ftruncate.m4: Likewise.
115352         * m4/getgroups.m4: Likewise.
115353         * m4/getline.m4: Likewise.
115354         * m4/group-member.m4: Likewise.
115355         * m4/jm-macros.m4: Likewise.
115356         * m4/lstat.m4: Likewise.
115357         * m4/malloc.m4: Likewise.
115358         * m4/memcmp.m4: Likewise.
115359         * m4/nanosleep.m4: Likewise.
115360         * m4/putenv.m4: Likewise.
115361         * m4/realloc.m4: Likewise.
115362         * m4/regex.m4: Likewise.
115363         * m4/stat.m4: Likewise.
115364         * m4/strftime.m4: Likewise.
115366 2000-07-02  Jim Meyering  <meyering@lucent.com>
115368         * lib/quotearg.c (mbstate_t): Don't define here.
115370 2000-07-02  Jim Meyering  <meyering@lucent.com>
115372         * lib/nanosleep.c (SIGCONT): Define if not already defined.
115374 2000-07-01  Jim Meyering  <meyering@lucent.com>
115376         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
115378 2000-07-01  Jim Meyering  <meyering@lucent.com>
115380         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
115381         problem.
115383 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
115386         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
115388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115390         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
115391         per change in ../m4/ls-mntd-fs.m4.
115392         (read_filesystem_list): Ignore symbolic links.
115394 2000-06-29  Jim Meyering  <meyering@lucent.com>
115396         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
115397         for declaration of strcmp.
115399         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
115401         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
115402         Avoid warning by casting result to `char *' to remove `const'.
115404 2000-06-28  Jim Meyering  <meyering@lucent.com>
115406         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
115407         included by quotearg.c, for which we perform this test.  From
115408         Bruno Haible.
115410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115412         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
115413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
115414         <utmpx.h> exists, put readutmp.o into LIBOBJS.
115416 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115418         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
115420 2000-06-26  Paul Eggert  <eggert@twinsun.com>
115422         savedir now sets errno on failure and invokes xmalloc to get memory.
115423         Fix a couple of other minor bugs while we're at it.
115425         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
115426         (NAMLEN): Remove macro.
115427         (malloc, realloc): Remove decls.
115428         (stpcpy): Likewise.
115429         ("xalloc.h"): Include.
115430         (NAME_SIZE_DEFAULT): New macro.
115431         (savedir): Use xmalloc / xrealloc to allocate memory.
115432         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
115433         Skip "" directory entries.
115434         Use strlen to calculate directory entry length, since the old method
115435         is rarely used these days and isn't worth supporting.
115436         Don't use a pointer after freeing it.
115437         Check for integer overflow when calculating allocation size.
115438         Use memcpy to copy entries, instead of stpcpy.
115439         Set errno properly when returning NULL.
115440         Check for readdir error.
115442 2000-06-26  Jim Meyering  <meyering@lucent.com>
115444         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
115446 2000-06-25  Jim Meyering  <meyering@lucent.com>
115448         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
115449         Linux header bug when _XOPEN_SOURCE is defined to 500.
115451 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115453         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
115454         deficiency.
115456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115458         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
115459         Include xalloc.h.
115460         Don't include <stdlib.h>.  Don't declare malloc, realloc.
115462 2000-06-24  Jim Meyering  <meyering@lucent.com>
115464         * m4/strerror_r.m4: Revive this file -- to try out an experimental
115465         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
115466         for which strerror does return char*, but which lacks a conveniently
115467         accessible declaration of the function.  If the compile-test says
115468         strerror_r doesn't work, then resort to a `run'-test that works on
115469         BeOS and segfaults on DEC Unix.
115471 2000-06-24  Jim Meyering  <meyering@lucent.com>
115473         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
115475 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115477         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
115478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
115480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115482         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
115483         (mbrtowc, mbstate_t): Define substitutes if
115484         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
115485         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
115486         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
115488 2000-06-23  Jim Meyering  <meyering@lucent.com>
115490         * m4/afs.m4: Add missing AC_MSG_RESULT.
115491         Reported by Bruno Haible.
115493         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
115494         Suggestion from Bruno Haible.
115496 2000-06-23  Jim Meyering  <meyering@lucent.com>
115498         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
115500 2000-06-21  Jim Meyering  <meyering@lucent.com>
115502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
115504 2000-06-21  Jim Meyering  <meyering@lucent.com>
115506         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
115507         (noinst_HEADERS): Add getstr.h.
115509         * lib/getline.c (getstr): Move into a separate file.
115510         * lib/getstr.c (getstr): New file, extracted from getline.c, with
115511         the following changes: new parameter, delim2; both delim[12]
115512         parameters have type `int', not `char'.  The latter would lose
115513         with 8-bit delimiters.
115514         * lib/getstr.h: New file.
115516 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115518         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
115519         than 1024, return a memory chunk of least possible size, instead
115520         of size PATH_MAX + 2. In the loop, increment the size proportionally.
115521         Use free/xmalloc instead of xrealloc to avoid copying for very long
115522         paths.
115524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115526         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
115527         the empty string.
115529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115531         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
115532         address, not strdup.  Include <stdlib.h> and don't declare free().
115534 2000-06-19  Jim Meyering  <meyering@lucent.com>
115536         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
115538 2000-06-18  Jim Meyering  <meyering@lucent.com>
115540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
115542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
115543         `checking whether...' message to be consistent with that of the
115544         lstat test.
115546 2000-06-18  Jim Meyering  <meyering@lucent.com>
115548         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
115549         Besides, these days every porting target provides a mkdir function.
115551         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
115552         needed. (this snippet comes from src/system.h).
115554 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
115556         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
115558 2000-06-15  Paul Eggert  <eggert@twinsun.com>
115560         * lib/human.c (adjust_value): New function.
115561         (human_readable_inexact): Apply rounding style even when
115562         printing approximate values.
115564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115566         * lib/human.c (human_readable_inexact): Allow an input block
115567         size that is not a multiple of the output block size, and vice versa.
115568         Reported by Piergiorgio Sartor.
115570 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115572         * lib/getdate.y (get_date): Apply relative times after time
115573         zone indicator, not before.  Reported by Todd A. Jacobs.
115575 2000-06-13  Jim Meyering  <meyering@lucent.com>
115577         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
115579         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
115581 2000-06-12  Paul Eggert  <eggert@twinsun.com>
115583         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
115585 2000-06-12  Jim Meyering  <meyering@lucent.com>
115587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
115588         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
115589         optional argument.
115590         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
115591         the optional argument, `lib'.
115593 2000-06-08  Jim Meyering  <meyering@lucent.com>
115595         * m4/largefile.m4: Remove file (now that it's part of autoconf).
115597 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115599         Rewrite largefile configuration so that we don't need to run
115600         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
115601         AC_CANONICAL_HOST in configure.in -- jmm]
115603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
115604         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
115605         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
115606         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
115607         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
115608         All uses changed.
115609         Instead of inspecting the output of getconf, try to compile the
115610         test program without and with the macro definition.
115611         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
115612         for getconf.  Instead, check for the needed flags by compiling
115613         test programs.
115615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115617         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
115619 2000-06-04  Jim Meyering  <meyering@lucent.com>
115621         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
115622         SunOS 4.1.4 for which gid_t is an unsigned type.
115624 2000-06-03  Jim Meyering  <meyering@lucent.com>
115626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
115627         now that autoconf requires that.
115629         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
115630         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
115631         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
115633 2000-06-03  Jim Meyering  <meyering@lucent.com>
115635         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
115637 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115639         * m4/glibc21.m4: New file.
115640         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
115642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115644         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
115645         newer, don't install charset.alias.
115646         * lib/config.charset: Change the Linux/glibc rules so they become empty
115647         on glibc-2.1 or newer.
115649 2000-06-02  Jim Meyering  <meyering@lucent.com>
115651         * lib/mountlist.c: Back out last change.  Instead, do this...
115652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
115653         me_dummy member using the same `ignore'-testing code.
115654         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
115655         fs_type strings.
115656         From Mark D. Roth.
115658 2000-05-29  Jim Meyering  <meyering@lucent.com>
115660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
115661         mounts with the `ignore' attribute.  Based on a patch from
115662         Mark D. Roth.
115664 2000-05-28  Jim Meyering  <meyering@lucent.com>
115666         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
115667         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115668         * m4/stat.m4: Likewise.
115669         * m4/lstat.m4: Likewise.
115670         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
115672         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
115673         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
115675 2000-05-26  Jim Meyering  <meyering@lucent.com>
115677         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
115679 2000-05-24  Jim Meyering  <meyering@lucent.com>
115681         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
115682         autoconf requires that.
115683         * m4/lib-check.m4: Likewise.
115684         * m4/jm-macros.m4: Likewise.
115685         * m4/strftime.m4: Likewise.
115687         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
115688         AC_CHECK_DECLS, now that autoconf requires that.
115690 2000-05-22  Jim Meyering  <meyering@lucent.com>
115692         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115693         * m4/lstat.m4: Likewise.
115695 2000-05-22  Jim Meyering  <meyering@lucent.com>
115697         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
115699 2000-05-20  Jim Meyering  <meyering@lucent.com>
115701         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
115702         (jm_PREREQ): Use it.
115704 2000-05-18  Jim Meyering  <meyering@lucent.com>
115706         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
115707         back, too, since it may have been modified by allocate_entry.
115708         (hash_delete): Rewrite to use neither the assignment operator
115709         nor the comma operator in an if-expression.
115711 2000-05-15  Paul Eggert  <eggert@twinsun.com>
115713         * lib/closeout.c:
115714         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
115715         Remove; no longer needed.
115716         "quotearg.h": Add include.
115717         (file_name): Do not bother to explicitly initialize to NULL; it's less
115718         efficient on some hosts.
115719         (close_stdout_status): Remove test as to whether stdout was already
115720         closed; it breaks for the case "echo x | sort >&-".
115721         Quote file name colons.
115722         Do not assume that _("write error") lacks format strings.
115724 2000-05-15  Jim Meyering  <meyering@lucent.com>
115726         * lib/version-etc.c (version_etc_copyright): Update the copyright
115727         string used in all --version output.
115729 2000-05-14  Jim Meyering  <meyering@lucent.com>
115731         * lib/closeout.c (close_stdout_set_file_name): New function.
115732         (close_stdout_status): Use new file-scoped global.
115733         Return right away if fstat says the stdout file descriptor is invalid.
115734         * lib/closeout.h (close_stdout_set_file_name): Declare.
115736 2000-05-10  Jim Meyering  <meyering@lucent.com>
115738         * lib/closeout.c [default_exit_status]: New file-scoped variable.
115739         (close_stdout_set_status): New function.
115740         * lib/closeout.h (close_stdout_set_status): Declare.
115742 2000-05-09  Jim Meyering  <meyering@lucent.com>
115744         * m4/gettext.m4: Rename this...
115745         * m4/libintl.m4: ...to this.
115747 2000-05-08  Jim Meyering  <meyering@lucent.com>
115749         * lib/long-options.c: Don't include closeout.h.
115750         (parse_long_options): Don't call close_stdout for --version.
115752 2000-05-06  Paul Eggert  <eggert@twinsun.com>
115754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
115755         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
115756         2.1.3 bug.  This avoids a clash when files like regex.c define
115757         _GNU_SOURCE.
115759 2000-05-06  Jim Meyering  <meyering@lucent.com>
115761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
115762         (AC_REPLACE_FUNCS): Add strnlen.
115764         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
115765         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
115767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
115768         AC_SEARCH_LIBS call for nanosleep.
115769         (LIB_NANOSLEEP): Set and AC_SUBST.
115771 2000-05-06  Jim Meyering  <meyering@lucent.com>
115773         * lib/strnlen.c: Undefine __strnlen and strnlen.
115774         [!weak_alias]: Define __strnlen to strnlen.
115776         * lib/atexit.c: New file, from libiberty.
115778 2000-05-06  Jim Meyering  <meyering@lucent.com>
115780         * lib/closeout.c (close_stdout_status): Also check for errors on the
115781         stderr stream.
115783 2000-05-05  Jim Meyering  <meyering@lucent.com>
115785         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
115786         AC_SEARCH_LIBS call for clock_gettime.
115787         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
115789         * m4/search-libs.m4: Update from autoconf.
115791         su doesn't work on Solaris 2.6.
115792         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
115793         <shadow.h>.  Reported by Dragos Harabor.
115795 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
115797         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
115798         memcpy instead of xmalloc, xrealloc, path_concat.
115799         (locale_charset): Treat empty environment variables as absent.
115800         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
115802 2000-05-04  Jim Meyering  <meyering@lucent.com>
115804         * lib/getopt.c: Update from glibc.
115805         * lib/obstack.c: Likewise.
115806         * lib/obstack.h: Likewise.
115807         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
115808         file
115810         * lib/regex.h: Likewise.
115811         * lib/strndup.c: Likewise.
115812         * lib/strnlen.c: New file, from glibc.
115814 2000-05-03  Jim Meyering  <meyering@lucent.com>
115816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
115818 2000-05-02  Paul Eggert  <eggert@twinsun.com>
115820         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
115821         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
115822         compile-time test, rather than inspecting host and OS, to
115823         decide whether to define _LARGEFILE_SOURCE.
115825 2000-05-01  Jim Meyering  <meyering@lucent.com>
115827         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
115829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
115830         Based on a patch from Bruno Haible.
115832 2000-05-01  Jim Meyering  <meyering@lucent.com>
115834         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
115836 2000-04-29  Jim Meyering  <meyering@lucent.com>
115838         * lib/path-concat.c: Declare strdup only if it's not defined.
115839         * lib/canon-host.c: Likewise.
115841 2000-04-28  Jim Meyering  <meyering@lucent.com>
115843         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
115844         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
115845         is included first, then limits.h is included by locale.h by libintl.h.
115846         From John David Anglin.
115848 2000-04-25  Jim Meyering  <meyering@lucent.com>
115850         * lib/makepath.c (S_IRWXUGO): Define.
115851         (make_path): Always perform explicit chmod if MODE specifies any
115852         of the `special' permission bits.  Prompted by a bug report against
115853         install from Mate Wierdl and Joost van Baal.
115855 2000-04-18  Jim Meyering  <meyering@lucent.com>
115857         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115858         (jm_PREREQ): Use it.
115860 2000-04-18  Jim Meyering  <meyering@lucent.com>
115862         * lib/README: New file.
115864         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115865         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115867 2000-04-17  Jim Meyering  <meyering@lucent.com>
115869         Get it right :-)
115870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115871         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115872         Suggestion from Akim Demaille.
115874 2000-04-17  Jim Meyering  <meyering@lucent.com>
115876         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115877         the definition of it to rpl_strftime also defined-away the system's
115878         declaration.
115880 2000-04-15  Jim Meyering  <meyering@lucent.com>
115882         Use `C' to denote so-called `contiguous' files, the same way
115883         that tar does.
115884         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115885         (ftypelet): Use S_ISCTG.
115886         From Michael Deutschmann.
115888 2000-04-14  Jim Meyering  <meyering@lucent.com>
115890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115891         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115892         clobbered.
115894 2000-04-14  Jim Meyering  <meyering@lucent.com>
115896         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115898 2000-04-13  Jim Meyering  <meyering@lucent.com>
115900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115901         AH_VERBATIM to insert required #ifndef into config.h.in.
115902         Suggestion from Akim Demaille.
115904 2000-04-12  Jim Meyering  <meyering@lucent.com>
115906         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115907         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115908         Christian Krackowizer.
115910         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115911         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115912         (AC_SYS_LARGEFILE): Require.
115913         (AM_C_PROTOTYPES): Require.
115915 2000-04-08  Jim Meyering  <meyering@lucent.com>
115917         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115918         names don't conflict.  Reported by Eli Zaretskii.
115920 2000-04-07  Jim Meyering  <meyering@lucent.com>
115922         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115923         sys/types.h, to work around system header problems on AIX 3.2.5.
115924         From Bruno Haible.
115926 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115928         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115929         bug.  Deal with the different error behavior of Irix iconv.
115931 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115934         IRIX if the installer said otherwise.
115936 2000-04-05  Jim Meyering  <meyering@lucent.com>
115938         Portability tweaks required for ultrix4.3.
115939         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115940         (jm_CHECK_DECLS): Add getutent to the list of functions.
115941         (_jm_DECL_HEADERS): Add utmpx.h.
115942         From John David Anglin.
115944         * m4/strftime.m4: Back out the 2000-04-02 change.
115945         Instead of that change, simply undefine putenv in the test program.
115947 2000-04-05  Jim Meyering  <meyering@lucent.com>
115949         Portability tweaks required for ultrix4.3.
115950         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115951         getutent.
115952         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115953         * lib/canon-host.c: Declare strdup.
115954         * lib/path-concat.c: Likewise.
115955         From John David Anglin.
115957 2000-04-04  Jim Meyering  <meyering@lucent.com>
115959         Be more DOS 8.3-friendly.
115960         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115961         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115962         * lib/Makefile.am: Reflect renaming.
115963         Reported by Eli Zaretskii.
115965         Use a temporary file name that won't clash with `charset.alias'
115966         in the DOS 8.3 name space.
115967         * lib/Makefile.am (charset_tmp): Define.
115968         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115969         (uninstall-local): Likewise.
115970         Reported by Eli Zaretskii.
115972 2000-04-03  Jim Meyering  <meyering@lucent.com>
115974         * m4/gettext.m4: Fix typo in comment.
115976         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115977         textutils/configure.in).  Suggestion from Paul Eggert.
115978         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115980 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115982         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115983         variable in the shell rather than using putenv, which isn't
115984         portable.  This avoids the configure-time inter-test dependency
115985         on the potentially-renamed putenv function.
115987 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115990         before checking struct stat.st_blksize, so that
115991         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115996         since strftime.c uses HAVE_STRFTIME to decide whether to use
115997         the underlying strftime.
115999 2000-03-29  Paul Eggert  <eggert@twinsun.com>
116001         * lib/time/strftime.c (my_strftime): Make sure we call the system
116002         strftime, not ourselves, when invoking the underlying strftime.
116004 2000-03-24  Jim Meyering  <meyering@lucent.com>
116006         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
116007         (charset_alias): Define.
116008         (install-exec-local): Factor out common code.
116009         (uninstall-local): Split lines longer than 80.
116010         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
116011         (SUFFIXES): Define.
116012         (.sed.in.sed): New rule.  Don't redirect directly to $@.
116013         (CLEANFILES): Add ref-add.sed and ref-del.sed.
116015 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
116017         * lib/config.charset: Output a line containing "Packages using this
116018         file".
116019         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
116020         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
116021         ref-del.sed): New rules.
116023 2000-03-17  Jim Meyering  <meyering@lucent.com>
116025         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
116026         Otherwise, include <strings.h>
116028 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
116030         * lib/unicodeio.c (utf8_wctomb): New function.
116031         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
116032         format instead of in UCS-4 with platform dependent endianness.
116034 2000-03-10  Jim Meyering  <meyering@lucent.com>
116036         * m4/lib-check.m4: Look for getspnam in -lgen, too.
116037         From Marco Franzen.
116039 2000-03-07  Paul Eggert  <eggert@twinsun.com>
116041         * lib/savedir.c (savedir): Work even if directory size is
116042         negative; this can happen with some screwy NFS configurations.
116044 2000-03-06  Jim Meyering  <meyering@lucent.com>
116046         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
116047         if it's NULL (because we ran out of memory).  From Bruno Haible.
116049 2000-03-05  Jim Meyering  <meyering@lucent.com>
116051         * lib/localcharset.c ("path-concat.h"): Include.
116052         (get_charset_aliases): Use path_concat instead of ANSI string
116053         concatenation.
116055         * lib/unicodeio.h (PARAMS): Define.
116056         Use it to guard prototype.
116058 2000-03-04  Jim Meyering  <meyering@lucent.com>
116060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
116061         for lib/localcharset.c.
116063 2000-03-04  Jim Meyering  <meyering@lucent.com>
116065         * lib/Makefile.am (install-exec-local): Create $(libdir) before
116066         installing into it.
116067         (uninstall-local): Uncomment this rule so `make distcheck' works
116068         once again.
116070         * lib/unicodeio.c (<errno.h>): Include it.
116071         (errno): Declare if not defined.
116073         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
116075         * lib/config.charset: New version, incorporating remarks from a linux
116076         i18n mailing list.  From Bruno Haible.
116078 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
116080         * m4/codeset.m4: New file.
116081         * m4/iconv.m4: New file.
116082         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
116084 2000-03-03  Jim Meyering  <meyering@lucent.com>
116086         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
116088 2000-03-02  Jim Meyering  <meyering@lucent.com>
116090         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
116091         the messages come out on separate lines.
116093         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
116094         rather than jm_CHECK_DECLARATIONS.
116095         * m4/decl.m4: Remove now-unused file.
116097         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
116098         geteuid.
116100 2000-03-02  Jim Meyering  <meyering@lucent.com>
116102         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
116104 2000-03-01  Jim Meyering  <meyering@lucent.com>
116106         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
116107         * lib/unicodeio.c: Likewise.
116109 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
116111         * lib/config.charset: New file.
116112         * lib/localcharset.c: New file.
116113         * lib/unicodeio.h, lib/unicodeio.c: New files.
116114         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
116115         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
116116         (noinst_HEADERS): Add unicodeio.h.
116117         (all-local, install-exec-local, charset.alias): New targets.
116119 2000-02-28  Paul Eggert  <eggert@twinsun.com>
116121         * lib/quotearg.c (ALERT_CHAR): New macro.
116122         (quotearg_buffer_restyled): Use it.
116124 2000-02-27  Jim Meyering  <meyering@lucent.com>
116126         * m4/check-decl.m4: Add getenv to the list.
116128 2000-02-27  Jim Meyering  <meyering@lucent.com>
116130         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
116131         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
116133         * lib/backupfile.c: Guard inclusion of stdlib.h with
116134         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
116135         Declare malloc if needed.
116137         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
116138         `#ifndef HAVE_DECL..'
116139         now that autoconf always defines the HAVE_DECL_ symbols.
116140         * lib/human.c: Likewise.
116141         * lib/same.c: Likewise.
116142         * lib/strtoumax.c: Likewise.
116144         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
116145         declaration check was not run.
116146         * lib/hash.c: Likewise.
116147         * lib/human.c: Likewise.
116148         * lib/same.c: Likewise.
116149         * lib/strtoumax.c: Likewise.
116151         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
116152         `.', then first look up the entire `.'-containing string as a login
116153         name.
116155 2000-02-23  Jim Meyering  <meyering@lucent.com>
116157         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
116158         in place of my hack.
116160 2000-02-18  Paul Eggert  <eggert@twinsun.com>
116162         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
116163         (textint): New typedef.
116164         (parser_control): Member year changed from int to textint.
116165         All uses changed.
116166         (YYSTYPE): Removed; replaced by %union with int and textint members.
116167         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
116168         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
116169         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
116170         (tSNUMBER, tUNUMBER): Now of type <textintval>.
116171         (date, number, to_year): Use width of number in digits, not its value,
116172         to determine whether it's a 2-digit year, or a 2-digit time.
116173         (yylex): Store number of digits of numeric tokens.
116174         Reported by John Kendall.
116176         (parser_control): Changed from struct parser_control to typedef (for
116177         consistency).  All uses changed.
116179         (tID): Removed; not used.
116180         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
116182 2000-02-14  Paul Eggert  <eggert@twinsun.com>
116184         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
116185         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
116187 2000-02-12  Jim Meyering  <meyering@lucent.com>
116189         * lib/userspec.c (ISDIGIT): Define it.
116190         (isdigit): Remove definition.
116191         (is_number): Use ISDIGIT, not isdigit.
116192         <libintl.h>: Include.
116193         (_ and N_): Define.
116194         (parse_user_spec): Mark translatable strings.
116196 2000-02-10  Jim Meyering  <meyering@lucent.com>
116198         With these changes, nanosleep.[ch] are finally enough like the other
116199         lib/* replacement files to compile on a few more losing systems.
116201         * lib/nanosleep.h: Don't include config.h.
116202         Remove prototype from declaration of nanosleep.
116203         (PARAMS): Remove now-unneeded definition.
116204         * lib/nanosleep.c: #undef nanosleep.
116205         (rpl_nanosleep): Rename from nanosleep.
116207 2000-02-10  Jim Meyering  <meyering@lucent.com>
116209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
116210         gnu_nanosleep to rpl_nanosleep.
116212 2000-02-09  Jim Meyering  <meyering@lucent.com>
116214         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
116215         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
116217 2000-02-08  Akim Demaille  <akim@epita.fr>
116219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
116220         `[' and `]' and remove uses of `changequote'.
116221         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
116222         (AC_SYS_LARGEFILE): Likewise.
116223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
116224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
116225         of changequote.
116226         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
116227         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
116228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
116229         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
116231 2000-02-05  Jim Meyering  <meyering@lucent.com>
116233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
116234         Remove explicit use of AC_HEADER_TIME.  It is required by
116235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
116236         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
116237         in autoconf whereby the expansion of the latter ended up preceding
116238         the expansion of its prerequisite, AC_HEADER_TIME.
116239         Reported by Volker Borchert.
116241 2000-02-03  Jim Meyering  <meyering@lucent.com>
116243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
116245 2000-02-03  Jim Meyering  <meyering@lucent.com>
116247         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
116248         rather than with `#if HAVE_UTMPNAME'.
116250 2000-02-02  Jim Meyering  <meyering@lucent.com>
116252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
116253         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
116254         Reported by Eli Zaretskii.
116256 2000-02-01  Jim Meyering  <meyering@lucent.com>
116258         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
116260 2000-01-31  Jim Meyering  <meyering@lucent.com>
116262         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
116263         functions.  Add the time.h and sys/time.h headers along with the
116264         AC_REQUIRE'ment of AC_HEADER_TIME.
116266 2000-01-31  Jim Meyering  <meyering@lucent.com>
116268         * lib/nanosleep.h (nanosleep): Guard declaration with
116269         `#if ! HAVE_DECL_NANOSLEEP'.
116270         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
116271         the declaration in that vendor's sys/timers.h.
116272         Reported by Christian Krackowizer.
116274         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
116275         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
116276         (ISPRINT): Likewise.
116277         Reported by Tom Tromey.
116279 2000-01-30  Jim Meyering  <meyering@lucent.com>
116281         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
116283         * m4/prereq.m4 (utmp_includes): Define.
116284         Check for ut_user and ut_name members in both struct utmpx
116285         and struct utmp.
116287 2000-01-30  Jim Meyering  <meyering@lucent.com>
116289         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
116290         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
116291         header files where only utmpx.ut_user is declared.
116293         * lib/readutmp.h (UT_USER): Define.
116295 2000-01-29  Jim Meyering  <meyering@lucent.com>
116297         * m4/lib-check.m4: New file containing library-related checks from
116298         fileutils and sh-utils (textutils had none).
116300 2000-01-28  Jim Meyering  <meyering@lucent.com>
116302         * m4/perl.m4: Change format of warning message to look more like that
116303         from the missing script.  Suggestion from François Pinard.
116305 2000-01-25  Jim Meyering  <meyering@lucent.com>
116307         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
116308         well as time.h in the compile check.
116309         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
116310         Fix typo in cross-compiling case: s/yes/no/.
116312 2000-01-23  Jim Meyering  <meyering@lucent.com>
116314         * m4/jm-macros.m4: Move df-related tests here from
116315         fileutils/configure.in
116317         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
116318         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
116320         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
116321         s/space/ac_fsusage_space/.
116322         (jm_FILE_SYSTEM_USAGE): Take two parameters.
116324         * m4/ftruncate.m4: New file (derived from part of
116325         fileutils/configure.in).
116326         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
116327         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
116329         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
116330         AC_SUBST these here, rather than just in sh-util/configure.in, so
116331         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
116332         all the same.
116333         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
116334         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
116335         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
116336         (AC_SUBST(POW_LIBM)): Likewise.
116337         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
116339 2000-01-23  Jim Meyering  <meyering@lucent.com>
116341         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
116342         obstack.c.
116344 2000-01-22  Jim Meyering  <meyering@lucent.com>
116346         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
116348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
116350         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
116351         configure.in
116352         (AC_CHECK_HEADERS): Likewise for sh-utils.
116353         (AC_CHECK_HEADERS): Likewise for textutils.
116354         Merge the three lists of headers.
116356         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
116357         from fileutils' configure.in.
116359         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
116360         code. Moved tests into their own function (_jm_DECL_HEADERS) in
116361         check-decl.m4.
116363         * m4/check-decl.m4: Use #if rather than #ifdef.
116364         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
116365         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
116366         (_jm_DECL_HEADERS): Define new function.
116367         (jm_CHECK_DECLARATIONS): Require it.
116369 2000-01-22  Jim Meyering  <meyering@lucent.com>
116371         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
116372         [! HAVE_DECL_STRTOULL]: Declare strtoull.
116373         Required for some AIX systems.  Reported by Christian Krackowizer.
116374         [TESTING] (main): New function.
116376         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
116377         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
116378         letters.
116380         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
116381         iswprint.
116383         * lib/strverscmp.c (ISDIGIT): Define.
116384         (strverscmp): Use ISDIGIT, not isdigit.
116386 2000-01-19  Jim Meyering  <meyering@lucent.com>
116388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
116389         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
116390         defines `struct timespec' in <sys/time.h>
116392         * m4/c-bs-a.m4: Remove uses of changequote altogether.
116393         Thanks to Akim for explaining.
116395 2000-01-17  Paul Eggert  <eggert@twinsun.com>
116397         * lib/nanosleep.c (nanosleep):
116398         Don't use SA_INTERRUPT to decide whether to call sigaction, as
116399         POSIX.1 doesn't require SA_INTERRUPT and some systems
116400         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
116401         it's been part of POSIX.1 since day 1 (in 1988).
116403 2000-01-17  Jim Meyering  <meyering@lucent.com>
116405         * lib/interlock: Remove unused file.  Reported by François Pinard.
116407 2000-01-16  Paul Eggert  <eggert@twinsun.com>
116409         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
116410         alert, backslash, formfeed, and vertical tab unnecessarily in
116411         shell quoting style.
116413 2000-01-16  Jim Meyering  <meyering@lucent.com>
116415         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
116416         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
116417         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
116418         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
116420 2000-01-16  Jim Meyering  <meyering@lucent.com>
116422         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
116423         because the latter didn't work.
116425 2000-01-15  Jim Meyering  <meyering@lucent.com>
116427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
116428         (AC_REPLACE_FUNCS): Add memcpy and memset.
116429         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
116430         Add strpbrk.
116431         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
116433 2000-01-12  Jim Meyering  <meyering@lucent.com>
116435         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
116436         (jm_PREREQ): Use it.
116437         (jm_PREREQ_READUTMP): New macro.
116438         (jm_PREREQ): Use it.
116440 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116442         Quote multibyte characters correctly.
116443         * m4/c-bs-a.m4: New file.
116444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
116445         (jm_PREREQ): Use it.
116447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116449         * m4/uintmax_t.m4: Port to autoconf 2.13.
116451 2000-01-08  Jim Meyering  <meyering@ascend.com>
116453         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
116454         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
116456 2000-01-04  Jim Meyering  <meyering@ascend.com>
116458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
116459         jm_STRUCT_DIRENT_D_TYPE.
116460         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
116461         jm_STRUCT_DIRENT_D_INO.
116462         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
116463         jm_STRUCT_UTIMBUF.
116464         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
116465         renamings.
116466         * m4/utime.m4: Likewise.
116468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
116469         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
116471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
116473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
116474         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
116476 2000-01-02  Jim Meyering  <meyering@ascend.com>
116478         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
116479         remember if this is necessary.
116481 1999-12-26  Jim Meyering  <meyering@ascend.com>
116483         * m4/jm-macros.m4: Use it here.
116484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
116486 1999-12-23  Jim Meyering  <meyering@ascend.com>
116488         * m4/jm-macros.m4: Check for clock_gettime (moved from
116489         fileutils/configure.in)
116490         Check for gettimeofday.
116492 1999-12-20  Jim Meyering  <meyering@ascend.com>
116494         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
116495         autoconf-2.14a-1999-12-20.
116497 1999-12-19  Jim Meyering  <meyering@ascend.com>
116499         * m4/lstat-slash.m4: New file.
116500         * m4/jm-macros.m4: Use the new macro:
116501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
116503 1999-12-07  Jim Meyering  <meyering@ascend.com>
116505         * m4/perl.m4: Require that File::Compare be available, too.
116506         Too many systems seem to lack it.
116508         * m4/strftime.m4: Add checks for most of the cpp macros tested in
116509         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
116511 1999-11-18  Paul Eggert  <eggert@twinsun.com>
116513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
116514         problem with the QNX 4.25 shell, which doesn't propagate exit
116515         status of failed commands inside shell assignments.
116517 1999-11-17  Jim Meyering  <meyering@ascend.com>
116519         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
116521 1999-11-07  Jim Meyering  <meyering@ascend.com>
116523         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
116525 1999-11-06  Jim Meyering  <meyering@ascend.com>
116527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
116528         * m4/jm-macros.m4 (jm_MACROS): Use it here.
116530 1999-11-05  Jim Meyering  <meyering@ascend.com>
116532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
116533         configure.in of textutils, fileutils, and sh-utils into this one
116534         (shared between those packages) file.
116535         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
116536         AC_STRUCT_ST_BLKSIZE.
116538 1999-11-03  Jim Meyering  <meyering@ascend.com>
116540         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
116541         of AC_CHECK_TYPE checks includes unistd.h.
116542         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
116543         Suggestion from Akim Demaille.
116545 1999-10-30  Jim Meyering  <meyering@ascend.com>
116547         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
116548         m4-quoted string.
116549         * m4/ls-mntd-fs.m4: Likewise.
116550         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
116551         * m4/jm-winsz1.m4: Likewise.
116553         * m4/const.m4: Remove file, since the fix made it into the experimental
116554         version of autoconf.
116555         * m4/mktime.m4: Likewise.
116557         * m4/check-type.m4: Remove file, now that the latest version of
116558         AC_CHECK_TYPE takes a third arg to specify additional #includes.
116560         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
116561         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
116562         AC_CHECK_TYPE.
116564 1999-10-04  Jim Meyering  <meyering@ascend.com>
116566         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
116568 1999-09-22  Paul Eggert  <eggert@twinsun.com>
116570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
116571         2.95.1 bug with HP-UX 10.20.
116573 1999-09-17  Jim Meyering  <meyering@ascend.com>
116575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
116576         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
116577         due to missing strdup (against sh-utils-2.0).
116579 1999-08-29  Jim Meyering  <meyering@ascend.com>
116581         * m4/jm-macros.m4: Require jm_BISON.
116582         * m4/bison.m4: New file.
116584 1999-08-17  Paul Eggert  <eggert@twinsun.com>
116586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
116587         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
116589 1999-08-05  Jim Meyering  <meyering@ascend.com>
116591         * m4/getline.m4: Rename test file from conftestdata to conftest.data
116592         to avoid conflicts with `conftest' on 8+3 filesystems.
116593         Suggestion from Eli Zaretskii.
116595 1999-08-04  Jim Meyering  <meyering@ascend.com>
116597         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
116598         fileutils and sh-utils (textutils's getline test was inadequate).
116599         (AM_FUNC_GETLINE): Run this test.
116600         (AC_CHECK_FUNCS): Check for getdelim.
116601         Reported by Bob Proulx.
116603 1999-08-02  Jim Meyering  <meyering@ascend.com>
116605         * m4/jm-macros.m4: Add a comment.
116607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
116610         <inttypes.h> defines strtoumax as a macro (and not as a
116611         function).
116613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
116616         that we can shift, multiply and divide unsigned long long
116617         values; Ultrix cc can't do it.
116619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116621         * m4/mktime.m4: New file, which is a preview of what should appear
116622         in the next public autoconf release.
116624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116626         * m4/lfs.m4: Remove this file.
116627         * m4/largefile.m4: New file.  It contains the old contents of
116628         lfs.m4, except that all names with prefix AC_LFS have been
116629         changed to use the prefix AC_SYS_LARGEFILE instead, to be
116630         compatible with future autoconf versions.  Also, some minor m4
116631         quoting problems have been fixed.
116633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116635         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
116636         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
116637         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
116638         and simplify the shell code.
116640 1999-08-01  Jim Meyering  <meyering@ascend.com>
116642         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
116643         m4.
116645 1999-07-20  Jim Meyering  <meyering@ascend.com>
116647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
116649 1999-07-15  Jim Meyering  <meyering@ascend.com>
116651         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
116653 1999-05-22  Jim Meyering  <meyering@ascend.com>
116655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
116657 1999-05-20  Jim Meyering  <meyering@ascend.com>
116659         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
116660         Add a colon after each `then' in case $4 is empty.
116662 1999-05-16  Jim Meyering  <meyering@ascend.com>
116664         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
116666 1999-05-10  Jim Meyering  <meyering@ascend.com>
116668         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
116670         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
116671         AC_FUNC_MKTIME.
116673 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
116675         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
116677 1999-05-04  Paul Eggert  <eggert@twinsun.com>
116679         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
116680         not CPPFLAGS, so that linking works correctly in IRIX.
116682 1999-04-30  Paul Eggert  <eggert@twinsun.com>
116684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
116686 1999-04-20  Paul Eggert  <eggert@twinsun.com>
116688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
116689         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
116690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
116691         jm_AC_TYPE_UNSIGNED_LONG_LONG.
116692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
116694         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
116696 1999-04-20  Jim Meyering  <meyering@ascend.com>
116698         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
116699         AC_REPLACE xstroull if necessary.  From Paul Eggert.
116700         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
116702 1999-04-18  Jim Meyering  <meyering@ascend.com>
116704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
116705         * m4/jm-macros.m4: Use it.
116707 1999-04-06  Jim Meyering  <meyering@ascend.com>
116709         * m4/strftime.m4: Remove test for %f.
116711 1999-03-29  Jim Meyering  <meyering@ascend.com>
116713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
116714         superset of the AC_TYPE_* checks in the textutils, fileutils,
116715         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
116716         AC_TYPE_PID_T.
116718 1999-03-28  Jim Meyering  <meyering@ascend.com>
116720         * m4/jm-macros.m4: Define GNU_PACKAGE here.
116721         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
116722         replaced e.g., in the *.sh files of the sh-utils.
116724 1999-03-20  Jim Meyering  <meyering@ascend.com>
116726         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
116727         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
116728         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
116730 1999-03-19  Jim Meyering  <meyering@ascend.com>
116732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
116734 1999-03-12  Jim Meyering  <meyering@ascend.com>
116736         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
116738 1999-03-07  Jim Meyering  <meyering@ascend.com>
116740         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
116741         declared.
116743 1999-02-17  Jim Meyering  <meyering@ascend.com>
116745         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
116746         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
116748 1999-02-07  Jim Meyering  <meyering@ascend.com>
116750         * m4/group-member.m4: New file -- extracted from sh-utils'
116751         configure.in.
116753         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
116754         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
116756 1999-02-06  Jim Meyering  <meyering@ascend.com>
116758         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
116759         * m4/fnmatch.m4: Likewise.
116760         * m4/getgroups.m4: Likewise.
116761         * m4/lstat.m4: Likewise.
116762         * m4/malloc.m4: Likewise.
116763         * m4/putenv.m4: Likewise.
116764         * m4/realloc.m4: Likewise.
116765         * m4/regex.m4: Likewise.
116766         * m4/stat.m4: Likewise.
116767         * m4/strftime.m4: Likewise.
116768         Suggestion from Alain Magloire.
116770         * m4/chown.m4: Use `.$ac_objext', not `.o'.
116771         * m4/fnmatch.m4: Likewise.
116772         * m4/getgroups.m4: Likewise.
116773         * m4/getline.m4: Likewise.
116774         * m4/lstat.m4: Likewise.
116775         * m4/malloc.m4: Likewise.
116776         * m4/memcmp.m4: Likewise.
116777         * m4/putenv.m4: Likewise.
116778         * m4/realloc.m4: Likewise.
116779         * m4/regex.m4: Likewise.
116780         * m4/stat.m4: Likewise.
116781         * m4/strftime.m4: Likewise.
116782         Suggestion from Alain Magloire.
116784         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
116785         an argument.
116787         * m4/regex.m4: Add a run-time Test for proper operation of
116788         re_compile_pattern.
116790 1999-01-31  Jim Meyering  <meyering@ascend.com>
116792         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
116794 1999-01-30  Jim Meyering  <meyering@ascend.com>
116796         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
116798         * m4/jm-mktime.m4: Make this a wrapper around the official
116799         AM_FUNC_MKTIME rather than my private copy, now that the official one
116800         is up to date.
116801         * m4/mktime.m4: Remove file.
116803         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
116804         * m4/uptime.m4: Likewise.
116805         * m4/uintmax_t.m4: Likewise.
116807 1999-01-28  Jim Meyering  <meyering@ascend.com>
116809         * m4/jm-macros.m4: Use jm_AFS.
116810         * m4/afs.m4: New file (from fileutils' configure.in).
116812         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
116813         * m4/chown.m4: Likewise.
116814         * m4/d-ino.m4: Likewise.
116815         * m4/d-type.m4: Likewise.
116816         * m4/fnmatch.m4: Likewise.
116817         * m4/getgroups.m4: Likewise.
116818         * m4/gettext.m4: Likewise.
116819         * m4/jm-mktime.m4: Likewise.
116820         * m4/jm-winsz2.m4: Likewise.
116821         * m4/lcmessage.m4: Likewise.
116822         * m4/ls-mntd-fs.m4: Likewise.
116823         * m4/malloc.m4: Likewise.
116824         * m4/memcmp.m4: Likewise.
116825         * m4/putenv.m4: Likewise.
116826         * m4/realloc.m4: Likewise.
116827         * m4/st_mtim.m4: Likewise.
116828         * m4/strftime.m4: Likewise.
116830 1999-01-16  Jim Meyering  <meyering@ascend.com>
116832         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
116833         (ARGMATCH_DIE_DECL): Define.
116835 1999-01-12  Jim Meyering  <meyering@ascend.com>
116837         * m4/Makefile.am.in: Rewrite to avoid using fmt.
116838         Reported by Lars Hecking.
116840 1999-01-10  Jim Meyering  <meyering@ascend.com>
116842         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
116843         gross kludge.
116844         * m4/inttypes_h.m4: Likewise.
116845         * m4/lstat.m4: Likewise.
116846         * m4/malloc.m4: Likewise.
116847         * m4/readdir.m4: Likewise.
116848         * m4/realloc.m4: Likewise.
116849         * m4/st_dm_mode.m4: Likewise.
116850         * m4/stat.m4: Likewise.
116851         * m4/utimbuf.m4: Likewise.
116852         * m4/utimes.m4: Likewise.
116854         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116855         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116856         comments in config.h.in are meaningful.
116858         * m4/jm-macros.m4: Require autoconf-2.13 here.
116860         * m4/regex.m4: By default, don't use the included regex.c on systems
116861         with glibc 2.  Suggestion from Uli Drepper.
116863 1999-01-02  Jim Meyering  <meyering@ascend.com>
116865         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116867 1998-12-18  Jim Meyering  <meyering@ascend.com>
116869         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116870         Based on a suggestion from Lars Hecking.
116872 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116874         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116876 1998-11-16  Jim Meyering  <meyering@ascend.com>
116878         * m4/lfs.m4: Double-quote the `uname...` expression.
116880 1998-11-14  Jim Meyering  <meyering@ascend.com>
116882         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116883         * m4/stat.m4: Likewise.
116885 1998-11-03  Jim Meyering  <meyering@ascend.com>
116887         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116888         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116890 1998-10-18  Jim Meyering  <meyering@ascend.com>
116892         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116894 1998-10-17  Jim Meyering  <meyering@ascend.com>
116896         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116897         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116898         calls for those previously hard-coded headers.  Instead, take a new
116899         parameter.
116900         (jm_CHECK_DECLARATIONS): Reflect interface change.
116901         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116902         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116904         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116906 1998-10-14  Jim Meyering  <meyering@ascend.com>
116908         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116909         instead of "TZ=America/Vancouver".  From Paul Eggert.
116911 1998-10-11  Jim Meyering  <meyering@ascend.com>
116913         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116914         This adds a test for a recently added compatibility fix for mktime.c.
116915         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116917 1998-09-27  Jim Meyering  <meyering@ascend.com>
116919         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116922         ../configure.in, including a change from Gordon Matzigkeit to allow
116923         cross-compiling for the Hurd.
116925         * m4/glibc.m4: New file/macro to test for the GNU C Library
116926         versions 1 and 2.  From Gordon Matzigkeit.
116927         Indent.
116929 1998-09-21  Jim Meyering  <meyering@ascend.com>
116931         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116933 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116935         Port nanosecond-resolution times to UnixWare 2.1.2 and
116936         pedantic Solaris 2.6.
116938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116939         AC_STRUCT_ST_MTIM.
116940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116941         Generate name of ns member, instead of just 1 or undef.
116942         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116944 1998-08-15  Jim Meyering  <meyering@ascend.com>
116946         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116947         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116948         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116949         instead of jm_TYPE_SSIZE_T.
116951 1998-08-12  Jim Meyering  <meyering@ascend.com>
116953         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116955 1998-08-02  Jim Meyering  <meyering@ascend.com>
116957         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116958         in acconfig.h manually.
116960 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116962         * m4/st_mtim.m4: New file.
116964 1998-07-28  Jim Meyering  <meyering@ascend.com>
116966         * m4/utimes.m4: Undef stat.
116968 1998-07-25  Jim Meyering  <meyering@ascend.com>
116970         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116971         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116973 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116975         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116976         uid and gid actually remain unchanged.
116978 1998-07-07  Jim Meyering  <meyering@ascend.com>
116980         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116982 1998-07-04  Jim Meyering  <meyering@ascend.com>
116984         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116985         to prove that this macro can be used in packages without regex.c.
116987 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116989         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116990         is to be used.
116992 1998-07-03  Jim Meyering  <meyering@ascend.com>
116994         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116996         * m4/gettext.m4: New file -- from gettext-0.10.35.
116997         * m4/lcmessage.m4: Likewise.
116998         * m4/progtest.m4: Likewise.
117000         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
117001         * m4/jm-macros.m4: Require the new macro.
117003 1998-06-29  Jim Meyering  <meyering@ascend.com>
117005         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
117006         for the definition of NGROUPS (used in a system header included
117007         by sys/mount.h).
117009 1998-06-28  Jim Meyering  <meyering@ascend.com>
117011         * m4/ls-mntd-fs.m4: New file.
117012         * m4/fstypename.m4: New file.
117014         * m4/jm-macros.m4: Require the new macro.
117015         * m4/jm-glibc-io.m4: New file.
117017 1998-05-19  Jim Meyering  <meyering@ascend.com>
117019         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
117020         * m4/lchown.m4: New file.
117022         * m4/Makefile.am.in: New file.
117023         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
117025 1998-05-14  Jim Meyering  <meyering@ascend.com>
117027         * m4/Makefile.am (EXTRA_DIST): Add them.
117028         * m4/jm-macros.m4: New file.
117029         * m4/utimbuf.m4: New file.
117031 1998-05-12  Jim Meyering  <meyering@ascend.com>
117033         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
117035 1998-05-11  Jim Meyering  <meyering@ascend.com>
117037         * m4/isc-posix.m4: New file.
117039 1998-05-10  Jim Meyering  <meyering@ascend.com>
117041         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
117043 1998-05-09  Jim Meyering  <meyering@ascend.com>
117045         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
117046         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
117047         with automake.
117049         * m4/ssize_t.m4: New file.
117050         * m4/mktime.m4: Remove file -- the new automake has this now.
117052 1998-04-26  Jim Meyering  <meyering@ascend.com>
117054         * m4/assert.m4: New file.
117055         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
117057 1998-04-05  Jim Meyering  <meyering@ascend.com>
117059         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
117060         (jm_PREREQ): Use it here.
117062 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
117064         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
117065         in acconfig.h.
117067 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
117069         * m4/prereq.m4: New file.
117070         * m4/error.m4: New file.
117071         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
117073 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
117075         * m4/getline.m4: Don't set am_cv_func_working_getline before the
117076         cache-check for the same variable -- that defeated the purpose of
117077         the test; the test program was never run.  This was a problem only
117078         on systems with losing getline functions -- HP-UX 10.20 is one.
117079         Reported by Bjorn Helgaas.
117081 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
117083         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
117085 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
117087         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
117089         * m4/const.m4: New file.  Use an initializer in this declaration
117090         typedef int charset[2]; const charset x;
117091         Reported by Bob Glickstein.
117093 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
117095         * m4/chown.m4: Fix reversed types on -1 args to chown.
117096         From Kaveh Ghazi.
117098 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
117100         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
117101         Add lseek and memchr.
117103         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
117104         T.E.Dickey <dickey@clark.net> said that some older preprocessors
117105         have a 20-character limit on names.
117107 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
117109         * m4/inttypes_h.m4: New file.
117110         * m4/uintmax_t.m4: New file.
117111         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
117114         -----
117116         Local Variables:
117117         coding: utf-8
117118         End:
117120         Copyright (C) 1997-2018 Free Software Foundation, Inc.
117122         Copying and distribution of this file, with or without
117123         modification, are permitted provided the copyright notice
117124         and this notice are preserved.